SNMP - How can I test SNMP

Integration Solutions

Chipkin has integration solutions for almost every situation. We specialize in network protocol communications and have over 20+ years of experience. Click for more information:


  • Configuration is provided at end of file
  • SNMP driver = 1.03mK
  • User PowerSNMP Manager download. It’s free.
  • PowerSNMP Free Manager http://www.dart.com/psnet_free.aspx

    You are presented with this configuration screen when you start the application.

    192.168.1.71 is the IP address of your Laptop.

    Click OK/Cancel. It doesn’t matter.

    Click Discover.

    Specify the IP of the Fieldserver/gateway.

    Click Find.

    When found, it looks like below.

    Check the box.

    Click Add.

    You see the result of the ADD.

    Right Click on the device and select ‘Add Watch’.

     

    You see this screen. The default variable (OID) is not correct.

     

    The variable/OID below corresponds to the 1st item in DA_SNMP_1

     

    The variable/OID below corresponds to the 2ndt item in DA_SNMP_1

     

    Here you can see the values.

     

    Test for polling is complete.

     

    Testing Traps

     

    Make sure IP is the IP of your laptop

    Remote_Client_Node_Descriptors

    Node_Name , Node_ID , Protocol , Adapter , IP_Address

    Mngr1     , 11      , SNMP     , N1      , 192.168.1.71

     

    Start Wireshark.

     

    Set the filter to SNMP.

     

    Generate a trap by poking data into offset 11.

    Poke the value 1 into offset 11.

    You should see a trap in wireshark.

    Expand the trap packt. See the value = 1. Note the text.

    Set the value of offset 11 back to zero.

    Look for a new trap.

     

    Expanded view of trap

    Check value is zero.

    Set the value of offset 12 to 100.

    Set the value of offset 12 to 101.

    Set the value of offset 12 to 80.

    Set the value of offset 12 to 15.

    There should be 3 traps.

    Test is complete

     

    Configuration

     

    //================================================================================

    //

    //    Common Information

    //

    Bridge

    Title

    SNMP Server Example 2012April

    //================================================================================

    //

    //    Data Arrays

    //

    Data_Arrays

    Data_Array_Name , Data_Format , Data_Array_Length

    SNMP_DA_1       , FLOAT       , 70

    //================================================================================

    //

    //    Server Side Connections

    //

    Connections

    Adapter , Protocol , SNMP_Community

    N1      , SNMP     , lowdown

    //================================================================================

    //

    //    Remote Client Nodes

    //

    Nodes

    Node_Name , Protocol

    Agent_1   , SNMP

    Remote_Client_Node_Descriptors

    Node_Name , Node_ID , Protocol , Adapter , IP_Address

    Mngr1     , 11      , SNMP     , N1      , 192.168.1.71

    //================================================================================

    //

    //    Trap Specification

    //

     

    Map_Descriptors
    Map_Descriptor_Name, Data_Array_Name, Data_Array_Offset, Function, Node_Name, SNMP_OID, Length, COS_Normal
    Air Conditioner 1 Status, SNMP_DA_1, 00, SNMP_TRAP, Mngr1, 1.3.6.1.4.1.6347.000, 1, 0
    Air Conditioner 2 Status, SNMP_DA_1, 01, SNMP_TRAP, Mngr1, 1.3.6.1.4.1.6347.001, 1, 0
    High Temperature Alarm Status, SNMP_DA_1, 02, SNMP_TRAP, Mngr1, 1.3.6.1.4.1.6347.002, 1, 0
    Low Temperature Alarm Status, SNMP_DA_1, 03, SNMP_TRAP, Mngr1, 1.3.6.1.4.1.6347.003, 1, 0
    Smoke Alarm, SNMP_DA_1, 04, SNMP_TRAP, Mngr1, 1.3.6.1.4.1.6347.004, 1, 0
    Intrusion 1 or 2 Alarm, SNMP_DA_1, 05, SNMP_TRAP, Mngr1, 1.3.6.1.4.1.6347.005, 1, 0
    AC Failure, SNMP_DA_1, 06, SNMP_TRAP, Mngr1, 1.3.6.1.4.1.6347.006, 1, 0
    On UPS Power, SNMP_DA_1, 07, SNMP_TRAP, Mngr1, 1.3.6.1.4.1.6347.007, 1, 0
    UPS Fail, SNMP_DA_1, 08, SNMP_TRAP, Mngr1, 1.3.6.1.4.1.6347.008, 1, 0
    HVAC 1 Fail, SNMP_DA_1, 09, SNMP_TRAP, Mngr1, 1.3.6.1.4.1.6347.009, 1, 0
    HVAC 2 Fail, SNMP_DA_1, 10, SNMP_TRAP, Mngr1, 1.3.6.1.4.1.6347.010, 1, 0

     

    Map_Descriptors
    Map_Descriptor_Name, Data_Array_Name, Data_Array_Offset, Function, Node_Name, SNMP_OID, Length, COS_Normal,COS_Deadband
    COSserverExample, SNMP_DA_1, 11, SNMP_TRAP, Mngr1, 1.3.6.1.4.1.6347.011, 1, COS_Server_Event,0.9

     

    Map_Descriptor_Name,Data_Array_Name,Data_Array_Offset,Function,Node_Name, SNMP_OID,Length,COS_Normal,COS_Deadband
    ,COS_Hi_Alm,COS_LO_Alm
    COSserverEG22222, SNMP_DA_1, 12, SNMP_TRAP, Mngr11.3.6.1.4.1.6347.012, 1,COS_Server_Event,10.0
    ,100,20

Contact Us

Contact us via phone (+1 866-383-1657) or leave a detailed message below for sales, support, or any other needs

*Required Field
*Required Field
I'd like to receive the newsletter. *Check email for confirmation.
*Required Field
8:00am - 12:00pm 12:00pm - 5:00pm