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?
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),
> 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
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
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
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
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
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/
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
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
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
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
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
[ 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,
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
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
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
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
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
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
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
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
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.
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
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
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
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
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
28 matches
Mail list logo