Deprecated

Removed in None

i

Reason:Updated modules released with more functionality | Alternative:nxos_snmp_server

cisco.nxos.nxos_snmp_traps (7.0.0) — module

(deprecated, removed after 2024-01-01) Manages SNMP traps.

| "added in version" 1.0.0 of cisco.nxos"

Authors: Jason Edelman (@jedelman8)

Install collection

Install with ansible-galaxy collection install cisco.nxos:==7.0.0


Add to requirements.yml

  collections:
    - name: cisco.nxos
      version: 7.0.0

Description

Manages SNMP traps configurations.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
# ensure lldp trap configured
- cisco.nxos.nxos_snmp_traps:
    group: lldp
    state: enabled
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
# ensure lldp trap is not configured
- cisco.nxos.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
    type: str

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

Outputs

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