RE: Floating values

2005-11-10 Thread Darren Gamble
Good day, > I believe that you are actually referring to the load > average table in the UCD-SNMP-MIB - yes? In fact, that > table illustrates all three approaches I described yesterday: Bah, yes, sorry. I had thought that these objects were in the host mib. > - an integer representing a fi

RE: Floating values

2005-11-10 Thread Dave Shield
On Wed, 2005-11-09 at 16:09 -0700, Darren Gamble wrote: > Just to add to this, there are a number of "standard" OIDs that do use > this method to represent floating point numbers; there is are load > average objects in the host MIB that comes to mind Talking about "the host MIB" is somewhat mislea

RE: Floating values

2005-11-09 Thread amber.gupta
rings? Amber -Original Message- From: Asim Zaka [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 09, 2005 8:22 PM To: Dave Shield; Amber Gupta (WT01 - Voice & Next Generation Networks) Cc: [email protected] Subject: Re: Floating values Hi Amber and Dave, My s

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

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: 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: 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

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