.. _cisco.iosxr.iosxr_snmp_server_module:
*****************************
cisco.iosxr.iosxr_snmp_server
*****************************
**Resource module to configure snmp server.**
Version added: 2.6.0
.. contents::
:local:
:depth: 1
Synopsis
--------
- This module configures and manages the attributes of snmp-server on Cisco IOSXR platforms.
Parameters
----------
.. raw:: html
| Parameter |
Choices/Defaults |
Comments |
|
config
dictionary
|
|
SNMP server configuration.
|
|
chassis_id
string
|
|
SNMP chassis identifier.
|
|
communities
list
/ elements=dictionary
|
|
Enable SNMP; set community string and access privileges.
|
|
|
acl_v4
string
|
|
Ipv4 access list.
|
|
|
acl_v6
string
|
|
IPv6 access list name.
|
|
|
name
string
|
|
Community name.
|
|
|
ro
boolean
|
|
Only reads are permitted.
|
|
|
rw
boolean
|
|
Read-write access.
|
|
|
sdrowner
boolean
|
|
SDR Owner permissions for MIB Objects.
|
|
|
systemowner
boolean
|
|
System Owner permissions for MIB objects.
|
|
|
v4_acl
string
|
|
V4 Access-list name.
|
|
community_maps
list
/ elements=dictionary
|
|
Community Mapping as per RFC-2576.
|
|
|
context
string
|
|
Context Name for the community mapping.
|
|
|
name
string
|
|
Community name
|
|
|
security_name
string
|
|
Security Name for the community mapping.
|
|
|
target_list
string
|
|
list of targets valid with this community.
|
|
contact
string
|
|
Person to contact about the syste,.
|
|
context
list
/ elements=string
|
|
Create/Delete a context apart from default
|
|
correlator
dictionary
|
|
Configure properties of the event correlator
|
|
|
buffer_size
integer
|
|
Configure size of the correlator buffer.
|
|
|
rule_sets
list
/ elements=dictionary
|
|
Configure a specified correlation ruleset.
|
|
|
|
name
string
|
|
Name of the ruleset
|
|
|
rules
list
/ elements=dictionary
|
|
Configure a specified correlation rule.
|
|
|
|
rule_name
string
|
|
name of rule.
|
|
|
|
timeout
integer
|
|
Specify timeout.
|
|
drop
dictionary
|
|
Silently drop SNMP packets
|
|
|
report_IPv4
string
|
|
Config to drop snmpv3 error reports matching Ipv4 ACL.
|
|
|
report_IPv6
string
|
|
Config to drop snmpv3 error reports matching Ipv4 ACL.
|
|
|
unknown_user
boolean
|
|
Silently drop unknown v3 user packets
|
|
engineid
dictionary
|
|
SNMPv3 engine ID configuration.
|
|
|
local
string
|
|
Local SNMP agent
|
|
groups
list
/ elements=dictionary
|
|
SNMP USM group
|
|
|
acl_v4
string
|
|
Ipv4 Type of Access-list
aliases: Ipv4_acl
|
|
|
acl_v6
string
|
|
Ipv6 Type of Access-list
aliases: Ipv6_acl
|
|
|
context
string
|
|
Specify a context to associate with the group
|
|
|
group
string
|
|
SNMP group for the user
|
|
|
notify
string
|
|
View to restrict notifications
|
|
|
read
string
|
|
View to restrict read access
|
|
|
v4_acl
string
|
|
V4 Access-list name
|
|
|
version
string
|
|
snmp security group version
|
|
|
write
string
|
|
View to restrict write access
|
|
hosts
list
/ elements=dictionary
|
|
Notification destinations
|
|
|
community
string
|
|
community string.
|
|
|
host
string
|
|
Hostname or IP address of SNMP notification host.
|
|
|
informs
boolean
|
|
Use SNMP inform messages.
|
|
|
traps
boolean
|
|
Use SNMP trap messages
|
|
|
udp_port
integer
|
|
UDP destination port for notification messages.
|
|
|
version
string
|
|
Notification message SNMP version.
|
|
ifindex
boolean
|
|
Enable ifindex persistence
|
|
ifmib
dictionary
|
|
IF-MIB configuration commands.
|
|
|
ifalias_long
boolean
|
|
Modify parameters for ifAlias object.
|
|
|
internal_cache_max_duration
integer
|
|
IFMIB internal lookahead cache.
|
|
|
ipsubscriber
boolean
|
|
Enable ipsubscriber interfaces in IFMIB.
|
|
|
stats
boolean
|
|
Modify IF-MIB statistics parameters.
|
|
inform
dictionary
|
|
Configure SNMP Informs options
|
|
|
pending
integer
|
|
Set number of unacked informs to hold
|
|
|
retries
integer
|
|
Set retry count for informs
|
|
|
timeout
integer
|
|
Set timeout for informs
|
|
interfaces
list
/ elements=dictionary
|
|
Enter the SNMP interface configuration commands.
|
|
|
index_persistent
boolean
|
|
Configure ifIndex attributes Persistency across system reloads.
|
|
|
name
string
|
|
Name of interface.
|
|
|
notification_linkupdown_disable
boolean
|
|
Disable linkUp and linkDown notification.
|
|
ipv4
dictionary
|
|
Mark the dscp/precedence bit for ipv4 packets.
|
|
|
dscp
string
|
|
Set IP DSCP (DiffServ CodePoint).Please refer vendor document for valid entries.
|
|
|
precedence
string
|
|
Set precedence Please refer vendor document for valid entries.
|
|
ipv6
dictionary
|
|
Mark the dscp/precedence bit for ipv4 packets.
|
|
|
dscp
string
|
|
Set IP DSCP (DiffServ CodePoint).Please refer vendor document for valid entries.
|
|
|
precedence
string
|
|
Set precedence Please refer vendor document for valid entries.
|
|
location
string
|
|
The sysLocation string.
|
|
logging_threshold_oid_processing
integer
|
|
Configure threshold to start logging slow OID requests processing.
|
|
logging_threshold_pdu_processing
integer
|
|
Configure threshold to start logging slow PDU requests processing.
|
|
mib_bulkstat_max_procmem_size
integer
|
|
per process memory limit in kilo bytes
|
|
mib_bulkstat_transfer_ids
list
/ elements=dictionary
|
|
mib bulkstat transfer ids.
|
|
|
buffer_size
integer
|
|
Bulkstat data file maximum size.
|
|
|
enable
boolean
|
|
Start Data Collection for this Configuration
|
|
|
format_schemaASCI
boolean
|
|
format
|
|
|
name
string
|
|
mib transfer-id name.
|
|
|
retain
integer
|
|
Retention period in Min.
|
|
|
retry
integer
|
|
Number of Retries.
|
|
|
schema
string
|
|
Schema that contains objects to be collected.
|
|
|
transfer_interval
integer
|
|
transfer-interval
|
|
mib_object_lists
list
/ elements=string
|
|
mib object lists
|
|
mib_schema
list
/ elements=dictionary
|
|
mib schema
|
|
|
name
string
|
|
mib schema name.
|
|
|
object_list
string
|
|
Name of an object List.
|
|
|
poll_interval
integer
|
|
Periodicity for polling of objects in this schema in Min.
|
|
mroutemib_send_all_vrf
boolean
|
|
Configurations related to IPMROUTE-MIcisco-support.
|
|
notification_log_mib
dictionary
|
|
notification log mib.
|
|
|
default
boolean
|
|
To create a default log
|
|
|
disable
boolean
|
|
disable, to disable the logging in default log.
|
|
|
GlobalSize
integer
|
|
GlobalSize, max number of notifications that can be logged in all logs.
|
|
|
size
integer
|
|
size, The max number of notifications that this log (default) can hold.
|
|
oid_poll_stats
boolean
|
|
Enable OID poll stats oper CLI
|
|
overload_control
dictionary
|
|
Set overload-control params for handling incoming messages in critical processing mode.
|
|
|
overload_drop_time
integer
|
|
Overload drop time (in seconds) for incoming queue (default 1 sec).
|
|
|
overload_throttle_rate
integer
|
|
Overload throttle rate for incoming queue (default 500 msec)
|
|
packetsize
integer
|
|
Largest SNMP packet size.
|
|
queue_length
integer
|
|
Queue length (default 100).
|
|
targets
list
/ elements=dictionary
|
|
targets
|
|
|
host
string
|
|
Specify host name.
|
|
|
name
string
|
|
Name of the target list.
|
|
|
vrf
string
|
|
Specify VRF name.
|
|
throttle_time
integer
|
|
Set throttle time for handling incoming messages.
|
|
timeouts
dictionary
|
|
SNMP timeouts
|
|
|
duplicate
integer
|
|
Duplicate request feature timeout
|
|
|
inQdrop
integer
|
|
incoming queue drop feature.
|
|
|
pdu_stats
integer
|
|
SNMP pdu statistics end to end.
|
|
|
subagent
integer
|
|
Sub-Agent Request timeout.
|
|
|
threshold
integer
|
|
threshold incoming queue drop feature.
|
|
trap
dictionary
|
|
MIB trap configurations.
|
|
|
authentication_vrf_disable
boolean
|
|
Disable authentication traps for packets on a vrf.
|
|
|
link_ietf
boolean
|
|
Link up/down trap configuratio.
|
|
|
throttle_time
integer
|
|
Set throttle time for handling more traps.
|
|
trap_source
string
|
|
Assign an interface for the source address of all traps
|
|
trap_timeout
integer
|
|
Set timeout for TRAP message retransmissions
|
|
traps
dictionary
|
|
Enable traps to all configured recipients.
|
|
|
addrpool
dictionary
|
|
Enable SNMP Address Pool traps.
|
|
|
|
high
boolean
|
|
Enable SNMP Address Pool High Threshold trap.
|
|
|
|
low
boolean
|
|
Enable SNMP Address Pool Low Threshold trap.
|
|
|
bfd
boolean
|
|
Enable BFD traps.
|
|
|
bgp
dictionary
|
|
Enable Bgp traps.
|
|
|
|
cbgp2
boolean
|
|
Enable CISCO-BGP4-MIB v2 traps.
|
|
|
|
updown
boolean
|
|
Enable CISCO-BGP4-MIB v2 up/down traps.
|
|
|
bridgemib
boolean
|
|
Enable SNMP Trap for Bridge MIB.
|
|
|
bulkstat_collection
boolean
|
|
Enable Data-Collection-MIB Collection notifications.
|
|
|
bulkstat_transfer
boolean
|
|
Enable Data-Collection-MIB Trnasfer notifications.
|
|
|
cisco_entity_ext
boolean
|
|
Enable SNMP entity traps
|
|
|
config
boolean
|
|
Enable SNMP config traps.
|
|
|
copy_complete
boolean
|
|
Enable CISCO-CONFIG-COPY-MIB ccCopyCompletion traps.
|
|
|
diameter
dictionary
|
|
Enable SNMP diameter traps.
|
|
|
|
peerdown
boolean
|
|
Enable peer connection down notification.
|
|
|
|
peerup
boolean
|
|
Enable peer connection up notification.
|
|
|
|
permanentfail
boolean
|
|
Enable permanent failure notification.
|
|
|
|
protocolerror
boolean
|
|
Enable protocol error notifications
|
|
|
|
transientfail
boolean
|
|
Enable transient failure notification.
|
|
|
entity
boolean
|
|
Enable SNMP entity traps.
|
|
|
entity_redundancy
dictionary
|
|
Enable SNMP CISCO-ENTITY-REDUNDANCY-MIB traps.
|
|
|
|
all
boolean
|
|
Enable all CISCO-ENTITY-REDUNDANCY-MIB traps
|
|
|
|
status
boolean
|
|
Enable status change traps
|
|
|
|
switchover
boolean
|
|
Enable switchover traps.
|
|
|
entity_state
dictionary
|
|
Enable SNMP entity-state traps.
|
|
|
|
operstatus
boolean
|
|
Enable entity oper status enable notification.
|
|
|
|
switchover
boolean
|
|
Enable entity state switchover notifications
|
|
|
flash
dictionary
|
|
Enable flash-mib traps.
|
|
|
|
insertion
boolean
|
|
Enable ciscoFlashDeviceInsertedNotif.
|
|
|
|
removal
boolean
|
|
Enable ciscoFlashDeviceRemovedNotif.
|
|
|
fru_ctrl
boolean
|
|
Enable SNMP entity FRU control traps.
|
|
|
hsrp
boolean
|
|
Enable SNMP hsrp traps.
|
|
|
ipsec
dictionary
|
|
Enable SNMP IPSec traps.
|
|
|
|
start
boolean
|
|
Enable SNMP IPsec Tunnel Start trap.
|
|
|
|
stop
boolean
|
|
Enable SNMP IPsec Tunnel Stop trap.
|
|
|
ipsla
boolean
|
|
Enable SNMP hipsla traps.
|
|
|
isakmp
dictionary
|
|
Enable SNMP isakmp traps.
|
|
|
|
start
boolean
|
|
Enable SNMP isakmp Tunnel Start trap.
|
|
|
|
stop
boolean
|
|
Enable SNMP isakmp Tunnel Stop trap.
|
|
|
isis
dictionary
|
|
Enable isis traps. If set to enabled , all the traps are set.
|
|
|
|
adjacency_change
boolean
|
|
adjacency-change
|
|
|
|
all
boolean
|
|
anable all is-is traps.
|
|
|
|
area_mismatch
boolean
|
|
area-mismatch
|
|
|
|
attempt_to_exceed_max_sequence
boolean
|
|
attempt-to-exceed-max-sequence
|
|
|
|
authentication_failure
boolean
|
|
authentication-failure.
|
|
|
|
authentication_type_failure
boolean
|
|
authentication-type-failure.
|
|
|
|
corrupted_lsp_detected
boolean
|
|
isisCorruptedLSPDetected
|
|
|
|
database_overload
boolean
|
|
database-overload
|
|
|
|
id_len_mismatch
boolean
|
|
isisIDLenMismatch
|
|
|
|
lsp_error_detected
boolean
|
|
lsp-error-detected.
|
|
|
|
lsp_too_large_to_propagate
boolean
|
|
lsp-too-large-to-propagate
|
|
|
|
manual_address_drops
boolean
|
|
manual_address_drops
|
|
|
|
max_area_addresses_mismatch
boolean
|
|
max_area_addresses_mismatch
|
|
|
|
orig_lsp_buff_size_mismatch
boolean
|
|
orig-lsp-buff-size-mismatch
|
|
|
|
own_lsp_purge
boolean
|
|
own-lsp-purge
|
|
|
|
protocols_supported_mismatch
boolean
|
|
protocols-supported-mismatch
|
|
|
|
rejected_adjacency
boolean
|
|
rejected-adjacency
|
|
|
|
sequence_number_skip
boolean
|
|
sequence-number-skip.
|
|
|
|
version_skew
boolean
|
|
version-skew
|
|
|
l2tun
dictionary
|
|
Enable L2TUN traps.
|
|
|
|
pseudowire_status
boolean
|
|
Enable L2TUN pseudowire status traps.
|
|
|
|
sessions
boolean
|
|
Enable L2TUN sessions traps.
|
|
|
|
tunnel_down
boolean
|
|
Enable L2TUN tunnel DOWN traps.
|
|
|
|
tunnel_up
boolean
|
|
Enable L2TUN tunnel UP traps.
|
|
|
l2vpn
dictionary
|
|
Enable L2VPN traps.
|
|
|
|
all
boolean
|
|
Enable L2VPN ALL traps.
|
|
|
|
cisco
boolean
|
|
Enable L2VPN CISCO traps.
|
|
|
|
vc_down
boolean
|
|
Enable L2VPN VC DOWN traps.
|
|
|
|
vc_up
boolean
|
|
Enable L2VPN VC UP traps.
|
|
|
msdp_peer_state_change
boolean
|
|
Enable SNMP MSDP traps
|
|
|
ntp
boolean
|
|
Enable SNMP Cisco Ntp traps.
|
|
|
ospf
dictionary
|
|
Enable Ospf traps. If set to enabled , all the traps are set.
|
|
|
|
errors
dictionary
|
|
error
|
|
|
|
|
authentication_failure
boolean
|
|
authentication-failure.
|
|
|
|
|
bad_packet
boolean
|
|
bad-packet
|
|
|
|
|
config_error
boolean
|
|
config-error
|
|
|
|
|
virt_authentication_failure
boolean
|
|
virt-authentication-failure
|
|
|
|
|
virt_bad_packet
boolean
|
|
virt-bad-packet
|
|
|
|
|
virt_config_error
boolean
|
|
virt_config_error
|
|
|
|
lsa
dictionary
|
|
lsa
|
|
|
|
|
lsa_maxage
boolean
|
|
lsa-maxage
|
|
|
|
|
lsa_originate
boolean
|
|
lsa-originate
|
|
|
|
retransmit
dictionary
|
|
retransmit
|
|
|
|
|
packets
boolean
|
|
packets
|
|
|
|
|
virt_packets
boolean
|
|
virt-packets
|
|
|
|
state_change
dictionary
|
|
state-change.
|
|
|
|
|
if_state_change
boolean
|
|
if-state-change
|
|
|
|
|
neighbor_state_change
boolean
|
|
neighbor-state-change
|
|
|
|
|
virtif_state_change
boolean
|
|
virtif-state-change
|
|
|
|
|
virtneighbor_state_change
boolean
|
|
virtneighbor-state-change
|
|
|
ospfv3
dictionary
|
|
Enable Ospfv3 traps. If set to enabled , all the traps are set.
|
|
|
|
errors
dictionary
|
|
error
|
|
|
|
|
bad_packet
boolean
|
|
bad-packet
|
|
|
|
|
config_error
boolean
|
|
config-error
|
|
|
|
|
virt_bad_packet
boolean
|
|
virt-bad-packet
|
|
|
|
|
virt_config_error
boolean
|
|
virt_config_error
|
|
|
|
state_change
dictionary
|
|
state-change.
|
|
|
|
|
if_state_change
boolean
|
|
if-state-change
|
|
|
|
|
neighbor_state_change
boolean
|
|
neighbor-state-change
|
|
|
|
|
nssa_state_change
boolean
|
|
nssa-state-change
|
|
|
|
|
restart_helper_status_change
boolean
|
|
restart-helper-status-change
|
|
|
|
|
restart_status_change
boolean
|
|
restart-status-change
|
|
|
|
|
restart_virtual_helper_status_change
boolean
|
|
restart-virtual-helper-status-change
|
|
|
|
|
virtif_state_change
boolean
|
|
virtif-state-change
|
|
|
|
|
virtneighbor_state_change
boolean
|
|
virtneighbor-state-change
|
|
|
pim
dictionary
|
|
Enable Pim traps. If set to enabled , all the traps are set.
|
|
|
|
interface_state_change
boolean
|
|
interface-state-change .
|
|
|
|
invalid_message_received
boolean
|
|
invalid-message-received
|
|
|
|
neighbor_change
boolean
|
|
neighbor-change.
|
|
|
|
rp_mapping_change
boolean
|
|
rp-mapping-change.
|
|
|
power
boolean
|
|
Enable SNMP entity power traps.
|
|
|
rf
boolean
|
|
Enable SNMP RF-MIB traps.
|
|
|
rsvp
dictionary
|
|
Enable rsvp traps. If set to enabled , all the traps are set.
|
|
|
|
all
boolean
|
|
enable all traps.
|
|
|
|
lost_flow
boolean
|
|
lost-flow
|
|
|
|
new_flow
boolean
|
|
new-flow
|
|
|
selective_vrf_download_role_change
boolean
|
|
Enable selective VRF download traps.
|
|
|
sensor
boolean
|
|
Enable SNMP entity sensor traps
|
|
|
snmp
dictionary
|
|
Enable snmp traps. If set to enabled , all the traps are set.
|
|
|
|
authentication
boolean
|
|
authentication
|
|
|
|
coldstart
boolean
|
|
coldstart.
|
|
|
|
linkdown
boolean
|
|
link-down
|
|
|
|
linkup
boolean
|
|
link-up
|
|
|
|
warmstart
boolean
|
|
warmstart.
|
|
|
subscriber
dictionary
|
|
Subscriber notification commands.
|
|
|
|
session_agg_access_interface
boolean
|
|
Subscriber notification at access interface level
|
|
|
|
session_agg_node
boolean
|
|
Subscriber notification at node level
|
|
|
syslog
boolean
|
|
syslog
|
|
|
system
boolean
|
|
Enable SNMP SYSTEMMIB-MIB traps.
|
|
|
vpls
dictionary
|
|
Enable VPLS traps
|
|
|
|
all
boolean
|
|
Enable all VPLS traps.
|
|
|
|
full_clear
boolean
|
|
Enable VPLS Full Clear traps.
|
|
|
|
full_raise
boolean
|
|
Enable VPLS Full Raise traps.
|
|
|
|
status
boolean
|
|
Enable VPLS Status traps
|
|
|
vrrp_events
boolean
|
|
vrrp
|
|
users
list
/ elements=dictionary
|
|
SNMP user configuration.
|
|
|
acl_v4
string
|
|
Ipv4 Type of Access-list
aliases: Ipv4_acl
|
|
|
acl_v6
string
|
|
Ipv6 Type of Access-list
aliases: Ipv6_acl
|
|
|
group
string
|
|
SNMP group for the user.
|
|
|
SDROwner
boolean
|
|
SDR Owner permissions for MIB Objects.
|
|
|
SystemOwner
boolean
|
|
System Owner permissions for MIB objects.
|
|
|
user
string
|
|
SNMP user name
|
|
|
v4_acl
string
|
|
V4 Access-list name
|
|
|
version
string
|
|
snmp security version
|
|
vrfs
list
/ elements=dictionary
|
|
Specify the VRF in which the source address is used
|
|
|
context
list
/ elements=string
|
|
Configure the source interface for SNMP notifications
|
|
|
hosts
list
/ elements=dictionary
|
|
Notification destinations
|
|
|
|
community
string
|
|
community string.
|
|
|
|
host
string
|
|
Hostname or IP address of SNMP notification host.
|
|
|
|
informs
boolean
|
|
Use SNMP inform messages.
|
|
|
|
traps
boolean
|
|
Use SNMP trap messages
|
|
|
|
udp_port
integer
|
|
UDP destination port for notification messages.
|
|
|
|
version
string
|
|
Notification message SNMP version.
|
|
|
vrf
string
|
|
vrf name.
|
|
running_config
string
|
|
This option is used only with state parsed.
The value of this option should be the output received from the IOSXR device by executing the command show running-config 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:
- deleted
merged ←
- overridden
- replaced
- gathered
- rendered
- parsed
|
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.
|