Re: iterate vs scalar [Was: table_data helpers]

2005-04-27 Thread Robert Story
On Wed, 27 Apr 2005 16:00:51 +0100 Dave wrote: DS> On Wed, 2005-04-27 at 15:44, Robert Story wrote: DS> > However, it leaves me wondering why we shouldn't just merge the two. DS> > When would one ever use the instance handler? DS> DS> a) I dunno, ask Wes. That's one of his Ok. Wes? DS> b)

Re: table_data helpers

2005-04-27 Thread Robert Story
On Wed, 27 Apr 2005 16:11:53 +0100 Dave wrote: DS> > DS> And there's been a 'mib2c.container.conf' generator since 5.2. DS> DS> which I wrote following my experiences with describing that DS> particular helper in TBB. I think that, like it or not, the DS> introduction of this config file *has* ef

How to implement tables in 5.0.6

2005-04-27 Thread Toth, Gregory S
We are in the transition process from 4.2.x to 5.0.6 and are attempthing to develop new mib modules using the "new" approach. We ran the new mib modules through the 5.0.6 mib2c and got the appropriate starting points. Doing scalars in 5.0.6 is fairly straightforward but the table implementation is

RPM version of Net-SNMP for ARM

2005-04-27 Thread Stage Iup - Fabrice & Frédéric
Hi all I've tried to use Net-Snmp (found in ELDK iso >>>net-snmp-arm_trg-5.0.6-17_2.arm.rpm ) for arm. This is a Arm target version. so i've installed the agent and when i try to launch it, i've got an error that call libcrypto.so.4 but i've only have some libcrypt libs and no lib called libcrypto

Create own plugin: have a question

2005-04-27 Thread Emmanuel Doguet
Hello to all, I have read all FAQ & DOC ... and Google too, but I need an idea... :( I'm coding a plugin for Net-SNMP (net-snmp-5.1.2-6), all is fine. My trouble is about Table. I'm working with the "iterate method" (*_get_first_data_point, *_get_next_data_point). But I want use dynamic allocating,

Re: table_data helpers

2005-04-27 Thread Dave Shield
On Wed, 2005-04-27 at 15:16, Robert Story wrote: > On Wed, 27 Apr 2005 09:57:14 +0100 Dave wrote: > DS> http://www.net-snmp.org/dev/agent/group__table__container.html > That describes the handler. Note that there is a single function described - > to > get the handler. One function does not an

pass_persist and set requests (wrong-type)

2005-04-27 Thread Jakob Scheck
Hi, i am trying to set some oid values using a perl script started as a 'pass_persist' EXEC in snmpd.conf. It works great except one problem concerning setting wrong types. Although the script is returning "wrong-type" to STDOUT on attempts to set mismatching types, no errors are shown at snmpset

How to use public mibs in my system

2005-04-27 Thread Hongjunli
hi Now, I have built a distributed system. there are several nodes and a gateway ,and every node has a index ,eg,nodeIndex. Gateway is in chage of snmp request. If I want to quiry ifTable of one of node, nodeIndex and ifIndex should be privide. If I can not modify the IF-module,how do I impl

Re: iterate vs scalar [Was: table_data helpers]

2005-04-27 Thread Dave Shield
On Wed, 2005-04-27 at 15:44, Robert Story wrote: > However, it leaves me wondering why we shouldn't just merge the two. > When would one ever use the instance handler? a) I dunno, ask Wes. That's one of his b) If (for some unexplained reason) you wanted to implement a table one elemen

Re: How to add an index to standard mibs

2005-04-27 Thread Robert Story
On Wed, 27 Apr 2005 18:46:42 +0800 Hongjunli wrote: H> we can import some modules ,for example, IMPORTSifMIB H>FROM IF-MIB. Now I want to add an index to ifTable ,how can I do? You absolutely CANNOT change the indexes for ifTable. You can define a new table with ifIndex

Re: table_data helpers

2005-04-27 Thread Robert Story
On Wed, 27 Apr 2005 09:57:14 +0100 Dave wrote: DS> > DS> In terms of public API, the main difference between table_data DS> > DS> and table_container is in terms of how the indexing is handled. DS> > DS> > Actually, the real difference is that table_container doesn't have DS> > an API at all. DS>

handle set requests with pass_persist perl extension

2005-04-27 Thread Jakob Scheck
Hello, I use a perl script as pass_persist EXEC to handle some OIDs. snmpget and snmpgetnext requests work fine but I am not sure about set requests. # snmpget -v 2c -c COMMUNITY HOST OIOD TYPE STRING results in # Error in packet. # Reason: notWritable (That object does not support modification)

Re: iterate vs scalar [Was: table_data helpers]

2005-04-27 Thread Robert Story
On Wed, 27 Apr 2005 10:12:17 +0100 Dave wrote: DS> The same holds true for GET requests for sys{Contact,Location}.1 DS> or sys{Contact,Location}.0.99, etc, etc. In each case, an DS> implementation using the instance handler would return the DS> wrong exception ('noSuchObject'), while the scalar h

Re: Windows WIN32, cygwin and mingw defines

2005-04-27 Thread Robert Story
On Tue, 26 Apr 2005 21:34:57 -0400 Alex wrote: AB> If there are no objections, I would like to clean up the ifdefs for AB> WIN32, mingw and cygwin and document it as: Sounds ok to me. As long as it's ok with Andy (and any other win32 users lurking out there), go for it. -- Robert Story; NET-SNM

How to add an index to standard mibs

2005-04-27 Thread Hongjunli
hi we can import some modules ,for example, IMPORTSifMIB FROM IF-MIB. Now I want to add an index to ifTable ,how can I do?

iterate vs scalar [Was: table_data helpers]

2005-04-27 Thread Dave Shield
On Tue, 2005-04-26 at 21:52, Robert Story wrote: > DS> Compare with scalar vs instance helpers. The scalar helper > DS> is basically just a wrapper round the instance helper. > DS> That works fine, IMO. > > Easy for you to say, you wrote them! Actually, the instance helper is one of Wes'. I wrot

Re: table_data helpers

2005-04-27 Thread Dave Shield
On Tue, 2005-04-26 at 21:52, Robert Story wrote: > On Mon, 25 Apr 2005 17:02:13 +0100 Dave wrote: > DS> In terms of public API, the main difference between table_data > DS> and table_container is in terms of how the indexing is handled. > > Actually, the real difference is that table_container do

handle set requests with pass_persist

2005-04-27 Thread Jakob Scheck
Hello, after some difficulties in subscribing I hope this mail is send ok. Sorry, if there were multiple copies of this question in the list. I use a perl script as pass_persist EXEC to handle some OIDs. snmpget and snmpgetnext requests work fine but I am not sure about set requests. # snmpget -v