automate an SSH connection to cisco switch
Looking for some advice on writing a script to connect to a cisco switch and do a shut/no shut command. This is a setup involving an outdoor Wifi modem powered by PoE, so on occasion the ISP advises power cycling if internet access gets flaky.
Goal is to make a very simple script, connect, conf t, int fa1/0/x, shut, no shut, and if it could get a bit more detailed, do a 15 or 20 second ping before the script exits.
I could easily do it manually but the target end user isn't terribly tech savvy, and there isn't a concern for security on scripted access to the switch.
I work mostly on the PC side so I'm not terribly familiar with what may be involved for doing this on the Mac side.
Any suggestions, sample scripts, I'm all ears!
Thank you