Mellanox MLNX-OS: Back Up Switch Configuration to Server - 夜莺博客

Mellanox MLNX-OS: Back Up Switch Configuration to Server

Regular configuration backups are the cheapest insurance policy for any network device, and Mellanox MLNX-OS switches are no exception. This guide, based on IBM's documentation for the Mellanox MSX1710 (8831-NF2) switch, shows every way to back up and restore an MLNX-OS configuration: downloading the running config from the web GUI, generating a BIN configuration file, creating a text-based configuration file, and uploading either format to an external server with SCP. A backup strategy like this turns a failed switch into a 15-minute replacement instead of a rebuild from memory.

Backing Up via the Web GUI

Log in to the switch by entering its IP address in a browser (for example, https://192.168.93.35) with the default admin/admin credentials. Click Setup, then Configuration, check the box for the file loading as the running config, click Download and save the BIN file to your desired location.

Creating a BIN Configuration File from the CLI

switch (config) # configuration snapshot active running save my-backup

The BIN format captures the complete binary configuration. To upload it to an external file server:

switch (config) # configuration snapshot active running file my-backup upload scp://root@my-server/root/tmp/my-backup

Creating and Uploading a Text-Based Configuration

switch (config) # configuration text generate active running save my-filename
switch (config) # configuration text file my-filename upload scp://root@my-server/root/tmp/my-filename

Text-based files are human-readable and diff-friendly, which makes them ideal for change management and version control. The same mechanisms can be used in reverse to restore or merge configurations after a failure.

Backup Best Practices

Automate the SCP uploads on a schedule, keep several generations of backups, store them off-box (ideally in version control), and test a restore in the lab at least once per year. Document the switch's current MLNX-OS version alongside the backup so the recovery path is unambiguous.

More Mellanox content: getting started with Mellanox switches, MLNX-OS breakout cable link troubleshooting, and ONIE and Onyx MLNX-OS installation.

原文链接:https://www.ibm.com/docs/en/power8/0000-REF?topic=POWER8_REF/p8ef9/p8ef9_backup_switch_mellanox.html