net-snmp 5.1.1 coding

2008-12-21 Thread Nikos Balkanas
Hi, I am very new to snmp coding. I want to add snmp support to my appllication. I hope this is the right list. I would prefer to use the shared library approach if possible. I have gone through some of the 5.x tutorials in the site and created the MIBS. Unfortunately the version that I have i

Re: about net-snmp-5.1.1 cross compile

2008-05-19 Thread Dave Shield
2008/5/19 Tewen Hsieh <[EMAIL PROTECTED]>: > I am sorry. The error message should be > > dlopen failed: /home/wpWlsCore.so: undefined symbol: > netsnmp_create_handler_registration > > dlopen failed: /home/wpWlsBridge.so: undefined symbol: > netsnmp_create_handler_registration OK - so

Re: about net-snmp-5.1.1 cross compile

2008-05-19 Thread Tewen Hsieh
NO. 6, Industry E. Rd. III, Science Park, Hsin-Chu, Taiwan 300, R.O.C. Tel:03-6662595 Ext.1208 E-mail:[EMAIL PROTECTED] - Original Message - From: "Dave Shield" <[EMAIL PROTECTED]> To: "Tewen Hsieh" <[EMAIL PROTECTED]> Cc: Sent: Monday, May 19, 2008 4:3

Re: about net-snmp-5.1.1 cross compile

2008-05-19 Thread Dave Shield
2008/5/19 Tewen Hsieh <[EMAIL PROTECTED]>: > I have tried make LDFLAGS="-all-static" > When I executed "ldd /not/usr/sbin/snmpd", > it showed "not a dynameic executable". That would be correct, if you've compiled it statically. > When I load wpWlsCore.so and wpWlsBridge.so, it showed following

Re: about net-snmp-5.1.1

2008-05-14 Thread Wes Hardaker
> On Mon, 12 May 2008 14:00:07 +0800, "Tewen Hsieh" <[EMAIL PROTECTED]> > said: TH> But when I use "snmpwalk -v 1 -c public localhost system", it only TH> shows "End of MIB". What does it mean? It means you don't have access control to anything in the agent :-) TH> What's the difference

net-snmp-5.1.1

2008-05-14 Thread Tewen Hsieh
Hi, I installed net-snmp-5.1.1 successfully. But I always got a "no such object"response no matter waht get request(ex: get sysDescr) I sent to snmpd. Is this a bug of net-snmp-5.1.1? Or I missed something? Thanks. I havied tried other versions (5.3.2), there is no this error. iTAS

about net-snmp-5.1.1

2008-05-12 Thread Tewen Hsieh
Hi, I just cross compile net-snmp-5.1.1. But when I use "snmpwalk -v 1 -c public localhost system", it only shows "End of MIB". What does it mean? I have tried other version (cross compile 5.3.2), it could send back a correct response. What's the difference in 5.1.

Re: Tables with READ-CREATE row on net-snmp-5.1.1

2008-05-01 Thread Dave Shield
2008/5/1 Baltazar Francois <[EMAIL PROTECTED]>: > we are using version 5.1.1 I've doubtless said this before, but that is a *very* old version, and is no longer being supported. > in order to implement the code we need to use the function > "netsnmp_insert_table_row" which is not present in

Tables with READ-CREATE row on net-snmp-5.1.1

2008-05-01 Thread Baltazar Francois
Many thanks to Dave for his response, now its working fine. Just one more question, we are using version 5.1.1 with a table that include a field "read-create" which shall allow creation of new rows on the table, but in order to implement the code we need to use the function "netsnmp_insert_tabl

Re: NET-SNMP 5.1.1: Help with tables handler

2008-01-18 Thread Dave Shield
On 18/01/2008, Baltazar Francois <[EMAIL PROTECTED]> wrote: > The problem is that I need one single handler function to process SET and > GET commands for several tables of my MIB. Why? The usual model would be to register each table individually, with its own handler function. This allows the

NET-SNMP 5.1.1: Help with tables handler

2008-01-18 Thread Baltazar Francois
Hi, I need some help with net-snmp tables handler. The problem is that I need one single handler function to process SET and GET commands for several tables of my MIB. This handler needs to consult an external module to reply to GET, and needs to pass SET data to an external module for storag

Re: can I use context specific type in net-snmp-5.1.1?

2004-10-19 Thread Dave Shield
[ First - *please* don't mail me privately, without copying any responses to the mailing list. I don't have the time or inclination to offer private, unpaid, SNMP consultancy. Keep discussions to the list, where others can both learn and offer advice. T

Re: can I use context specific type in net-snmp-5.1.1?

2004-10-18 Thread Dave Shield
> SMUX protocol doesn't support multi var-bind. That's not correct. RFC 1227 states: [Section 3] When the SNMP agent receives an SNMP GetRequest-PDU, GetNextRequest- PDU, or SetRequest-PDU the SNMP agent sends an equivalent SNMP PDU containing only those variabl

Re: can I use context specific type in net-snmp-5.1.1?

2004-10-17 Thread Ravi
Let me expalin u what i am doing. I am using net-snmp-5.1.1 library at my agent side. It supports smux protocol even. i am developing the code for my application which acts as SMUX peer. SMUX protocol doesn’t support multi var-bind. Whenever SNMP Get/Set request is sent to SNMP agent

Re: can I use context specific type in net-snmp-5.1.1?

2004-10-15 Thread Coders
On Fri, 15 Oct 2004 00:24:48 -0500 Ravi wrote: R> I am using net-snmp-5.1.1 version for my application. Basically I am R> doing some modification on SMUX peer side to solve the rowstatus R> problem. R> R> In my mib I ve defined SYNTAX of variable rowstatus as ROWSTATUS R> o

can I use context specific type in net-snmp-5.1.1?

2004-10-14 Thread Ravi
Hi all .. I am using net-snmp-5.1.1 version for my application. Basically I am doing some modification on SMUX peer side to solve the rowstatus problem. In my mib I ve defined SYNTAX of variable rowstatus as ROWSTATUS only . Is there any way out by which I can come to know it's type