Re: [pysnmp-users] PySNMP v3 Notification receiver
Brought to you by:
elie
From: rajesh c. <cxr...@gm...> - 2016-08-29 14:41:23
|
Hi Paul, I have tried all the possible scenarios which includes 0.0.0.0 address but i still see same behavior. Interesting(and also frustrating) thing is , I can see SNMP trap(see below) on My VM's eth0 but nothing on Listener script :( . mulamall@tpcvm40:~$ sudo tcpdump -i eth0 tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes 15:15:24.047840 IP device.55718 > .snmp-trap: F=ap U=usr-md5-des [!scoped PDU]36_6b_6b_5f_b8_25_36_14_e5_f6_cd_3d_a1_75_bb_e2_c3_3e_f5_68_da_28_c1_41_d5_1f_f1_85_1d_9f_60_c1_89_e5_ad_61_35_94_c9_34_01_70_09_df_39_ac_30_e9_c0_1d_3b_b7_15_67_33_63_3f_fe_1e_56_c1_7d_1d_f3_eb_2d_ca_76_af_03_c7_45_9e_70_9b_eb_b4_5c_b9_f4_c8_d7_17_d2_03_f5_75_6b_b4_79_73_a2_1b_9c_a0_40_13_68_82_e7_1c_14_df_f1_ce_9d_00_a7_dc_1a_d5_fe_0d_e6_2a_0e_81_5a_cd_04_38_cb_1b_6e_53_d5_a4_a3_e9_ee_18_f8_1c_46_95_d8_bc_51_ba_7f_f3_b0_e0_1b_b9_4e_17_03_6d_95_24_3d_ab_be_bc_ea_e1_39_16_d3_cd_54_7e_6b_62_19_8f_8a On Mon, Aug 29, 2016 at 10:30 AM, <Pau...@de...> wrote: > > > On Aug 29, 2016, at 9:55 AM, rajesh chandra <cxr...@gm...> wrote: > > > > Hi, > > > > I have PySNMP notification receiver for SNMP V3 traps as below... > > > > Instead of localhost IP , I have My VM ip -----> for this scenario, I am > not receiving any traps if generate one from outside the VM(I am using > snmptrap command from another machine) but I can see SNMP data when I do > tcpdump on VM eth0. If I generate trap on same machine(My VM) I can see > trap data via PySNMP trap receiver script. I have no issues with network > connectivity and FW is not blocking any of My data. > > ... > > > > # UDP over IPv4 > > config.addSocketTransport( > > snmpEngine, > > udp.domainName, > > udp.UdpTransport().openServerMode(('127.0.0.1', 162)) > > That address/port pair is used as the argument on a socket bind() call. > The address, if specified, means you only want packets from that address. > If you want packets from any address, specify 0.0.0.0. > > paul > > |