community.network.icx_logging – Manage logging on Ruckus ICX 7000 series switches

Note

This plugin is part of the community.network collection (version 3.0.0).

You might already have this collection installed if you are using the ansible package. It is not included in ansible-core. To check whether it is installed, run ansible-galaxy collection list.

To install it, use: ansible-galaxy collection install community.network.

To use it in a playbook, specify: community.network.icx_logging.

Synopsis

  • This module provides declarative management of logging on Ruckus ICX 7000 series switches.

Parameters

Parameter Choices/Defaults Comments
aggregate
list / elements=string
List of logging definitions.
check_running_config
boolean
    Choices:
  • no
  • yes
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
    Choices:
  • on
  • host
  • console
  • buffered
  • persistence
  • rfc5424
Destination of the logs.
facility
string
    Choices:
  • auth
  • cron
  • daemon
  • kern
  • local0
  • local1
  • local2
  • local3
  • local4
  • local5
  • local6
  • local7
  • user
  • lpr
  • mail
  • news
  • syslog
  • sys9
  • sys10
  • sys11
  • sys12
  • sys13
  • sys14
  • user
  • uucp
Specifies log facility to log messages from the device.
level
list / elements=string
    Choices:
  • alerts
  • critical
  • debugging
  • emergencies
  • errors
  • informational
  • notifications
  • warnings
Specifies the message level.
name
string
ipv4 address/ipv6 address/name of syslog server.
state
string
    Choices:
  • present
  • absent
State of the logging configuration.
udp_port
string
UDP port of destination host(syslog server).
check_running_config
boolean
    Choices:
  • no
  • yes
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
    Choices:
  • on
  • host
  • console
  • buffered
  • persistence
  • rfc5424
Destination of the logs.
facility
string
    Choices:
  • auth
  • cron
  • daemon
  • kern
  • local0
  • local1
  • local2
  • local3
  • local4
  • local5
  • local6
  • local7
  • user
  • lpr
  • mail
  • news
  • syslog
  • sys9
  • sys10
  • sys11
  • sys12
  • sys13
  • sys14
  • user
  • uucp
Specifies log facility to log messages from the device.
level
list / elements=string
    Choices:
  • alerts
  • critical
  • debugging
  • emergencies
  • errors
  • informational
  • notifications
  • warnings
Specifies the message level.
name
string
ipv4 address/ipv6 address/name of syslog server.
state
string
    Choices:
  • present
  • absent
State of the logging configuration.
udp_port
string
UDP port of destination host(syslog server).

Notes

Note

Examples

- 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

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 host 172.16.0.1', 'logging console']


Authors

  • Ruckus Wireless (@Commscope)

© 2012–2018 Michael DeHaan
© 2018–2021 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/latest/collections/community/network/icx_logging_module.html