Skip to main content

vserver services name-service ns-switch show

Contributors
Suggest changes

Display Name Service Switch configuration

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

Description

Use the ` vserver services name-service ns-switch show ` command to display information about one or more name service switch entries. A name service switch entry provides information about the order of looking up the name service sources, for a Vserver and name service database.

Parameters

{ [-fields <fieldname>,…​]

If you specify the -fields [fieldname], …​ parameter, the command only displays the fields that you specify.

| [-instance ] }

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

[-vserver <vserver name>] - Vserver

Vserver Use this parameter to display only the name service switch entries for the Vserver you specify. A data Vserver or admin Vserver can be specified.

[-database {hosts|group|passwd|netgroup|namemap}] - Name Service Switch Database

Name Service Switch Database Use this parameter to display only the name service switch entries of the name service database type you specify. Following are the possible values for this parameter:

  • hosts

  • group

  • passwd

  • netgroup

  • name_map

[-sources {files|dns|ldap|nis}] - Name Service Source Order

Name Service Source Order Use this parameter to display only name service switch entries with the specified name service source order. Each name service source in the list for this parameter must be one of the following:

  • files

  • dns

  • ldap

  • nis

Separate multiple sources with commas.

Examples

The following example shows the output of the ` vserver services name-service ns-switch show ` command.

cluster1::> ` vserver services name-service ns-switch show `

                                                 Source
               Vserver         Database            Order
               --------------- ------------        ---------
               vs0             hosts               files,
                                                   dns
               vs1             passwd              files,
                                                   ldap, nis
               2 entries were displayed.