Re: snmpd crashes when wlan0 interface acquire IP address

2020-08-08 Thread Himanshu Sharma
for a response to one of my inquiries, and 4 days > for the other. They might be on holiday. Good luck. > > John > On 10-Jul-2020 6:51 PM, Himanshu Sharma wrote: > > Hi John, > > Thanks for the courtesy . > I am using Subagent. > Here is a thread of discussion on th

AddressSanitizer: attempting free on address which was not malloc()-ed

2020-08-08 Thread Himanshu Sharma
Hi All, I am using the *snmp_synch_response()* api to sync with response whenever I create a SNMP_INFORM pdu . Whenever I call the api snmp_synch response ,I get an address Sanitizer issue. I am attaching the code snippet & stack trace of the address Sanitizer. Can someone help me on this 😞? -Him

Re: snmpd crashes when wlan0 interface acquire IP address

2020-07-10 Thread Himanshu Sharma
ce while initializing the wifi, and restarting it when >> wifi is up. When it starts, it should find all interfaces, unless you've >> changed that in the configuration. >> >> John >> On 08-Jul-2020 5:53 PM, Himanshu Sharma wrote: >> >> Hi John, >> >

Re: snmpd crashes when wlan0 interface acquire IP address

2020-07-09 Thread Himanshu Sharma
> dynamically handle changing interfaces. The only thing I could suggest is > to stop the service while initializing the wifi, and restarting it when > wifi is up. When it starts, it should find all interfaces, unless you've > changed that in the configuration. > > John > On

Re: snmpd crashes when wlan0 interface acquire IP address

2020-07-08 Thread Himanshu Sharma
wifi router ..the wlan0 interface acquires ip address, and snmpd crashes. -Himanshu On Thu, Jul 9, 2020, 02:50 Himanshu Sharma wrote: > Hi John, > > Thanks for prompt reply. > I am using net-snmp version 5.8. > I want SNMP to serve on both ethernet and wifi.When my system bootup

Re: snmpd crashes when wlan0 interface acquire IP address

2020-07-08 Thread Himanshu Sharma
gt; > If none of this helps, please add more information about your system, > snmpd version, and what you are trying to do. > > John > > > On 08-Jul-2020 4:42 PM, Himanshu Sharma wrote: > > +Bill and Larry > > -Himanshu > > On Thu, Jul 9, 2020 at 2:02 AM Himans

Re: snmpd crashes when wlan0 interface acquire IP address

2020-07-08 Thread Himanshu Sharma
+Bill and Larry -Himanshu On Thu, Jul 9, 2020 at 2:02 AM Himanshu Sharma wrote: > Hi All, > > I am facing a very weird issue. > I have 2 interfaces on my system. > *The moment the wlan0 acquires the ip address snmpd crashes.* > If there is only one interface let say *eth0*

snmpd crashes when wlan0 interface acquire IP address

2020-07-08 Thread Himanshu Sharma
Hi All, I am facing a very weird issue. I have 2 interfaces on my system. *The moment the wlan0 acquires the ip address snmpd crashes.* If there is only one interface let say *eth0*.,snmpd works fine. One more problem is *coredump* analysis of crash using gdb, shows different backtrace everytime.

Re: snmpd.conf file public write community name not working

2020-07-06 Thread Himanshu Sharma
Hello All, I found a answer to the problem. its here https://sourceforge.net/p/net-snmp/mailman/message/17349067/ -Himanshu On Sun, Jul 5, 2020 at 4:22 PM Himanshu Sharma wrote: > Hi All, > > I have created a snmpd.conf for writecommunity name to be* "public"* > &am

snmpd.conf file public write community name not working

2020-07-05 Thread Himanshu Sharma
Hi All, I have created a snmpd.conf for writecommunity name to be* "public"* & read community *"public" & "public1"* *If I am changing the (write community name) **secusrwriteOnly* *anything apart from "public" community it works fines.* example : com2sec -Cn Jetdirect secusrwriteOnly default "h

Re: Subagent not connecting back to Master Agent.

2020-05-21 Thread Himanshu Sharma
+ forum On Thu, May 21, 2020 at 11:22 PM Himanshu Sharma < himanshusharma1...@gmail.com> wrote: > Hi Bill, > > Thanks for the response. > I am now able to reconnect to the Master Agent(snmpd) after adding > run_alarms(). > and passing tvp as an argument to select() fu

Subagent not connecting back to Master Agent.

2020-05-13 Thread Himanshu Sharma
Hi All, Recently, I have changed *agent_check_and_process(1),* In the SNMP Subagent code to a *select() & snmp_select_info() to handle outside events* *, Please find the code snippet attached.* I have tried to make *fakeblock=0 *too. Problem I am facing is , If Subagent Process comes up in the