My webMethods Server 10.5 | My webMethods Server Webhelp | Administering My webMethods Server | Using Command Central to Manage My webMethods Server | Authenticating My webMethods Server | Using Unix Shell Scripts to Change Connection Credentials for Managed Products
 
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