Note
This plugin is part of the community.network collection.
To install it use: ansible-galaxy collection install community.network
.
To use it in a playbook, specify: community.network.icx_logging
.
Parameter | Choices/Defaults | Comments | |
---|---|---|---|
aggregate list / elements=string | List of logging definitions. | ||
check_running_config boolean |
| Check running configuration. This can be set as environment variable. Module will use environment variable value(default:True), unless it is overridden, by specifying it as module parameter. | |
dest string |
| Destination of the logs. | |
facility string |
| Specifies log facility to log messages from the device. | |
level list / elements=string |
| Specifies the message level. | |
name string | ipv4 address/ipv6 address/name of syslog server. | ||
state string |
| State of the logging configuration. | |
udp_port string | UDP port of destination host(syslog server). | ||
check_running_config boolean |
| Check running configuration. This can be set as environment variable. Module will use environment variable value(default:True), unless it is overridden, by specifying it as module parameter. | |
dest string |
| Destination of the logs. | |
facility string |
| Specifies log facility to log messages from the device. | |
level list / elements=string |
| Specifies the message level. | |
name string | ipv4 address/ipv6 address/name of syslog server. | ||
state string |
| State of the logging configuration. | |
udp_port string | UDP port of destination host(syslog server). |
Note
- name: Configure host logging. community.network.icx_logging: dest: host name: 172.16.0.1 udp_port: 5555 - name: Remove host logging configuration. community.network.icx_logging: dest: host name: 172.16.0.1 udp_port: 5555 state: absent - name: Disables the real-time display of syslog messages. community.network.icx_logging: dest: console state: absent - name: Enables local syslog logging. community.network.icx_logging: dest : on state: present - name: Configure buffer level community.network.icx_logging: dest: buffered level: critical - name: Configure logging using aggregate community.network.icx_logging: aggregate: - { dest: buffered, level: ['notifications','errors'] } - name: Remove logging using aggregate community.network.icx_logging: aggregate: - { dest: console } - { dest: host, name: 172.16.0.1, udp_port: 5555 } state: absent
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 host 172.16.0.1', 'logging console'] |
© 2012–2018 Michael DeHaan
© 2018–2019 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/2.10/collections/community/network/icx_logging_module.html