community.network.cnos_logging – Manage logging on network devices¶
Note
This plugin is part of the community.network collection (version 1.3.2).
To install it use: ansible-galaxy collection install community.network
.
To use it in a playbook, specify: community.network.cnos_logging
.
Parameters¶
Examples¶
- name: Configure server logging
community.network.cnos_logging:
dest: server
name: 10.241.107.224
facility: local7
state: present
- name: Remove server logging configuration
community.network.cnos_logging:
dest: server
name: 10.241.107.224
state: absent
- name: Configure console logging level and facility
community.network.cnos_logging:
dest: console
level: 7
state: present
- name: Configure buffer size
community.network.cnos_logging:
dest: logfile
level: 5
name: testfile
size: 5000
- name: Configure logging using aggregate
community.network.cnos_logging:
aggregate:
- { dest: console, level: 6 }
- { dest: logfile, size: 9000 }
- name: Remove logging using aggregate
community.network.cnos_logging:
aggregate:
- { dest: console, level: 6 }
- { dest: logfile, name: anil, size: 9000 }
state: absent
Return Values¶
Common return values are documented here, the following are the fields unique to this module:
Key | Returned | Description |
---|---|---|
commands
list
/ elements=string
|
always |
The list of configuration mode commands to send to the device
Sample:
['logging console 7', 'logging server 10.241.107.224']
|
Authors¶
Anil Kumar Muraleedharan (@amuraleedhar)