RE: Floating values

2005-11-09 Thread amber.gupta
Hi Asim, If you are using OCTECT String to represent float values, your mib should have this object defined as OCTECT String. Aren't you using same MIB at both Manager and Agent side? You can use displayString also by importing it from RFC1213 in your mib. Any restrictions in using displayStrings?

RE: snmpd memory grows on invalid udp requests --- security????

2005-11-09 Thread Fong Tsui
It seems the problem was introduced in net-snmp-5.0.10.2, which was supposed to fix security issue for NETSNMP_TRANSPORT_FLAG_STREAM. It is in snmplib/snmp_api.c. See below, the original (net-snmp-5.0.10) is correct, free(rxbuf). However, in net-snmp-5.0.10.2, it was changed to free(isp->packet),

RE: Floating values

2005-11-09 Thread Darren Gamble
> HI > > I tried many years ago to add floating point as a base type to > the SNMP protocol. However, this was not successful. > > If you really need a floating point type, then best choice > is to use a displayable string representation (which > uses OCTET STRING for the base type). I would sugg

Re: Floating values

2005-11-09 Thread David T. Perkins
HI I tried many years ago to add floating point as a base type to the SNMP protocol. However, this was not successful. If you really need a floating point type, then best choice is to use a displayable string representation (which uses OCTET STRING for the base type). I would suggest that you def

snmp_sess_transport inside callback

2005-11-09 Thread Haizhu Liu
I have this callback function that processes traps received from agent. I used snmp_sess_open() on my application, and used netsnmp_transport *transport = snmp_sess_transport(snmp_sess_pointer(session) ); where session is the one passed to the callback function. but the transport returns as NU

snmpd memory grows on invalid udp requests

2005-11-09 Thread Fong Tsui
Hi, It looks like snmpd buffers invalid udp requests on it's port instead of properly throwing them away. Using udpsic to throw about 5 minutes of garbage traffic at port, snmpd's memory image grows from a slim 5k to a fat 380Megabytes. typical snmpd at startup: PID USER PRI NI SIZE R

snmp_sess_transport and single session API

2005-11-09 Thread Haizhu Liu
I see on the other thread: "Note that it's this 'snmp_sess_transport' API works with the opaque (session_list) pointer - *NOT* the "netsnmp_session" pointer returned by 'snmp_open()'. So you probably want something like: netsnmp_session *sess = snmp_open(...); netsnmp_transport *t = s

test - ignore

2005-11-09 Thread G. S. Marzot
1 2 3 --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/

Re: Floating values

2005-11-09 Thread Robert Story
On Wed, 09 Nov 2005 15:52:57 + Dave wrote: DS> > I would have to change the MIB variable type to OCTET-STRING both DS> > at the manager and the agent side, right? DS> DS> Correct. DS> The two sides must work with the same MIB definitions. DS> Otherwise they're going to get hopelessly confuse

Re: DisMan Event MIB selection

2005-11-09 Thread Dave Shield
On Wed, 2005-11-09 at 12:50 -0500, Robert Story wrote: > DS> What about issuing a warning for the new code (but including it anyway)? > > So, something like this: > > - no configure option, new code, no warning. > - configure event, new code, no warning > - configure event-mib, n

Re: DisMan Event MIB selection

2005-11-09 Thread Robert Story
On Wed, 09 Nov 2005 09:58:03 + Dave wrote: DS> > Are there good reasons for the incompatibilities? DS> DS> Apart from trying to annoy you and Wes, you mean? :-) Yes, apart from that. DS> What do you think, Robert? Yes - there are good reasons DS> for the incompatibilities. Give me a *litt

Re: Floating values

2005-11-09 Thread Dave Shield
On Wed, 2005-11-09 at 16:52 +0200, Asim Zaka wrote: > My snmp agent uses net-snmp's read function var_xyz and returns temperature > readings to the remote snmp manager. The values can be from a range of -200 to > + 300 depending on the sensors being used. a typical value could be "-1.2" > degree ce

Re: Floating values

2005-11-09 Thread Asim Zaka
Hi Amber and Dave, My snmp agent uses net-snmp's read function var_xyz and returns temperature readings to the remote snmp manager. The values can be from a range of -200 to + 300 depending on the sensors being used. a typical value could be "-1.2" degree celcius. - What I working on is converti

Re: snmp bulk get performance

2005-11-09 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. Thanks. ] On Fri,

Re: snmpnetstat for 5.2.2

2005-11-09 Thread Dave Shield
On Mon, 2005-11-07 at 18:33 +0100, Thomas Anders wrote: > Dave, > > the signal handling code (sigmask, sigsetmask, sigblock) in the > snmpnetstat rewrite seems to BSD-ish to compile on SVR4 systems > like Solaris. That's quite possible. I've been working from a BSD starting point, so it's quite

update to snmplib/mib.c to resolve issues with snprint_value

2005-11-09 Thread Larry Adams
All,   I had been struggling with the snprint_value() function for some time.  It appeared to fail when attempting to return results from a string value.  The revised code has resolved that issue for me.  BTB, the problem would only manifect itself in *nix.  Windows was always Aok.  The s

Re: DisMan Event MIB selection

2005-11-09 Thread Thomas Anders
Dave Shield wrote: I could live with issuing a warning about the change, but continuing the configuration to use the new implementation anyway. That wouldn't require touching anything, but would still alert people that things had changed. Or alerting those who bother to read the messages, anyway

Re: Not able to get the IpAddress value properly

2005-11-09 Thread Dave Shield
On Wed, 2005-11-09 at 09:59 +0530, Ramachandrappa, Nataraju Karidasarahalli wrote: >If I send the snmpwalk command I am not getting the > values correctly. (i.e. I have given IpAddress value is > 15.106.208.48 but I am getting the different value). How are you setting this value, and what res

Re: No Response from agent

2005-11-09 Thread Dave Shield
On Wed, 2005-11-09 at 05:02 +, madhan raj wrote: > I am using net-snmp 5.2.1.2. After using "snmpwalk" command the > agent responds partially and telling "No Response" which is shown > below: > system.sysORTable.sysOREntry.sysORUpTime.8 = Timeticks: (0) 0:00:00.00 > system.sysORTable.sysOREn

RE: snmp_sess_close()

2005-11-09 Thread Dave Shield
On Tue, 2005-11-08 at 16:23 -0500, Haizhu Liu wrote: > I have a member function closeSession() and destructor that calls > closeSession() [snip] > If I comment out the actions in destructor, the code runs fine. > I don't understand why. The core seems to yell on double free. All I can su

Re: Floating values

2005-11-09 Thread Dave Shield
On Wed, 2005-11-09 at 10:56 +0200, Asim Zaka wrote: > What data type should I use in MIB definition and in the var_ function if I > want > to return negative decimal values like -1.2? There is no standard support for non-integer numeric values in SNMP. You have three basic choices: - for fixed

Re: How do I return negative (signed) values from var_

2005-11-09 Thread Dave Shield
On Wed, 2005-11-09 at 10:51 +0200, Asim Zaka wrote: > How do I return negative numbers from var_ read function in net-snmp Which particular function(s) are you referring to? > which returns unsigned char *? In general, 'unsigned char *' is used as a pointer to generic data (as Amber guessed cor

Re: DisMan Event MIB selection

2005-11-09 Thread Dave Shield
On Tue, 2005-11-08 at 13:14 -0500, Robert Story wrote: > On Tue, 08 Nov 2005 10:02:12 + Dave wrote: > DS> If you look at the message where I first reported my new implementation, > DS> that explicitly states that there *are* some backwards-compatibility > DS> issues. Mostly fairly minor (e.g.

RE: How do I return negative (signed) values from var_

2005-11-09 Thread amber.gupta
Negatives is possible if object type is integer32 , generic function used to return value does preserve negative value and you should be able to see negative value on query. I tried it and it works. Using unsigned char * for return is to make framework generic I guess, which does not make loss or m

Floating values

2005-11-09 Thread Asim Zaka
Hi, What data type should I use in MIB definition and in the var_ function if I want to return negative decimal values like -1.2? Regards, Asim Pervez Zaka. --- SF.Net email is sponsored by: Tame your development challenges with Apache's Gero

5.2.1.2 Make failed

2005-11-09 Thread Olejniczak, Tomasz (Tomasz)
Hi All, I ran the configure script on SUN 5.9: ./configure --enable-ipv6=yes --prefix=/texusr/tomasz/net-snmp-5.2.1.2_sun --with-openssl=/tnm_vbase/solaris2/openssl/openssl0.9.7-d when i ran make I got following error: making all in /texusr/tomasz/net-snmp-5.2.1.2_sun/agent/helpers making all

Not able to get the IpAddress value properly

2005-11-09 Thread Ramachandrappa, Nataraju Karidasarahalli
Hell Team, I am nataraju working on snmp agent development for one network device using net-snmp tool kit.Our mib contains one table with one index and one scalar objcet and scalar object datatype is IpAddress. I have generated the code using the mib2c and added the necessary values to scalar vari

How do I return negative (signed) values from var_

2005-11-09 Thread Asim Zaka
Hello Everybody, How do I return negative numbers from var_ read function in net-snmp which returns unsigned char *? Regards, Asim Pervez Zaka. --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Serv