

I doubt it's perfect, but it defiantly works.

Write-host -foregroundcolor DarkGreen $command $writer = new-object System.IO.StreamWriter($stream) To use this Plug-in you should have somewhere in your network a TFTP Server. $socket = new-object ($remoteHost, $port) If everything is going right you should get a similar result. Write-host -n -foregroundcolor cyan ($encoding.GetString($buffer, 0, $read)) Param( $remoteHost, $domain, $sendingdomain) I figured it out(this one reboots them but It can easily be rekeyed for backup) This is a PowerShell Script #param( $remoteHost =$(throw "Please specify the Target Server"), $domain = $(throw "Please specify the #recipient Domain"), $sendingdomain = $(throw "Please specify the Sending Domain")) We can download the required version of Internetwork. SendKeys "copy startup-config tftp" 'get command prompt backīut the problem with this is the sendkeys are sent to the console session, I'm trying to find a solution that would not require a user to be logged in.ĭoes anyone have any ideas? I have some knowlage of VBS, PowerShell and a pretty good grasp on batching. Copy downloaded IOS into root folder of TFTP Server Erase IOS present on the router. Set theSwitchList = fso.OpenTextFile(ciscoList, 1)ĭo While theSwitchList.AtEndOfStream True Set fso = CreateObject("Scripting.FileSystemObject") I wrote this: Set WshShell = WScript.CreateObject("WScript.Shell") We have both 20 servers and ideally use tftp to back it up. In addition to a TFTP server, most of the current Cisco routers can back up and. sudo launchctl unload -F /System/Library/LaunchDaemons/tftp.We have a client with a lot of Cisco Devices and we would like to automate the backups of these devices through telnet. Part 3: Use TFTP to Back Up and Restore the Switch Running Configuration.

Download the image file from the TFTP server, your MacBook, to the switch.Īrchive download-sw /overwrite tftp:// MacBook-address/6.tar.

Telnet to the Cisco Switch from the MacbookĮnsure that you have IP connectivity to the TFTP server, your MacBook, from the Cisco switch by entering this privileged EXEC command:.Sudo launchctl load -F /System/Library/LaunchDaemons/ist I would recommend solar winds tftp server which can be downloaded from here Solar winds tftp server is an easy to use server for backing up/restoring. Copy the Software Upgrade to the tftpboot directoryĬp 6.tar /private/tftpboot/ Downloading the Cisco IOS Image from a Non-Cisco TFTP Server.Create a TFTP Directory on my Macbook and copy the file.Download latest IoS version for the Cisco Catalyst 3560CPD-8PT-S Compact Switch.You may need to download Solarwinds TFTP Server and configure it prior to. Here are the steps that I followed using a MacBook Pro macOS Sierra v10.12.4: Upgrading the Cisco IOS on a Router or Switch is a MUST KNOW for any Cisco. I knew that my MacBook had a built in TFTP server so this seemed like a great opportunity to use it to upgrade my switch. I recently needed to upgrade a Cisco Catalyst 3560CPD-8PT-S Compact Switch, which was running an older IoS version.
