Skip to main content

vserver services name-service nis-domain netgroup-database show-status

Contributors
Suggest changes

Display NIS netgroup database status of the local node

Availability: This command is available to cluster and Vserver administrators at the advanced privilege level.

Description

The vserver services name-service nis-domain netgroup-database show-status command displays the status of local NIS netgroup.byhost databases across a cluster. This enables you to verify that NIS netgroup.byhost databases are consistent across all nodes.

The command displays the following information:

  • Vserver name

  • Node name

  • Last build time of the NIS netgroup.byhost database

  • Hash value of the NIS netgroup.byhost database

  • File size of the NIS netgroup.byhost database

Parameters

{ [-fields <fieldname>,…​]

If you specify the -fields <fieldname>, …​ parameter, the command output also includes the specified field or fields. You can use '-fields ?' to display the fields to specify.

| [-instance ] }

If you specify the -instance parameter, the command displays detailed information about all fields.

[-vserver <vserver name>] - Vserver (privilege: advanced)

If you specify this parameter, the command displays the NIS netgroup.byhost database status only for the specified Vserver.

[-node {<nodename>|local}] - Node (privilege: advanced)

If you specify this parameter, the command displays the NIS netgroup.byhost database status only for the specified node.

[-timestamp <MM/DD/YYYY HH:MM:SS>] - Load Time (privilege: advanced)

If you specify this parameter, the command displays the status only for the NIS netgroup.byhost databases that were built at the specified time. Specify time in the format MM/DD/YYYY HH:MM:SS. Note that the load time stamps for identical definitions are different on different nodes, because each node extracts the databases individually.

[-filesize {<integer>[KB|MB|GB|TB|PB]}] - File Size (privilege: advanced)

If you specify this parameter, the command displays the status only for the NIS netgroup.byhost databases that have the specified file size. Note that the primary purpose of the command is to verify that the definitions on all nodes have the same file size, so querying on a specific file size is not useful in most cases.

[-hashvalue <text>] - Hash Value (privilege: advanced)

If you specify this parameter, the command displays the status only for the NIS netgroup.byhost databases that have the specified hash value. Note that the primary purpose of the command is to verify that the definitions on all nodes have the same hash value, so querying on a specific hash value is not useful in most cases.

Examples

The following example displays the NIS netgroup.byhost database status for vserver vs0 :

cluster1::*> vserver services name-service nis-domain netgroup-database status -vserver vs0
Vserver   Node            Last Build Time     File Size
--------- --------------- ------------------- ----------
Hash Value
 --------------------------------
vs0
          node1           2/14/2019 11:39:56  136KB
a30b7d6d03197a7af25de72dcc4bd64f