use private mibs or public mibs?

2009-04-22 Thread Kang Chen
Hi, Dave I try to support the SNMPv3 function in my product, but now I encounter a problem, should I select the public mibs or private mibs? At first, I prefered to select the public mib, but I find it's not so easy to use it. For example, if I use usmUserTable and try to create a new user, I

Re: Core Net-SNMP API

2009-04-22 Thread Dave Shield
2009/4/21 Doug Manley : > I like what you've done, getting the functions grouped nicely at the > top.  It'll provide a much nicer starting point for developers (such > as myself). Thanks - that's definitely the idea. Tidying up the library API (not to mention the library code) is something that h

Re: Table with different columns

2009-04-22 Thread Dave Shield
2009/4/22 Giuseppe Modugno : > I have to define a table (myTable) composed by a common set of > columns (myTable.type and myTabe.sn) and a type-dependent set of > columns. Please see the Host Resources MIB for an example of exactly this arrangement. (hrDeviceTable, etc) Dave --

Table with different columns

2009-04-22 Thread Giuseppe Modugno
Dear list, I have to define a table (myTable) composed by a common set of columns (myTable.type and myTabe.sn) and a type-dependent set of columns. For example, if myTable.type==typeA, there is an additional column that myTable.status; if myTable.type==typeB, there are two additional columns m

Why are Session Timeout and Session Retries values hard coded?

2009-04-22 Thread Logeswari Viswanath
Hi all, Why are the values for the session attributes such as session timeout and retries are hard coded while initializing the session attributes in the function subagent_open_master_session() for the sub-agent? Can't these values be made configurable by the user through the variables age

Re: Net-SNMP and web server

2009-04-22 Thread Dave Shield
2009/4/22 Giuseppe Modugno : > So you mean to translate each GET request via SNMP > into GET request via RS232. Yup. That's the fundamental purpose of the SNMP agent. To accept management requests in a standard format (SNMP), and convert them into equivalent device-dependent requests. (be that an

Re: Net-SNMP and web server

2009-04-22 Thread Giuseppe Modugno
On 22 Apr 2009 at 3:30, dan anderson wrote: > If you can afford the overhead, and the data is small enough that > RS232's limited bandwidth won't be a bottleneck, why don't you write a > simple common library, and just let each get data as they need it? So you mean to translate each GET request vi

Regarding context

2009-04-22 Thread B V Narasimhulu
Hi, How can I use the context ? I have the following entries in the snmpd.conf file: view all included .1 80 rocommunity test -V all slot-1 How can I use the context (i.e slot-1) along with the community(v1/v2) for querying the mibs ? I thought of to query as follows: snmpwalk -v2c -c t

Re: Q: SNMPv3 traps

2009-04-22 Thread Dave Shield
2009/4/22 B V Narasimhulu : > Can someone please reply this query. You are more likely to receive assistance if you post queries to the mailing list, rather than directly to individuals. I know that Wes has been busy with other (paid) work, and is limited in the time he can devote to supporting

Re: Q: SNMPv3 traps

2009-04-22 Thread B V Narasimhulu
Hi, Can someone please reply this query. Thanks & Regards, Narasi. --- On Mon, 20/4/09, B V Narasimhulu wrote: > From: B V Narasimhulu > Subject: Re: Q: SNMPv3 traps > To: "Wes Hardaker" > Cc: "net-snmp-coders" > Date: Monday, 20 April, 2009, 9:34 AM > Hi Wes, > > Have been waiting for yo

Re: Net-SNMP and web server

2009-04-22 Thread dan anderson
> Oh yes, I could use this third approach, but in that case I need to > write the "retrieval routines" two times: in HTTP and in Net-SNMP > agent. If you can afford the overhead, and the data is small enough that RS232's limited bandwidth won't be a bottleneck, why don't you write a simple common

Re: Net-SNMP and web server

2009-04-22 Thread Giuseppe Modugno
On 22 Apr 2009 at 9:41, Dave Shield wrote: > > Anyway, I wonder how these two applications can live together > > sharing most of the variables. > Which variables are you talking about? > The variables used by whatever it is on this device that > you are trying to manage? > Or the variables used

Re: Net-SNMP and web server

2009-04-22 Thread Dave Shield
2009/4/22 Giuseppe Modugno : > I need to let the user to manage a device by SNMP and/or HTTP > Anyway, I wonder how these two applications can live together sharing > most of the variables. Which variables are you talking about? The variables used by whatever it is on this device that you are t

Net-SNMP and web server

2009-04-22 Thread Giuseppe Modugno
I need to let the user to manage a device by SNMP and/or HTTP, as he wants. HTTP would be nice for local complex configuration (i.e., during the first-time installation); SNMP is the best for remote and centralized management of many devices from different manufacturers. Of course I need a SNMP

Translating an OID inside a subagent

2009-04-22 Thread Helmut Ungar
Hello together, I want to write a net-snmp subagent that needs to use the symbolic representation of snmp objects for which it has their OIDs. I have looked through the" mib.c" file but it pretty confused me. Also the source of "snmptranslate" made things no clearer. I wonder if I maybe can qu