FieldServer FS-8704-09 SNMP instruction manual Snmpoid

Page 17

FS-8704-09 SNMP Driver Manual

Page 17 of 39

Step 2 : Create a Map Descriptor (MD) to catch the Trap

Pay special consideration to the following parameters;

SNMP_OID: Specify the OID of the event state. The field must contain an integer value which is the value that will be stored. When the trap is received the driver extracts the contents and takes the 1st OID in the message and looks for a MD whose ‘SNMP_OID’ matches. If it doesn’t find one then the trap is discarded.

SNMP_Trap_Store_Method: Set the value of this parameter to ‘Lookup’. This tells the driver to use the lookup table and also to use

the following two parameters;

o SNMP_OID_Index1: Specify the OID of the field that contains the 1st part of the search/lookup string. Once the driver sees that a ‘Lookup’ store is to be done it extracts the string contents of this OID to form the 1st part of the search string.

o SNMP_OID_Index2: Specify the OID of the field that contains the 2nd part of the search/lookup string. Once the driver sees

that a ‘Lookup’ store is to be done it extracts the string contents of this OID to form the search string by adding a colon to the 1st part and then appending the string found in this OID.

Map_Descriptor_Name,

Data_Array_Name,

Data_Array_Offset,

Function,

Node_Name,

SNMP_OID,

SNMP_Trap_Store_Method,

SNMP_OID_Index1,

SNMP_OID_Index2

MD1,

DA_TRAPS,

0,

Passive_Client,

Agent 1,

1.3.6.1.4.1.290.1.0,

Lookup,

1.3.6.1.4.1.290.2,

1.3.6.1.4.1.290.3

 

 

 

 

 

 

 

 

 

The following notes refer to the decoded SNMP trap message shown above in this section.

Driver receives trap and starts extracting data from the message

Driver finds OID= 1.3.6.1.4.1.290.1, extracts the Integer value=4 and searches for an MD with SNMP_OID= 1.3.6.1.4.1.290.1

The MD specifying Storage Method=Lookup and Data Array Name = DA_TRAPS is found. (If not found, the message is discarded.)

Driver finds IOD = 1.3.6.1.4.1.290.2 and extracts a string = CROSSTWN_KDA

Driver compares the extracted OID to the OID specified by ‘SNMP_OID_Index1’. If it matches then it forms the 1st fragment of the search string, otherwise the driver continues extracting OID’s from the trap.

Driver finds IOD = 1.3.6.1.4.1.290.3 and extracts a string = EMS_84_900MHZ_RADIO_B

Driver compares the extracted OID to the OID specified by ‘SNMP_OID_Index2’. If it matches then it forms the 2nd fragment of the search string, otherwise the driver continues extracting OID’s from the trap.

Once a complete search string is formed, the driver starts searching the lookup table defined in step1. The search is case insensitive. A match is made with offset 3 and the driver stores the value 4 at offset 3 in DA_TRAPS. (If the search fails – there is no matching entry then the driver uses offset zero). The offsets are relative to the offset specified by ‘Data_Array_Offset’.

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 17
Contents Applicability & Effectivity Driver Manual FS-8704-09 Snmp VersionTable of Contents Max Nodes Supported Integer Octetstream Timerticks StringFS-8704-09 Snmp Driver Manual Snmp Description Required 3rd Party Hardware Station FS-8704-09 Snmp Driver Manual Hardware Connections3rd Party Nodes non-SNMP 3rd Party ClientSnmp Traps Data Arrays/DescriptorsSnmp FS-8704-09 Snmp Driver Manual Client Side Node Descriptors Timing Parameters Driver Related Map Descriptor ParametersRDBC, WRBC, Wrbx SnmpoidDAAI3 Rdbc FS-8704-09 Snmp Driver Manual Map Descriptor ExampleDAAI3 Wrbx OIDSNMPDA2 Server Side Data ArraysSNMPDA1 Server Side Map Descriptors Server Side Node DescriptorsAppendix A.1.1. Trap Source IP Address DAAI3 Page FS-8704-09 Snmp Driver Manual Snmpoid 192.168.1.174 Status Normal Status LO Alarm Status HI Alarm Status Normal Status AlarmSNMPDA2 Snmptrap Appendix A.2.2. Polling for Integer bound DataTrap Map Descriptors are then configured as below Page TRAP-TYPE from RFC-1215 FIELDSERVER-MIB Definitions = BeginSnmp 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 FYI INTFYI MIB TrapERR SnmptypeseqFS-8704-09 Snmp Driver Manual State=%s FS-8704-09 Snmp Driver Manual UINT32