1 .. This work is licensed under a Creative Commons Attribution 4.0 International License.
2 .. SPDX-License-Identifier: CC-BY-4.0
3 .. Copyright (C) 2021 AT&T Intellectual Property. All rights reserved.
8 SNMP Manager library follows `VES Event Listener 7.1 <https://docs.onap.org/projects/onap-vnfrqts-requirements/en/latest/Chapter8/ves7_1spec.html#>`_
17 Datatype: commonEventHeader
18 ~~~~~~~~~~~~~~~~~~~~~~~~~~~
40 - Uses default defined value if TRAP OID not configured
46 - Uses default defined value if TRAP OID not configured
53 * - reportingEntityName
58 - set value if provided by notification trap and oid-reporting-entity-name configured.
59 * - startEpochMicrosec
61 - System time at the moment of notification generation
64 - set value if provided by notification trap and oid-start-epoch-microsec configured.
67 - System time at the moment of notification generation
70 - set value if provided by notification trap and oid-last-epoch-microsec configured.
76 - set value if provided by notification trap and oid-event-sequence configured.
79 - Host Address of SNMP Agent sending the trap notification
82 - set value if provided by notification trap and oid-source-name configured.
88 - Library only enforces mandatory fields for 4.1 version
89 * - vesEventListenerVersion
94 - Library only enforces mandatory fields for 7.1 version
115 - NF-OAM-ADOPTER-VENDOR
119 * - reportingEntityId
124 - set value if provided by notification trap and oid-reporting-entity-id configured.
125 * - internalHeader Fields
144 Datatype: faultFields
145 ~~~~~~~~~~~~~~~~~~~~~
161 - set value if provided by notification trap and trap configured.
167 - set value if provided by notification trap and event-severity configured.
174 * - faultFieldsVersion
185 - set value if provided by notification trap and oid-specific-problem-desc configured.
197 - set value if provided by notification trap and event-category configured.
198 * - alarmAdditional Information
203 - Map of OID with values
209 - set value if provided by notification trap and oid-alarm-interface-name configured.
211 Mapping Configuration
212 ---------------------
214 Configuration file **fm-ves-message-mapping.yaml** contains all definitions required to define the mapping
215 from trap provided information to VES Message format
217 **trap mapping example**
219 .. literalinclude:: fm-ves-message-mapping.yaml
224 - **reporting-entity-name** Reporting entity name assigned to the event
225 - **reporting-entity-id** Reporting entity id assigned to the event
226 - **nf-vendor-name** Vendor name assigned to the event
229 - **oid** *OID* trap identifier
230 - **name** Name of the trap
231 - **event-severity** Severity assigned to the event
232 - **event-category** Category assigned to the event
233 - **event-source-type** Source type assigned to the event
234 - **oid-event-id** *OID* containing the event entity id e.g. port interface
235 - **oid-event-sequence** Event sequence 0 on a raise and 1 on a clear
236 - **oid-reporting-entity-id** *OID* containing the reporting entity id
237 - **oid-source-name** *OID* containing the source name
238 - **oid-specific-problem-desc** *OID* containing the trap problem description
239 - **oid-start-epoch-microsec** *OID* containing the alarm start epoch
240 - **oid-last-epoch-microsec** *OID* containing the alarm last epoch
241 - **oid-alarm-interface-name** *OID* containing the interface name
243 **Output example for port down trap**
245 .. literalinclude:: PortDOWN.json
248 **Output example for any undefined trap**
250 Undefined trap will use the mapping defined for default.
252 .. literalinclude:: unknown-trap.json