NET-SNMP-PASS-MIB.txt 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. NET-SNMP-PASS-MIB DEFINITIONS ::= BEGIN
  2. --
  3. -- Example MIB objects for "pass" and "pass-persist" extension script
  4. --
  5. IMPORTS
  6. MODULE-IDENTITY, OBJECT-TYPE, TimeTicks, IpAddress,
  7. Counter32, Gauge32, Integer32 FROM SNMPv2-SMI
  8. SnmpAdminString FROM SNMP-FRAMEWORK-MIB
  9. netSnmpExamples FROM NET-SNMP-EXAMPLES-MIB
  10. ;
  11. netSnmpPassExamples MODULE-IDENTITY
  12. LAST-UPDATED "200905280000Z"
  13. ORGANIZATION "www.net-snmp.org"
  14. CONTACT-INFO
  15. "postal: Wes Hardaker
  16. P.O. Box 382
  17. Davis CA 95617
  18. email: net-snmp-coders@lists.sourceforge.net"
  19. DESCRIPTION
  20. "Example MIB objects for pass/pass-persist extension script"
  21. ::= { netSnmpExamples 255 }
  22. --
  23. -- Example scalars
  24. --
  25. netSnmpPassString OBJECT-TYPE
  26. SYNTAX SnmpAdminString
  27. MAX-ACCESS read-write
  28. STATUS current
  29. DESCRIPTION "Example string scalar object."
  30. DEFVAL { "Life, the Universe, and Everything" }
  31. ::= { netSnmpPassExamples 1 }
  32. netSnmpPassTimeTicks OBJECT-TYPE
  33. SYNTAX TimeTicks
  34. MAX-ACCESS read-write
  35. STATUS current
  36. DESCRIPTION "Example timetick object."
  37. DEFVAL { 363136200 } -- 42 days, 0:42:42.00
  38. ::= { netSnmpPassExamples 3 }
  39. netSnmpPassIpAddress OBJECT-TYPE
  40. SYNTAX IpAddress
  41. MAX-ACCESS read-write
  42. STATUS current
  43. DESCRIPTION "Example IP Address object."
  44. DEFVAL { '7f000001'H } -- 127.0.0.1
  45. ::= { netSnmpPassExamples 4 }
  46. netSnmpPassCounter OBJECT-TYPE
  47. SYNTAX Counter32
  48. MAX-ACCESS read-only
  49. STATUS current
  50. DESCRIPTION "Example counter object.
  51. Note that this object will always return the value '42'."
  52. ::= { netSnmpPassExamples 5 }
  53. netSnmpPassGauge OBJECT-TYPE
  54. SYNTAX Gauge32
  55. MAX-ACCESS read-write
  56. STATUS current
  57. DESCRIPTION "Example Gauge object."
  58. DEFVAL { 42 }
  59. ::= { netSnmpPassExamples 6 }
  60. netSnmpPassCounter64 OBJECT-TYPE
  61. SYNTAX Counter64
  62. MAX-ACCESS read-only
  63. STATUS current
  64. DESCRIPTION "Example Counter64 object."
  65. ::= { netSnmpPassExamples 7 }
  66. netSnmpPassInteger64 OBJECT-TYPE
  67. SYNTAX Opaque
  68. MAX-ACCESS read-only
  69. STATUS current
  70. DESCRIPTION "Example Opaque Integer64 object."
  71. ::= { netSnmpPassExamples 8 }
  72. netSnmpPassOIDValue OBJECT IDENTIFIER
  73. ::= { netSnmpPassExamples 99 }
  74. --
  75. -- Example Table
  76. --
  77. netSnmpPassTable OBJECT-TYPE
  78. SYNTAX SEQUENCE OF NetSnmpPassEntry
  79. MAX-ACCESS not-accessible
  80. STATUS current
  81. DESCRIPTION "Example table"
  82. ::= { netSnmpPassExamples 2 }
  83. netSnmpPassEntry OBJECT-TYPE
  84. SYNTAX NetSnmpPassEntry
  85. MAX-ACCESS not-accessible
  86. STATUS current
  87. DESCRIPTION "Conceptual row in the example table."
  88. INDEX { netSnmpPassIndex }
  89. ::= {netSnmpPassTable 1 }
  90. NetSnmpPassEntry ::= SEQUENCE {
  91. netSnmpPassIndex Integer32,
  92. netSnmpPassInteger Integer32,
  93. netSnmpPassOID OBJECT IDENTIFIER
  94. }
  95. netSnmpPassIndex OBJECT-TYPE
  96. SYNTAX Integer32
  97. MAX-ACCESS not-accessible
  98. STATUS current
  99. DESCRIPTION "Arbitrary index into the netSnmpPassTable.
  100. Note that there will always be one row, with index 1"
  101. ::= { netSnmpPassEntry 1 }
  102. netSnmpPassInteger OBJECT-TYPE
  103. SYNTAX Integer32
  104. MAX-ACCESS read-write
  105. STATUS current
  106. DESCRIPTION "Example Integer (table) object."
  107. DEFVAL { 42 }
  108. ::= { netSnmpPassEntry 2 }
  109. netSnmpPassOID OBJECT-TYPE
  110. SYNTAX OBJECT IDENTIFIER
  111. MAX-ACCESS read-write
  112. STATUS current
  113. DESCRIPTION "Example OID (table) object."
  114. DEFVAL { netSnmpPassOIDValue }
  115. ::= { netSnmpPassEntry 3 }
  116. END