.. _cisco.nxos.nxos_snmp_server_module:
***************************
cisco.nxos.nxos_snmp_server
***************************
**SNMP Server resource module.**
Version added: 2.8.0
.. contents::
:local:
:depth: 1
Synopsis
--------
- This module manages SNMP server configuration on devices running Cisco NX-OS.
Parameters
----------
.. raw:: html
| Parameter |
Choices/Defaults |
Comments |
|
config
dictionary
|
|
A dict of SNMP server configuration
|
|
aaa_user
dictionary
|
|
Set duration for which aaa-cached snmp user exists.
|
|
|
cache_timeout
integer
|
|
Timeout for which aaa-cached user exists(in secs).
|
|
communities
list
/ elements=dictionary
|
|
Set community string and access privs.
|
|
|
group
string
|
|
Group to which the community belongs.
|
|
|
name
string
|
|
SNMP community string (Max Size 32).
aliases: community
|
|
|
ro
boolean
|
|
Read-only access with this community string.
|
|
|
rw
boolean
|
|
Read-write access with this community string.
|
|
|
use_ipv4acl
string
|
|
Specify IPv4 ACL, the ACL name specified must be IPv4 ACL.
This option is unsupported on MDS switches.
|
|
|
use_ipv6acl
string
|
|
Specify IPv6 ACL, the ACL name specified after must be IPv6 ACL.
This option is unsupported on MDS switches.
|
|
contact
string
|
|
Modify sysContact.
|
|
context
dictionary
|
|
SNMP context to be mapped.
|
|
|
instance
string
|
|
Name of the protocol instance (Max Size 32).
|
|
|
name
string
|
|
Name of the SNMP context (Max Size 32).
|
|
|
topology
string
|
|
Topology associated with the SNMP context.
|
|
|
vrf
string
|
|
VRF associated with the SNMP context.
This option is unsupported on MDS switches.
|
|
counter
dictionary
|
|
Configure port counter configuration.
This option is unsupported on MDS switches.
|
|
|
cache
dictionary
|
|
Port stats cache.
|
|
|
|
enable
boolean
|
|
Enable port stats cache.
|
|
|
|
timeout
integer
|
|
Timeout for which cached port stats exists(in secs).
|
|
drop
dictionary
|
|
Silently drop unknown v3 user packets.
This option is unsupported on MDS switches.
|
|
|
unknown_engine_id
boolean
|
|
Unknown v3 engine id.
|
|
|
unknown_user
boolean
|
|
Unknown v3 user.
|
|
engine_id
dictionary
|
|
Configure a local SNMPv3 engineID.
This option is unsupported on MDS switches.
|
|
|
local
string
|
|
EngineID of the local agent.
|
|
global_enforce_priv
boolean
|
|
Globally enforce privacy for all the users.
|
|
hosts
list
/ elements=dictionary
|
|
Specify hosts to receive SNMP notifications.
SNMP hosts config lines that appear separately in running-config must be added as individual dictionaries.
|
|
|
auth
string
|
|
Use the SNMPv3 authNoPriv Security Level.
|
|
|
community
string
|
|
SNMP community string or SNMPv3 user name (Max Size 32).
|
|
|
filter_vrf
string
|
|
Filters notifications to the notification host receiver based on the configured VRF.
This option is unsupported on MDS switches.
|
|
|
host
string
|
|
IPv4 or IPv6 address or DNS Name of SNMP notification host.
|
|
|
informs
boolean
|
|
Send Inform messages to this host.
|
|
|
priv
string
|
|
Use the SNMPv3 authPriv Security Level.
|
|
|
source_interface
string
|
|
Source interface to be used for sending out SNMP notifications to this host.
|
|
|
traps
boolean
|
|
Send Traps messages to this host.
|
|
|
udp_port
integer
|
|
The notification host's UDP port number.
|
|
|
use_vrf
string
|
|
Configures SNMP to use the selected VRF to communicate with the host receiver.
This option is unsupported on MDS switches.
|
|
|
version
string
|
|
SNMP version to use for notification messages.
|
|
location
string
|
|
Modify sysLocation.
|
|
mib
dictionary
|
|
Mib access parameters.
|
|
|
community_map
dictionary
|
|
SNMP community.
|
|
|
|
community
string
|
|
SNMP community string (Max Size 32).
|
|
|
|
context
string
|
|
Name of the SNMP context (Max Size 32).
|
|
packetsize
integer
|
|
Largest SNMP packet size
|
|
protocol
dictionary
|
|
Snmp protocol operations.
|
|
|
enable
boolean
|
|
Enable/Disable snmp protocol operations.
|
|
source_interface
dictionary
|
|
Source interface to be used for sending out SNMP notifications.
This option is unsupported on MDS switches.
|
|
|
informs
string
|
|
SNMP Inform notifications for which this source interface needs to be used.
|
|
|
traps
string
|
|
SNMP Trap notifications for which this source interface needs to be used.
|
|
system_shutdown
boolean
|
|
Configure snmp-server for reload(2).
|
|
tcp_session
dictionary
|
|
Enable one time authentication for snmp over tcp session.
|
|
|
auth
boolean
|
|
Enable one time authentication for snmp over tcp session.
|
|
|
enable
boolean
|
|
Enable tcp-session.
This option is unsupported on MDS switches.
|
|
traps
dictionary
|
|
Enable SNMP Traps
|
|
|
aaa
dictionary
|
|
AAA traps
|
|
|
|
enable
boolean
|
|
Enable AAA traps.
|
|
|
|
server_state_change
boolean
|
|
AAA server state change notification.
|
|
|
bgp
dictionary
|
|
SNMP BGP traps.
|
|
|
|
enable
boolean
|
|
Enable SNMP BGP traps.
|
|
|
bridge
dictionary
|
|
Bridge traps.
This option is unsupported on MDS switches.
|
|
|
|
enable
boolean
|
|
Enable bridge traps.
|
|
|
|
newroot
boolean
|
|
Enable SNMP STP Bridge MIB newroot traps.
|
|
|
|
topologychange
boolean
|
|
Enable SNMP STP Bridge MIB topologychange traps.
|
|
|
callhome
dictionary
|
|
Callhome traps.
|
|
|
|
enable
boolean
|
|
Enable callhome traps.
This option is unsupported on MDS switches.
|
|
|
|
event_notify
boolean
|
|
Callhome External Event Notification.
|
|
|
|
smtp_send_fail
boolean
|
|
SMTP Message Send Fail notification.
|
|
|
cfs
dictionary
|
|
CFS traps.
|
|
|
|
enable
boolean
|
|
Enable cfs traps.
This option is unsupported on MDS switches.
|
|
|
|
merge_failure
boolean
|
|
Merge failure notification.
|
|
|
|
state_change_notif
boolean
|
|
State change notification.
|
|
|
config
dictionary
|
|
Config traps.
|
|
|
|
ccmCLIRunningConfigChanged
boolean
|
|
Running config change trap.
|
|
|
|
enable
boolean
|
|
Enable config traps.
This option is unsupported on MDS switches.
|
|
|
entity
dictionary
|
|
Entity traps.
|
|
|
|
cefcMIBEnableStatusNotification
boolean
|
|
CefcMIBEnableStatusNotification.
|
|
|
|
enable
boolean
|
|
Enable entity traps.
|
|
|
|
entity_fan_status_change
boolean
|
|
Entity Fan Status Change.
|
|
|
|
entity_mib_change
boolean
|
|
Entity MIB change.
|
|
|
|
entity_module_inserted
boolean
|
|
Entity Module Inserted.
|
|
|
|
entity_module_removed
boolean
|
|
Entity Module Removed.
|
|
|
|
entity_module_status_change
boolean
|
|
Entity Module Status Change.
|
|
|
|
entity_power_out_change
boolean
|
|
Entity Power Out Change.
|
|
|
|
entity_power_status_change
boolean
|
|
Entity Power Status Change.
|
|
|
|
entity_sensor
boolean
|
|
Entity sensor.
|
|
|
|
entity_unrecognised_module
boolean
|
|
Entity Unrecognised Module.
|
|
|
feature_control
dictionary
|
|
Feature-Control traps.
|
|
|
|
ciscoFeatOpStatusChange
boolean
|
|
Feature operation status change Notification.
|
|
|
|
enable
boolean
|
|
Enable feature-control traps.
This option is unsupported on MDS switches.
|
|
|
|
featureOpStatusChange
boolean
|
|
Feature operation status change notification.
|
|
|
generic
dictionary
|
|
Generic traps.
|
|
|
|
coldStart
boolean
|
|
Generic coldStart trap.
|
|
|
|
enable
boolean
|
|
Enable generic traps.
This option is unsupported on MDS switches.
|
|
|
|
warmStart
boolean
|
|
Generic warmStart trap.
|
|
|
license
dictionary
|
|
License traps.
|
|
|
|
enable
boolean
|
|
Enable license traps.
This option is unsupported on MDS switches.
|
|
|
|
notify_license_expiry
boolean
|
|
License Expiry Notification.
|
|
|
|
notify_license_expiry_warning
boolean
|
|
License Expiry Warning Notification.
|
|
|
|
notify_licensefile_missing
boolean
|
|
License File Missing Notification.
|
|
|
|
notify_no_license_for_feature
boolean
|
|
No License installed for feature Notification.
|
|
|
link
dictionary
|
|
Link traps.
|
|
|
|
cErrDisableInterfaceEventRev1
boolean
|
|
Err-disable state notification.
This option is unsupported on MDS switches.
|
|
|
|
cieLinkDown
boolean
|
|
Cisco extended link state down notification.
|
|
|
|
cieLinkUp
boolean
|
|
Cisco extended link state up notification.
|
|
|
|
cisco_xcvr_mon_status_chg
boolean
|
|
Cisco interface transceiver monitor status change notification.
|
|
|
|
cmn_mac_move_notification
boolean
|
|
Mac addr move trap.
This option is unsupported on MDS switches.
|
|
|
|
delayed_link_state_change
boolean
|
|
Delayed link state change.
|
|
|
|
enable
boolean
|
|
Enable link traps.
This option is unsupported on MDS switches.
|
|
|
|
extended_linkDown
boolean
|
|
IETF extended link state down notification.
|
|
|
|
extended_linkUp
boolean
|
|
IETF extended link state up notification.
|
|
|
|
linkDown
boolean
|
|
IETF Link state down notification.
|
|
|
|
linkUp
boolean
|
|
IETF Link state up notification.
|
|
|
mmode
dictionary
|
|
MMode traps.
This option is unsupported on MDS switches.
|
|
|
|
cseMaintModeChangeNotify
boolean
|
|
Maint Mode Change Notification.
|
|
|
|
cseNormalModeChangeNotify
boolean
|
|
Normal Mode Change Notification.
|
|
|
|
enable
boolean
|
|
Enable mmode traps.
|
|
|
ospf
dictionary
|
|
SNMP OSPF traps.
|
|
|
|
enable
boolean
|
|
Enable SNMP OSPF traps.
|
|
|
ospfv3
dictionary
|
|
SNMP OSPFv3 traps.
|
|
|
|
enable
boolean
|
|
Enable SNMP OSPFv3 traps.
|
|
|
rf
dictionary
|
|
RF traps.
|
|
|
|
enable
boolean
|
|
Enable rf traps.
This option is unsupported on MDS switches.
|
|
|
|
redundancy_framework
boolean
|
|
Redundancy_Framework (RF) Sup switchover MIB.
|
|
|
rmon
dictionary
|
|
RMON traps.
|
|
|
|
enable
boolean
|
|
Enable rmon traps.
This option is unsupported on MDS switches.
|
|
|
|
fallingAlarm
boolean
|
|
Rmon falling alarm.
|
|
|
|
hcFallingAlarm
boolean
|
|
High capacity Rmon falling alarm.
|
|
|
|
hcRisingAlarm
boolean
|
|
High capacity Rmon rising alarm.
|
|
|
|
risingAlarm
boolean
|
|
Rmon rising alarm.
|
|
|
snmp
dictionary
|
|
SNMP traps.
|
|
|
|
authentication
boolean
|
|
SNMP authentication trap.
|
|
|
|
enable
boolean
|
|
Enable snmp traps.
This option is unsupported on MDS switches.
|
|
|
storm_control
dictionary
|
|
Storm-Control traps.
|
|
|
|
cpscEventRev1
boolean
|
|
Port-Storm-Control-Event.
This option is unsupported on MDS switches.
|
|
|
|
enable
boolean
|
|
Enable storm-control traps.
This option is unsupported on MDS switches.
|
|
|
|
trap_rate
boolean
|
|
Number of traps per minute.
|
|
|
stpx
dictionary
|
|
Stpx traps.
This option is unsupported on MDS switches.
|
|
|
|
enable
boolean
|
|
Enable stpx traps.
|
|
|
|
inconsistency
boolean
|
|
Enable SNMP STPX MIB InconsistencyUpdate traps.
|
|
|
|
loop_inconsistency
boolean
|
|
Enable SNMP STPX MIB LoopInconsistencyUpdate traps.
|
|
|
|
root_inconsistency
boolean
|
|
Enable SNMP STPX MIB RootInconsistencyUpdate traps.
|
|
|
syslog
dictionary
|
|
Enable syslog traps.
|
|
|
|
enable
boolean
|
|
Enable syslog traps.
This option is unsupported on MDS switches.
|
|
|
|
message_generated
boolean
|
|
Message Generated Notification.
|
|
|
sysmgr
dictionary
|
|
Sysmgr traps.
|
|
|
|
cseFailSwCoreNotifyExtended
boolean
|
|
Software Core Notification.
|
|
|
|
enable
boolean
|
|
Enable sysmgr traps.
This option is unsupported on MDS switches.
|
|
|
system
dictionary
|
|
System traps.
|
|
|
|
clock_change_notification
boolean
|
|
Clock-change-notification traps.
|
|
|
|
enable
boolean
|
|
Enable system traps.
This option is unsupported on MDS switches.
|
|
|
upgrade
dictionary
|
|
Upgrade traps.
|
|
|
|
enable
boolean
|
|
Enable upgrade traps.
This option is unsupported on MDS switches.
|
|
|
|
upgradeJobStatusNotify
boolean
|
|
Upgrade Job Status Notification.
|
|
|
|
upgradeOpNotifyOnCompletion
boolean
|
|
Upgrade Global Status Notification.
|
|
|
vtp
dictionary
|
|
VTP traps.
This option is unsupported on MDS switches.
|
|
|
|
enable
boolean
|
|
Enable VTP traps.
|
|
|
|
notifs
boolean
|
|
Enable vtpConfigRevNumberError vtpConfigDigestEnable vtpConfigRevNumberError vtpConfigDigestError vtpServerDisabled vtpVersionOneDeviceDetected vlanTrunkPortDynamicStatusChange vtpLocalModeChanged vtpVersionInUseChanged notification.
|
|
|
|
vlancreate
boolean
|
|
Enable vtpVlanCreated notification.
|
|
|
|
vlandelete
boolean
|
|
Enable vtpVlanDeleted notification.
|
|
users
dictionary
|
|
Define users who can access the SNMP engine.
|
|
|
auth
list
/ elements=dictionary
|
|
SNMP User authentication related settings
|
|
|
|
authentication
dictionary
|
|
Authentication parameters for the user.
|
|
|
|
|
algorithm
string
|
|
Select algorithm for authentication.
|
|
|
|
|
engine_id
string
|
|
EngineID for configuring notif target user (for V3 informs).
This value needs to be enclosed in quotes in the task.
|
|
|
|
|
localized_key
boolean
|
|
Specifies whether the passwords are in localized key format.
|
|
|
|
|
localizedv2_key
boolean
|
|
Specifies whether the passwords are in localized V2 key format.
|
|
|
|
|
password
string
|
|
Authentication password for user (Max Size 127).
If this value is localized, it has to be enclosed in quotes in the task.
|
|
|
|
|
priv
dictionary
|
|
Encryption parameters for the user.
|
|
|
|
|
|
aes_128
boolean
|
|
Use 128-bit AES algorithm for privacy.
|
|
|
|
|
|
privacy_password
string
|
|
Privacy password for user (Max Size 130).
If this value is localized, it has to be enclosed in quotes in the task.
|
|
|
|
group
string
|
|
Group name (ignored for notif target user) (Max Size 28).
|
|
|
|
user
string
|
|
Name of the user (Max Size 28).
|
|
|
use_acls
list
/ elements=dictionary
|
|
Set IPv4 and IPv6 ACL to use.
|
|
|
|
ipv4
string
|
|
Specify IPv4 ACL, the ACL name specified after must be IPv4 ACL.
|
|
|
|
ipv6
string
|
|
Specify IPv6 ACL, the ACL name specified after must be IPv6 ACL.
|
|
|
|
user
string
|
|
Name of the user (Max Size 28).
|
|
running_config
string
|
|
This option is used only with state parsed.
The value of this option should be the output received from the NX-OS device by executing the command show running-config | section '^snmp-server'.
The state parsed reads the configuration from running_config option and transforms it into Ansible structured data as per the resource module's argspec and the value is then returned in the parsed key within the result.
|
|
state
string
|
Choices:
merged ←
- replaced
- overridden
- deleted
- parsed
- gathered
- rendered
|
The state the configuration should be left in.
The states replaced and overridden have identical behaviour for this module.
Please refer to examples for more details.
|