.. _arista.eos.eos_snmp_server_module:
**************************
arista.eos.eos_snmp_server
**************************
**Manages snmp_server resource module**
Version added: 3.2.0
.. contents::
:local:
:depth: 1
Synopsis
--------
- This module configures and manages the attributes of snmp_server on Arista EOS platforms.
Parameters
----------
.. raw:: html
Parameter |
Choices/Defaults |
Comments |
config
dictionary
|
|
SNMP server configuration.
|
|
acls
list
/ elements=dictionary
|
|
ipv4/ipv6 access_lists
|
|
|
acl
string
|
|
acl name
|
|
|
afi
string
|
|
ipv4/ipv6
|
|
|
vrf
string
|
|
vrf name
|
|
chassis_id
string
|
|
SNMP chassis identifier.
|
|
communities
list
/ elements=dictionary
|
|
Community name configuration.
|
|
|
acl_v4
string
|
|
standard access_list name
|
|
|
acl_v6
string
|
|
IPv6 access list name.
|
|
|
name
string
|
|
Community name
|
|
|
ro
boolean
|
|
Only reads are permitted.
|
|
|
rw
boolean
|
|
Read_write access
|
|
|
view
string
|
|
MIB view name
|
|
contact
string
|
|
Person to contact about the syste,.
|
|
engineid
dictionary
|
|
SNMPv3 engine ID configuration.
|
|
|
local
string
|
|
Local SNMP agent
|
|
|
remote
dictionary
|
|
Remote SNMP agent
|
|
|
|
host
string
|
|
Hostname or IP address of remote SNMP notification host
|
|
|
|
id
string
|
|
engine ID octet string
|
|
|
|
udp_port
integer
|
|
The remote SNMP notification host's UDP port number.
|
|
extension
dictionary
|
|
Configure extension script to serve an OID range
|
|
|
oneshot
boolean
|
|
Use inefficient one_shot interface
|
|
|
root_oid
string
|
|
Extension root oid
|
|
|
script_location
string
|
|
script location
|
|
groups
list
/ elements=dictionary
|
|
SNMP USM group
|
|
|
auth_privacy
string
|
Choices:
- auth
- noauth
- priv
|
auth and privacy config. Valid when version = v3.
|
|
|
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
|
|
|
version
string
|
|
snmp security group version
|
|
|
write
string
|
|
View to restrict write access
|
|
hosts
list
/ elements=dictionary
|
|
Notification destinations
|
|
|
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.
|
|
|
user
string
|
|
Community or user name.
|
|
|
version
string
|
Choices:
- 1
- 2c
- 3 auth
- 3 noauth
- 3 priv
|
Notification message SNMP version.
|
|
|
vrf
string
|
|
Specify the VRF in which the host is configured
|
|
local_interface
string
|
|
Configure the source interface for SNMP notifications.
|
|
location
string
|
|
The sysLocation string.
|
|
notification
integer
|
|
Maximum number of notifications in the log
|
|
objects
dictionary
|
|
when true Disable implementation of a group of objects
|
|
|
mac_address_tables
boolean
|
|
dot1dTpFdbTable, dot1qTpFdbTable
|
|
|
route_tables
boolean
|
|
ipCidrRouteTable, ipCidrRouteNumber, aristaFIBStats*
|
|
qos
integer
|
|
Configure QoS parameters.
|
|
qosmib
integer
|
|
Set QOS_MIB counter update interval
|
|
transmit
integer
|
|
Maximum number of bytes in SNMP message (UDP/TCP payload)
|
|
transport
string
|
|
Enable snmpd transport layer protocol
|
|
traps
dictionary
|
|
Enable traps to all configured recipients.
|
|
|
bgp
dictionary
|
|
Enable Bgp traps. If set to enabled , all the traps are set.
|
|
|
|
arista_backward_transition
boolean
|
|
arista_backward_transition
|
|
|
|
arista_established
boolean
|
|
arista_established
|
|
|
|
backward_transition
boolean
|
|
backward_transition
|
|
|
|
enabled
boolean
|
|
All traps are set.
|
|
|
|
established
boolean
|
|
established.
|
|
|
bridge
dictionary
|
|
Enable Bridge traps. If set to enabled , all the traps are set.
|
|
|
|
arista_mac_age
boolean
|
|
arista_mac_age
|
|
|
|
arista_mac_learn
boolean
|
|
arista_mac_learn
|
|
|
|
arista_mac_move
boolean
|
|
arista_mac_move
|
|
|
|
enabled
boolean
|
|
All traps are set.
|
|
|
capacity
dictionary
|
|
Enable Capacity traps. If set to enabled , all the traps are set.
|
|
|
|
arista_hardware_utilization_alert
boolean
|
|
arista_hardware_utilization_alert
|
|
|
|
enabled
boolean
|
|
All traps are set.
|
|
|
entity
dictionary
|
|
Enable Entity traps. If set to enabled , all the traps are set.
|
|
|
|
arista_ent_sensor_alarm
boolean
|
|
arista_ent_sensor_alarm
|
|
|
|
enabled
boolean
|
|
All traps are set.
|
|
|
|
ent_config_change
boolean
|
|
ent_config_change
|
|
|
|
ent_state_oper
boolean
|
|
ent_state_oper
|
|
|
|
ent_state_oper_disabled
boolean
|
|
ent_state_oper_disabled.
|
|
|
|
ent_state_oper_enabled
boolean
|
|
ent_state_oper_enabled.
|
|
|
external_alarm
dictionary
|
|
Enable external alarm traps. If set to enabled , all the traps are set.
|
|
|
|
arista_external_alarm_asserted_notif
boolean
|
|
arista_external_alarm_asserted_notif
|
|
|
|
arista_external_alarm_deasserted_notif
boolean
|
|
arista_external_alarm_deasserted_notif
|
|
|
|
enabled
boolean
|
|
All traps are set.
|
|
|
isis
dictionary
|
|
Enable isis traps. If set to enabled , all the traps are set.
|
|
|
|
adjacency_change
boolean
|
|
adjacency_change
|
|
|
|
area_mismatch
boolean
|
|
area_mismatch
|
|
|
|
attempt_to_exceed_max_sequence
boolean
|
|
attempt_to_exceed_max_sequence
|
|
|
|
authentication_type_failure
boolean
|
|
authentication_type_failure.
|
|
|
|
database_overload
boolean
|
|
database_overload
|
|
|
|
enabled
boolean
|
|
All traps are set.
|
|
|
|
own_lsp_purge
boolean
|
|
own_lsp_purge
|
|
|
|
rejected_adjacency
boolean
|
|
rejected_adjacency
|
|
|
|
sequence_number_skip
boolean
|
|
sequence_number_skip.
|
|
|
lldp
dictionary
|
|
Enable Lldp traps. If set to enabled , all the traps are set.
|
|
|
|
enabled
boolean
|
|
All traps are set.
|
|
|
|
rem_tables_change
boolean
|
|
rem_tables_change
|
|
|
mpls_ldp
dictionary
|
|
Enable mpls_ldp traps. If set to enabled , all the traps are set.
|
|
|
|
enabled
boolean
|
|
All traps are set.
|
|
|
|
mpls_ldp_session_down
boolean
|
|
mpls_ldp_session_down
|
|
|
|
mpls_ldp_session_up
boolean
|
|
mpls_ldp_session_up
|
|
|
msdp
dictionary
|
|
Enable msdp traps. If set to enabled , all the traps are set.
|
|
|
|
backward_transition
boolean
|
|
backward_transition.
|
|
|
|
enabled
boolean
|
|
All traps are set.
|
|
|
|
established
boolean
|
|
established.
|
|
|
ospf
dictionary
|
|
Enable Ospf traps. If set to enabled , all the traps are set.
|
|
|
|
enabled
boolean
|
|
All traps are set.
|
|
|
|
if_auth_failure
boolean
|
|
if_auth_failure
|
|
|
|
if_config_error
boolean
|
|
if_config_error
|
|
|
|
if_state_change
boolean
|
|
if_state_change
|
|
|
|
nbr_state_change
boolean
|
|
nbr_state_change.
|
|
|
ospfv3
dictionary
|
|
Enable Ospfv3 traps. If set to enabled , all the traps are set.
|
|
|
|
enabled
boolean
|
|
All traps are set.
|
|
|
|
if_config_error
boolean
|
|
if_config_error
|
|
|
|
if_rx_bad_packet
boolean
|
|
if_rx_bad_packet
|
|
|
|
if_state_change
boolean
|
|
if_state_change
|
|
|
|
nbr_restart_helper_status_change
boolean
|
|
Enable ospfv3NbrRestartHelperStatusChange trap
|
|
|
|
nbr_state_change
boolean
|
|
nbr_state_change.
|
|
|
|
nssa_translator_status_change
boolean
|
|
Enable ospfv3NssaTranslatorStatusChange trap
|
|
|
|
restart_status_change
boolean
|
|
restart_status_change
|
|
|
pim
dictionary
|
|
Enable Pim traps. If set to enabled , all the traps are set.
|
|
|
|
enabled
boolean
|
|
All traps are set.
|
|
|
|
neighbor_loss
boolean
|
|
neighbor_loss
|
|
|
snmp
dictionary
|
|
Enable snmp traps. If set to enabled , all the traps are set.
|
|
|
|
authentication
boolean
|
|
authentication
|
|
|
|
enabled
boolean
|
|
All traps are set.
|
|
|
|
link_down
boolean
|
|
link_down
|
|
|
|
link_up
boolean
|
|
link_up
|
|
|
snmpConfigManEvent
dictionary
|
|
Enable snmpConfigManEvent traps. If set to enabled , all the traps are set.
|
|
|
|
arista_config_man_event
boolean
|
|
arista_config_man_event
|
|
|
|
enabled
boolean
|
|
All traps are set.
|
|
|
switchover
dictionary
|
|
Enable switchover traps. If set to enabled , all the traps are set.
|
|
|
|
arista_redundancy_switch_over_notif
boolean
|
|
arista_redundancy_switch_over_notif
|
|
|
|
enabled
boolean
|
|
All traps are set.
|
|
|
test
dictionary
|
|
Enable test traps. If set to enabled , all the traps are set.
|
|
|
|
arista_test_notification
boolean
|
|
arista_test_notification
|
|
|
|
enabled
boolean
|
|
All traps are set.
|
|
|
vrrp
dictionary
|
|
Enable vrrp traps. If set to enabled , all the traps are set.
|
|
|
|
enabled
boolean
|
|
All traps are set.
|
|
|
|
trap_new_master
boolean
|
|
vrrp
|
|
users
list
/ elements=dictionary
|
|
SNMP user configuration.
|
|
|
auth
dictionary
|
|
User authentication settings
|
|
|
|
algorithm
string
|
|
algorithm for authentication
|
|
|
|
auth_passphrase
string
|
|
authentication passphrase hex string
|
|
|
|
encryption
string
|
|
algorithm for encryption.
|
|
|
|
priv_passphrase
string
|
|
privacy passphrase hexstring
|
|
|
group
string
|
|
SNMP group for the user.
|
|
|
localized
dictionary
|
|
localized auth and privacy passphrases.
|
|
|
|
algorithm
string
|
|
algorithm for authentication
|
|
|
|
auth_passphrase
string
|
|
authentication passphrase hex string
|
|
|
|
encryption
string
|
|
algorithm for encryption.
|
|
|
|
engineid
string
|
|
Engine id
|
|
|
|
priv_passphrase
string
|
|
privacy passphrase hexstring
|
|
|
remote
string
|
|
System where an SNMPv3 user is hosted
|
|
|
udp_port
integer
|
|
UDP port used by the remote SNMP system
|
|
|
user
string
|
|
SNMP user name
|
|
|
version
string
|
|
snmp security version
|
|
views
list
/ elements=dictionary
|
|
SNMPv2 MIB view configuration
|
|
|
action
string
|
Choices:
- excluded
- included
|
Action to be performed.
|
|
|
mib
string
|
|
SNMP MIB name
|
|
|
view
string
|
|
SNMP view name
|
|
vrfs
list
/ elements=dictionary
|
|
Specify the VRF in which the source address is used
|
|
|
local_interface
string
|
|
Configure the source interface for SNMP notifications
|
|
|
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 EOS 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:
- 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.
|