... {anchor:acfgd} h1. commadmin resource modify
The {{commadmin resource modify}} command modifies the resource.
h2. Syntax
{noformat} commadmin resource modify -D <login> -n <domain> -w <password> -u <identifier> [-A [+|-]<attributename>:<value>] [-d <domainname> ] [-h] [-?] [-i <inputfile>] [-N <name>] [-p <AM port>] [-s] [-T <time zone>] [-v] [-V] [-X <AM host>] {noformat}
h2. Options
The following options are mandatory:
||Option ||Description || |{{-D}} _login_ |The user ID of the user with 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. | |{{-u}} _identifier_ |Resources's unique identifier. |
The following options are non-mandatory: |
||Option ||Description || |
| |{{-A}} [ + _or_ – ]\\ _attributename_:_value_ |An attribute to modify. The _attributename_ is defined in the LDAP schema and value replaces any and all current values for this attribute in the directory. Repeat this option to modify multiple attributes at the same time, or to specify multiple values for the same
attribute. A “+” before the _attributename_ indicates adding the value to the current list of attributes. A “–” indicates removing the value. If the “–” is used, it must be preceded by two backslashes if the command is specified on the command line. If the option is provided within an input file, one backslash must precede the “–” sign. |
attribute.\\ |
A “+” before the _attributename_ indicates adding the value to the current list of attributes.\\ A “–” indicates removing the value.\\ If the “–” is used, it must be preceded by two backslashes if the command is specified on the command line. If the option is provided within an input file, one backslash must precede the “–” sign. | |
|{{-d}} _domainname_ |Domain of the resource. If {{-d}} is not specified, the domain specified by {{-n}} is used. | |{{-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}} _name_ |Common name used to display the resource in the calendar user interface. | |{{-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 directory. | |{{-T}} _time zone_ |The time zone used to display resource's calendar in the calendar GUI.See [Calendar Time Zone Strings|Attribute Values and Calendar Time Zones#ACFIB] for a list of the valid time zone strings. | |{{-v}} |Enable debugging output. | |{{-V}} |Prints information about the utility and its version. | |{{-X}} _AM host_ |Specifies 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:acfgg}
h2. Example
To modify a resource with the unique identifier {{bill023}} with a new common name {{bjones}}:
{code} commadmin resource modify -D chris -n sesta.com -w bolton -d test.com \ -u bill023 -N bjones {code} |