FieldServer FS-8704-09 SNMP Appendix A.2.2. Polling for Integer bound Data, SNMPDA2 Snmptrap

Page 20

FS-8704-09 SNMP Driver Manual

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

Image 20
Contents Driver Manual FS-8704-09 Snmp Version Applicability & EffectivityTable of Contents Max Nodes Supported Integer Octetstream Timerticks StringFS-8704-09 Snmp Driver Manual Snmp Description Required 3rd Party Hardware FS-8704-09 Snmp Driver Manual Hardware Connections Station3rd Party Nodes non-SNMP 3rd Party ClientData Arrays/Descriptors Snmp TrapsSnmp FS-8704-09 Snmp Driver Manual Client Side Node Descriptors Driver Related Map Descriptor Parameters Timing ParametersRDBC, WRBC, Wrbx SnmpoidFS-8704-09 Snmp Driver Manual Map Descriptor Example DAAI3 RdbcDAAI3 Wrbx OIDSNMPDA2 Server Side Data ArraysSNMPDA1 Server Side Node Descriptors Server Side Map DescriptorsAppendix A.1.1. Trap Source IP Address DAAI3 Page FS-8704-09 Snmp Driver Manual Snmpoid 192.168.1.174 Status Normal Status Alarm Status Normal Status LO Alarm Status HI AlarmAppendix A.2.2. Polling for Integer bound Data SNMPDA2 SnmptrapTrap Map Descriptors are then configured as below Page FIELDSERVER-MIB Definitions = Begin TRAP-TYPE from RFC-1215Snmp Comparison of Style2 to Style3 Comparison of Style1 to Style3 Sample Configuration File Style1 MIB File based on above configuration Style2 MIB File based on above configuration Style3 MIB File based on above configuration Style3 Traps Description Page INT FYIFYI MIB TrapSnmptypeseq ERRFS-8704-09 Snmp Driver Manual State=%s FS-8704-09 Snmp Driver Manual UINT32