cisco / cisco.nxos / 7.0.0 / module / nxos_snmp_traps
Removed in None
Reason:Updated modules released with more functionality | Alternative:nxos_snmp_server
(deprecated, removed after 2024-01-01) Manages SNMP traps.
| "added in version" 1.0.0 of cisco.nxos"
Authors: Jason Edelman (@jedelman8)
Install with ansible-galaxy collection install cisco.nxos:==7.0.0
collections: - name: cisco.nxos version: 7.0.0
Manages SNMP traps configurations.
# ensure lldp trap configured - cisco.nxos.nxos_snmp_traps: group: lldp state: enabled
# ensure lldp trap is not configured - cisco.nxos.nxos_snmp_traps: group: lldp state: disabled
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
commands: description: command sent to the device returned: always sample: snmp-server enable traps lldp ; type: list