cancel
Showing results for 
Search instead for 
Did you mean: 
Post a Question

Mass Modify Log Server of All Gateways (replace, add, remove) - MDS/SMS - 80.10 api

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.

1 Reply
Employee++
Employee++

Re: Mass Modify Log Server of All Gateways (replace, add, remove) - MDS/SMS - 80.10 api

Hi Adam, great work!

I suggest that you pack all of your usefull utility scripts (from the past too) into a one big library package, running each script with parameters, API wise.

Robert.