In case of disaster, it is usually a very good idea to periodically back up the configuration of your network switches. This article lists syntax for backing up configuration to a TFTP server for different vendors.
In the syntax examples below, the IP for the TFTP is 1.2.3.4, and we're writing to the file switch.cfg.
Note that this article is definitely not complete. If you have additions to this article, please post them in the comments.
The syntax for Dell and Cisco switches is mostly the same. For N-series and PowerConnect, a summary is displayed which needs to be confirmed, which is not the case for Cisco and Dell S-series.
For Cisco Small Business (SF- and SG-series), the CLI needs to be enabled before the command below can be used.
copy running-config tftp://1.2.3.4/switch.cfg
HP and HPE A-series, including FlexFabric, have two ways of copying their config to TFTP:
backup startup-configuration to 1.2.3.4 switch.cfg
Or:
tftp 1.2.3.4 put flash:/config.cfg switch.cfg
Note that for older A-series, still branded H3C, only the second method works.
Depending on the firmware version, TFTP may not be supported. You can use FTP, SCP or SFTP instead.
file copy /config/juniper.conf.gz ftp://username:password@ip-or-fqdn/folder/
If password is omitted in the URL, you will be prompted to enter it. If username is omitted, the username will default to the one used to log on to the switch.
« ‹ | December 2024 | › » | ||||
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 31 |