|
From: Jayaprakasha G. N. <jna...@ne...> - 2006-09-21 07:33:58
|
In rfc2578 "Structure of Management Information Version 2 (SMIv2)" it is
mentioned that enumeration is not supported for OCTET STRING ,
=20
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 - - -
=20
=20
I have OID designed as follows,
=20
CountryCode OBJECT-TYPE
SYNTAX OCTET STRING {
None(NONE),
United States(US),
Andorra(AD)
}
MAX-ACCESS read-write
STATUS current
DESCRIPTION
" country code=20
::=3D { mibCountryEntry 30 }
=20
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)
=20
Can anyone tell me about this?
=20
Thanks
-JP
=20
=20
=20
=20
=20
|