On 14/11/06, Alef Veld <[EMAIL PROTECTED]> 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?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to