On 19/02/2008, Dey, Rajnish <[EMAIL PROTECTED]> wrote:
> I created mib and tried to load on mib browser, but mib is not able to load
> due to syntax error. Here I am using special character (i.e, [+] and [ ' ])
> in syntax field.
>
> Here is the mib snippet:-
>
> ============================================
>  PASSBANDType ::= TEXTUAL-CONVENTION
>   STATUS   current
>   DESCRIPTION
>    "Pass band type."
>   SYNTAX    INTEGER  { undefined ( -1 )
> ,cellular_A'+A(1),cellular_A(2),cellular_A_A'_A2(3) }

> Can anyone tell me how to use these character in MIB ? Is it acceptable ?


No - these are not valid.

See RFC 2578, section 7.1.1, final paragraph

   Finally, a label for a named-number enumeration must consist of one
   or more letters or digits, up to a maximum of 64 characters, and the
   initial character must be a lower-case letter.  (However, labels
   longer than 32 characters are not recommended.)  Note that hyphens
   are not allowed by this specification (except for use by information
   modules converted from SMIv1 which did allow hyphens).



> Then i changed the SYNTAX character ( ' ) with number and ( + ) with
> underscore (_). Mib got loaded without any error.

Strictly speaking, it doesn't look as if underscore is valid either.
I'd suggest you use "smilint" or a similar MIB validation tool to
check the syntax of your MB.  The Net-SNMP parser is relatively
tolerant, and lets through stuff it probably shouldn't.

Dave

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to