As an administrator, you use the WSSamCICmd.bat utility to update a subset of the service or CI properties. The utility updates one property at a time.
Follow these steps:
WSSamCICmd.bat -hsamanagerhost:port -uadminuser -ppassword -aUpdate ‑iInstanceID -npropertyName -vpropertyValue
Note: Note the lack of spaces between the parameters and values.
Defines the host name and Tomcat port number of the SA Manager from which you want to update CI properties. The default Tomcat port is 7090.
Defines the user name of the CA SOI administrator user ("samuser" user by default).
Defines the password of the CA SOI administrator user. Run WSSamEncryptCmd.bat from the same directory to generate an encrypted version of the password for use in this parameter.
Defines to update the property of a CI. Currently this operation is the only option.
Defines the instanceID of the CI to update. A CI can be a service or any CI that is part of an existing service. Find the instanceID property for any CI in the Service Modeler.
Defines the property name to update. Valid values are as follows:
Updates the Label property.
Updates the Description property.
Updates the Priority property. Valid values are Low, Medium, High, and Critical.
Updates the Operational Mode property. Valid values are Active and In Repair.
Updates the Location property.
Updates the Category property.
Updates the IP Address property.
Defines the new value for the specified property. Enter a valid value.
The command runs. A return code of 1 indicates that the command failed. The update progress displays in the command prompt. After the update completes, a success message displays with a return code of 0.
Example: Update a Server CI Location
The following example command updates the SA_Server:server1 CI Location property:
WSSamCICmd.bat -hSAServer:7090 -usamuser -psamuserpw -aUpdate ‑iSA_Server:server1 -nitem_department -vOfficeB
|
Copyright © 2013 CA.
All rights reserved.
|
|