vserver services name-service getxxbyyy netgrp
Checks if a client is part of a netgroup.
Availability: This command is available to cluster administrators at the advanced privilege level.
Description
The ` vserver services name-service getxxbyyy netgrp ` checks if a client is part of a netgroup. 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
-netgroup <text>- Netgroup Name (privilege: advanced)-
Use this parameter to specify the Netgroup name
-client-name <text>- Client Name (privilege: advanced)-
Use this parameter to specify the Client name for which the membership in a given netgroup needs to be checked
[-show-source {true|false}]- Source used for Lookup (privilege: advanced)-
Use this parameter to specify if source used for lookup needs to be displayed
Examples
The following example checks if the given client is part of the given netgroup:
cluster1::*> vserver services name-service getxxbyyy netgrp -node cluster1-01 -vserver vs1 -netgroup net1 -client-name h1 -show-source false
h1 is a member of net1