{anchor:acfgh}
h1. commadmin resource search
The {{commadmin resource search}} command searches for a resource.
h2. Syntax
{noformat}
commadmin resource search -D <login> -n <domain> -w <password> [-d <domain>] [-h] [-?]
[-i <inputfile>] [-N <string>] [-p <AM port>] [-s] [-t <Search Template>] [-u <string>]
[-V] [-v] [-X <AM host>]
{noformat}
{anchor:acfgj}
h2. Options
The following options are mandatory:
||Option ||Description ||
|{{-D}} _login_ |The user ID of the user with the permission to execute this command. |
|{{-n}} _domain_ |Domain of the user specified with the {{-D}} option. |
|{{-w}} _password_ |Password of the user specified with the {{-D}} option. |
The following options are non-mandatory:
||Option ||Description ||
|{{-d}} _domain_ |Domain of the resource. Search is performed only in the domain. If {{-d}} is not specified or {{-d*}} is specified, then all domains are searched. |
|{{-h}}, {{–?}} |Prints command usage syntax. |
|{{-i}} _inputfile_ |Reads the command information from a file instead of the command line. An option value specified in the input file overrides any value for the same option set in the command line. |
|{{-N}} _string_ |Enter the resource’s common name. The wildcard operator ( * ) may be used within any part of string. |
|{{-p}} _AM port_ |Specifies an alternate TCP port where the Access Manager is listening. If not specified, the default _AM port_ is used, or Port 80 is used if no default was configured at install time. |
|{{-s}} |Use SSL (Secure Socket Layer) to connect to the Access Manager. |
|{{-t}} _Search Template_ |Specifies the name of the search templates to be used instead of the default search templates. This is an entry in the directory that defines the filter for the search. Only active resources are searched for. |
|{{-u}} _string_ |The resource identifier specified must be unique for the domain namespace or for all the users and resources the calendar manages. The wildcard operator ( * ) may be used within any part of string. If the identifier is not specified or {{-l*}} is specified all resources are displayed during the search. |
|{{-v}} |Enable debugging output. |
|{{-V}} |Prints information about the utility and its version. |
|{{-X}} _AM host_ |Specify the host on which the Access Manager is running. If not specified, the default _AM host_ is used, or the localhost if no default was configured at install time. |
{anchor:acfgk}
h2. Example
To search for a resource {{arabella}} in the domain {{sesta.com}}:
{code}
commadmin resource search -D serviceadmin -w serviceadmin -n sesta.com \
-d sesta.com -u arabella
{code}
h1. commadmin resource search
The {{commadmin resource search}} command searches for a resource.
h2. Syntax
{noformat}
commadmin resource search -D <login> -n <domain> -w <password> [-d <domain>] [-h] [-?]
[-i <inputfile>] [-N <string>] [-p <AM port>] [-s] [-t <Search Template>] [-u <string>]
[-V] [-v] [-X <AM host>]
{noformat}
{anchor:acfgj}
h2. Options
The following options are mandatory:
||Option ||Description ||
|{{-D}} _login_ |The user ID of the user with the permission to execute this command. |
|{{-n}} _domain_ |Domain of the user specified with the {{-D}} option. |
|{{-w}} _password_ |Password of the user specified with the {{-D}} option. |
The following options are non-mandatory:
||Option ||Description ||
|{{-d}} _domain_ |Domain of the resource. Search is performed only in the domain. If {{-d}} is not specified or {{-d*}} is specified, then all domains are searched. |
|{{-h}}, {{–?}} |Prints command usage syntax. |
|{{-i}} _inputfile_ |Reads the command information from a file instead of the command line. An option value specified in the input file overrides any value for the same option set in the command line. |
|{{-N}} _string_ |Enter the resource’s common name. The wildcard operator ( * ) may be used within any part of string. |
|{{-p}} _AM port_ |Specifies an alternate TCP port where the Access Manager is listening. If not specified, the default _AM port_ is used, or Port 80 is used if no default was configured at install time. |
|{{-s}} |Use SSL (Secure Socket Layer) to connect to the Access Manager. |
|{{-t}} _Search Template_ |Specifies the name of the search templates to be used instead of the default search templates. This is an entry in the directory that defines the filter for the search. Only active resources are searched for. |
|{{-u}} _string_ |The resource identifier specified must be unique for the domain namespace or for all the users and resources the calendar manages. The wildcard operator ( * ) may be used within any part of string. If the identifier is not specified or {{-l*}} is specified all resources are displayed during the search. |
|{{-v}} |Enable debugging output. |
|{{-V}} |Prints information about the utility and its version. |
|{{-X}} _AM host_ |Specify the host on which the Access Manager is running. If not specified, the default _AM host_ is used, or the localhost if no default was configured at install time. |
{anchor:acfgk}
h2. Example
To search for a resource {{arabella}} in the domain {{sesta.com}}:
{code}
commadmin resource search -D serviceadmin -w serviceadmin -n sesta.com \
-d sesta.com -u arabella
{code}