通过Commander实现批量配置设备示例
操作步骤
- 离线制作命令行脚本
新建文本文档,在文本文档中录入需要下发的命令行,录入完成之后保存,然后将文件扩展名“.txt”替换为“.bat”。
命令行脚本制作完成后,将脚本上传到Commander上。
- 下发命令行
<HUAWEI> system-view [HUAWEI] sysname SwitchA [SwitchA] easy-operation [SwitchA-easyoperation] execute cfg1.bat to client 1 Warning: This operation will start the batch command executing process to the cl ients. Continue?[Y/N]:y Info: This operation will take some seconds, please wait.. [SwitchA-easyoperation] execute cfg2.bat to client 2 to 3 Warning: This operation will start the batch command executing process to the cl ients. Continue?[Y/N]:y Info: This operation will take some seconds, please wait..
- 检查配置结果
# 查看批量配置的执行结果。
[SwitchA-easyoperation] display easy-operation batch-cmd result This operation will take some seconds, please wait.. ----------------------------------------------------------- ID Total Successful Failed Time ----------------------------------------------------------- 1 50 50 0 2013-09-04 21:45:29 2 30 30 0 2013-09-04 21:55:29 3 30 30 0 2013-09-04 21:55:29 -----------------------------------------------------------