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

vserver services name-service getxxbyyy netgrpcheck

Contributors
Suggest changes

Check if a client is part of a netgroup using combined API

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

Description

The ` vserver services name-service getxxbyyy netgrpcheck ` 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

-clientIP <IP Address> - Client IP Address (privilege: advanced)

Use this parameter to specify the Client IP for which the membership in a given netgroup needs to be checked

[-enable-domain-search-flag {true|false}] - Use DNS domain (privilege: advanced)

Use this parameter to use DNS domain. Default value for this field is true

[-trust-any-source {true|false}] - Trust any source (privilege: advanced)

Use this parameter to set trust any source parameter. Default value for this field is false

[-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 netgrpcheck -node cluster1-01 -vserver vs1 -netgroup net1 -clientIP 10.232.98.198 -show-source false
    10.232.98.198 is a member of net1