博科 5300 光纖交換機配置 備份和恢復


1、配置文件備份

支持SCP, FTP和SFTP協議。可以通過configupload命令將博科交換機的配置以文本格式存到本地。

本次使用的是FTP服務器。ftp服務器使用的FileZilla_Server軟件。建議先安裝這個軟件,然后進行簡單的配置。

備份配置文件:
Brocade_5300:admin> configupload
Protocol (scp, ftp, sftp, local) [ftp]: ftp
Server Name or IP Address [host]: 10.77.77.79 【光纖交換機默認管理IP是10.77.77.77。我筆記本配置IP是79】
User Name [user]: test【FTP服務器用戶名】
Path/Filename [<home dir>/config.txt]: switch5300.txt
Section (all|chassis|switch [all]): all
Password:(輸入FTP服務器密碼)
 
configUpload complete: All selected config parameters are uploaded
Brocade_5300:admin> 2019/06/11-03:06:08, [CONF-1001], 109, FID 128, INFO, Brocade_5300, configUpload completed successfully for all.
 
Brocade_5300:admin>
 
備份過程並不會保存以下信息:
  • dnsConfig information
  • Passwords
 
2、配置文件恢復

Configuration file restoration
1.)Verify that the FTP service is running on the server where the backup configuration file is located.
2.)Connect to the switch and log in using an account assigned to the admin role, and if necessary with the chassis-role
permission.
3.)  If there are any changed parameters in the configuration file that do not belong to SNMP,
Fabric Watch, or ACL, disable the switch by entering the switchDisable command.
4.) Enter the configDownload command.
The command becomes interactive and you are prompted for the required information.
5.)At the “Do you want to continue [y/n]” prompt, enter y.
6. )Wait for the configuration to be restored.
7. )If you disabled the switch, enter the switchEnable command when the process is finished.

 
恢復配置文件:
 
Brocade_5300:admin>switchdisable  停用交換機
Brocade_5300:admin> configdownload
Protocol (scp, ftp, sftp, local) [ftp]: ftp
Server Name or IP Address [host]: 10.77.77.79
User Name [user]: test
Path/Filename [<home dir>/config.txt]: switch5300.txt 【指定文件名稱】
Section (all|chassis|switch [all]): all
 
                         *** CAUTION ***
 
  This command is used to download a backed-up configuration
  for a specific switch.  If using a file  from a  different
  switch, this file's configuration  settings will  override
  any current switch settings.   Downloading a configuration
  file, which was uploaded  from a different type of switch,
  may cause this switch to fail.  A switch reboot might be
  required for some parameter changes to take effect.
 
  configDownload operation may take several minutes
  to complete for large files.
 
  Do you want to continue [y/n]: y
Password:
duplicate license-key "9cSSeQQSTfx"
duplicate license-key "cQecdRfdeB"
duplicate license-key "cQecdQQRjdeD"
duplicate license-key "cQecdQQdhfdeP"
duplicate license-key "RQFBHTgGr9BrZgPZRg3GEYgMBS7DF"
duplicate license-key "GBfGZNJAAFBaCM3tgYA3fXGXBAE7N"
failed to save value of authspec mode to config database
 
Doing configDownload on switch ...
 
configDownload complete: All selected config parameters are downloaded
2019/06/11-03:09:59, [CONF-1000], 110, FID 128, INFO, Brocade_5300, configDownload completed successfully for all.
 
顯示恢復成功。
 
Brocade_5300:admin>switchEnable
 
 
 
參考文檔:Brocade Switch Cookbook.pdf
 
 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM