Skip to main content

System SNMP Feature

Configure SNMP parameters, including SNMP device name and location, SNMP version, views, and communities, and trap groups.

Diagram

Classes

system_profiles (sdwan.feature_profiles)

NameTypeConstraintMandatoryDefault Value
snmpClass[snmp]No

snmp (sdwan.feature_profiles.system_profiles)

NameTypeConstraintMandatoryDefault Value
nameStringRegex: ^[^&<>! "]{1,128}$Nosnmp
descriptionStringNo
communitiesList[communities]No
contact_personStringmin: 1, max: 255No
contact_person_variableStringRegex: ^[./\[\]a-zA-Z0-9_-]{1,64}$No
groupsList[groups]No
locationStringmin: 1, max: 255No
location_variableStringRegex: ^[./\[\]a-zA-Z0-9_-]{1,64}$No
shutdownBooleantrue, falseNo
shutdown_variableStringRegex: ^[./\[\]a-zA-Z0-9_-]{1,64}$No
trap_target_serversList[trap_target_servers]No
usersList[users]No
viewsList[views]No

communities (sdwan.feature_profiles.system_profiles.snmp)

NameTypeConstraintMandatoryDefault Value
authorizationChoiceread-only, read-writeNo
authorization_variableStringRegex: ^[./\[\]a-zA-Z0-9_-]{1,64}$No
nameStringRegex: ^[\S]+$Yes
user_labelStringYes
viewStringmin: 1, max: 32No
view_variableStringRegex: ^[./\[\]a-zA-Z0-9_-]{1,64}$No

groups (sdwan.feature_profiles.system_profiles.snmp)

NameTypeConstraintMandatoryDefault Value
nameStringmin: 1, max: 32Yes
security_levelChoiceno-auth-no-priv, auth-no-priv, auth-privYes
viewStringmin: 1, max: 32No
view_variableStringRegex: ^[./\[\]a-zA-Z0-9_-]{1,64}$No

trap_target_servers (sdwan.feature_profiles.system_profiles.snmp)

NameTypeConstraintMandatoryDefault Value
ipIPNo
ip_variableStringRegex: ^[./\[\]a-zA-Z0-9_-]{1,64}$No
portIntegermin: 1, max: 65535No
port_variableStringRegex: ^[./\[\]a-zA-Z0-9_-]{1,64}$No
source_interfaceStringRegex: ^(GigabitEthernet|Loopback|TenGigabitEthernet|TwoGigabitEthernet|FortyGigabitEthernet|HundredGigE|Vlan)(([1-9]\d|\d)/){0,2}(0|[1-9]\d*)([:|\.][1-9]\d*)?No
source_interface_variableStringRegex: ^[./\[\]a-zA-Z0-9_-]{1,64}$No
userStringmin: 1, max: 32No
user_variableStringRegex: ^[./\[\]a-zA-Z0-9_-]{1,64}$No
user_labelStringNo
vpn_idIntegermin: 0, max: 65530No
vpn_id_variableStringRegex: ^[./\[\]a-zA-Z0-9_-]{1,64}$No

users (sdwan.feature_profiles.system_profiles.snmp)

NameTypeConstraintMandatoryDefault Value
authentication_passwordStringmin: 1, max: 128No
authentication_password_variableStringRegex: ^[./\[\]a-zA-Z0-9_-]{1,64}$No
authentication_protocolChoiceshaNo
authentication_protocol_variableStringRegex: ^[./\[\]a-zA-Z0-9_-]{1,64}$No
groupStringmin: 1, max: 32No
group_variableStringRegex: ^[./\[\]a-zA-Z0-9_-]{1,64}$No
nameStringmin: 1, max: 32Yes
privacy_passwordStringmin: 1, max: 128No
privacy_password_variableStringRegex: ^[./\[\]a-zA-Z0-9_-]{1,64}$No
privacy_protocolChoiceaes-cfb-128, aes-256-cfb-128No
privacy_protocol_variableStringRegex: ^[./\[\]a-zA-Z0-9_-]{1,64}$No

views (sdwan.feature_profiles.system_profiles.snmp)

NameTypeConstraintMandatoryDefault Value
nameStringmin: 1, max: 32Yes
oidsList[oids]No

oids (sdwan.feature_profiles.system_profiles.snmp.views)

NameTypeConstraintMandatoryDefault Value
excludeBooleantrue, falseNo
exclude_variableStringRegex: ^[./\[\]a-zA-Z0-9_-]{1,64}$No
idStringRegex: ^(([0-1](\.[1-3]?[0-9]))|(2\.(0|([1-9]\d*))))(\.(0|\*|([1-9]\d*))){0,126}$No
id_variableStringRegex: ^[./\[\]a-zA-Z0-9_-]{1,64}$No

Examples

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.

sdwan:
feature_profiles:
system_profiles:
- name: system1
description: First system template
snmp_templates:
- name: FT-EDGE-SNMPV2-01
description: SNMPv2 template
contact_variable: snmp_contact
location_variable: snmp_location
shutdown_variable: snmp_shutdown
trap_target_servers:
- ip: 172.16.0.11
udp_port: 514
community_name: $CRYPT_CLUSTER$MVeouqBXy9Od6dAYMJ6eTQ==$z0Pl/8UAxXkt1lXOnayv8A==
source_interface: Loopback10
vpn_id: 10
- ip: 172.16.0.12
udp_port: 514
community_name: $CRYPT_CLUSTER$MVeouqBXy9Od6dAYMJ6eTQ==$z0Pl/8UAxXkt1lXOnayv8A==
source_interface: Loopback10
vpn_id: 10
communities:
- name: $CRYPT_CLUSTER$QxiZDYbM/8ElLYQCgdvUOA==$7ojrXlNnk/0jZ+lnhVJlLQ==
authorization_read_only: true
view: VIEW_ALL
views:
- name: VIEW_ALL
oids:
- id: "1.3"
exclude: false

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..

sdwan:
feature_profiles:
system_profiles:
- name: system1
description: First system template
snmp_templates:
- name: FT-EDGE-SNMPV3-01
description: SNMPv3 template
contact_variable: snmp_contact
groups:
- name: GROUP_AUTH_PRIV
security_level: auth-priv
view: VIEW_ALL
location_variable: snmp_location
shutdown_variable: snmp_shutdown
trap_target_servers:
- ip: 172.16.0.11
udp_port: 514
community_name: $CRYPT_CLUSTER$MVeouqBXy9Od6dAYMJ6eTQ==$z0Pl/8UAxXkt1lXOnayv8A==
source_interface: Loopback10
user: user01
vpn_id: 10
- ip: 172.16.0.12
udp_port: 514
community_name: $CRYPT_CLUSTER$MVeouqBXy9Od6dAYMJ6eTQ==$z0Pl/8UAxXkt1lXOnayv8A==
source_interface: Loopback10
user: user01
vpn_id: 10
users:
- name: user01
group: GROUP_AUTH_PRIV
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==
communities:
- name: $CRYPT_CLUSTER$QxiZDYbM/8ElLYQCgdvUOA==$7ojrXlNnk/0jZ+lnhVJlLQ==
authorization_read_only: true
view: VIEW_ALL
views:
- name: VIEW_ALL
oids:
- id: "1.3"
exclude: false
- name: VIEW_ALL2
oids:
- id: "1.3"
exclude: false