Software AG Products 10.5 | Administering Integration Server | Using Command Central to Manage Integration 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                                  
                 
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