| Page 20 of 39 |
Example of a Trap Sent:
In this example the trap was the 1st trap defined in the configuration. That is why the Trap OID = 6. The MD name was 'ambTemp'. Its name begins with a lower case character to meet validation requirements. The configuration file definition for the trap had the OID set to 1.3.6.1.4.1.6347.1.1.1.0. When the trap was produced the value was 120 and the trap was produced because the value was above the Hi Alarm threshold specified by the COS_HI_Alarm parameter in the configuration file.
TrapOID: 1.3.6.1.4.1.6347.6.6 | (Generic Trap 6 (enterprise), specific trap 6) | So most likely from the MIB it would compile as | |
1.3.6.1.4.1.6347.0.6 |
|
|
|
Varbinds: |
|
|
|
OID | Format | Contents |
|
1.3.6.1.4.1.6347.1.1.1.0.0 | String | ambTemp Status: HI ALARM |
|
1.3.6.1.4.1.6347.1.1.1.0 | Integer | 120 |
|
Trap OID's |
|
|
|
Appendix A.2.2. Polling for Integer bound Data
It is possible for the remote SNMP Client to poll for the data as well as listen for the traps. This is achieved by setting the OID to a value that corresponds to a pollable point in a 'SNMP_DA_xx' Data Array.
In the example below, the Data Array name is SNMP_DA_02. This means that its points can be polled by polling for 1.3.6.1.4.1.6347.1.2.x.0 where x is the offset in the Data Array. When a trap is generated because of the COS event, the integer bound variable gets its OID from the configuration and thus is equal to 1.3.6.1.4.1.6347.1.2.1.0 . This corresponds to the OID for SNMP_DA_2:0 (DA:Offset). Thus if the remote client wanted to poll for the data as well as listen for the traps it could poll 1.3.6.1.4.1.6347.1.2.1.0 and it would be served the same data as contained in the integer bound variable.
Example:
Map_Descriptors |
|
|
|
|
|
|
Map_Descriptor_Name, | Data_Array_Name, | Data_Array_Offset, | Function, | Node_Name, | SNMP_OID, | COS_Normal |
WaterHA, | SNMP_DA_2, | 01, | SNMP_TRAP, | Trap_1, | 1.3.6.1.4.1.6347.1.2.1.0, | 0 |
|
|
|
|
|
|
|
FieldServer Technologies 1991 Tarob Court Milpitas, California 95035 USA Web: www.fieldserver.com Tel: (408) 262 2299 Fax: (408) 262 9042 Toll Free: (888) 509 1970 email: support@fieldserver.com