Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

135 lines
4.3 KiB

  1. RFC1155-SMI DEFINITIONS ::= BEGIN
  2. --
  3. -- Microsoft extracted from RFC1155 and made no changes.
  4. -- $Logfile: N:/agent/mgmtapi/vcs/smi.miv $ $Revision: 1.0 $
  5. --
  6. EXPORTS -- EVERYTHING
  7. internet, directory, mgmt,
  8. experimental, private, enterprises,
  9. OBJECT-TYPE, ObjectName, ObjectSyntax, SimpleSyntax,
  10. ApplicationSyntax, NetworkAddress, IpAddress,
  11. Counter, Gauge, TimeTicks, Opaque;
  12. -- the path to the root
  13. internet OBJECT IDENTIFIER ::= { iso org(3) dod(6) 1 }
  14. directory OBJECT IDENTIFIER ::= { internet 1 }
  15. mgmt OBJECT IDENTIFIER ::= { internet 2 }
  16. experimental OBJECT IDENTIFIER ::= { internet 3 }
  17. private OBJECT IDENTIFIER ::= { internet 4 }
  18. enterprises OBJECT IDENTIFIER ::= { private 1 }
  19. -- definition of object types
  20. OBJECT-TYPE MACRO ::=
  21. BEGIN
  22. TYPE NOTATION ::= "SYNTAX" type (TYPE ObjectSyntax)
  23. "ACCESS" Access
  24. "STATUS" Status
  25. VALUE NOTATION ::= value (VALUE ObjectName)
  26. Access ::= "read-only"
  27. | "read-write"
  28. | "write-only"
  29. | "not-accessible"
  30. Status ::= "mandatory"
  31. | "optional"
  32. | "obsolete"
  33. END
  34. -- names of objects in the MIB
  35. ObjectName ::=
  36. OBJECT IDENTIFIER
  37. -- syntax of objects in the MIB
  38. ObjectSyntax ::=
  39. CHOICE {
  40. simple
  41. SimpleSyntax,
  42. -- note that simple SEQUENCEs are not directly
  43. -- mentioned here to keep things simple (i.e.,
  44. -- prevent mis-use). However, application-wide
  45. -- types which are IMPLICITly encoded simple
  46. -- SEQUENCEs may appear in the following CHOICE
  47. application-wide
  48. ApplicationSyntax
  49. }
  50. SimpleSyntax ::=
  51. CHOICE {
  52. number
  53. INTEGER,
  54. string
  55. OCTET STRING,
  56. object
  57. OBJECT IDENTIFIER,
  58. empty
  59. NULL
  60. }
  61. ApplicationSyntax ::=
  62. CHOICE {
  63. address
  64. NetworkAddress,
  65. counter
  66. Counter,
  67. gauge
  68. Gauge,
  69. ticks
  70. TimeTicks,
  71. arbitrary
  72. Opaque
  73. -- other application-wide types, as they are
  74. -- defined, will be added here
  75. }
  76. -- application-wide types
  77. NetworkAddress ::=
  78. CHOICE {
  79. internet
  80. IpAddress
  81. }
  82. IpAddress ::=
  83. [APPLICATION 0] -- in network-byte order
  84. IMPLICIT OCTET STRING (SIZE (4))
  85. Counter ::=
  86. [APPLICATION 1]
  87. IMPLICIT INTEGER (0..4294967295)
  88. Gauge ::=
  89. [APPLICATION 2]
  90. IMPLICIT INTEGER (0..4294967295)
  91. TimeTicks ::=
  92. [APPLICATION 3]
  93. IMPLICIT INTEGER (0..4294967295)
  94. Opaque ::=
  95. [APPLICATION 4] -- arbitrary ASN.1 value,
  96. IMPLICIT OCTET STRING -- "double-wrapped"
  97. END