|
Allows you to filter command output. You can either specify a
match value, which will only show
command output that matches the value you specify, or you can
specify an except value, which will only
show command output except for the value you specify.
For example, use the | match option to
display only the app-version in the output of the show system
info command:
username@hostname> show system info | match app-version
app-version: 8087-5126
Similarly, to show all users in your group lists who are not part
of your organization, you should show the user group list, but
exclude the organizational unit (ou) for your organization.
Notice that, although there are a total of 4555 user-to-group
mappings, with the | except filter you
can easily see the small list of users who are part of external
groups:
username@hostname> show user group list | except ou=acme
cn=sap_globaladmin,cn=users,dc=acme,dc=local
cn=dnsupdateproxy,ou=admin groups,ou=administrator accounts,dc=acme,dc=local
cn=dhcp administrators,ou=admin groups,ou=administrator accounts,dc=acme,dc=local
cn=helpservicesgroup,cn=users,dc=acme,dc=local
cn=exchange domain servers,cn=users,dc=acme,dc=local
cn=network configuration operators,cn=builtin,dc=acme,dc=local
cn=dhcp users,ou=admin groups,ou=administrator accounts,dc=acme,dc=local
cn=exchange windows permissions,ou=microsoft exchange security groups,dc=acme,dc=local
cn=wins users,cn=users,dc=acme,dc=local
cn=enterprise read-only domain controllers,cn=users,dc=acme,dc=local
cn=print-server-admins,ou=admin groups,ou=administrator accounts,dc=acme,dc=local
cn=telnetclients,cn=users,dc=acme,dc=local
cn=servicenowpasswordreset,ou=admin groups,ou=administrator accounts,dc=acme,dc=local
cn=delegated setup,ou=microsoft exchange security groups,dc=acme,dc=local
Total: 4555
* : Custom Group
</result></response>
username@hostname>
|