Re: public snmp machines

2007-01-16 Thread Thomas Anders
Alef Veld wrote: > Does anyone know if there is a site with public snmp servers to be > able to use for testing purposes? I could fake some myself but i'd > rather test some actual hosts. test.net-snmp.org (the community strings should be in our tutorials) If it isn't working for you (I haven

Re: rfc: library layering

2007-01-16 Thread Thomas Anders
Robert Story wrote: > On Thu, 11 Jan 2007 13:44:16 -0800 Wes wrote: > WH> > "TA" == Thomas Anders <[EMAIL PROTECTED]> writes: > WH> > WH> TA> Dave Shield wrote: > WH> >> The distinction between libagent and libhelpers doesn't feel as useful > WH> >> as that between these two and libmibs > WH>

about compiler statically

2007-01-16 Thread Clement Hsu
Dear All: I write a codes for scalar with mib2c. And I also write a api to make the program can be developed more smooth. However, the problem is how to compiler these file statically. I mean that if I have a mib module called sss, and its main files with generating by mib2c is sss.c and sss.h. a

Re: SNMP Subagent crash

2007-01-16 Thread Robert Story
On Fri, 12 Jan 2007 10:33:26 -0800 (PST) Venkata wrote: VG> In the process that sends traps, I have no threads now. VG> First I created connection with the master agent and registered for no MIB variables. (I am not calling the agent_check_and_process() any more). VG> When there is a large volu

Re: rfc: library layering

2007-01-16 Thread Robert Story
On Thu, 11 Jan 2007 13:44:16 -0800 Wes wrote: WH> > "TA" == Thomas Anders <[EMAIL PROTECTED]> writes: WH> WH> TA> Dave Shield wrote: WH> >> The distinction between libagent and libhelpers doesn't feel as useful WH> >> as that between these two and libmibs WH> WH> TA> Merging them is significa

Re: question on timeticks and long into char stuffing

2007-01-16 Thread Alef Veld
Ok, I now use this code to get the timeticks, but i only gets 4 bytes (char) The 8 extra allocated bytes were a desperate attempt to get more digits but alas, that does not work. I still only get 4 digits. Does anyone have a better way of doing this ? If i cast the 4th line as in sprintf(data->

Re: question on timeticks and long into char stuffing

2007-01-16 Thread Dave Shield
On 16/01/07, Alef Veld <[EMAIL PROTECTED]> wrote: > I'm not sure what you mean exactly by number 2 though. Do you > mean that the long is defined 32bits on my machine ? Not quite. Rather that TimeTicks is defined as 32 bits, regardless of the architecture of a particular system. Remember SNMP is

Re: question on timeticks and long into char stuffing

2007-01-16 Thread Steve Friedl
On Wed, Jan 17, 2007 at 12:01:19AM +0100, Alef Veld wrote: > Thanks Wes. > I figured out the 1 part. I'm not sure what you mean exactly by > number 2 though. Do you mean > that the long is defined 32bits on my machine ? If so, are you > implying i need an even bigger number to host the long * ?

public snmp machines

2007-01-16 Thread Alef Veld
Hi, Does anyone know if there is a site with public snmp servers to be able to use for testing purposes? I could fake some myself but i'd rather test some actual hosts. Many thanks, Alef - Take Surveys. Earn Cash. Influen

Re: question on timeticks and long into char stuffing

2007-01-16 Thread Alef Veld
Thanks Wes. I figured out the 1 part. I'm not sure what you mean exactly by number 2 though. Do you mean that the long is defined 32bits on my machine ? If so, are you implying i need an even bigger number to host the long * ? I just need a proper way to stuff the long * dereferenced value in

Re: Legacy code. Can send V1 traps. V2 traps result in "Invalid notification format"

2007-01-16 Thread Kapil Sharma
Thanks Dave, that worked. Appreciate your help. Kapil Dave Shield <[EMAIL PROTECTED]> wrote: On 09/01/07, Kapil Sharma wrote: > The only other way I can think of is using netsnmp_variable_list instead of > netsnmp_pdu and calling snmp_varlist_add_var() instead of > snmp_pdu_add_variable(). Do yo

Re: snmpv3/usmUser performance issues

2007-01-16 Thread Wes Hardaker
> "TA" == Thomas Anders <[EMAIL PROTECTED]> writes: TA> I still don't have a good feeling of how much work would be involved here, TA> especially for someone who hasn't done a mib module rewrite before. TA> I'm also curious what helper you (Wes) would suggest here given that usually TA> every

Re: question on timeticks and long into char stuffing

2007-01-16 Thread Wes Hardaker
> "AV" == Alef Veld <[EMAIL PROTECTED]> writes: AV> The other question i have is, how do i calculate the uptime in days, AV> because all i have is the number of timeticks. Or can you actually AV> read out the days. I don't think so, so there must be some algorithm AV> for that. 2 points: 1)

can the agent add nodes to the mib tree?

2007-01-16 Thread Hamid Taromian
i want to add a module to snmp agent inorder to mange my devides at a machine. can i build the mib tree dynamically? imean the can the agent configure my devices and add that nopde to the mib tree? for example we have some devices on one system that we dont have on the other system. but we wan

Fwd: followup 2: snmpget: Error building ASN.1 representation

2007-01-16 Thread Alef Veld
Hi everyone, I still have below problem, i hope someone can tell me what is going on. I would very much appreciate it. I can supply log or code if you need it. It seems to be reproducable. I really like to think it is a bug but i can't fathom the idea no one uses this same setup (snmpv1 co

Re: Bandwidth Monitoring

2007-01-16 Thread Bharat Shetty
You should do what dave says, if it is a product that you are developing you may want to keep the 'wait' period configurable. If there are a lot of such devices you have to think about a database to store the information about the nodes, their poll interval, what to poll for etc. Hope you have co

Re: patch for [libnetsnmp]trapd dependencies?

2007-01-16 Thread Thomas Anders
Dave Shield wrote: > On 15/01/07, Thomas Anders <[EMAIL PROTECTED]> wrote: >> thanks for the Wiki feedback. Do you care to propose a specific patch >> what >> *exactly* you'd like to drop w.r.t. the third issue? > > Appended. Fine by me, especially since I have no idea what this code was ever use

Re: patch for [libnetsnmp]trapd dependencies?

2007-01-16 Thread Dave Shield
On 15/01/07, Thomas Anders <[EMAIL PROTECTED]> wrote: thanks for the Wiki feedback. Do you care to propose a specific patch what *exactly* you'd like to drop w.r.t. the third issue? Appended. Dave Index: apps/snmptrapd.c === RCS f