On Wed, Oct 18, 2006 at 04:01:50PM -0700, Fong Tsui wrote:
> I need a suggestion from your experts.
>
> I have published MIB with defining 0 in enumerated integer list.
> For example:
> xstate OBJECT-TYPE
> SYNTAX INTEGER {
> disabled(0),
> enabled(1)
> }
> MAX-ACCESS read-only
> STATUS current
> DESCRIPTION
> "The state of a system."
> ::= { xsystem 2 }
>
>
> But,just realized that RFC1155 indicate the 0 should not be used for an
> enumerated INTERGER:
> ========================================================================
> =
> 3.2.1.1. Guidelines for Enumerated INTEGERs
> If an enumerated INTEGER is listed as an object type, then a
> named-number
> having the value 0 shall not be present in the
> list of enumerations. Use of this value is prohibited.
> =======================================================================
>
RFC 1155 is kind of historic. RFC 2578 says:
The INTEGER type (but not the Integer32 type) may also be used to
represent integer-valued information as named-number enumerations.
In this case, only those named-numbers so enumerated may be present
as a value. Note that although it is recommended that enumerated
values start at 1 and be numbered contiguously, any valid value for
Integer32 is allowed for an enumerated value and, further, enumerated
values needn't be contiguously assigned.
> How should I correct them in MIB?
> 1) Do I have to deprecated OID like this and create a new one to correct
> it? Or
No. Nothing breaks if you use 0 so there is no strong reason to
deprecate.
> 2) Can I just fix it in the published MIB?
You can't change published MIBs.
> Since there are many OID like this in MIB, I do hope I can do the
> second choice.
I suggest to do nothing. Also see RFC 4181 for advice in questions
related to the proper usage of the SMI.
/js
--
Juergen Schoenwaelder International University Bremen
<http://www.eecs.iu-bremen.de/> P.O. Box 750 561, 28725 Bremen, Germany
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders