System Administration Guide: Naming and Directory Services (NIS+)

ProcedureHow to Set Global Preferences for an NIS+ Subnet

To assign server preferences in the global table for all the machines on a subnet:

  1. Run nisprefadm with the -G and -C subnet options.


    #nisprefadm -G -a -C subnet servers (preferences)

    Where:

    • -C subnet identifies the IP number of the subnet the preferences will apply to.

    • servers(preferences) are one or more servers with optional preference ranking numbers.

      For example, to specify that the subnet 172.22.123.123 uses the nismaster and replica3 servers with a default preference number of zero and the manf.replica6 server with a preference number of 1, type the following.


      polaris# nisprefadm -a -G -C 172.22.123.123 nismaster1 \
      replica3 "manf.replica6(1)"