Thanks Dave for great support!

2009/2/16 Dave Shield <[email protected]>

> 2009/2/16 Alexander Bubnov <[email protected]>:
> > I am playing around with net snmp tutorials and when I register uint64_t
> > variable and try to get it with help of snmpget I can see error result:
> >
> > linux-h110 snmp/mibs# snmpget -v1 -c rwpublic localhost
> > NET-SNMP-TUTORIAL-MIB::nstAgentSubagentObject.0
> > Error in packet
> > Reason: (noSuchName) There is no such variable name in this MIB.
> > Failed object: NET-SNMP-TUTORIAL-MIB::nstAgentSubagentObject.0
>
> That's correct.   SNMPv1 does not support Counter64 syntax.
> This was first introduced with SNMPv2.
>
>
>
> > In case I replace Counter64 by INTEGER (0..18446744073709551615) in
> > NET-SNMP-TUTORIAL-MIB.txt
> > for NET-SNMP-TUTORIAL-MIB::nstAgentSubagentObject.0 - all passed OK.
> >
> > Is it valide to do such replacement: INTEGER (0..18446744073709551615)
> > instead of Counter64 for MIBs V1?
>
> Hmmmm.....   I'm not sure.
> The SNMPv1 specs (in particular, RFC1155) is somewhat vague about the
> valid range of the code INTEGER syntax.
>
> RFC2578 clarified things somewhat, and specifies SimpleSyntax as
>
>    CHOICE {
>        integer-value               -- includes Integer32
>            INTEGER (-2147483648..2147483647),
>        :
>    }
>
> So your definition is certainly not valid for a MIB written using SMIv2.
> (i.e. anything starting with a MODULE-IDENTITY block).
>
> My best guess is that *some* SNMP applications will be happy with such
> a 64-bit INTEGER value, but other tools will not.   For interoperability
> (which
> is one of the main strengths of SNMP), you are probably best off not doing
> this.
>
> The usual techniques are either to split the value over two 32-bit MIB
> objects,
> or to redefine the object to use different (larger) units.
>
>
> Dave
>



-- 
/BR, Alexander
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to