updatesrg

Use the updatesrg command to update the attributes of the specified Storage Resource Group with a new name, description, or user-defined properties.

Syntax


1  tpctool updatesrg  -user  user_name -pwd  password   -url  url  -currentname  currentSRGName  -newname  newSRGName?  -newdescription  newdescription  -newudp1  user-defined-property1  -newudp2 user-defined-property2  -newudp3 user-defined-property3?  -fs  character?  -header ?  -help?  -qs  character?   -silent

Parameters and arguments

-user user_name
Specifies an IBM Spectrum Controlâ„¢ user ID.
-pwd password
Specifies the password for the IBM Spectrum Control user ID.
-url url
Specifies the Device server. The format of the URL is system:port_number, where system represents either the host name or IP address, and port_number represents the IBM Spectrum Control Device server port.
-currentname currentSRGName
Specifies a unique name already in use, fewer than 60 characters long. It cannot contain any of the following characters:
\ / : * ? " < > | .
The name of the user who creates the Storage Resource Group forms the beginning of the name. Use the lssrg -l command to display a list of Storage Resource Groups.
-newname newSRGName
Specifies a unique name not already in use, fewer than 60 characters long. It cannot contain any of the following characters:
 \ / : * ? " < >| .
The name of the user that creates the Storage Resource Group is added to the beginning of the Storage Resource Group name, followed by the name that is specified in the newSRGName variable.
-newdescription newdescription
Specifies a description that can contain any alphanumeric characters, and must be fewer than 255 characters long.
-newudp1 user-defined-property1
(optional) Specifies a user-defined property that might contain anything of significance to the Storage Resource Group administrator. The UDP can contain any alphanumeric character, and must be fewer than 255 characters long.
-newudp2 user-defined-property2
(optional) Specifies a user-defined property that might contain anything of significance to the Storage Resource Group administrator. The UDP can contain any alphanumeric character, and must be fewer than 255 characters long.
-newudp3 user-defined-property3
(optional) Specifies a user-defined property that might contain anything of significance to the Storage Resource Group administrator. The UDP can contain any alphanumeric character, and must be fewer than 255 characters long.
-fs character
Specifies the 7-bit character that separates the information in the output. If you omit this parameter, the information is separated by blank spaces.
-header
Suppresses the column headings in the output. If you omit this parameter, the column headings are included.
-help | -h | -?
Lists help information for the command.
-qs character
Specifies the 7-bit character that surrounds character strings and date stamps in the output. If you omit this parameter, character strings and date stamps are enclosed by double quotation marks (").
-silent
Suppresses all output for the command. If you omit this parameter, output is included.

Example: Updating the attributes of a Storage Resource Group

The following command updates a Storage Resource Group with the specified attributes:
tpctool
tpctool> updatesrg -currentname currentSRGName -newname newSRGName 
-newdescription newdescription -newudp1 user-defined-property1 
-newudp2 user-defined-property2 -newudp3 user-defined-property3

The following output is returned:

Name                             Status
========================================
Administrator.my-new-example-srg SUCCESS