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 |
|
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.