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:

https://cdn.chipkin.com/assets/uploads/2019/Aug/modbus_14-15-27-02.png


  • 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.

    https://cdn.chipkin.com/articles/wp-content/uploads/2012/04/SNMP_Config.jpg

    192.168.1.71 is the IP address of your Laptop.

    Click OK/Cancel. It doesn't matter.

    https://cdn.chipkin.com/articles/wp-content/uploads/2012/04/SNMP_Discover.png

    Click Discover.

    https://cdn.chipkin.com/articles/wp-content/uploads/2012/04/SNMP_IP.png

    Specify the IP of the Fieldserver/gateway.

    https://cdn.chipkin.com/articles/wp-content/uploads/2012/04/SNMP_Find.jpg

    Click Find.

    When found, it looks like below.

    https://cdn.chipkin.com/articles/wp-content/uploads/2012/04/SNMP_Agent_Add.png

    Check the box.

    Click Add.

    https://cdn.chipkin.com/articles/wp-content/uploads/2012/04/SNMP_AddResult.jpg

    You see the result of the ADD.

    https://cdn.chipkin.com/articles/wp-content/uploads/2012/04/SNMP_Add_Watch.png

    Right Click on the device and select 'Add Watch'.

     

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

    https://cdn.chipkin.com/articles/wp-content/uploads/2012/04/SNMP_Variable.png

     

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

    https://cdn.chipkin.com/articles/wp-content/uploads/2012/04/SNMP_Variable2.jpg

     

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

    https://cdn.chipkin.com/articles/wp-content/uploads/2012/04/SNMP_Variable3.jpg

    https://cdn.chipkin.com/articles/wp-content/uploads/2012/04/SNMP_RUI.jpg

     

    Here you can see the values.

    https://cdn.chipkin.com/articles/wp-content/uploads/2012/04/SNMP_polling.png

     

    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.

    https://cdn.chipkin.com/articles/wp-content/uploads/2012/04/SNMP_Wireshark.jpg

     

    Set the filter to SNMP.

    https://cdn.chipkin.com/articles/wp-content/uploads/2012/04/SNMP_Filter.png

     

    Generate a trap by poking data into offset 11.

    Poke the value 1 into offset 11.

    https://cdn.chipkin.com/articles/wp-content/uploads/2012/04/SNMP_Trap.jpg

    You should see a trap in wireshark.

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

    https://cdn.chipkin.com/articles/wp-content/uploads/2012/04/SNMP_Expand_Trap.jpg

    Set the value of offset 11 back to zero.

    Look for a new trap.

    https://cdn.chipkin.com/articles/wp-content/uploads/2012/04/SNMP_New_Trap.jpg

     

    Expanded view of trap

    https://cdn.chipkin.com/articles/wp-content/uploads/2012/04/SNMP_Expand_Trap2.png

    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.

    https://cdn.chipkin.com/articles/wp-content/uploads/2012/04/SNMP_3_traps.png

    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 , Mngr1 1.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
Message Sent Successfully