Skip to content

Latest commit

 

History

History
113 lines (87 loc) · 4.16 KB

comware_syslog_global_module.rst

File metadata and controls

113 lines (87 loc) · 4.16 KB

comware_syslog_global

Added in version 1.0

Manage system log timestamps and terminal logging level on Comware 7 devices

parameter required default choices comments
timestamps no date Configure the time stamp output format of log information sent to the console, monitoring terminal, log buffer and log file direction.
level no informational Configure the minimum level of log information that the current terminal allows to output.
state no present
  • present
  • absent
Desired state for the interface configuration
port no 830 NETCONF port number
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
look_for_keys no False Whether searching for discoverable private key files in ~/.ssh/


# timestamps and level config
- comware_syslog_global: timestamps=boot  level=debugging username={{ username }} password={{ password }} hostname={{ inventory_hostname }}

# Restore timestamps and level to default state
- comware_syslog_global:timestamps=boot level=debugging username={{ username }} password={{ password }} hostname={{ inventory_hostname }} state=absent

Note

Before configuring this,the global syslog need to be enabled.The timestamps default state is data, terminal logging level default is 6.