Wednesday, August 22, 2018

Question on how to create a specific script to run in SolarWinds

Tiny bit of back-story. I have about 250+ Cisco 4331 routers that are being used only for our public WiFi at each site.

That's 250 different ACL's that need to be modified because someone copy-pasted the same one in each site.

I only need to change three lines but I need to only change the third octet in each line:

.8 .5 and .4 are respectively for Switch, backup-router, primary router.

access-list 90 permit 10.0.1.8

access-list 90 permit 10.0.1.5

access-list 90 permit 10.0.1.4

The next site in line would be:

access-list 90 permit 10.0.2.8

access-list 90 permit 10.0.2.5

access-list 90 permit 10.0.2.4

This is more of an example, it's not specifically as seamless as .1, .2, .3, .4

Is there a way that I could automate it? Because currently at every site it's "10.0.1.4, 5, 8. where we just need to strip and change the third octet variable.

Also, if there's another tool that is useful for this same sort of thing, I'm open to whatever to make this process faster.



No comments:

Post a Comment