笔者在Centos6时代,使用Centos6 + ansible2.6.8 版本,来完成对华为CloudEngine系列交换机的备份。交换机有5700系列,也有6700系列。
最近升级到Centos7版本,使用的ansible版本为2.7,但在批量备份时,出现部分交换机能备份, 部分不能备份。
在执行过程中,出现的告警信息如下:"Command: undo mmi-mode enable, error: unrecognized command found."
TASK [backup configuration] ***************************************************************************************
[DEPRECATION WARNING]: Param 'transport' is deprecated. See the module docs for more information. This feature
will be removed in version 2.9. Deprecation warnings can be disabled by setting deprecation_warnings=False in
ansible.cfg.
fatal: [10.20.6.242]: FAILED! => {"ansible_facts": {"discovered_interpreter_python": "/usr/bin/python"}, "changed": false, "msg": "Command: undo mmi-mode enable, error: unrecognized command found."}
changed: [10.2