I hardly ever have a request to add a printer to a Solaris box, but every one and a while a developer needs me to add one. Not that I have any idea what they are printing…
Below are my notes…
Adding a Printer:
In the example below we are adding a printer with the -p option for the printer name, the -s for the print server, and -D for the description.
# lpadmin -p luna -s saturn
# lpadmin -p luna -D "Room 1954 ps"
# lpadmin -d luna
# lpstat -p luna
Verify you can print with the following command
$ lp -d printer-name filename