RE: Support for tcp with IPv6

2005-05-27 Thread Srini Kode (skode)
> > On Fri, 27 May 2005 10:06:58 -0700, "Srini Kode > (skode)" <[EMAIL PROTECTED]> said: > > Srini> Thanks for the quick response. > Srini> Is tcp supported for IPv6 also in net-snmp-5.1. > Srini> If yes, what are the options I need to pass while starting the > Srini> snmp > > use, tcp6:161

Support for tcp with IPv6

2005-05-27 Thread Srini Kode (skode)
Thanks for the quick response. Is tcp supported for IPv6 also in net-snmp-5.1. If yes, what are the options I need to pass while starting the snmp Thanks Srini > -Original Message- > From: Dave Shield [mailto:[EMAIL PROTECTED] > Sent: Friday, May 27, 2005 1:41 AM > To: Srini Kode (skode

after the second cache_load, got "Error: OID not increasing"

2005-05-27 Thread Emi . Yanagi
Hi, I implemented EtherLike-MIB AgentX subagent after generating template by mib2c and mib2c.mfd.conf. Everything is working fine during the first cache_load, I can snmpwalk through the whole dot3StatsTable. (debug message from the subagent below) _mfd_dot3StatsTable_get_column: column=1, Ind

Re: regarding setting error stat at sub agent.

2005-05-27 Thread Dave Shield
On Fri, 2005-05-27 at 09:54, jigar contractor wrote: > But what if I want to set some error explicitely while > retriving some values using snmpget command. You can't. You *must* stick to the SNMP specifications - that's what standards are all about. The *only* valid errors/exceptions that can b

Re: regarding setting error stat at sub agent.

2005-05-27 Thread jigar contractor
Hi dave,   But what if I want to set some error explicitely while retriving some values using snmpget command. How would I set error in response pdu sent fom sub agent..   jigarDave Shield <[EMAIL PROTECTED]> wrote: On Fri, 2005-05-27 at 08:22, jigar contractor wrote:> I am setting error s

Re: Row creation with table_data helper

2005-05-27 Thread Dave Shield
On Fri, 2005-05-27 at 09:29, Vance Shipley wrote: > On Fri, May 27, 2005 at 09:13:13AM +0100, Dave Shield wrote: > } > } Are you *really* that tight on space that a few extra bytes is > } going to make a difference? > > The point is that to "handle an error" I need to understand what > happene

Re: regarding setting error stat at sub agent.

2005-05-27 Thread Dave Shield
On Fri, 2005-05-27 at 08:22, jigar contractor wrote: > I am setting error state at sub agent using function > netsnmp_set_request_error to SNMP_ERR_RESOURCEUNAVAILABLE. Note that this error is *only* applicable to SET requests. > But whenever I am getting this value using snmpget command

Re: Support for tcp

2005-05-27 Thread Dave Shield
On Thu, 2005-05-26 at 20:01, Srini Kode (skode) wrote: > Does net-snmp-5.1 support snmp requests using tcp. Yes > If yes, what are the options I need to pass while starting > the snmp daemon. Add "tcp:161" to the command used to start the agent. Dave -

Re: UNDO & request->parent_data

2005-05-27 Thread Dave Shield
On Thu, 2005-05-26 at 23:15, Vance Shipley wrote: > In the examples for the table_data helper UNDO is accomplished > by having old and new entries in the row data structure: Mostly because that was a fairly simple way to implement UNDO handling, and fitted in neatly with the documentation I've bee

Re: regarding setting error stat at sub agent.

2005-05-27 Thread jigar contractor
Vance,     I am sure about that as there is on other function that I have added in module which is called and also it is executing properly.. Evan line after netsnmp_set_request_error is also calling. Even this function is returning integer value 13. So it should set error no in request. Now wh

Re: What should a handler return?

2005-05-27 Thread Dave Shield
On Fri, 2005-05-27 at 01:38, Vance Shipley wrote: > When should a handler return an error? It probably doesn't actually matter. The return value is (currently) unused. I originally tended to return the same value being set in the netsnmp_request_set_error call. Wes (who developed the handler fra

Re: Row creation with table_data helper

2005-05-27 Thread Dave Shield
On Thu, 2005-05-26 at 22:51, Vance Shipley wrote: > On Thu, May 26, 2005 at 09:00:08AM +0100, Dave Shield wrote: > } > } (but don't forget to check for null pointers first!) > > Speaking of which ... > > With the table_data helper can I asume that when my handler > is called for a GET request

Re: Row creation with table_data helper

2005-05-27 Thread Dave Shield
On Fri, 2005-05-27 at 03:00, Vance Shipley wrote: > } So if the table was indexed by a single integer value, > } you could retrieve this using > } > } long intIndex = *ti->indexes->val.integer; > } > } (but don't forget to check for null pointers first!) > If the request made it into

regarding setting error stat at sub agent.

2005-05-27 Thread jigar contractor
Hi,     I am setting error state at sub agent using funtion netsnmp_set_request_error  to SNMP_ERR_RESOURCEUNAVAILABLE.  But whever I am getting this value using snmpget command to retrieve this value. It is showing me the error   Error in packetReason: (noSuchName) There is no such variab