I know how I could do this in theory -- probably using expect, or the python pexpect library, but I am notorious for re-inventing the wheel when a tool already has functionality built in or a "right way" to do it. Is the agentless (using ssh) salt able to run commands directly on the cisco ios? Or does it need a "real" shell like bash / sh on the remote host?
I would test now, but I don't have a Cisco switch right now that isn't in production that I'm willing to accidentally break. Also I'm still reading up on the documentation for salt and have only briefly tested it at all to this point.
Also I just realized some Cisco's have an xml API which would be ideal, however it doesn't look like any of the models we use have that feature unfortunately.
If anyone can give me tips/advice on this ahead of time I would be very appreciative.
[link][comment]