Re: How to detect vendor-specific MIB branch under the enterprises(1) MIB?

2011-09-15 Thread Dave Shield
On 15 September 2011 00:34, Martin T m4rtn...@gmail.com wrote: in case I saw only few generic values, I used following command: snmpwalk -v 1 -c public -On I.I.P.P i.e. no explicit starting point. In this case, snmpwalk will assume .1.3.6.1.2.1 so won't attempt to look under the enterprise

Re: Document for modifying the mib2c generated code

2011-09-15 Thread Dave Shield
On 15 September 2011 00:24, N. Karthikeyan karthik_96...@yahoo.com wrote: Could you please let me know whether there is any document available on how to change the mib2c generated code? Not really. I started writing a book on this, but it never really came to fruition. The main problem is

Re: Unable to send SNMP v2 traps by following the tutorial

2011-09-15 Thread Dave Shield
On 14 September 2011 19:30, Disc Magnet discmag...@gmail.com wrote: I just copy-pasted the MIB given in the tutorial: http://www.net-snmp.org/wiki/index.php/TUT:snmptrap#SNMPv2_Traps Ok - we need to add a warning to that page then. This 'MIB' is actually just a fragment, to illustrate how a

Re: How to register OIDs from an Object with the Agent when running embedded

2011-09-15 Thread Dave Shield
On 14 September 2011 18:30, Jon Jon mailing.list.vie...@gmail.com wrote:     my ($handler, $registration_info, $request_info, $requests) = @_;     my $this_request = $request-next(); When run I get the following error: Can't call method next on an undefined value at

API to get the file descriptors for the net-snmp sessions ?

2011-09-15 Thread anand anand
Hello all, We have an application with which we want to integrate the Net-snmp agent x sub agent. Now the subagent uses agent_check_and_process function call which in turns calls select and eventually calls snmp_read ( correct me if i am wrong ). Our application is also socket based and uses

Re: Unexpected agent behaviour when walking a MIB

2011-09-15 Thread Dave Shield
On 15 September 2011 13:24, ramon.padi...@selex-comms.com wrote: Are you saying that the agent, under certain conditions on receipt of a GETNEXT request, can invoke a call on my handler with a mode indicating get (rather than getnext)? In order to answer this properly, I'll have to explain a

Re: How to detect vendor-specific MIB branch under the enterprises(1) MIB?

2011-09-15 Thread Martin T
Dave, thank you for information! regards, martin 2011/9/15 Dave Shield d.t.shi...@liverpool.ac.uk: On 15 September 2011 00:34, Martin T m4rtn...@gmail.com wrote: in case I saw only few generic values, I used following command: snmpwalk -v 1 -c public -On I.I.P.P i.e. no explicit starting

practical uses of snmpdelta

2011-09-15 Thread Martin T
What are the most practical uses of snmpdelta tool? I guess one place this tool comes in handy is for example if one queries router firewall(Juniper router in this example) counter changes to the file and executes the snmpdelta command as a daemon in the background(): snmpdelta -v 2c -c public

Re: practical uses of snmpdelta

2011-09-15 Thread Dave Shield
On 16 September 2011 01:08, Martin T m4rtn...@gmail.com wrote: What are the most practical uses of snmpdelta tool? The other user case would probably be the traffic interface counters. That's the primary purpose, yes. Not just interface counters, but *any* MIB object of type 'Counter'.