Skip to main content
A newer release of this product is available.

vserver services name-service getxxbyyy getgrbygid

Contributors
Suggest changes

Gets the group members by using the group identifier or GID.

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

Description

The ` vserver services name-service getxxbyyy getgrbygid ` gets the group members by using the group identifier or GID for a given Vserver. The underlying service for doing the lookup is selected based on the configured name service switch order.

Parameters

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

Use this parameter to specify the node where the lookup will be performed

-vserver <vserver name> - Vserver Name (privilege: advanced)

Use this parameter to specify the Vserver where the lookup will be performed

-groupID <integer> - Group ID (privilege: advanced)

Use this parameter to specify the GroupID for which the members are requested

[-show-source {true|false}] - Source used for Lookup (privilege: advanced)

Use this parameter to specify if source used for lookup needs to be displayed

[-use-cache <true>] - Use Locally-Cached Values (privilege: advanced)

If set to true , locally-cached values will be used. The default value is false .

Examples

The following example requests group information for the given groupid
cluster1::*> vserver services name-service getxxbyyy getgrbygid -node cluster1-01 -vserver vs1 -groupID 1
      name: daemon
      gid: 1