Re: SNMPv3 support in SNMP trap daemon software

2010-07-22 Thread Gaurav Chaturvedi
Hi Dave, Thanks for your response so far. Actually, the final problem is in comparing the engine-id received in UDP packet with that in user database. If I send engine-id using command: snmptrap -e *0x0102030405* -v 3 -u administrator -a MD5 -A mypassword -l authNoPriv -d localhost 42

Re: Reg: where we can get snmpsettable value.

2010-07-22 Thread Dave Shield
[ First - *please* don't mail me privately, without copying any responses to the mailing list. I don't have the time or inclination to offer private, unpaid, SNMP consultancy. Keep discussions to the list, where others can both learn and offer advice. Thanks. ] On 22

Re: SNMPv3 support in SNMP trap daemon software

2010-07-22 Thread Dave Shield
On 22 July 2010 07:49, Gaurav Chaturvedi gauravchaturve...@gmail.com wrote: If I send engine-id using command [snmptrap]: This is stored in u_char * engine_id as engine_id[0] = 0x01     engine_id[1] = 0x02    

Re: Traps/Informs

2010-07-22 Thread Martin Townsend
On 21/07/2010 06:05, Gaurav Chaturvedi wrote: Hi Martin, Please use the following code after your mentioned part of code. You need to call snmp_sess_select_info, select and snmp_sess_read after snmp_sess_read() function. These functions help in reading the data from socket and call the

Re: Traps/Informs

2010-07-22 Thread Gaurav Chaturvedi
Hi Martin, Its good that you got the solution now. Following are the functions which can be used in your case as per the requirement: *print_objid*, *fprint_objid*, *snprint_objid Synatx: **void print_objid(const oid ***objid**, size_t* *objidlen**); void fprint_objid(FILE ***fp**, const oid

Re: Traps/Informs

2010-07-22 Thread Dave Shield
On 22 July 2010 10:24, Gaurav Chaturvedi gauravchaturve...@gmail.com wrote: Following are the functions which can be used in your case as per the requirement: print_objid, fprint_objid, snprint_objid Those will return the name of the MIB object (formatted according to the current output

Re: Reg: where we can get snmpsettable value.

2010-07-22 Thread Thazhai Arasan
Sorry Dave, But when i print the var_val in function it is showing another value instead of the settable value. Is there any register or handler or header function is there to get the settable value from CLI to var_val. Regards, Thazhaiarasan R. On Thu, Jul 22, 2010 at 3:10 AM, Dave

snmpgetnext problem when varbinds include a table index

2010-07-22 Thread RamaKrishna DV
Hi Our product has net-snmp 5.4.1 as the agent, which we ported and added our config APIs.   We are seeing a problem when snmpgetnext is issued with multiple varbinds, and table index is one of the objects being requested. It works fine if an index object is not there in the var binds. In

Re: Traps/Informs

2010-07-22 Thread Martin Townsend
Hi, A couple more questions. 1) How to close transport and session down. I used if(mgr_p-session_p) { SNMPD_LOG(LOG_INFO, SNMPD_LOG_GROUP_TRAP, Closing session.); snmp_sess_close(mgr_p-session_p); } if(mgr_p-transport_trap_server_p) { SNMPD_LOG(LOG_INFO,

Net-SNMP 5.5 tcpConnTable problem

2010-07-22 Thread IanA
Hi, I hope I am not double-posting, but I did not see this post of 21-Jul-10 in the archives. I am now getting more used to the web site and controls. I am running Net-SNMP 5.5 on an AIX 5.3 OS system. When I try to get the tcpConnTable (1.3.6.1.2.1.6.13.1) Net-SNMP responds with OID for

Re: configure: error: Perl support requires --enable-shared

2010-07-22 Thread Thomas Anders
Lissa Valletta wrote: Why do I get the error when I have ./configure --enable-shared --with-perl-modules I thought I was satisfying the requirement. What net-snmp version on what system? +Thomas -- This

Re: configure: error: Perl support requires --enable-shared

2010-07-22 Thread Lissa Valletta
net-snmp.5.4.2.1 Lissa K. Valletta 414/3-8 Poughkeepsie, NY 12601 (tie 293) 433-3102 From: Thomas Anders thomas.and...@blue-cable.de To: Lissa Valletta/Poughkeepsie/i...@ibmus Cc: Net-snmp-users@lists.sourceforge.net Date: 07/22/2010 11:29 AM Subject: Re: configure: error: Perl support

lexographic issue with get-next

2010-07-22 Thread Joan Landry
I am trying to debug the net-snmp code and would be very appreciative if someone can point me to where the function resides that takes an incoming get-next request and determines the correct instance to respond with from a lexographically perspective of the incoming request. There is a bug in

Re: configure: error: Perl support requires --enable-shared

2010-07-22 Thread Lissa Valletta
Another question. I am trying to build on Perl 5.10.1. I want to build the perl rpm also and am having problems.Have you done this and are there any suggestions because my spec file that worked on 5.8.8 is not working on 5.10.Does it have to do with there no longer being a

RE: trap formatting

2010-07-22 Thread Mike Ayers
From: Mike Ayers [mailto:mike_ay...@tva.tvworks.com] Sent: Friday, July 16, 2010 11:32 AM I put this line in my snmptrapd.conf: format2 %t %B %P %V,% %v\n ...which I thought would insert the varbind list with comma separators, but it gags: [SNIP] host snmptrapd -C -c