Re: Wireshirk: net-snmp 5.4.3: table snmpwalk without using GETNEXT?

2011-04-07 Thread Zimmer Hu
Ok, I have found in netsnmp_table_iterator_helper_handler(), it changes all GETNEXT requests to GET. ( Line 778 in table_iterator.c for netsnmp-5.4.3). On Thu, Apr 7, 2011 at 4:23 PM, Zimmer Hu wrote: > Hi, > > I'm using wireshark 1.2.11 to monitor SNMP traffic, I observed when I > snmpwalk th

Re: snmget for v3 => Unknown Object Identifier

2011-04-07 Thread Manjit
Please paste all the output . ( v2 with oid and name) also( v3 with oid and name ). Make sure you have exported variables MIBDIRS and MIBS. Regards, Manjit akshata s harkantra wrote: > Hi, > > I am using snmpget command using v3 for retrieving the variable. > > snmpget -v 3 -u testuser -l noAu

Wireshirk: net-snmp 5.4.3: table snmpwalk without using GETNEXT?

2011-04-07 Thread Zimmer Hu
Hi, I'm using wireshark 1.2.11 to monitor SNMP traffic, I observed when I snmpwalk through MyTable, there are a lot of GETNEXT request sent out, but in my handler, branch GETNEXT doesn't get executed, the string I put there doesn't get printout. Same thing for netSnmpHostsTable and ifTable, they e

snmget for v3 => Unknown Object Identifier

2011-04-07 Thread akshata s harkantra
Hi, I am using snmpget command using v3 for retrieving the variable. snmpget -v 3 -u testuser -l noAuthNoPriv localhost:161 myHwType.0 However, it always throws an error of "Unknown Object Identifier" only for V3. For v2 it works fine. Also, If I specify the OID it gives the output for both V2

Suggestion request for Trap using 64-bit OID

2011-04-07 Thread Singh, Vinay
Hi All, Does anyone have any experience on generating TRAP based upon 64-bit OID ? I am looking for a suggestions on how to send a trap based 64-bit OID. I have learnt that comparison based upon DISMAN/event MIB OID (Max 32-bit) to a 64-bit OID doesn't work properly. IS there any oth

Re: netsnmp table API: netsnmp_extract_iterator_context returns table entry, loop context, or data context? How?

2011-04-07 Thread Zimmer Hu
Well, choice is a good thing, but sometimes it isn't:-) We need time to study each options carefully... On Thu, Apr 7, 2011 at 9:20 AM, Dave Shield wrote: > On 7 April 2011 14:06, Zimmer Hu wrote: > > I'm reading source code try to finger > out how > > netsnmp_

Re: netsnmp table API: netsnmp_extract_iterator_context returns table entry, loop context, or data context? How?

2011-04-07 Thread Dave Shield
On 7 April 2011 14:06, Zimmer Hu wrote: > I'm reading source code try to finger out > how > netsnmp_table_iterator_helper_handler works and why mfd works in another way > (inject_before)? I'd probably suggest that you look at using *either* the MfD framework, *o

Re: netsnmp table API: netsnmp_extract_iterator_context returns table entry, loop context, or data context? How?

2011-04-07 Thread Zimmer Hu
> And the MfD framework is a completely different beast altogether. >The description above is really only aimed at the handler-based >iterator approach. Thanks Dave for your explanation. As you can see, I do get confused by those examples and my code (mfd). What I tried to do is to merge these

Need help on v2 traps forwarding and setting agent-ip

2011-04-07 Thread stephan . hemmert
Hello, Stéphan Hemmert Administrateur SI Service Ingénierie de la Surveillance DISFE/DPI/CDC/INS/INSID - Direction Informatique des Services Financiers et de l'Enseigne [email protected] Tél : 04 73 23 81 56 Adr. postale : 5 rue des Clarisses - CS 30033 -67083 Strasbourg Afin

Re: netsnmp table API: netsnmp_extract_iterator_context returns table entry, loop context, or data context? How?

2011-04-07 Thread Dave Shield
On 7 April 2011 00:48, Zimmer Hu wrote: > So, could somebody tell me what exactly netsnmp_extract_iterator_context > returns? You need to take a step back, and think about the general principles of how the agent processes a request for a table entry. There are essentially two tasks involved: -