Another shell script that came from a customer request. The customer had 500+ gateways that they needed to replace a log server on each (remove old and add new) Customer is an MDS shop but I added SMS scripts as well to perform the same functions.
The script is setup to run on the Mgmt station itself and uses the 'mgmt_cli -r true' function. The script will list all servers with the logging blade enabled to ensure spelling is correct when used. The output file is already executable and ready to run to complete changes.
There are six potential scripts based on your needs;
- replace_log_alerts_server-MDS.sh
- This version will output the replace script for all gateways of a given Domain. It will allow you to remove one log server and add one, all in one script.
- add_log_alerts_server-MDS.sh
- This version will output the add script for all gateways of a given Domain. It will allow you to add one log server to all gateways at once.
- remove_log_alerts_server-MDS.sh
- This version will output the remove script for all gateways of a given Domain. It will allow you to remove one log server from all gateways at once.
- replace_log_alerts_server-SMS.sh
- This version will output the replace script for all gateways of a given Managment Server. It will allow you to remove one log server and add one, all in one script.
- add_log_alerts_server-SMS.sh
- This version will output the add script for all gateways of a given Managment Server. It will allow you to add one log server to all gateways at once.
- remove_log_alerts_server-SMS.sh
- This version will output the remove script for all gateways of a given Managment Server. It will allow you to remove one log server from all gateways at once.
Feedback welcome this was a simple project that came out of a client request.