Become superuser or assume an equivalent role.
Set up a remote printer by using one of the following methods:
To use the lpadmin command, type the following command:
# lpadmin -p printer -s ipp://printer-ip-address/printers/printer-name |
To use the lpset command, type the following command:
# lpset -a printer-uri-supported=ipp://printer-ip-address/printers/printer-name |
The -a option of the lpset command accepts key/value pairs. In the preceding output, the key that is specified is printer-uri-supported, with the value being ipp://printer-ip-address/printers/printer-name. Typically, you would not configure this value to refer directly to a printer, but rather a print queue on a print server.
(Optional) To determine the URI you have supplied, type the following command:
$ lpstat -p ipp://printer-ip-address/printers/printer-name |
When you use the lpstat command and specify the URI as the destination, the local printing configuration is bypassed, connecting you directly to the network-attached printer or the remote print server.