Solstice AutoClient 2.1 Administration Guide

Viewing the Name Service Policy Using admtblloc

This example shows how to display the name service policy using the admtblloc command:


$ admtblloc
Name           Name Service  Path
 
Aliases        NIS+
Hosts          NIS+
Group          NIS+
Netgroup       NIS+
Protocols      NIS+
Bootparams     NONE
Auto.home      NIS+
RPC            NIS+
Timezone       NIS+
Netmasks       NIS+
Ethers         NIS+
Passwd         NIS+
Services       NIS+
Networks       NIS+
Locale         NIS+

In this example output,

Name

Is the name of the configuration file. 

Name Service

Specifies the name service used to access the configuration file. 

Path

(Optional) Specifies the path to the ASCII source file on NIS servers in the NIS name service. The default is the /etc directory.

By default, the admtblloc command displays the policy for the name service to which the current host belongs. To display the name service policy for a different name service, specify the name service context.

This example shows how to display the name service policy for the NONE or local /etc files name service context domain using the admtblloc command:


$ admtblloc -c NONE
Name           Name Service  Path
Aliases        NONE
Hosts          NONE
Group          NONE
Auto_home      NONE
Netgroup       NONE
Protocols      NONE
Bootparams     NONE
RPC            NONE
Timezone       NONE
Netmasks       NONE
Ethers         NONE
Passwd         NONE
Services       NONE
Networks       NONE
Locale         NONE

In this example,

-c

Specifies the name service context. 

NONE

Is the local /etc files name service.

You can also use the admtblloc command to display the name service policy for a specified configuration file. This example shows how to display the name service policy for the hosts file in the default name service:


$ admtblloc Hosts
Hosts          NIS+

Note -

The configuration file names are case-sensitive.