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.

516 lines
22 KiB

  1. RFC1316-MIB DEFINITIONS ::= BEGIN
  2. IMPORTS
  3. Counter, TimeTicks, Gauge
  4. FROM RFC1155-SMI
  5. DisplayString
  6. FROM RFC1213-MIB
  7. OBJECT-TYPE
  8. FROM RFC-1212;
  9. -- this is the MIB module for character stream devices
  10. char OBJECT IDENTIFIER ::= { mib-2 19 }
  11. -- Textual Conventions
  12. AutonomousType ::= OBJECT IDENTIFIER
  13. -- The object identifier is an independently extensible type
  14. -- identification value. It may, for example indicate a
  15. -- particular sub-tree with further MIB definitions, or
  16. -- define something like a protocol type or type of
  17. -- hardware.
  18. InstancePointer ::= OBJECT IDENTIFIER
  19. -- The object identifier is a pointer to a specific instance
  20. -- of a MIB object in this agent's implemented MIB. By
  21. -- convention, it is the first object in the conceptual row
  22. -- for the instance.
  23. -- the generic Character group
  24. -- Implementation of this group is mandatory for all
  25. -- systems that offer character ports
  26. charNumber OBJECT-TYPE
  27. SYNTAX INTEGER
  28. ACCESS read-only
  29. STATUS mandatory
  30. DESCRIPTION
  31. "The number of entries in charPortTable, regardless
  32. of their current state."
  33. ::= { char 1 }
  34. -- the Character Port table
  35. charPortTable OBJECT-TYPE
  36. SYNTAX SEQUENCE OF CharPortEntry
  37. ACCESS not-accessible
  38. STATUS mandatory
  39. DESCRIPTION
  40. "A list of port entries. The number of entries is
  41. given by the value of charNumber."
  42. ::= { char 2 }
  43. charPortEntry OBJECT-TYPE
  44. SYNTAX CharPortEntry
  45. ACCESS not-accessible
  46. STATUS mandatory
  47. DESCRIPTION
  48. "Status and parameter values for a character port."
  49. INDEX { charPortIndex }
  50. ::= { charPortTable 1 }
  51. CharPortEntry ::=
  52. SEQUENCE {
  53. charPortIndex
  54. INTEGER,
  55. charPortName
  56. DisplayString,
  57. charPortType
  58. INTEGER,
  59. charPortHardware
  60. AutonomousType,
  61. charPortReset
  62. INTEGER,
  63. charPortAdminStatus
  64. INTEGER,
  65. charPortOperStatus
  66. INTEGER,
  67. charPortLastChange
  68. TimeTicks,
  69. charPortInFlowType
  70. INTEGER,
  71. charPortOutFlowType
  72. INTEGER,
  73. charPortInFlowState
  74. INTEGER,
  75. charPortOutFlowState
  76. INTEGER,
  77. charPortInCharacters
  78. Counter,
  79. charPortOutCharacters
  80. Counter,
  81. charPortAdminOrigin
  82. INTEGER,
  83. charPortSessionMaximum
  84. INTEGER,
  85. charPortSessionNumber
  86. Gauge,
  87. charPortSessionIndex
  88. INTEGER
  89. }
  90. charPortIndex OBJECT-TYPE
  91. SYNTAX INTEGER
  92. ACCESS read-only
  93. STATUS mandatory
  94. DESCRIPTION
  95. "A unique value for each character port. Its value
  96. ranges between 1 and the value of charNumber. By
  97. convention and if possible, hardware port numbers
  98. come first, with a simple, direct mapping. The
  99. value for each port must remain constant at least
  100. from one re-initialization of the network management
  101. agent to the next."
  102. ::= { charPortEntry 1 }
  103. charPortName OBJECT-TYPE
  104. SYNTAX DisplayString (SIZE (0..32))
  105. ACCESS read-write
  106. STATUS mandatory
  107. DESCRIPTION
  108. "An administratively assigned name for the port,
  109. typically with some local significance."
  110. ::= { charPortEntry 2 }
  111. charPortType OBJECT-TYPE
  112. SYNTAX INTEGER { physical(1), virtual(2) }
  113. ACCESS read-only
  114. STATUS mandatory
  115. DESCRIPTION
  116. "The port's type, 'physical' if the port represents
  117. an external hardware connector, 'virtual' if it does
  118. not."
  119. ::= { charPortEntry 3 }
  120. charPortHardware OBJECT-TYPE
  121. SYNTAX AutonomousType
  122. ACCESS read-only
  123. STATUS mandatory
  124. DESCRIPTION
  125. "A reference to hardware MIB definitions specific to
  126. a physical port's external connector. For example,
  127. if the connector is RS-232, then the value of this
  128. object refers to a MIB sub-tree defining objects
  129. specific to RS-232. If an agent is not configured
  130. to have such values, the agent returns the object
  131. identifier:
  132. nullHardware OBJECT IDENTIFIER ::= { 0 0 }
  133. "
  134. ::= { charPortEntry 4 }
  135. charPortReset OBJECT-TYPE
  136. SYNTAX INTEGER { ready(1), execute(2) }
  137. ACCESS read-write
  138. STATUS mandatory
  139. DESCRIPTION
  140. "A control to force the port into a clean, initial
  141. state, both hardware and software, disconnecting all
  142. the port's existing sessions. In response to a
  143. get-request or get-next-request, the agent always
  144. returns 'ready' as the value. Setting the value to
  145. 'execute' causes a reset."
  146. ::= { charPortEntry 5 }
  147. charPortAdminStatus OBJECT-TYPE
  148. SYNTAX INTEGER { enabled(1), disabled(2), off(3),
  149. maintenance(4) }
  150. ACCESS read-write
  151. STATUS mandatory
  152. DESCRIPTION
  153. "The port's desired state, independent of flow
  154. control. 'enabled' indicates that the port is
  155. allowed to pass characters and form new sessions.
  156. 'disabled' indicates that the port is allowed to
  157. pass characters but not form new sessions. 'off'
  158. indicates that the port is not allowed to pass
  159. characters or have any sessions. 'maintenance'
  160. indicates a maintenance mode, exclusive of normal
  161. operation, such as running a test."
  162. ::= { charPortEntry 6 }
  163. charPortOperStatus OBJECT-TYPE
  164. SYNTAX INTEGER { up(1), down(2),
  165. maintenance(3), absent(4), active(5) }
  166. ACCESS read-only
  167. STATUS mandatory
  168. DESCRIPTION
  169. "The port's actual, operational state, independent
  170. of flow control. 'up' indicates able to function
  171. normally. 'down' indicates inability to function
  172. for administrative or operational reasons.
  173. 'maintenance' indicates a maintenance mode,
  174. exclusive of normal operation, such as running a
  175. test. 'absent' indicates that port hardware is not
  176. present. 'active' indicates up with a user present
  177. (e.g. logged in)."
  178. ::= { charPortEntry 7 }
  179. charPortLastChange OBJECT-TYPE
  180. SYNTAX TimeTicks
  181. ACCESS read-only
  182. STATUS mandatory
  183. DESCRIPTION
  184. "The value of sysUpTime at the time the port entered
  185. its current operational state. If the current state
  186. was entered prior to the last reinitialization of
  187. the local network management subsystem, then this
  188. object contains a zero value."
  189. ::= { charPortEntry 8 }
  190. charPortInFlowType OBJECT-TYPE
  191. SYNTAX INTEGER { none(1), xonXoff(2), hardware(3),
  192. ctsRts(4), dsrDtr(5) }
  193. ACCESS read-write
  194. STATUS mandatory
  195. DESCRIPTION
  196. "The port's type of input flow control. 'none'
  197. indicates no flow control at this level or below.
  198. 'xonXoff' indicates software flow control by
  199. recognizing XON and XOFF characters. 'hardware'
  200. indicates flow control delegated to the lower level,
  201. for example a parallel port.
  202. 'ctsRts' and 'dsrDtr' are specific to RS-232-like
  203. ports. Although not architecturally pure, they are
  204. included here for simplicity's sake."
  205. ::= { charPortEntry 9 }
  206. charPortOutFlowType OBJECT-TYPE
  207. SYNTAX INTEGER { none(1), xonXoff(2), hardware(3),
  208. ctsRts(4), dsrDtr(5) }
  209. ACCESS read-write
  210. STATUS mandatory
  211. DESCRIPTION
  212. "The port's type of output flow control. 'none'
  213. indicates no flow control at this level or below.
  214. 'xonXoff' indicates software flow control by
  215. recognizing XON and XOFF characters. 'hardware'
  216. indicates flow control delegated to the lower level,
  217. for example a parallel port.
  218. 'ctsRts' and 'dsrDtr' are specific to RS-232-like
  219. ports. Although not architecturally pure, they are
  220. included here for simplicy's sake."
  221. ::= { charPortEntry 10 }
  222. charPortInFlowState OBJECT-TYPE
  223. SYNTAX INTEGER { none(1), unknown(2), stop(3), go(4) }
  224. ACCESS read-only
  225. STATUS mandatory
  226. DESCRIPTION
  227. "The current operational state of input flow control
  228. on the port. 'none' indicates not applicable.
  229. 'unknown' indicates this level does not know.
  230. 'stop' indicates flow not allowed. 'go' indicates
  231. flow allowed."
  232. ::= { charPortEntry 11 }
  233. charPortOutFlowState OBJECT-TYPE
  234. SYNTAX INTEGER { none(1), unknown(2), stop(3), go(4) }
  235. ACCESS read-only
  236. STATUS mandatory
  237. DESCRIPTION
  238. "The current operational state of output flow
  239. control on the port. 'none' indicates not
  240. applicable. 'unknown' indicates this level does not
  241. know. 'stop' indicates flow not allowed. 'go'
  242. indicates flow allowed."
  243. ::= { charPortEntry 12 }
  244. charPortInCharacters OBJECT-TYPE
  245. SYNTAX Counter
  246. ACCESS read-only
  247. STATUS mandatory
  248. DESCRIPTION
  249. "Total number of characters detected as input from
  250. the port since system re-initialization and while
  251. the port operational state was 'up', 'active', or
  252. 'maintenance', including, for example, framing, flow
  253. control (i.e. XON and XOFF), each occurrence of a
  254. BREAK condition, locally-processed input, and input
  255. sent to all sessions."
  256. ::= { charPortEntry 13 }
  257. charPortOutCharacters OBJECT-TYPE
  258. SYNTAX Counter
  259. ACCESS read-only
  260. STATUS mandatory
  261. DESCRIPTION
  262. "Total number of characters detected as output to
  263. the port since system re-initialization and while
  264. the port operational state was 'up', 'active', or
  265. 'maintenance', including, for example, framing, flow
  266. control (i.e. XON and XOFF), each occurrence of a
  267. BREAK condition, locally-created output, and output
  268. received from all sessions."
  269. ::= { charPortEntry 14 }
  270. charPortAdminOrigin OBJECT-TYPE
  271. SYNTAX INTEGER { dynamic(1), network(2), local(3),
  272. none(4) }
  273. ACCESS read-write
  274. STATUS mandatory
  275. DESCRIPTION
  276. "The administratively allowed origin for
  277. establishing session on the port. 'dynamic' allows
  278. 'network' or 'local' session establishment. 'none'
  279. disallows session establishment."
  280. ::= { charPortEntry 15 }
  281. charPortSessionMaximum OBJECT-TYPE
  282. SYNTAX INTEGER
  283. ACCESS read-write
  284. STATUS mandatory
  285. DESCRIPTION
  286. "The maximum number of concurrent sessions allowed
  287. on the port. A value of -1 indicates no maximum.
  288. Setting the maximum to less than the current number
  289. of sessions has unspecified results."
  290. ::= { charPortEntry 16 }
  291. charPortSessionNumber OBJECT-TYPE
  292. SYNTAX Gauge
  293. ACCESS read-only
  294. STATUS mandatory
  295. DESCRIPTION
  296. "The number of open sessions on the port that are in
  297. the connecting, connected, or disconnecting state."
  298. ::= { charPortEntry 17 }
  299. charPortSessionIndex OBJECT-TYPE
  300. SYNTAX INTEGER
  301. ACCESS read-only
  302. STATUS mandatory
  303. DESCRIPTION
  304. "The value of charSessIndex for the port's first or
  305. only active session. If the port has no active
  306. session, the agent returns the value zero."
  307. ::= { charPortEntry 18 }
  308. -- the Character Session table
  309. charSessTable OBJECT-TYPE
  310. SYNTAX SEQUENCE OF CharSessEntry
  311. ACCESS not-accessible
  312. STATUS mandatory
  313. DESCRIPTION
  314. "A list of port session entries."
  315. ::= { char 3 }
  316. charSessEntry OBJECT-TYPE
  317. SYNTAX CharSessEntry
  318. ACCESS not-accessible
  319. STATUS mandatory
  320. DESCRIPTION
  321. "Status and parameter values for a character port
  322. session."
  323. INDEX { charSessPortIndex, charSessIndex }
  324. ::= { charSessTable 1 }
  325. CharSessEntry ::=
  326. SEQUENCE {
  327. charSessPortIndex
  328. INTEGER,
  329. charSessIndex
  330. INTEGER,
  331. charSessKill
  332. INTEGER,
  333. charSessState
  334. INTEGER,
  335. charSessProtocol
  336. AutonomousType,
  337. charSessOperOrigin
  338. INTEGER,
  339. charSessInCharacters
  340. Counter,
  341. charSessOutCharacters
  342. Counter,
  343. charSessConnectionId
  344. InstancePointer,
  345. charSessStartTime
  346. TimeTicks
  347. }
  348. charSessPortIndex OBJECT-TYPE
  349. SYNTAX INTEGER
  350. ACCESS read-only
  351. STATUS mandatory
  352. DESCRIPTION
  353. "The value of charPortIndex for the port to which
  354. this session belongs."
  355. ::= { charSessEntry 1 }
  356. charSessIndex OBJECT-TYPE
  357. SYNTAX INTEGER
  358. ACCESS read-only
  359. STATUS mandatory
  360. DESCRIPTION
  361. "The session index in the context of the port, a
  362. non-zero positive integer. Session indexes within a
  363. port need not be sequential. Session indexes may be
  364. reused for different ports. For example, port 1 and
  365. port 3 may both have a session 2 at the same time.
  366. Session indexes may have any valid integer value,
  367. with any meaning convenient to the agent
  368. implementation."
  369. ::= { charSessEntry 2 }
  370. charSessKill OBJECT-TYPE
  371. SYNTAX INTEGER { ready(1), execute(2) }
  372. ACCESS read-write
  373. STATUS mandatory
  374. DESCRIPTION
  375. "A control to terminate the session. In response to
  376. a get-request or get-next-request, the agent always
  377. returns 'ready' as the value. Setting the value to
  378. 'execute' causes termination."
  379. ::= { charSessEntry 3 }
  380. charSessState OBJECT-TYPE
  381. SYNTAX INTEGER { connecting(1), connected(2),
  382. disconnecting(3) }
  383. ACCESS read-only
  384. STATUS mandatory
  385. DESCRIPTION
  386. "The current operational state of the session,
  387. disregarding flow control. 'connected' indicates
  388. that character data could flow on the network side
  389. of session. 'connecting' indicates moving from
  390. nonexistent toward 'connected'. 'disconnecting'
  391. indicates moving from 'connected' or 'connecting' to
  392. nonexistent."
  393. ::= { charSessEntry 4 }
  394. charSessProtocol OBJECT-TYPE
  395. SYNTAX AutonomousType
  396. ACCESS read-only
  397. STATUS mandatory
  398. DESCRIPTION
  399. "The network protocol over which the session is
  400. running. Other OBJECT IDENTIFIER values may be
  401. defined elsewhere, in association with specific
  402. protocols. However, this document assigns those of
  403. known interest as of this writing."
  404. ::= { charSessEntry 5 }
  405. wellKnownProtocols OBJECT IDENTIFIER ::= { char 4 }
  406. protocolOther OBJECT IDENTIFIER ::= {wellKnownProtocols 1}
  407. protocolTelnet OBJECT IDENTIFIER ::= {wellKnownProtocols 2}
  408. protocolRlogin OBJECT IDENTIFIER ::= {wellKnownProtocols 3}
  409. protocolLat OBJECT IDENTIFIER ::= {wellKnownProtocols 4}
  410. protocolX29 OBJECT IDENTIFIER ::= {wellKnownProtocols 5}
  411. protocolVtp OBJECT IDENTIFIER ::= {wellKnownProtocols 6}
  412. charSessOperOrigin OBJECT-TYPE
  413. SYNTAX INTEGER { unknown(1), network(2), local(3) }
  414. ACCESS read-only
  415. STATUS mandatory
  416. DESCRIPTION
  417. "The session's source of establishment."
  418. ::= { charSessEntry 6 }
  419. charSessInCharacters OBJECT-TYPE
  420. SYNTAX Counter
  421. ACCESS read-only
  422. STATUS mandatory
  423. DESCRIPTION
  424. "This session's subset of charPortInCharacters."
  425. ::= { charSessEntry 7 }
  426. charSessOutCharacters OBJECT-TYPE
  427. SYNTAX Counter
  428. ACCESS read-only
  429. STATUS mandatory
  430. DESCRIPTION
  431. "This session's subset of charPortOutCharacters."
  432. ::= { charSessEntry 8 }
  433. charSessConnectionId OBJECT-TYPE
  434. SYNTAX InstancePointer
  435. ACCESS read-only
  436. STATUS mandatory
  437. DESCRIPTION
  438. "A reference to additional local MIB information.
  439. This should be the highest available related MIB,
  440. corresponding to charSessProtocol, such as Telnet.
  441. For example, the value for a TCP connection (in the
  442. absence of a Telnet MIB) is the object identifier of
  443. tcpConnState. If an agent is not configured to have
  444. such values, the agent returns the object
  445. identifier:
  446. nullConnectionId OBJECT IDENTIFIER ::= { 0 0 }
  447. "
  448. ::= { charSessEntry 9 }
  449. charSessStartTime OBJECT-TYPE
  450. SYNTAX TimeTicks
  451. ACCESS read-only
  452. STATUS mandatory
  453. DESCRIPTION
  454. "The value of sysUpTime in MIB-2 when the session
  455. entered connecting state."
  456. ::= { charSessEntry 10 }
  457. END