1.’设备信息
[H3C]display version
H3C Comware Software, Version 7.1.070, Release 6367P05
Copyright (c) 2004-2024 New H3C Technologies Co., Ltd. All rights reserved.
H3C S5024PV5-EI uptime is 1 week, 6 days, 6 hours, 13 minutes
Last reboot reason : User reboot
Boot image: flash:/s5000v5_ei-cmw710-boot-r6367p05.bin
Boot image version: 7.1.070, Release 6367P05
Compiled Nov 19 2024 16:00:00
System image: flash:/s5000v5_ei-cmw710-system-r6367p05.bin
System image version: 7.1.070, Release 6367P05
Compiled Nov 19 2024 16:00:00
2.配置信息
[H3C]display current-configuration
#
version 7.1.070, Release 6367P05
#
sysname H3C
#
clock timezone Beijing add 08:00:00
clock protocol ntp
#
telnet server enable
#
irf mac-address persistent timer
irf auto-update enable
undo irf link-delay
irf member 1 priority 1
#
archive configuration server scp 192.168.1.224 directory /h3c/ filename-prefix auto
archive configuration server user jumpserver
archive configuration server password cipher $c$3$9F9BSfd2dgVxJwnOuqyNsGAmQ1E9zLT3Zg==
archive configuration interval 10
#
3. 备份记录信息
[H3C]display archive configuration
Username: jumpserver
Location: 192.168.1.224
Filename prefix: auto
Archive interval in minutes: 10
Archive history:
No. Timestamp Filename
! 1 Mon Jun 16 17:32:08 2025 auto_20250616_173208.cfg
! 2 Mon Jun 16 17:32:46 2025 auto_20250616_173246.cfg
#! 3 Mon Jun 16 17:42:08 2025 auto_20250616_174208.cfg
The exclamation mark (!) indicate that the remote archiving attempt failed.
The pound sign (#) indicates the most recent archive file.
4.查看日志信息
display logbuffer
%Jun 16 17:32:09:602 2025 H3C CFGMAN/5/CFGMAN_ARCHIVE_SCP_FAIL: Archive configuration to SCP server failed: IP = 192.168.1.224, Directory = /h3c/, username = jumpserver
自动保存配置文件失败,是否为软件问题,使用scp命令自动保存可以成功。
(0)
最佳答案
自动备份配置文件到SCP服务器失败的问题(报错 CFGMAN_ARCHIVE_SCP_FAIL
),通常涉及以下关键点及解决方案:
权限问题(最常见)
admin
用户或密钥未加载)。jumpserver
用户在SCP服务器上的权限)。-i /path/to/private_key
)。scp flash:/startup.cfg jumpserver@192.168.1.224:/h3c/
观察是否需输入密码,若需要则配置密钥免密登录。目录路径或空间问题
/h3c/
:jumpserver
用户对该目录有写入权限(chmod 775 /h3c
)。df -h
)。SCP服务器配置
sshd
服务)。iptables -L | grep 22 # Linux防火墙规则
定时任务配置问题
/usr/bin/scp
)。source-file=flash:/startup.cfg
)。command 1 save ; command 2 scp flash:/startup.cfg jumpserver@192.168.1.224:/h3c/ >> /tmp/scp.log 2>&1
/tmp/scp.log
获取详细错误信息。网络连通性
ping 192.168.1.224
traceroute 192.168.1.224
设备版本已知问题
Archive configuration to SCP server failed
表明认证或传输层失败。手动验证命令
在交换机CLI中手动执行备份命令,确认SCP过程无密码提示且传输成功:
save
scp startup.cfg jumpserver@192.168.1.224:/h3c/
配置密钥免密登录(若手动需密码)
[Switch] public-key local create rsa
[Switch] display public-key local rsa public # 复制公钥
~jumpserver/.ssh/authorized_keys
。调整定时任务
优化定时任务命令,显式指定密钥和日志:
scheduler job backup
command 1 save
command 2 scp -i /path/to/key startup.cfg jumpserver@192.168.1.224:/h3c/ >> flash:/scp.log 2>&1
版本升级
若上述均无效且版本低于R7585,升级版本解决已知缺陷:
<H3C> system-view
[H3C] software update file flash:/S7500E-CMW710-R7585P05.bin
问题根源通常是 权限不足 或 环境配置差异(手动成功但定时任务失败)。优先检查SCP服务器目录权限、密钥认证配置,并通过日志定位具体错误。若属设备版本Bug,升级即可解决。
(0)
交换机中 scp startup.cfg jumpserver@192.168.1.224:/h3c/ 命令语法错误,用scp 192.168.1.224 put startup.cfg user jumpserver password 111111 可以备份成功。自动执行不能成功
(0)
暂无评论
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论