Copy cisco config to mac using built in tftp

Achtung! Dieser Artikel ist älter als ein Jahr. Der Inhalt ist möglicherweise nicht mehr aktuell!

Mac has a built in tftp server so doing a backup from a cisco switch is pretty easy. Just start it, create a file and then start a transfert.

Start the tftp server:

sudo launchctl load -F /System/Library/LaunchDaemons/tftp.plist
sudo launchctl start com.apple.tftpd

Move to /private/tftpboot and create the file cisco. Also chmod it to 777.

:-$ cd /private/tftpboot
:-$ touch cisco
:-$ chmod 777 cisco

Now copy your config from the switch:

SwitchR#copy running-config tftp://10.20.10.21/cisco
06-Dec-2018 20:35:39 %COPY-I-FILECPY: Files Copy - source URL running-config destination URL tftp://10.20.10.21/cisco
06-Dec-2018 20:35:40 %COPY-N-TRAP: The copy operation was completed successfully

Copy: 20331 bytes copied in 00:00:02 [hh:mm:ss]

Done. Stop the tftp server (or leave it running? You can only write files which already exists):

sudo launchctl unload -F /System/Library/LaunchDaemons/tftp.plist

Don’t forget to move your transfered files.

Source: https://www.barryodonovan.com/2014/11/08/os-x-built-in-tftp-server


Du hast einen Kommentar, einen Wunsch oder eine Verbesserung? Schreib mir doch eine E-Mail! Die Infos dazu stehen hier.

🖇️ = Link zu anderer Webseite
🔐 = Webseite nutzt HTTPS (verschlüsselter Transportweg)
Zurück