H3C S5500-SI 03-设备管理配置(4)

2021-09-24 14:34

display boot-loader

display cpu-usage [ entry-number [ offset ] [ verbose ] [ from-device ] ]

display cpu-usage history [ task task-id ]

display device [ subslot subslot-number | verbose ] display device manuinfo display environment display fan fan-id display memory

display power [ power-id ] display rps [ rps-id ] display reboot-type display schedule reboot display schedule job display system-failure

命令

1.12 设备管理典型配置举例

1.12.1 远程定时自动升级配置举例

1. 组网需求

z

Device当前的软件版本为soft-version1,通过远程操作,在业务空闲时间(比如凌晨3点)将设备的软件版本升级到soft-version2,配置文件升级到new-config;

z

最新版本的应用程序soft-version2.bin和最新配置文件new-config.cfg都保存在FTP Server的aaa目录下;

z

Device的IP地址为1.1.1.1/24,FTP Server的IP地址为2.2.2.2/24,Device与FTP Server之间路由可达;

z

User通过Telnet远程登录到Device,User与Device之间路由可达。

H3C S5500-SI 03-设备管理配置

2. 组网图

图1-2 配置远程定时自动升级组网图

FTP Client

User

1.1.1.1/24

3. 配置步骤

(1) FTP Server的配置(注意:不同的服务器类型配置可能不同)

z

设置FTP client访问参数(包括启动FTP Server功能、配置FTP用户名为aaa,密码为hello、授权路径为flash:/aaa)。

<FTP-Server> system-view [FTP-Server] ftp server enable [FTP-Server] local-user aaa

[FTP-Server-luser-aaa] password cipher hello [FTP-Server-luser-aaa] service-type ftp

[FTP-Server-luser-aaa] authorization-attribute work-directory flash:/aaa

z

在FTP Server上使用文本编辑器编辑批处理文档auto-update.txt。批处理文件的内容如下:

return

startup saved-configuration new-config.cfg boot-loader file soft-version2.bin main reboot

(2) Device的配置

# 登录FTP Server(注意:不同的服务器类型显示信息可能不同)。

<Device> ftp 2.2.2.2 Trying 2.2.2.2 ... Press CTRL+K to abort Connected to 2.2.2.2.

220 WFTPD 2.0 service (by Texas Imperial Software) ready for new user User(2.2.2.2:(none)):aaa

331 Give me your password, please Password:

230 Logged in successfully [ftp]

# 下载FTP Server上的文件auto-update.txt。

[ftp] ascii

H3C S5500-SI 03-设备管理配置

[ftp] get auto-update.txt

# 下载FTP Server上的文件new-config.cfg

[ftp]get new-config.cfg

# 下载FTP Server上的文件soft-version2.bin。

[ftp] binary

[ftp] get soft-version2.bin [ftp] bye <Device>

# 将auto-update.txt文件更名为批处理文件auto-update.bat。

<Device> rename auto-update.txt auto-update.bat

为确保文件正确,可以使用more命令查看确认文件内容。 # 使用定时自动执行功能实现设备在凌晨3点定时自动升级。

<Device> schedule job at 03:00 view system execute auto-update.bat

Info: Command execute auto-update.bat in system view will be executed at 03:00 12/11/2007(in 12 hours and 0 minutes).

设备重启后可以使用display version命令验证升级是否成功。


H3C S5500-SI 03-设备管理配置(4).doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:2011 安徽省住房和城乡建设厅全省个人住房信息系统省级平台建设

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: