RE: Community string field in netsnmp-session structure gettingcorrupted.

2008-03-26 Thread singh.srajendra
Yes I did it . I also did a printing of the session variables before snmp_open and it was printing correctly but When I passed it to snmp_open and tried printing the variables there I got NULL for trap community string and 0 for trap community length. -Original Message- From: Roy M. Si

Community string field in netsnmp-session structure getting corrupted.

2008-03-26 Thread singh.srajendra
Hi all, I am calling snmp_open(&session) in a C++ function. Before passing session variable to snmp_open I have initialized it properly with the value of peer name , version , community string. But if I print it inside snmp_open() I am getting NULL for community string field but for others ie ver

using net-snmp trap handler code with C++

2008-03-24 Thread singh.srajendra
Hi , While calling snmp_send() for sending a trap packet I am getting the following error No log handling enabled - turning on stderr logging snmp_build: unknown failure what does this error mean ? Thank you for your valuable time. Regards, Rajendra --

RE: Need help in runing AgentX with a different socket address

2007-11-15 Thread singh.srajendra
Hi All, I am trying to run Agentx(subagent) with a different socket address , I modify the snmpd.conf by placing " agentxsocket localhost:705 " after "master agentx" and added to the "subagent.c" file to indicate the subagent should use port 705: " netsnmp_ds_set_string(NETSNMP_DS_APPL

RE: Need help in runing AgentX with a different socket address

2007-11-14 Thread singh.srajendra
From: [EMAIL PROTECTED] on behalf of kumar undurthi Sent: Thu 15/11/2007 08:05 To: net-snmp-users@lists.sourceforge.net Subject: Need help in runing AgentX with a different socket address Hi All, I am trying to run Agentx(subagent) with a different socket