Friday, August 30, 2019

Python script to circumvent .tar file upgrades via ZTP of 2960S/X/XR switches

I made a script to circumvent .tar file upgrades while provisioning IOS switches that don't support .bin upgrades via autoinstall/poap/etc.

https://github.com/derek-shnosh/ztp-watcher

Ref: https://www.cisco.com/c/en/us/td/docs/solutions/Enterprise/Plug-and-Play/release/notes/pnp-release-notes16.html#pgfId-206873

For the Cisco Catalyst 2960X/2960XR/2960S Series switches, only image upgrade with tar file and configuration upgrade are supported.

This is my first python project using classes and functions, constructive feedback is welcomed as I am still learning. I do realize that it has a bit of a specific use-case, as I wrote it to supplement FreeZTP which has a custom logging feature that logs switch configurations to a directory with custom variables as the file name (look for "custom logging" in FreeZTP's readme).



No comments:

Post a Comment