Getting called at 2am is never fun, even if you are the Network On-Call person. Any chance I can prevent a call like that, I’ll take it! In this case, there’s a “failover pair” of servers, one in each data center (DC). Each server has a locally unique admin/replication IP addresses on one interface that is always active and a second interface that shares the same IP address as the server in the other DC. Whichever server is active enables the highly-available (HA) interface while the other server’s HA interface is disabled. We can then make network changes to routers and switches to “switch” the server from one DC to the other. And instead of my having to manually make those changes at 2am, we can script the changes with a configuration management tool. Our tool of choice is Solarwinds Orion Network Configuration Manager (NCM).
In this particular use of NCM, there are 5 individual NCM jobs, one for each device that must be touched. The changes include enabling/disabling switch ports and adding/removing route advertisements in EIGRP and BGP. Assume the names of the 5 jobs are AutoJob1a, AutoJob2a, …, AutoJob5a. In addition, there are 5 jobs for the reverse direction named AutoJob1b, AutoJob2b, …, AutoJob5b. Each of these jobs has an NCM Job ID associated with it seen under the “Job ID” column when viewing Scheduled Jobs from the NCM GUI.
At this point, we’ve saved ourselves from having to individually login to each of the devices to make the required changes. But we can take it a step further by combining all the jobs and launching them from a Windows Batch (.bat) file. On the NCM server we created the file d:\RemoteJobs\AutoJob-A.bat which contains these 5 lines, one per NCM job:
“D:\Program Files\SolarWinds\Configuration Management\configmgmtjob.exe” “D:\Program Files\SolarWinds\Configuration Management\Jobs\Job-318696.ConfigMgmtJob”
“D:\Program Files\SolarWinds\Configuration Management\configmgmtjob.exe” “D:\Program Files\SolarWinds\Configuration Management\Jobs\Job-631858.ConfigMgmtJob”
“D:\Program Files\SolarWinds\Configuration Management\configmgmtjob.exe” “D:\Program Files\SolarWinds\Configuration Management\Jobs\Job-713828.ConfigMgmtJob”
“D:\Program Files\SolarWinds\Configuration Management\configmgmtjob.exe” “D:\Program Files\SolarWinds\Configuration Management\Jobs\Job-272305.ConfigMgmtJob”
“D:\Program Files\SolarWinds\Configuration Management\configmgmtjob.exe” “D:\Program Files\SolarWinds\Configuration Management\Jobs\Job-777458.ConfigMgmtJob”