Skip to main content

SNMP Trap

Location in GUI: Admin » External Data Collectors » Monitoring Destinations » SNMP

Diagram

Classes

monitoring (apic.fabric_policies)

NameTypeConstraintMandatoryDefault Value
snmp_trapsList[snmp_traps]No

snmp_traps (apic.fabric_policies.monitoring)

NameTypeConstraintMandatoryDefault Value
nameStringRegex: ^[a-zA-Z0-9_.:-]{1,64}$Yes
descriptionStringRegex: ^[a-zA-Z0-9\\!#$%()*,-./:;@ _{|}~?&+]{1,128}$No
destinationsList[destinations]No

destinations (apic.fabric_policies.monitoring.snmp_traps)

NameTypeConstraintMandatoryDefault Value
hostname_ipAnyString[Regex: ^[a-zA-Z0-9:][a-zA-Z0-9.:-]{0,254}$] or IPYes
portIntegermin: 1, max: 65535No162
versionChoicev1, v2c, v3Nov2c
communityStringmin: 1, max: 32Yes
securityChoicenoauth, auth, privNopriv
mgmt_epgChoiceinb, oobNoinb

Examples

Simple example:

apic:
fabric_policies:
monitoring:
snmp_traps:
- name: TRAP1
destinations:
- hostname_ip: 2.2.2.2
community: testcommunity

Full example:

apic:
fabric_policies:
monitoring:
snmp_traps:
- name: TRAP1
description: desc1
destinations:
- hostname_ip: 2.2.2.2
port: 1062
version: v3
community: test
security: priv
mgmt_epg: inb