ansible.builtin.nxos_snmp_traps (v2.6.0) — module

Manages SNMP traps.

| "added in version" 2.2 of ansible.builtin"

Authors: Jason Edelman (@jedelman8)

preview | supported by network

Install Ansible via pip

Install with pip install ansible==2.6.0

Description

Manages SNMP traps configurations.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
# ensure lldp trap configured
- nxos_snmp_traps:
    group: lldp
    state: enabled
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
# ensure lldp trap is not configured
- nxos_snmp_traps:
    group: lldp
    state: disabled

Inputs

    
group:
    choices:
    - aaa
    - bfd
    - bgp
    - bridge
    - callhome
    - cfs
    - config
    - eigrp
    - entity
    - feature-control
    - generic
    - hsrp
    - license
    - link
    - lldp
    - mmode
    - ospf
    - pim
    - rf
    - rmon
    - snmp
    - storm-control
    - stpx
    - switchfabric
    - syslog
    - sysmgr
    - system
    - upgrade
    - vtp
    - all
    description:
    - Case sensitive group.
    required: true

state:
    choices:
    - enabled
    - disabled
    default: enabled
    description:
    - Manage the state of the resource.
    required: false

Outputs

commands:
  description: command sent to the device
  returned: always
  sample: snmp-server enable traps lldp ;
  type: list