SNMP Trap
Location in GUI:
Admin
» External Data Collectors
» Monitoring Destinations
» SNMP
Diagram
Classes
monitoring (apic.fabric_policies)
Name | Type | Constraint | Mandatory | Default Value |
---|---|---|---|---|
snmp_traps | List | [snmp_traps] | No |
snmp_traps (apic.fabric_policies.monitoring)
Name | Type | Constraint | Mandatory | Default Value |
---|---|---|---|---|
name | String | Regex: ^[a-zA-Z0-9_.:-]{1,64}$ | Yes | |
description | String | Regex: ^[a-zA-Z0-9\\!#$%()*,-./:;@ _{|}~?&+]{1,128}$ | No | |
destinations | List | [destinations] | No |
destinations (apic.fabric_policies.monitoring.snmp_traps)
Name | Type | Constraint | Mandatory | Default Value |
---|---|---|---|---|
hostname_ip | Any | String[Regex: ^[a-zA-Z0-9:][a-zA-Z0-9.:-]{0,254}$ ] or IP | Yes | |
port | Integer | min: 1 , max: 65535 | No | 162 |
version | Choice | v1 , v2c , v3 | No | v2c |
community | String | min: 1 , max: 32 | Yes | |
security | Choice | noauth , auth , priv | No | priv |
mgmt_epg | Choice | inb , oob | No | inb |
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