In rfc2578 “Structure of Management Information Version 2 (SMIv2)” it is mentioned that enumeration is not supported for OCTET STRING ,
 
Restrictions to Refinement of
     object syntax         range   enumeration     size
     -----------------     -----   -----------     ----
               INTEGER      (1)        (2)           -
             Integer32      (1)         -            -
            Unsigned32      (1)         -            -
          OCTET STRING       -          -           (3)
     OBJECT IDENTIFIER       -          -            -
                  BITS       -         (2)           -
             IpAddress       -          -            -
             Counter32       -          -            -
             Counter64       -          -            -
               Gauge32      (1)         -            -
             TimeTicks       -          -            -

 

 

I have OID designed as follows,

 

CountryCode OBJECT-TYPE

        SYNTAX              OCTET STRING {

                              None(NONE),

                              United States(US),

                              Andorra(AD)

                            }

        MAX-ACCESS          read-write

        STATUS              current

        DESCRIPTION

            " country code

        ::= { mibCountryEntry 30 }

     

When I verified the above OID design with agent, my manager (iReasoning mib browser) able to resolve the enumerated values …

      i.e when my agent sends “US” , manager showed it as “United States” …

I am not sure whether the above design is correct. (enum of OCTET STRING syntax)

 

Can anyone tell me about this?

 

Thanks

-JP

 

 

 

 

 

-------------------------------------------------------------------------
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