1. 程式人生 > >Brocade SAN Switch CFG backup and recover

Brocade SAN Switch CFG backup and recover

通常,我們在執行SAN交換機變更之前,需要先對SAN交換機的配置做一次備份,尤其是在刪除ZONE配置,或者一些其他重大變更。

那麼本文主要探討如何來做SAN交換機的備份和恢復。

1. 備份

switch:admin> configupload
Protocol (scp or ftp) [ftp]: ftp

Server Name or IP Address [host]: 192.168.1.1
User Name [user]: addison
File Name [config.txt]: config.txt
Password: ********
configUpload complete: All config parameters except AD Headers,SFOS, and
Security parameters are uploaded from AD0

..................

192.168.1.1 是FTP伺服器地址,後面的user也是FTP伺服器設定的user.

這樣,就在我們的FTP目錄裡面就能找到這個檔案了。

2. 恢復

SAN交換機配置恢復成本是非常高的,因為需要disable整個交換機,因此不在萬不得已,不要做這個操作。

switch:admin> switchdisable

switch:admin> configdownload
Protocol (scp or ftp) [ftp]: ftp
Server Name or IP Address [host]: 192.168.38.152
User Name [user]: jdoe
File Name [config.txt]: config51x_onSW3900  (問題3)


Password:
*** 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.
Do you want to continue [y/n]: y
configDownload completed successfully. All parameters are downloaded.
switch:admin> switchenable


switch:admin>

到此,交換機恢復就完成了。

如果有任何問題可以與我交流,謝謝。