Quantcast
Channel: linuxadmin: Expanding Linux SysAdmin knowledge
Viewing all articles
Browse latest Browse all 17854

Has anyone used Salt to configure a Cisco switch? Or specifically to add and remove vlans? Is it possible/practical? Or can you point me to any examples?

$
0
0

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.

submitted by kim_jong_com
[link][comment]

Viewing all articles
Browse latest Browse all 17854