« 设置博科Brocade交换机IP地址参加2009年博科用户大会上海站 »

Brocade SAN交换机保存及恢复配置命令

如果需要将博科交换机的配置保存到本地电脑,可以通过configupload命令将博科交换机的配置以文本格式存到本地。
 
switch:admin> configupload
Protocol (scp or ftp) [ftp]: ftp
Server Name or IP Address [host]: 192.168.1.48
User Name [user]: jdoe
File Name [config.txt]: config.txt
Password: ********
configUpload complete: All config parameters except AD Headers,SFOS, and
Security parameters are uploaded from AD0

可以通过configdownload命令将博科交换机的配置从本地恢复到交换机。

switch:admin> configdownload
Protocol (scp or ftp) [ftp]: ftp
Server Name or IP Address [host]: 192.168.1.48
User Name [user]: jdoe
File Name [config.txt]: config.txt
*** 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: ********
Activating configDownload without disabling switch:
configDownload complete: All config parameters except AD Headers,
SFOS and Security parameters are downloaded to AD0
To download a configuration file interactively, on a non-AD aware switch running Fabric OS v5.1.0:
switch:admin> configdownload
configDownload: This command may not be executed on an operational switch.
You must first disable the switch using the "switchDisable" command.
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
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>

博科交换机目前只支持scp两种ftp方式保存及恢复配置,一般情况下还是使用ftp的方式比较多,注意这里是ftp而不是tftp。需要在本地计算机上开启ftp服务,或者交换机可达的某个ftp服务器上,保存博科交换机配置时需要可写权限。

原创文章如转载,请注明:转载自博科之家
原文地址:http://www.brocader.cn/brocade-tech/Brocade-save-configure.html

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。