The process of deploying a printer as part of Mac management can be tricky, that is why Addigy has developed several means of achieving this in a simple way. One of these ways is via Smart Software.
Considerations.
Before you can put together a Smart Software to deploy your printer through Addigy, you will need a device that already has the printer correctly configured. This device will be used to gather the necessary information to set up your Smart Software.
To install a Printer via Smart Software you can use this command as the installation script:
lpadmin -p "Printer_Name" -v "Printer_URL" -P "PPD" -o printer-is-shared=false -E
"Printer_Name" is chosen by you and can be anything that describes your printer
"Printer_URL" is the URL or IP address of the printer DeviceURI
To find the "Printer_URL" you can run the following command on the device that has the printer configured. You will need to add sudo before the command if you are not running it from within Addigy.
cat /etc/cups/printers.conf
-P "PPD" is the Printer Driver file you would like to use
To find the PPDURL, run this command on the configured device. Change the $yourPrinterMakeModel for whatever you entered as the MakeModel field in the printer Profile.
lpinfo --make-and-model "$yourPrinterMakeModel" -m
This will list the available drivers for that model on your device. The file PPDURL will look something like this and will usually end in .gz.
file://localhost/Library/Printers/PPDs/Contents/Resources/Brother MFC-L6900DW series CUPS.gz
-o printer-is-shared=false turns off printer sharing
-E indicates to enable the destination and accept jobs. When used, this is the same as running cupsaccept and cupsenable on the destination. Note: When used before the -d, -p, or -x options, forces the use of TLS encryption in the connection to the scheduler. This may impact connectivity with the device.
Finally, upload this .gz into your Smart Software. The end product will look something like.