Copy cisco config to mac using built in tftp

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

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://
06-Dec-2018 20:35:39 %COPY-I-FILECPY: Files Copy - source URL running-config destination URL tftp://
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.


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

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