Use this command to search for groups.
Purpose
Use the
searchGroups command
to find groups in virtual member manager that match particular criteria.
For example, you can use the
searchGroups command
to find all groups with a cn that starts with IBM.
If successful,
the searchGroups command returns a list of unique
names of all groups that match the search criteria.
Syntax
searchGroups { -cn commonname –description description [-timeLimit tlimit]
[-countLimit countlimit] }
Parameters
- -cn commonname
- Specifies the common name used for the group. This parameter maps
to the cn property in virtual member manager.
- -description description
- Specifies information about the group. This parameter maps to
the description entity in a virtual member manager object.
- –timeLimit tlimit
- Specifies the maximum amount of time in milliseconds that the
search can run. The default is no time limit.
- –countLimit countlimit
- Specifies the maximum number of results that you want returned
from the search. By default, all groups found in the search are returned.
Sample
To search for all groups that have a
description specified, issue this command:
$AdminTask searchGroups {-description *}
To
search for all groups that have IBM appearing in the common name of
the group, issue this command:
$AdminTask searchGroups {-cn *IBM*}