Scientific Notation Warning: named number `b10E-2' must not include a hyphen in SMIv2

190 Views Asked by At

I have the integer field with scientific notation. But I have the next warnings:

 pThreshold OBJECT-TYPE
        SYNTAX INTEGER { b10E-2(2), b10E-3(3) }
       (4) warning: named number `b10E-2' must not include a hyphen in SMIv2
       (4) warning: named number `b10E-3' must not include a hyphen in SMIv2
            MAX-ACCESS read-write
            STATUS current
            DESCRIPTION
                "........"
            DEFVAL { b10E-3 }
           ::= { pGeneralEntry 3 }

What's wrong?

1

There are 1 best solutions below

2
On

Have you checked out the standard of SMIv2?

Per RFC 2578, https://www.rfc-editor.org/rfc/rfc2578#page-21 when you state SYNTAX INTEGER { b10E-2(2), b10E-3(3) } you are using the named-number enumerations.

So as labels, b10E-2 and b10E-3 are obviously unqualified as they should not contain hyphens at all.

SMIv1 does allow hyphens but it has been obsolete since the introduction of SMIv2. Thus, NET-SNMP warns you and you should try to remove hyphens.