Become superuser or assume an equivalent role.
Roles contain authorizations and privileged commands. For more information about roles, see Configuring RBAC (Task Map) in System Administration Guide: Security Services.
To set up a remote printer, choose one of the following methods:
Use the lpadmin command:
# lpadmin -p printer -s ipp://printer-ip-address/printers/printer-name
Use the lpset command:
# lpset -a printer-uri-supported=ipp://printer-ip-address/printers/printer-name
Using the lpset command with the -a option 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.