通常,我们在执行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>
到此,交换机恢复就完成了。
如果有任何问题可以与我交流,谢谢。
本文详细介绍了如何对SAN交换机进行备份和恢复操作,包括使用FTP服务器上传配置文件和下载备份配置以恢复交换机状态。注意在执行恢复操作前确保万不得已,并可能需要重启交换机。
3019

被折叠的 条评论
为什么被折叠?



