• 博科 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
     
     
  • 相关阅读:
    Python_代码练习_写一个判断是否为小数的函数
    Python学习杂记_11_函数(一)
    Python学习杂记_10_三元运算符
    Python学习杂记_9_集合操作
    Python学习杂记_8_从程序外部传参的办法sys.argv
    Python学习杂记_7_文件操作
    Python学习杂记_6_字典常用操作
    Python学习杂记_5_列表常用操作
    Python学习杂记_4_分支和循环
    Python学习杂记_3_字符串操作的常用方法
  • 原文地址:https://www.cnblogs.com/liuxing0007/p/11008816.html
Copyright © 2020-2023  润新知