community.network.ce_info_center_debug 模块 – 管理华为CloudEngine交换机上的信息中心调试配置。
注意
此模块是 community.network 集合 (版本 5.1.0) 的一部分。
如果您使用的是 ansible
包,则可能已安装此集合。它不包含在 ansible-core
中。要检查是否已安装,请运行 ansible-galaxy collection list
。
要安装它,请使用: ansible-galaxy collection install community.network
。
要在playbook中使用它,请指定: community.network.ce_info_center_debug
。
注意
community.network 集合已被弃用,并将从 Ansible 12 中删除。有关更多信息,请参阅 讨论主题。
已弃用
- 在以下版本中移除:
6.0.0版
- 原因:
此集合及其中的所有内容均未维护且已弃用。
- 替代方案:
未知。
概要
管理华为CloudEngine交换机上的信息中心调试配置。
别名:network.cloudengine.ce_info_center_debug
参数
参数 |
注释 |
---|---|
通道号。值为0到9之间的整数。默认值为0。 |
|
设备是否启用输出调试信息。 选项
|
|
允许输出的调试级别。 选项
|
|
调试信息的 timestamp 类型。 选项
|
|
规则的模块名称。值为1到31个不区分大小写的字符组成的字符串。默认值为default。请使用小写字母,例如[aaa, acl, arp, bfd]。 |
|
指定资源的所需状态。 选项
|
备注
注意
此模块需要在被管理的远程设备上启用 netconf 系统服务。
推荐连接方式为
netconf
。此模块也适用于旧版playbook的
local
连接。
示例
- name: CloudEngine info center debug test
hosts: cloudengine
connection: local
gather_facts: false
vars:
cli:
host: "{{ inventory_hostname }}"
port: "{{ ansible_ssh_port }}"
username: "{{ username }}"
password: "{{ password }}"
transport: cli
tasks:
- name: "Config debug time stamp"
community.network.ce_info_center_debug:
state: present
debug_time_stamp: date_boot
provider: "{{ cli }}"
- name: "Undo debug time stamp"
community.network.ce_info_center_debug:
state: absent
debug_time_stamp: date_boot
provider: "{{ cli }}"
- name: "Config debug module log level"
community.network.ce_info_center_debug:
state: present
module_name: aaa
channel_id: 1
debug_enable: true
debug_level: error
provider: "{{ cli }}"
- name: "Undo debug module log level"
community.network.ce_info_center_debug:
state: absent
module_name: aaa
channel_id: 1
debug_enable: true
debug_level: error
provider: "{{ cli }}"
返回值
常用的返回值已在 此处 记录,以下是此模块独有的字段
键 |
描述 |
---|---|
检查设备上是否进行了更改 返回值:始终 示例: |
|
模块执行后 aaa 参数的键值对 返回值:始终 示例: |
|
现有 aaa 服务器的键值对 返回值:始终 示例: |
|
传递给模块的参数的键值对 返回值:始终 示例: |
|
发送到设备的命令 返回值:始终 示例: |
状态
此模块将在 6.0.0 版中移除。 *[已弃用]*
有关更多信息,请参见 已弃用。