Configure SNMP parameters, including SNMP device name and location, SNMP version, views, and communities, and trap groups.
Name Type Constraint Mandatory Default Value system_profiles List system_profiles No
Name Type Constraint Mandatory Default Value snmp Class snmp No
Name Type Constraint Mandatory Default Value name String Regex: ^[^&<>! "]{1,128}$ No snmpdescription String No communities List communities No contact_person String min: 1, max: 255 No contact_ person_ variable String Regex: ^[. / \[\] a-zA-Z0-9_ -] {1, 128}$ No groups List groups No location String min: 1, max: 255 No location_ variable String Regex: ^[. / \[\] a-zA-Z0-9_ -] {1, 128}$ No shutdown Boolean true, falseNo shutdown_ variable String Regex: ^[. / \[\] a-zA-Z0-9_ -] {1, 128}$ No trap_ target_ servers List trap_ target_ servers No users List users No views List views No
Name Type Constraint Mandatory Default Value name String Regex: ^[^&<>! "]{1,128}$ No snmpdescription String No communities List communities No contact_person String min: 1, max: 255 No contact_ person_ variable String Regex: ^[. / \[\] a-zA-Z0-9_ -] {1, 64}$ No groups List groups No location String min: 1, max: 255 No location_ variable String Regex: ^[. / \[\] a-zA-Z0-9_ -] {1, 64}$ No shutdown Boolean true, falseNo shutdown_ variable String Regex: ^[. / \[\] a-zA-Z0-9_ -] {1, 64}$ No trap_ target_ servers List trap_ target_ servers No users List users No views List views No
Name Type Constraint Mandatory Default Value authorization Choice read-only, read-writeNo authorization_ variable String Regex: ^[. / \[\] a-zA-Z0-9_ -] {1, 128}$ No name String Regex: ^[\S]+$ No name_variable String Regex: ^[. / \[\] a-zA-Z0-9_ -] {1, 128}$ No user_label String Yes view String min: 1, max: 32 No view_variable String Regex: ^[. / \[\] a-zA-Z0-9_ -] {1, 128}$ No
Name Type Constraint Mandatory Default Value authorization Choice read-only, read-writeNo authorization_ variable String Regex: ^[. / \[\] a-zA-Z0-9_ -] {1, 64}$ No name String Regex: ^[\S]+$ Yes user_label String Yes view String min: 1, max: 32 No view_variable String Regex: ^[. / \[\] a-zA-Z0-9_ -] {1, 64}$ No
Name Type Constraint Mandatory Default Value name String min: 1, max: 32 Yes security_level Choice no-auth-no-priv, auth-no-priv, auth-privYes view String min: 1, max: 32 No view_variable String Regex: ^[. / \[\] a-zA-Z0-9_ -] {1, 128}$ No
Name Type Constraint Mandatory Default Value name String min: 1, max: 32 Yes security_level Choice no-auth-no-priv, auth-no-priv, auth-privYes view String min: 1, max: 32 No view_variable String Regex: ^[. / \[\] a-zA-Z0-9_ -] {1, 64}$ No
Name Type Constraint Mandatory Default Value ip IP No ip_variable String Regex: ^[. / \[\] a-zA-Z0-9_ -] {1, 128}$ No port Integer min: 1, max: 65535 No port_variable String Regex: ^[. / \[\] a-zA-Z0-9_ -] {1, 128}$ No source_ interface String Regex: ^(GigabitEthernet| Loopback| TenGigabitEthernet| TwoGigabitEthernet| FortyGigabitEthernet| HundredGigE| Vlan) (([1-9] \d| \d) / ) {0, 2}(0| [1-9] \d*) ([:| \. ] [1-9] \d*) ? No source_ interface_ variable String Regex: ^[. / \[\] a-zA-Z0-9_ -] {1, 128}$ No user String min: 1, max: 32 No user_variable String Regex: ^[. / \[\] a-zA-Z0-9_ -] {1, 128}$ No user_label String No vpn_id Integer min: 0, max: 65530 No vpn_id_variable String Regex: ^[. / \[\] a-zA-Z0-9_ -] {1, 128}$ No
Name Type Constraint Mandatory Default Value ip IP No ip_variable String Regex: ^[. / \[\] a-zA-Z0-9_ -] {1, 64}$ No port Integer min: 1, max: 65535 No port_variable String Regex: ^[. / \[\] a-zA-Z0-9_ -] {1, 64}$ No source_ interface String Regex: ^(GigabitEthernet| Loopback| TenGigabitEthernet| TwoGigabitEthernet| FortyGigabitEthernet| HundredGigE| Vlan) (([1-9] \d| \d) / ) {0, 2}(0| [1-9] \d*) ([:| \. ] [1-9] \d*) ? No source_ interface_ variable String Regex: ^[. / \[\] a-zA-Z0-9_ -] {1, 64}$ No user String min: 1, max: 32 No user_variable String Regex: ^[. / \[\] a-zA-Z0-9_ -] {1, 64}$ No user_label String No vpn_id Integer min: 0, max: 65530 No vpn_id_variable String Regex: ^[. / \[\] a-zA-Z0-9_ -] {1, 64}$ No
Name Type Constraint Mandatory Default Value authentication_ password String min: 1, max: 128 No authentication_ password_ variable String Regex: ^[. / \[\] a-zA-Z0-9_ -] {1, 128}$ No authentication_ protocol Choice sha, sha256No authentication_ protocol_ variable String Regex: ^[. / \[\] a-zA-Z0-9_ -] {1, 128}$ No group String min: 1, max: 32 No group_variable String Regex: ^[. / \[\] a-zA-Z0-9_ -] {1, 128}$ No name String min: 1, max: 32 Yes privacy_ password String min: 1, max: 128 No privacy_ password_ variable String Regex: ^[. / \[\] a-zA-Z0-9_ -] {1, 128}$ No privacy_ protocol Choice aes-cfb-128, aes-256-cfb-128No privacy_ protocol_ variable String Regex: ^[. / \[\] a-zA-Z0-9_ -] {1, 128}$ No
Name Type Constraint Mandatory Default Value authentication_ password String min: 1, max: 128 No authentication_ password_ variable String Regex: ^[. / \[\] a-zA-Z0-9_ -] {1, 128}$ No authentication_ protocol Choice shaNo authentication_ protocol_ variable String Regex: ^[. / \[\] a-zA-Z0-9_ -] {1, 128}$ No group String min: 1, max: 32 No group_variable String Regex: ^[. / \[\] a-zA-Z0-9_ -] {1, 128}$ No name String min: 1, max: 32 Yes privacy_ password String min: 1, max: 128 No privacy_ password_ variable String Regex: ^[. / \[\] a-zA-Z0-9_ -] {1, 128}$ No privacy_ protocol Choice aes-cfb-128, aes-256-cfb-128No privacy_ protocol_ variable String Regex: ^[. / \[\] a-zA-Z0-9_ -] {1, 128}$ No
Name Type Constraint Mandatory Default Value authentication_ password String min: 1, max: 128 No authentication_ password_ variable String Regex: ^[. / \[\] a-zA-Z0-9_ -] {1, 64}$ No authentication_ protocol Choice shaNo authentication_ protocol_ variable String Regex: ^[. / \[\] a-zA-Z0-9_ -] {1, 64}$ No group String min: 1, max: 32 No group_variable String Regex: ^[. / \[\] a-zA-Z0-9_ -] {1, 64}$ No name String min: 1, max: 32 Yes privacy_ password String min: 1, max: 128 No privacy_ password_ variable String Regex: ^[. / \[\] a-zA-Z0-9_ -] {1, 64}$ No privacy_ protocol Choice aes-cfb-128, aes-256-cfb-128No privacy_ protocol_ variable String Regex: ^[. / \[\] a-zA-Z0-9_ -] {1, 64}$ No
Name Type Constraint Mandatory Default Value name String min: 1, max: 32 Yes oids List oids No
Name Type Constraint Mandatory Default Value exclude Boolean true, falseNo exclude_ variable String Regex: ^[. / \[\] a-zA-Z0-9_ -] {1, 128}$ No id String Regex: ^(([0-1] (\. [1-3] ?[0-9] ) ) | (2\. (0| ([1-9] \d*) ) ) ) (\. (0| \*| ([1-9] \d*) ) ) {0, 126}$ No id_variable String Regex: ^[. / \[\] a-zA-Z0-9_ -] {1, 128}$ No
Name Type Constraint Mandatory Default Value exclude Boolean true, falseNo exclude_ variable String Regex: ^[. / \[\] a-zA-Z0-9_ -] {1, 64}$ No id String Regex: ^(([0-1] (\. [1-3] ?[0-9] ) ) | (2\. (0| ([1-9] \d*) ) ) ) (\. (0| \*| ([1-9] \d*) ) ) {0, 126}$ No id_variable String Regex: ^[. / \[\] a-zA-Z0-9_ -] {1, 64}$ No
Example-1: This example shows configuration when customer is still using SNMPv2 with communities. Edges send traps to two SNMP servers inside a service VPN from source interface Loopback10.
description : First system template
description : SNMPv2 template
contact_person_variable : snmp_contact
location_variable : snmp_location
shutdown_variable : snmp_shutdown
source_interface : Loopback10
source_interface : Loopback10
- name : $CRYPT_CLUSTER$QxiZDYbM/8ElLYQCgdvUOA==$7ojrXlNnk/0jZ+lnhVJlLQ==
Example-2: This example uses SNMPv3 with most secure option (authentication and privacy). It creates a SNMP group that is then used for SNMP user. SNMP traps are send to two SNMP servers using previously created SNMP user from source interface Loopback10..
description : First system template
description : SNMPv3 template
contact_person_variable : snmp_contact
security_level : auth-priv
location_variable : snmp_location
shutdown_variable : snmp_shutdown
source_interface : Loopback10
source_interface : Loopback10
authentication_protocol : sha
authentication_password : $CRYPT_CLUSTER$GU+PR6WV3va2QY07wG6Z6w==$INccS/tPm4BdiwzuP6lUJw==
privacy_protocol : aes-256-cfb-128
privacy_password : $CRYPT_CLUSTER$GU+PR6WV3va2QY07wG6Z6w==$INccS/tPm4BdiwzuP6lUJw==