数据通信 - 建设篇

第一章 华为/华三交换机配置自动备份到FTP/SFTP

  • 数据通信 - 建设篇
  • 下章内容
  • 华为/华三交换机配置自动备份到FTP/SFTP
    • 背景介绍
      • 注意事项
    • 华为交换机配置自动备份
    • 新华三交换机配置自动备份
  • 参考来源

下章内容

第二章 华为/华三交换机配置SSH免密登录


华为/华三交换机配置自动备份到FTP/SFTP

背景介绍

为优化建设内网的网管交换机,实现华为交换机和华三交换机的配置自动备份,方便回溯以往配置过的CLI命令。此例将备份到FTP/SFTP服务端

注意事项

1. 华为交换机的saved-configuration的自动备份是以当前配置是否变更为基准,即当前配置没有变化的情况下,不会执行定时备份。此配置与新华三交换机不同
2. 新华三交换机的archive configuration的自动备份是强制做定时备份,无论当前配置是否变更都会执行定时备份
3. 华为数通智选系列和华为系列的S1730S-A1/A2版本在开机之后不能配置自动备份命令,需提前写好命令并加载到ROM层,使之开机生效

华为交换机配置自动备份

# 实验过的部分交换机型号如下
1. FutureMatrix S1730S-S48P4S-A1
2. HUAWEI S5735S-L48T4S-A1
3. HUAWEI S5720-32P-LI-AC
4. HUAWEI S5720-32P-EI-AC# cpu使用率低于45%, 配置修改时1分钟后自动备份1次, 正确情况下每隔1440分钟自动备份1次(即1天备份1次)
set save-configuration cpu-limit 45 delay 1 interval 1440# SFTP协议, 备份服务端1.1.1.1, SFTP连接端口12345, SFTP用户是configbackup, SFTP用户密码是abcdefg, SFTP备份路径是/config/Switch
set save-configuration backup-to-server server 1.1.1.1 transport-type sftp port 12345 user configbackup password abcdefg path /config/Switch
### 验证华为交换机的自动备份
<Switch>dis cu | inc save
set save-configuration interval 1440 delay 1 cpu-limit 45
set save-configuration backup-to-server server 1.1.1.1 transport-type sftp port 12345 user configbackup password ######### path /config/Switch<Switch>dis saved-config config
Auto backup configuration status                     : Enable
Auto backup configuration interval                   : 1440 minutes
Backup delay after configuration changed             : 1 minutes
The threshold of the CPU usage permitted when backup : 45%Auto backup configuration server 1 information:Server IP       : 1.1.1.1Transport-type  : SFTPServer path     : /config/SwitchUser            : configbackupPassword        : ******Port            : 12345<Switch>dis saved-config time
Saved configuration manually:
00:00:00 Beijing,Chongqing,Hongkon,Urumq 20XX/00/00
Time Zone: UTC+08:00
Saved configuration automatically:
00:00:00 Beijing,Chongqing,Hongkon,Urumq 20XX/00/00
Time Zone: UTC+08:00

综上步骤可完成华为交换机配置自动备份。

新华三交换机配置自动备份

# 实验过的部分交换机型号如下
1. H3C S5024PV3-LI-PWR
2. H3C S5024PV3-EI-PWR
3. H3C S5024PV5# SCP协议, SCP服务端是1.1.1.1 SCP连接端口12345, SCP备份路径是/config/Switch, 文件前缀是xxx
archive configuration server scp 1.1.1.1 port 12345 directory /config/Switch/ filename-prefix xxx# SCP用户是configbackup
archive configuration server user configbackup# SCP用户密码是abcdefg
archive configuration server password simple abcdefg# SCP备份间隔1440分钟(即1天备份1次)
archive configuration interval 1440### 验证新华三自动备份
<Switch>dis cu | inc archivearchive configuration server scp 1.1.1.1 port 12345 directory /config/Switch/ filename-prefix xxxarchive configuration server user configbackuparchive configuration server password cipher #########archive configuration interval 1440<Switch>dis archive config
Username: configbackup
Location: 1.1.1.1
Filename prefix: xxx
Archive interval in minutes: 1440
Archive history:No. Timestamp                Filename1  XXX XXX 00 00:00:00 20XX xxx_20XX0000_000000.cfg
#  2  XXX XXX 00 00:00:00 20XX xxx_20220000_000000.cfg
The exclamation mark (!) indicate that the remote archiving attempt failed.
The pound sign (#) indicates the most recent archive file.
# 实验过的部分交换机型号如下
1. H3C WX2540Harchive configuration server ftp 1.1.1.1 port 12345 directory /config/Switch/ filename-prefix xxx interval 1440
archive configuration server user configbackup
archive configuration server password simple abcdefg### 验证新华三自动备份
<Switch>dis cu | inc archivearchive configuration server ftp 1.1.1.1 port 12345 directory /config/Switch/ filename-prefix xxx interval 1440archive configuration server user configbackuparchive configuration server password cipher ########<Switch>dis archive config
Username: configbackup
Location: ftp://1.1.1.1:12345/config/Switch/
Filename prefix: xxx
Archive interval in minutes: 1440
Archive history:No. TimeStamp                FileName1  XXX XXX 00 00:00:00 20XX xxx_20XX0000_000000.cfg
#  2  XXX XXX 00 00:00:00 20XX xxx_20220000_000000.cfg
The exclamation mark (!) indicate that the remote archiving attempt failed.
The pound sign (#) indicates the most recent archive file.

综上步骤完成新华三交换机配置自动备份。

参考来源

  1. 华为交换机使用记录—自动备份交换机配置到指定ftp下
  2. H3C S5000PV5-EI系列以太网交换机 命令参考-R1115-6W100 01 基础配置命令参考

华为/华三交换机配置自动备份到FTP/SFTP相关推荐

  1. 华为/华三交换机配置SSH免密登录

    数据通信 - 建设篇 第二章 华为/华三交换机配置SSH免密登录 数据通信 - 建设篇 系列文章回顾 下章内容 华为/华三交换机配置SSH免密登录 背景介绍 实施步骤 堡垒机Linux后台使用ssh- ...

  2. 华三交换机配置access命令_华三交换机配置vlan命令教程

    华三交换机配置vlan命令教程 [H3C]vlan 2 [H3C]undo vlan all 删除除缺省VLAN外的所有VLAN,缺省VLAN不能被删除 [H3C-vlan2]port Etherne ...

  3. 华为/华三交换机用lldb命令快速查看邻居交换机

    企业核心交换机上级联了多个交换机时,我们想查看哪些端口接了哪些交换机,可以使用快捷命令,display lldp neighbor brief 我们通常需要对众多网络设备进行统一命名,只有统一命名以后 ...

  4. 华三交换机配置多个镜像口_H3c交换机配置端口镜像详情

    端口镜像 需要将G0/0/1口的全部流量镜像到G0/0/2口,即G0/0/1为源端口,G0/0/2为目的端口. 配置步骤 1.进入配置模式:system-view: 2.创建本地镜像组:mirrori ...

  5. 华三交换机配置vrrp_H3C交换机 典型配置举例-6W100

    1  基于IPv4的VRRP典型配置举例 1.1  简介 本章介绍使用VRRP技术提高网络可靠性的典型配置举例. 1.2  VRRP单备份组实现网关备份典型配置举例 表1 配置适用的产品与软件版本关系 ...

  6. 华三交换机配置access命令_H3C(华三)交换机配置命令手册

    交换机端口链路类型介绍: 1.Access类型的端口只能属于1个VLAN,一般用于连接计算机的端口: 2.Trunk类型的端口可以属于多个VLAN,可以接收和发送多个VLAN的报文,一般用于交换机之间 ...

  7. 华三交换机配置access命令_㈡看看H3C华为交换机系列基本配置命令,有哪些是你不知道的?...

    一.vlan配置 1.vlan划分方案 -------------------------------------------------- ------------------ | 部门 | vla ...

  8. 思科、华为、华三交换机配置端口聚合

    华为-配置LACP模式的链路聚合 [HUAWEI] interface eth-trunk 1[HUAWEI-Eth-Trunk1] mode lacp[HUAWEI-Eth-Trunk1] trun ...

  9. 华三交换机配置vrrp_H3C交换机设置简单主备备份模式的VRRP应用示例

    Host A 发送给 Host B 的报文通过 Switch B 转发. (点击查看大图)图 4-11 主备备份方式 VRRP 应用示例 下面是具体的配置步骤. 1.Switch A 上的配置 ( 1 ...

最新文章

  1. Redis为什么变慢了?常见延迟问题定位与分析
  2. javascript 两个数组组成一个对象
  3. php从mysql 表中提取图片数据并显示
  4. 操作系统学习笔记-2.1. 2进程的状态与转换
  5. Activiti工作流的简单介绍
  6. NOI题库 7654 等差数列末项计算
  7. SACC 2016:专访宜信大数据研发经理侯松
  8. visio for android,iPad版的Visio Viewer发布:移动端也能查看Visio文档啦
  9. 机械振动学|单自由度系统
  10. 睡眠阶段分期——SVM和ELM分别与粒子群算法结合(function)
  11. Linux之端口映射
  12. Python小项目-烤地瓜
  13. 广域网技术(PAP和CHAP)
  14. fs和php的区别,对比爆料评测美的wfs4037跟wfs5017哪个好?区别是?良心评测点评...
  15. 回文是指正读反读均相同的字符序列,如“abba”和“abdba”均是回文,但“good”不是回文。编写一个程序,使用栈判定给定的字符序列是否为回文。
  16. 微软的黑屏说明了什么?
  17. Java模拟Post 提交表单数据
  18. 第十章 DCEP简介
  19. yum clean all的作用
  20. Linux:刻录u盘,格式化u盘

热门文章

  1. [你可能忘记的JavaScript] 正则表达式—replace的运用
  2. 小米家投影仪2和极米z6x 哪个好
  3. 项目管理系统+微服务器,项目执行管理系统-区块链项目管理软件-高亚科技8Manage PM...
  4. 用独立分量分析分离混合信号
  5. 不使用pinyin4j, 通过字符串截取手段快速查询通讯录联系人的拼音(包括全拼和简拼)
  6. 新闻API采集,打造高效自媒体
  7. flink on yarn部署
  8. 华为鸿蒙手机发布,宣布!魅族携照明类产品加入华为鸿蒙生态
  9. 腾讯再增持,育碧持股增投3亿美元,钱多烧得慌还是物有所值?
  10. python判断子串