Using either the NIS or NIS+ maps, access to a printer may be obtained on a domain-wide basis. See nis+(1).
On the NIS master server, run the lpset command to create a printers.conf file; then create and push the map. This gives all members of the domain access to the printers defined in the map. See lpset(1M).
Become superuser on the NIS master server.
Create a printers.conf file by using the lpset command for each printer.
# lpset -a bsdaddr=server1,printer1,extensions printer1 |
-a bsdaddr=server1,printer1,extensions |
Adds the print server, printer destination, and enables Solaris protocol extensions. |
printer1 |
Specifies the printer name. |
Create and push the NIS map.
# make -f /var/yp/makefile -f /usr/lib/print/Makefile.yp printers.conf |
This example creates a printers.conf entry for the printer luna, connected to the print server, saturn. The make command pushes the printers.conf map.
# lpset -a bsdaddr=saturn,luna,Solaris -a description= "Room 1954 ps" luna # make -f /var/yp/makefile -f /usr/lib/print/Makefile.yp printers.conf |
On the NIS+ master server, use the lpset command (see lpset(1M)) to add the printer configuration information to NIS+ via XFN (see fns(5)).
Become superuser on the NIS+ master server.
(Optional) If FNS has not been initialized, create the root organization context and its subcontents for the NIS+ root domain.
# fncreate -t org org// |
Create the NIS+ map.
# lpset -n fns -a bsdaddr=server1,printer1,extensions printer1 |
This example creates a printers.conf entry for the printer luna, connected to the print server, saturn.
# lpset -n fns -a bsaddr=saturn,luna,Solaris -a description= "Room 1954 ps" luna |