Re: mtb and snmpwalk problems (bugs?)

2004-11-24 Thread P K
On Wed, 24 Nov 2004 17:56:15 -0500, Coders Robert Story <[EMAIL PROTECTED]> wrote: > On Wed, 24 Nov 2004 10:00:50 +0100 P wrote: > PK> 2) I got some sigsev's after deleting table row. I've changed > > How are you deleting the table row? in _commit function I call some system functions to remove d

Re: SNMPv3 trap issues

2004-11-24 Thread res0d1zz
I have read the Tutorial. It is very helpful. However, I still have a question: As a tutorial example, when I specify createUser with both MD5 and DES in snmptrapd.conf and send trap with authNoPriv, I can receive a trap. I assume if I specify both authProtocol (MD5) and privProtocol (DES) in s

Problems with subagent under uClinux

2004-11-24 Thread Yi Hu
Greetings, I compiled net-snmp libraries(libnetsnmp.a, libnetsnmphelpers.a, libnetsnmpmibs.a, libnetsnmpagent.a) under a nios-elf environment(NIOS Development Kit 3.1) using nios-elf-ar, and succeeded in running snmpd on my board for snmpget/getnext operations. The snmpd handles requests correctl

RE: get struct variable from netsnmp_subtree in 5.2.rc3

2004-11-24 Thread Fong Tsui
From: Robert Story (Coders) [mailto:[EMAIL PROTECTED] RS->The agent doesn't keep data in memory in the tree. The hander must be called to RS->get the data. It would be rather tricky to try and properly set up all the RS->parameters to do this directly, so I'd suggest that you use the callback RS-

RE: get struct variable from netsnmp_subtree in 5.2.rc3

2004-11-24 Thread Fong Tsui
From: Wes Hardaker [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 24, 2004 4:25 PM To: Fong Tsui Cc: [EMAIL PROTECTED] Subject: Re: get struct variable from netsnmp_subtree in 5.2.rc3 WH>The same as a master. Note: you can not query the master agent using WH->a callback. You can o

Re: user-array: row deletion and RowStatus

2004-11-24 Thread Wes Hardaker
> On Wed, 24 Nov 2004 13:09:58 -0500, Robert Story (Coders) <[EMAIL > PROTECTED]> said: Robert> On Wed, 24 Nov 2004 09:19:57 -0800 Wes wrote: WH> Dave> I would hope that such managers wouldn't misinterpret this WH> Dave> definition as saying that this *must* be 5 minutes. Robert> Definit

Re: user-array: row deletion and RowStatus

2004-11-24 Thread Wes Hardaker
> On Wed, 24 Nov 2004 10:42:05 -0800 (PST), "David T. Perkins" <[EMAIL > PROTECTED]> said: David> Well, this discussion points out the problems with the David> RowStatus model, and is a demonstration why many MIB David> definitions and agent designs support ONLY values David> createAndGo(

Re: get struct variable from netsnmp_subtree in 5.2.rc3

2004-11-24 Thread Wes Hardaker
> On Wed, 24 Nov 2004 12:28:15 -0800, "Fong Tsui" <[EMAIL PROTECTED]> said: Fong> 1) register callback function and open a callback session in init_XXX Fong> function Fong> If it is inside a subagent, what callback_master_num should be in Fong> netsnmp_callback_open()? The same as a master.

Re: mtb and snmpwalk problems (bugs?)

2004-11-24 Thread Coders
On Wed, 24 Nov 2004 10:00:50 +0100 P wrote: PK> Bacckground: I have some table that support row creation and destroy. PK> PK> 1) When I'm seting value (variable type is OCTET STRING(SIZE(0..16) ) to PK> empty string ( snmpset ... = '' ) i've got: PK> PK> snmpd: isdnTable/trbIsdnTable_data_set.c:2

Re: user-array: row deletion and RowStatus

2004-11-24 Thread Coders
On Wed, 24 Nov 2004 08:55:26 -0800 Wes wrote: WH> Robert> notReady is only used during row creation Note that I'm playing the devil's advocate here... the array-user code will work as you described, and I think it probably should work that way, but I've recently come to believe that the TC doesn't

Re: user-array: row deletion and RowStatus

2004-11-24 Thread David T. Perkins
HI, Well, this discussion points out the problems with the RowStatus model, and is a demonstration why many MIB definitions and agent designs support ONLY values createAndGo(4), active(1), and destroy(6). To support other values requires that the resource manager or most probably the agent to kee

Re: user-array: row deletion and RowStatus

2004-11-24 Thread Coders
On Wed, 24 Nov 2004 09:19:57 -0800 Wes wrote: WH> Dave> I would hope that such managers wouldn't misinterpret this WH> Dave> definition as saying that this *must* be 5 minutes. Definitely agree w/Dave here... -- Robert Story; NET-SNMP Junkie Support: Archive:

Re: user-array: row deletion and RowStatus

2004-11-24 Thread Wes Hardaker
> On Wed, 24 Nov 2004 16:58:25 +, Dave Shield <[EMAIL PROTECTED]> said: >> The only issue would then be a manager that expects a certain >> behavior of the TC (which is what it has to go on). Dave> Including parsing the free text of the MIB description, I trust. No. Dave> I would hope t

Re: mfd questions

2004-11-24 Thread Coders
On Wed, 24 Nov 2004 16:45:22 + Dave wrote: DS> > The flags that are intended for user modification are stored in the DS> > default-table-myTable.md2 file. DS> DS> OK - thanks. I'll play about with them, and see what happens. DS> DS> Can they be specified via "mib2c -S" as well, DS> or do the

Re: user-array: row deletion and RowStatus

2004-11-24 Thread Wes Hardaker
> On Wed, 24 Nov 2004 15:32:31 +, Dave Shield <[EMAIL PROTECTED]> said: Robert> notReady is only used during row creation Dave> Where does it say that? My guess is that Dave is right, but it should rarely happen. You could put a row into notInService and then it could transition from th

Re: user-array: row deletion and RowStatus

2004-11-24 Thread Dave Shield
Dave> I suggest you take a closer look at the DESCRIPTION field of Dave> such MIB objects as NET-SNMP-AGENT-MIB::nsDebugTokenStatus, Dave> nsLogStatus and NET-SNMP-EXTEND-MIB::nsExtendStatus Wes> Ahh... getting around TC definitions by changing it post-call. Chamging it? I'm just following the

API Call to Get Target and Source IP Address?

2004-11-24 Thread [EMAIL PROTECTED]
Hi,   I have a Linux box controlling a few serial devices; and will like to write a SNMP agent to manage these serial devices from a SNMP manager over a LAN. One way is to assign multiple IP addresses to the Linux box network card; such that each IP address represent a serial device. When th

Re: user-array: row deletion and RowStatus

2004-11-24 Thread Wes Hardaker
> On Wed, 24 Nov 2004 15:55:02 +, Dave Shield <[EMAIL PROTECTED]> said: Dave> I suggest you take a closer look at the DESCRIPTION field of such Dave> MIB objects as NET-SNMP-AGENT-MIB::nsDebugTokenStatus, nsLogStatus Dave> and NET-SNMP-EXTEND-MIB::nsExtendStatus One last point: The IETF

Re: mfd questions

2004-11-24 Thread Dave Shield
> The flags that are intended for user modification are stored in the > default-table-myTable.md2 file. OK - thanks. I'll play about with them, and see what happens. Can they be specified via "mib2c -S" as well, or do they only work via the md2 file? > I completely forgot to mention the 'Dave

Re: user-array: row deletion and RowStatus

2004-11-24 Thread Wes Hardaker
> On Wed, 24 Nov 2004 15:55:02 +, Dave Shield <[EMAIL PROTECTED]> said: Dave> I suggest you take a closer look at the DESCRIPTION field of Dave> such MIB objects as NET-SNMP-AGENT-MIB::nsDebugTokenStatus, Dave> nsLogStatus and NET-SNMP-EXTEND-MIB::nsExtendStatus Ahh... getting around TC

Re: problems in snmpd.conf.5

2004-11-24 Thread Wes Hardaker
> On Sat, 20 Nov 2004 22:59:55 -0500, [EMAIL PROTECTED] said: esr> This is automatically generated email about problems in a man esr> page for which you appear to be responsible. If you are not the esr> right person or list, tell me and I will attempt to correct my esr> database. Actually, y

Re: mfd questions

2004-11-24 Thread Coders
On Wed, 24 Nov 2004 15:32:46 + Dave wrote: DS> It Works! woo hoo! DS> Now I've just got to work out how best to describe all this, and then DS> I can move on to look at the SET support. uh-oh. A whole nother can of worms. ;-) DS> Thanks you, Robert - you've been a great help. That's wh

Re: API Call to Get Target and Source IP Address?

2004-11-24 Thread Wes Hardaker
> On Wed, 24 Nov 2004 16:56:15 +0800, "Francis Tay" <[EMAIL PROTECTED]> > said: Francis> 1) Is there a API call to get the target and source IP Francis>addresses from an Francis> incoming SNMP packet? No, and there is a reason too... (technically, actually, it can be done but I'm go

Re: user-array: row deletion and RowStatus

2004-11-24 Thread Dave Shield
Dave> Then a fuse blows, and all the toasters are knocked out. Dave> Fortunately the SNMP device is powered via a UPS, so can Dave> report the fact ('notReady'). Wes> FYI, the notReady state is not supposed to be used for not active Wes> conditions. Specifically, the rowstatus TC actually says th

Re: SNMPv3 trap issues

2004-11-24 Thread Wes Hardaker
> On Tue, 23 Nov 2004 18:51:17 -0800, <[EMAIL PROTECTED]> said: res0d1zz> I am using 5.0.x, are there any know issues for SNMPv3 trap? Our tutorial ( http://www.net-snmp.org/tutorial-5/commands/ ) has an entire page on SNMPv3 traps and informs. You should read it, as it outlines what you nee

Re: user-array: row deletion and RowStatus

2004-11-24 Thread Dave Shield
Dave> Hmmm... I see what you mean, but I don't think it's as simple as that. Dave> The RowStatus TC feels to be somewhat ambiguous (if not inconsistent). Robert> Yep, I notices the sufficient wording too. I've been hoping that Robert> Mr. Perkins would jump in here with his 2 cents.. Yes - tha

Re: mfd questions

2004-11-24 Thread Dave Shield
It Works! I've got my example (read-only) table working properly, including holes, dynamically calculated column values and wilful misuse of the RowStatus object :-) Now I've just got to work out how best to describe all this, and then I can move on to look at the SET support. Thanks you, Ro

Re: user-array: row deletion and RowStatus

2004-11-24 Thread Wes Hardaker
> On Wed, 24 Nov 2004 10:45:03 +, Dave Shield <[EMAIL PROTECTED]> said: Dave> Then a fuse blows, and all the toasters are knocked out. Fortunately Dave> the SNMP device is powered via a UPS, so can report the fact Dave> ('notReady'). FYI, the notReady state is not supposed to be used for

Re: mfd questions

2004-11-24 Thread Coders
On Wed, 24 Nov 2004 09:50:33 + Dave wrote: DS> I was mislead by the use of the token "TODO". DS> That's tended to be used as a marker for future work - a place where the DS> handling has been simplified a bit (ducking the difficult cases), and DS> usually denotes where we need to come back and

Re: user-array: row deletion and RowStatus

2004-11-24 Thread Coders
On Wed, 24 Nov 2004 10:45:03 + Dave wrote: DS> Dave> I can envisage situations where a table might well be missing two DS> Dave> or three "minor" column values, but still be ready to go live. DS> Robert> I think that the RowStatus TC doesn't allow that. DS> DS> Hmmm... I see what you mean, bu

Re: user-array: row deletion and RowStatus

2004-11-24 Thread Dave Shield
Dave> I can envisage situations where a table might well be missing two Dave> or three "minor" column values, but still be ready to go live. Robert> I think that the RowStatus TC doesn't allow that. Hmmm... I see what you mean, but I don't think it's as simple as that. The RowStatus TC feels to

Re: mfd questions

2004-11-24 Thread Dave Shield
> DS> Give us a chance, Robert! I'm still trying to come to terms with what > DS> this helper does do. I'm nowhere near ready to start looking at what > DS> it *doesn't* do! :-) > > I don't think we are on the same page here... I sent a command to grep the > source for the caterpillers, put t

Re: mtb and snmpwalk problems (bugs?)

2004-11-24 Thread P K
> PK> 2) snmpwalk crash. When I run snmpwalk -On myTable it works fine. > PK> Where I run "snmpwalk myTable" it does not print anything, only crash > PK> with sigsev. "snmpwalk ifTable" works. When I use some older snmpwalk > PK> (5.0.8 or so) it works also with myTable (,,myTable'' is table define

Re: mtb and snmpwalk problems (bugs?)

2004-11-24 Thread P K
On Wed, 17 Nov 2004 12:55:34 -0500, Coders Robert Story <[EMAIL PROTECTED]> wrote: > On Tue, 16 Nov 2004 13:29:30 +0100 P wrote: > PK> 1) I wrote some mib and then generated code using mib2c with mfd. > > Aha, my first victim! :) So there is rest of the story:

API Call to Get Target and Source IP Address?

2004-11-24 Thread Francis Tay
Hi, I have a Linux box controlling a few serial devices; and will like to write a SNMP agent to manage these serial devices from a SNMP manager over a LAN. One way is to assign multiple IP addresses to the Linux box's network card; such that each IP address represent a serial device. When the SNMP

Re: mtb and snmpwalk problems (bugs?)

2004-11-24 Thread P K
On Wed, 24 Nov 2004 09:57:44 +0100, P K <[EMAIL PROTECTED]> wrote: > On Wed, 17 Nov 2004 12:55:34 -0500, Coders Robert Story > <[EMAIL PROTECTED]> wrote: > > On Tue, 16 Nov 2004 13:29:30 +0100 P wrote: > > PK> 1) I wrote some mib and then generated code using mib2c with mfd. > > > > Aha, my first v

Re: OID encoding display for iNetAddress Patch

2004-11-24 Thread Centrum
Any idea why do I still have problem with this? bgpRouteOrigin.ipv4.unicast.ipv4."10.0.96.254"."".8 = INTEGER: igp(1) bgpRouteOrigin.ipv6.unicast.ipv6."20:04:00:00:00:00:00:00:00:00:00:00:00:96:02:54"."0.)4".96 = INTEGER: igp(1) Now with last patch problem is only with displaying