Using Unix Shell Scripts to Change Connection Credentials for Managed Products

You can use the following sample UNIX shell script to configure basic authentication credentials for product components managed by Command Central.

NODE_ALIAS=local                  
USERNAME=Administrator                  
PASSWORD=secret                  
RCID=integrationServer-default                  
# RCID=MwsProgramFiles-default                  
# RCID=Universal-Messaging-nirvana                  
# RCID=OSGI-CTP                  
# RCID=OSGI-InfraDC                  
                  
sagcc get configuration data $NODE_ALIAS $RCID COMMON-LOCAL-USERS-Administrator                  
-o administrator.xml                  
sed "s,/>,><Password>${PASSWORD}</Password></User>,g" administrator.xml >                  
 administrator_new.xml                  
sagcc update configuration data $NODE_ALIAS $RCID COMMON-LOCAL-USERS                  
-Administrator -o administrator_new.xml                  
                  
# verify connection                  
sagcc get monitoring runtimestatus $NODE_ALIAS $RCID -e ONLINE