Re: type values in mib

This is a discussion on Re: type values in mib within the SNMP Coders forums, part of the Networking and Network Related category; On 14/11/06, Alef Veld <alef@xs4all.nl> wrote: > I'm am trying to use the ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Coders

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-14-2006
Dave Shield
 
Posts: n/a
Default Re: type values in mib

On 14/11/06, Alef Veld <alef@xs4all.nl> wrote:
> I'm am trying to use the values in sysUpTime,ipForwarding and
> ifNumber. I know the last 2 are integers, but i'm not sure about
> sysUpTime.



>From SNMPv2-MIB:


sysUpTime OBJECT-TYPE
SYNTAX TimeTicks
...

>From SNMPv2-SMI:

TimeTicks ::=
[APPLICATION 3]
IMPLICIT INTEGER (0..4294967295)


So sysUpTime is basically an integer as well.
But the library knows how to interpret this type,
and typically displays it in a more meaningful form.




> What type of variable do i need to declare to hold their information
> and how would i best go about interpreting them.



It's not clear exactly what you mean by that.
SNMP requests are held in a "struct variable_list",
which includes a "netsnmp_vardata val" field
to hold the actual value.
See <net-snmp/library/snmp_api.h> for details.

Dave

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?p...rge&CID=DEVDEV
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/...et-snmp-coders
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:56 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0