System Administration Guide

How to Add Domain-Wide Access to a Printer using NIS+

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)).

  1. Become superuser on the NIS+ master server.

  2. (Optional) If FNS has not been initialized, create the root organization context and its subcontents for the NIS+ root domain.


    # fncreate -t org org//
    
  3. Create the NIS+ map.


    # lpset -n fns -a bsdaddr=server1,printer1,extensions printer1
    
    -n fns

    Creates or updates the FNS content. 

    -a bsdaddr=server1,printer1,extensions
    

    Adds the print server, printer destination, and enables Solaris protocol extensions. 

    printer1

    Specifies the printer name. 

Example--Adding Domain-Wide Access to a Printer using NIS+

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