Textual Conventions for Type Values

[This is preliminary documentation and subject to change.]

Each MOF syntax type is assigned a syntactical convention used when specifying values for property assignments. The following table defines the MOF syntax type definition and its syntactical representation in the Lex notational convention:

Table 6: Syntactical Conventions for MOF Syntax Types

MOF syntax type Can be empty? Syntactical representation
INTEGER FALSE ( [1-9] ) ( [0-9] )* | ( [0-7] )+ | ( 0x ( ( [0-9] | [a-f] | [A-F] ) + ) )
OCTETSTRING TRUE ( ( [0-9] | [a-f] | [A-F] ) ( [0-9] | [a-f] | [A-F] ) )*
OBJECTIDENTIFIER FALSE ( [1-9] ) ( [0-9] )* ( . ( [1-9] ) ( [0-9] )* ) *
NULL MANDATORY
IPADDRESS FALSE ( [1-9] ) ( [0-9] )* ( . ( [1-9] ) ( [0-9] )* ) 3
COUNTER FALSE ( [1-9] ) ( [0-9] )* | ( [0-7] )+ | ( 0x ( ( [0-9] | [a-f] | [A-F] ) ) + )
GAUGE FALSE ( [1-9] ) ( [0-9] )* | ( [0-7] )+ | ( 0x ( ( [0-9] | [a-f] | [A-F] ) )+ )
TIMETICKS FALSE ( [1-9] ) ( [0-9] )* | ( [0-7] )+ | ( 0x ( ( [0-9] | [a-f] | [A-F] ) )+ )
OPAQUE TRUE ( ( [0-9] | [a-f] | [A-F] ) ( [0-9] | [a-f] | [A-F] ) )*
NETWORKADDRESS FALSE ( [1-9] ) ( [0-9] )* ( . ( [1-9] ) ( [0-9] )+ ) 3
Displaystring TRUE .*
MacAddress FALSE ( [0-9] | [a-f] | [A-F] ) ( [0-9] | [a-f] | [A-F] )
( : ( [0-9] | [a-f] | [A-F] ) ( [0-9] | [a-f] | [A-F] ) ) ) 5
PhysAddress TRUE ( [0-9] | [a-f] | [A-F] ) ( [0-9] | [a-f] | [A-F] )
( : ( [0-9] | [a-f] | [A-F] ) ( [0-9] | [a-f] | [A-F] ) ) ) *
EnumeratedINTEGER FALSE One of enumerated values
BITS TRUE Array of enumerated values
DateTime FALSE ( [1-9] ) ( [0-9] )* '-' ( [1-9] ) ( [0-9] )* '-' ( [1-9] ) ( [0-9] )*

'.'

( [1-9] ) ( [0-9] )* ':' ( [1-9] ) ( [0-9] )* ':' ( [1-9] ) ( [0-9] )* '.' ( [1-9] ) ( [0-9] )*

','

( '+' | '-' ) ( [1-9] ) ( [0-9] )* ':' ( [1-9] ) ( [0-9] )*

SnmpOSIAddress FALSE ( ( [0-9] | [a-f] | [A-F] )+ '/' ( ( [0-9] | [a-f] | [A-F] )+
SnmpUDPAddress FALSE ( [1-9] ) ( [0-9] )* ( . ( [1-9] ) ( [0-9] )+ ) 3 '/' ( [1-9] ) ( [0-9] )*
SnmpIPXAddress FALSE ( [0-9] | [a-f] | [A-F] ) 4 '.' ( ( ( [0-9] | [a-f] | [A-F] ) ( [0-9] | [a-f] | [A-F] ) ) (':' ( [0-9] | [a-f] | [A-F] ) ( [0-9] | [a-f] | [A-F] ) ) 5 ) '.' ( [0-9])+

Note  The NETWORKADDRESS type currently only supports IpAddress; therefore, the syntactical representation is always assumed to be IpAddress.