Sending automated commands to a Cisco device using SSH – Powershell

Ever need to automate a command on a Cisco device? We recently had issues with offsite backups because our MPLS link was only 5Mbit, but our VPN mesh has a 100mib pipe. Well offsite backups would saturate the link and would take more than the weekend to complete. We use this powershell script to disable our MPLS link to allow backups to complete in a timely manner, after they complete there is another script that enables the interface again.

4 comments… add one
  • prasad Link Reply

    How do I get output of the above result?

  • dresmasher Link Reply

    Hey man, thanks for this, very useful, going to automate a lot of things with this.
    I previously used to work a lot with Telnet but boss wants to finally make the move to SSH and your little script there just saved me a lot of research.

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.