How to change a Service or CI property value via command line (Ex: Label, Location etc)

Document ID : KB000021856
Last Modified Date : 14/02/2018
Show Technical Document Details

Question:

Is there a command\utility to change a Service or CI property like 'Label, Location etc'...

Answer:

  1. To change a Service or CI Property, we can use 'WSSamCICmd.bat' utility located in SOI_HOME\tomcat\bin.

    Ex: The below example change a CI Label from "UC_Server.ca.com" to "Eastern_Cape" as shown in the screenshot

    Figure 1

    Syntax: WSSamCICmd -h<SAMServer>:7090 -usamuser -p<EncryptedPwd> -aUpdate -i<InstanceID> -n<PropertyName> -v<PropertyValue>

    WSSamCICmd -h<SAMServer>:7090 -usamuser -p<EncryptedPwd> -aUpdate -iComputerSystem:sysname,uc_server.ca.com -nitem_label -vEastern_Cape

    Note: Run WSSamEncryptCmd.bat from the same directory to generate an encrypted version of the password for use in -p<password> parameter.

    Figure 2

    After running above command the label has changed to 'Eastern_Cape'.