Skip to content

Latest commit

 

History

History
120 lines (94 loc) · 4.55 KB

comware_log_source_module.rst

File metadata and controls

120 lines (94 loc) · 4.55 KB

comware_log_source

Added in version 1.0

Manage output rules for log information on V7 devices

parameter required default choices comments
channelID yes
  • 1
  • 2
  • 3
  • 4
  • 5
Specifies syslog output destination
channelName yes Specifies a module by its name.
level no
  • emergency
  • alert
  • critical
  • error
  • warning
  • notification
  • informational
  • debugging
  • deny
A log output rule specifies the source modules and severity level of logs that can be output to a destination. Logs matching the output rule are output to the destination.
state no present
  • present
  • absent
Desired state of the switchport
hostname yes IP Address or hostname of the Comware v7 device that has NETCONF enabled
username yes Username used to login to the switch
password yes Password used to login to the switch
port no 830 NETCONF port number
look_for_keys no False Whether searching for discoverable private key files in ~/.ssh/


# basic config
- comware_log_source: channelID=1 channelName=ARP level=critical username={{ username }} password={{ password }} hostname={{ inventory_hostname }}

# delete config
- comware_log_source: channelID=1 channelName=ARP level=critical state=absent username={{ username }} password={{ password }} hostname={{ inventory_hostname }}

Note

If state=default, the config will be removed