W3cubDocs

/Ansible

ce_info_center_debug - Manages information center debug configuration on HUAWEI CloudEngine switches.

New in version 2.4.

Synopsis

  • Manages information center debug configurations on HUAWEI CloudEngine switches.

Options

parameter required default choices comments
channel_id
no
Number of a channel. The value is an integer ranging from 0 to 9. The default value is 0.
debug_enable
no no_use
  • no_use
  • true
  • false
Whether a device is enabled to output debugging information.
debug_level
no
  • emergencies
  • alert
  • critical
  • error
  • warning
  • notification
  • informational
  • debugging
Debug level permitted to output.
debug_time_stamp
no
  • date_boot
  • date_second
  • date_tenthsecond
  • date_millisecond
  • shortdate_second
  • shortdate_tenthsecond
  • shortdate_millisecond
  • formatdate_second
  • formatdate_tenthsecond
  • formatdate_millisecond
Timestamp type of debugging information.
module_name
no
Module name of the rule. The value is a string of 1 to 31 case-insensitive characters. The default value is default. Please use lower-case letter, such as [aaa, acl, arp, bfd].
state
no present
  • present
  • absent
Specify desired state of the resource.

Examples

- name: CloudEngine info center debug test
  hosts: cloudengine
  connection: local
  gather_facts: no
  vars:
    cli:
      host: "{{ inventory_hostname }}"
      port: "{{ ansible_ssh_port }}"
      username: "{{ username }}"
      password: "{{ password }}"
      transport: cli

  tasks:

  - name: "Config debug time stamp"
    ce_info_center_debug:
      state: present
      debug_time_stamp: date_boot
      provider: "{{ cli }}"

  - name: "Undo debug time stamp"
    ce_info_center_debug:
      state: absent
      debug_time_stamp: date_boot
      provider: "{{ cli }}"

  - name: "Config debug module log level"
    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"
    ce_info_center_debug:
      state: absent
      module_name: aaa
      channel_id: 1
      debug_enable: true
      debug_level: error
      provider: "{{ cli }}"

Return Values

Common return values are documented here Return Values, the following are the fields unique to this module:

name description returned type sample
end_state
k/v pairs of aaa params after module execution
always dict {'debugTimeStamp': 'DATE_BOOT'}
changed
check to see if a change was made on the device
always boolean True
updates
command sent to the device
always list ['info-center timestamp debugging boot']
proposed
k/v pairs of parameters passed into module
always dict {'state': 'present', 'debug_time_stamp': 'date_boot'}
existing
k/v pairs of existing aaa server
always dict {'debugTimeStamp': 'DATE_MILLISECOND'}

Status

This module is flagged as preview which means that it is not guaranteed to have a backwards compatible interface.

For help in developing on modules, should you be so inclined, please read Community Information & Contributing, Testing Ansible and Developing Modules.

© 2012–2017 Michael DeHaan
© 2017 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/latest/ce_info_center_debug_module.html