Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
app-notes:set-up-snmp [2025/07/09 22:24] – [6. Receiving SNMP traps in Node-RED] grayapp-notes:set-up-snmp [2025/07/16 19:58] (current) – [Prerequisites] gray
Line 14: Line 14:
  
   * NetModule Wireless Router with wireless connection   * NetModule Wireless Router with wireless connection
-  * NetModule Software [[https://share.netmodule.com/public/system-software/4.9/|4.9.0.102]] or newer+  * NetModule Software [[https://share.netmodule.com/public/system-software/5.0/|5.0.0.100]] or newer
   * A license is required for the LXC container   * A license is required for the LXC container
   * Not available for legacy products NB1600, NB2700, NB3700, NB3710   * Not available for legacy products NB1600, NB2700, NB3700, NB3710
Line 189: Line 189:
 ---- ----
  
-* Set up an LXC container / [[app-notes:set-up-lxc]]+      * Set up an LXC container / [[app-notes:set-up-lxc]]
  
 ---- ----
Line 423: Line 423:
 You can copy the code directly into the field here. You can copy the code directly into the field here.
  
-<code>+++++show code|  
 +<code - snmp_flow.json>
 [ [
     {     {
Line 528: Line 529:
 ] ]
 </code> </code>
 +++++
  
 After execution, these objects are stored in the flow. After execution, these objects are stored in the flow.
Line 554: Line 556:
 Insert the node back into the flow using the import function. Insert the node back into the flow using the import function.
  
-<code>+++++show code|  
 +<code - trap_flow.json>
 [ [
     {     {
Line 607: Line 610:
 ] ]
 </code> </code>
 +++++
  
 After execution, these objects are stored in the flow.  After execution, these objects are stored in the flow. 
Line 613: Line 617:
  
 ---- ----
 +
 +Store an SNMP trap event on the router for Dio-out1.
  
 {{ :app-notes:snmp_events_trap.png?800 |}} {{ :app-notes:snmp_events_trap.png?800 |}}
 +
 +Under tcpdump, make a recording of the SNMP trap when switching from dio-out1.
 +
 +<konsole>
 +$ tcpdump -i any -n  port 162
 +tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
 +listening on any, link-type LINUX_SLL (Linux cooked v1), capture size 262144 bytes
 +00:27:14.842826 IP 192.168.1.1.55303 > 192.168.1.100.162:  F=ap U="admin" [!scoped PDU]aa_86_be_0e_08_24_23_1d_15_aa_40_02_bc_4d_ff_c7_cd_4d_c2_af_9c_e3_37_c8_75_00_ff_a2_07_d9_df_c9_38_ab_27_d8_b0_a2_0f_08_31_cb_eb_2b_f5_53_d4_4e_6e_e6_15_40_9b_75_c8_02_e2_12_a7_48_2e_65_ad_6f_e7_aa_7a_f6_64_71_ef_4f_13_53_27_0c_15_78_fb_16_ef_aa_e0_5c
 +00:27:14.842907 IP 192.168.1.1.55303 > 192.168.1.100.162:  F=ap U="admin" [!scoped PDU]aa_86_be_0e_08_24_23_1d_15_aa_40_02_bc_4d_ff_c7_cd_4d_c2_af_9c_e3_37_c8_75_00_ff_a2_07_d9_df_c9_38_ab_27_d8_b0_a2_0f_08_31_cb_eb_2b_f5_53_d4_4e_6e_e6_15_40_9b_75_c8_02_e2_12_a7_48_2e_65_ad_6f_e7_aa_7a_f6_64_71_ef_4f_13_53_27_0c_15_78_fb_16_ef_aa_e0_5c
 +</konsole>
 +
 +When this node is executed, the SNMP trap is issued by the router under this OID.
 +
 +{{ :app-notes:snmp_trap_debug.png?400 |}}
 +
 +----
 +