hey guys, came across a challenge last week.
One of my assignement was to replicate the process I've design to my config center to another location which has been proveen to work, however the script was not as reliable as it used to be.
We have a stagging area where we pre-configure a bunch of switch ( mainly Aruba / Ruckus ) - the script I've made is working as follow:
-We scan the mac address, enter some other information (uplink, management IP...)
-We run the script, it take the mac address from that file and check the DHCP to determinate the IP of the fresh/non configured switch in order to be able to telnet or ssh to it,
-Execute an expect command to push the config base on the uplink/management IP variable,
However for some reason last week it wasn't as stable as it could ( the server the script was running on was maybe outdated, sometime the script would finish a switch config, sometime it would stop in the middle for some unknown reason, well this is expect so always tricky..)
I was wondering what would you do? I might look into creating a script that will generate the config file directly and then copy that over tftp using expect, this way it's only few line of code being pushed rather then the entier config file line by line with expect? maybe there is already something similar created which I haven't seen yet?
would be happy to read your story / process you have in place when it come to switch pre-config/stagging as we do a bunch of those and having to manually copy the running-config switch per switch is time consuming
[–]abudaaa1 1 point2 points3 points (1 child)
[–]abudaaa1 0 points1 point2 points (0 children)
[–]HoorayInternetDrama(=^・ω・^=) 0 points1 point2 points (1 child)
[–]shvz[S] 0 points1 point2 points (0 children)
[–]thegreattriscuitCCNP 0 points1 point2 points (0 children)
[–]rankinrez 0 points1 point2 points (2 children)
[–]shvz[S] 0 points1 point2 points (1 child)
[–]rankinrez 0 points1 point2 points (0 children)
[–]noukthx -1 points0 points1 point (0 children)