logstash-input-snmp 0.1.0.beta4 → 0.1.0.beta5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (309) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +5 -0
  3. data/lib/logstash/inputs/snmp.rb +75 -12
  4. data/lib/logstash/inputs/snmp/base_client.rb +162 -0
  5. data/lib/logstash/inputs/snmp/client.rb +11 -109
  6. data/lib/logstash/inputs/snmp/clientv3.rb +139 -0
  7. data/lib/logstash/inputs/snmp/mib.rb +22 -20
  8. data/lib/mibs/ietf/ACCOUNTING-CONTROL-MIB.dic +1316 -0
  9. data/lib/mibs/ietf/ADSL-LINE-EXT-MIB.dic +1724 -0
  10. data/lib/mibs/ietf/ADSL-LINE-MIB.dic +7297 -0
  11. data/lib/mibs/ietf/ADSL-TC-MIB.dic +160 -0
  12. data/lib/mibs/ietf/ADSL2-LINE-MIB.dic +8663 -0
  13. data/lib/mibs/ietf/ADSL2-LINE-TC-MIB.dic +1462 -0
  14. data/lib/mibs/ietf/AGENTX-MIB.dic +817 -0
  15. data/lib/mibs/ietf/AGGREGATE-MIB.dic +708 -0
  16. data/lib/mibs/ietf/ALARM-MIB.dic +1734 -0
  17. data/lib/mibs/ietf/APM-MIB.dic +2870 -0
  18. data/lib/mibs/ietf/APPC-MIB.dic +8687 -0
  19. data/lib/mibs/ietf/APPLETALK-MIB.dic +4399 -0
  20. data/lib/mibs/ietf/APPLICATION-MIB.dic +3750 -0
  21. data/lib/mibs/ietf/APPN-DLUR-MIB.dic +972 -0
  22. data/lib/mibs/ietf/APPN-MIB.dic +9364 -0
  23. data/lib/mibs/ietf/APPN-TRAP-MIB.dic +664 -0
  24. data/lib/mibs/ietf/APS-MIB.dic +2430 -0
  25. data/lib/mibs/ietf/ARC-MIB.dic +552 -0
  26. data/lib/mibs/ietf/ATM-ACCOUNTING-INFORMATION-MIB.dic +816 -0
  27. data/lib/mibs/ietf/ATM-MIB.dic +4104 -0
  28. data/lib/mibs/ietf/ATM-TC-MIB.dic +914 -0
  29. data/lib/mibs/ietf/ATM2-MIB.dic +4715 -0
  30. data/lib/mibs/ietf/BFD-STD-MIB.dic +2367 -0
  31. data/lib/mibs/ietf/BFD-TC-STD-MIB.dic +202 -0
  32. data/lib/mibs/ietf/BGP4-MIB.dic +1931 -0
  33. data/lib/mibs/ietf/BLDG-HVAC-MIB.dic +812 -0
  34. data/lib/mibs/ietf/BRIDGE-MIB.dic +2257 -0
  35. data/lib/mibs/ietf/CAPWAP-BASE-MIB.dic +4128 -0
  36. data/lib/mibs/ietf/CAPWAP-DOT11-MIB.dic +482 -0
  37. data/lib/mibs/ietf/CHARACTER-MIB.dic +1140 -0
  38. data/lib/mibs/ietf/CIRCUIT-IF-MIB.dic +493 -0
  39. data/lib/mibs/ietf/CLNS-MIB.dic +1702 -0
  40. data/lib/mibs/ietf/COFFEE-POT-MIB.dic +282 -0
  41. data/lib/mibs/ietf/COPS-CLIENT-MIB.dic +1270 -0
  42. data/lib/mibs/ietf/DECNET-PHIV-MIB.dic +5837 -0
  43. data/lib/mibs/ietf/DIAL-CONTROL-MIB.dic +2139 -0
  44. data/lib/mibs/ietf/DIFFSERV-CONFIG-MIB.dic +378 -0
  45. data/lib/mibs/ietf/DIFFSERV-MIB.dic +5073 -0
  46. data/lib/mibs/ietf/DIRECTORY-SERVER-MIB.dic +1041 -0
  47. data/lib/mibs/ietf/DISMAN-EVENT-MIB.dic +3151 -0
  48. data/lib/mibs/ietf/DISMAN-EXPRESSION-MIB.dic +1716 -0
  49. data/lib/mibs/ietf/DISMAN-NSLOOKUP-MIB.dic +698 -0
  50. data/lib/mibs/ietf/DISMAN-PING-MIB.dic +2635 -0
  51. data/lib/mibs/ietf/DISMAN-SCHEDULE-MIB.dic +1744 -0
  52. data/lib/mibs/ietf/DISMAN-SCRIPT-MIB.dic +2820 -0
  53. data/lib/mibs/ietf/DISMAN-TRACEROUTE-MIB.dic +3239 -0
  54. data/lib/mibs/ietf/DLSW-MIB.dic +5635 -0
  55. data/lib/mibs/ietf/DNS-RESOLVER-MIB.dic +1765 -0
  56. data/lib/mibs/ietf/DNS-SERVER-MIB.dic +1593 -0
  57. data/lib/mibs/ietf/DOCS-BPI-MIB.dic +2634 -0
  58. data/lib/mibs/ietf/DOCS-CABLE-DEVICE-MIB.dic +5042 -0
  59. data/lib/mibs/ietf/DOCS-IETF-BPI2-MIB.dic +5478 -0
  60. data/lib/mibs/ietf/DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB.dic +2447 -0
  61. data/lib/mibs/ietf/DOCS-IETF-QOS-MIB.dic +4886 -0
  62. data/lib/mibs/ietf/DOCS-IETF-SUBMGT-MIB.dic +1331 -0
  63. data/lib/mibs/ietf/DOCS-IF-MIB.dic +7980 -0
  64. data/lib/mibs/ietf/DOT12-IF-MIB.dic +1066 -0
  65. data/lib/mibs/ietf/DOT12-RPTR-MIB.dic +2669 -0
  66. data/lib/mibs/ietf/DOT3-EPON-MIB.dic +3297 -0
  67. data/lib/mibs/ietf/DOT3-OAM-MIB.dic +2830 -0
  68. data/lib/mibs/ietf/DS0-MIB.dic +466 -0
  69. data/lib/mibs/ietf/DS0BUNDLE-MIB.dic +468 -0
  70. data/lib/mibs/ietf/DS1-MIB.dic +4890 -0
  71. data/lib/mibs/ietf/DS3-MIB.dic +2719 -0
  72. data/lib/mibs/ietf/DSA-MIB.dic +888 -0
  73. data/lib/mibs/ietf/DSMON-MIB.dic +6177 -0
  74. data/lib/mibs/ietf/DVB-RCS-MIB.dic +5764 -0
  75. data/lib/mibs/ietf/EBN-MIB.dic +1026 -0
  76. data/lib/mibs/ietf/EFM-CU-MIB.dic +4335 -0
  77. data/lib/mibs/ietf/ENTITY-MIB.dic +2235 -0
  78. data/lib/mibs/ietf/ENTITY-SENSOR-MIB.dic +653 -0
  79. data/lib/mibs/ietf/ENTITY-STATE-MIB.dic +457 -0
  80. data/lib/mibs/ietf/ENTITY-STATE-TC-MIB.dic +260 -0
  81. data/lib/mibs/ietf/ETHER-CHIPSET-MIB.dic +787 -0
  82. data/lib/mibs/ietf/EtherLike-MIB.dic +2548 -0
  83. data/lib/mibs/ietf/FC-MGMT-MIB.dic +3465 -0
  84. data/lib/mibs/ietf/FCIP-MGMT-MIB.dic +1596 -0
  85. data/lib/mibs/ietf/FDDI-SMT73-MIB.dic +3378 -0
  86. data/lib/mibs/ietf/FIBRE-CHANNEL-FE-MIB.dic +2504 -0
  87. data/lib/mibs/ietf/FLOAT-TC-MIB.dic +128 -0
  88. data/lib/mibs/ietf/FLOW-METER-MIB.dic +3201 -0
  89. data/lib/mibs/ietf/FORCES-MIB.dic +598 -0
  90. data/lib/mibs/ietf/FR-ATM-PVC-SERVICE-IWF-MIB.dic +1601 -0
  91. data/lib/mibs/ietf/FR-MFR-MIB.dic +1351 -0
  92. data/lib/mibs/ietf/FRAME-RELAY-DTE-MIB.dic +1688 -0
  93. data/lib/mibs/ietf/FRNETSERV-MIB.dic +3940 -0
  94. data/lib/mibs/ietf/FRSLD-MIB.dic +2580 -0
  95. data/lib/mibs/ietf/Finisher-MIB.dic +1416 -0
  96. data/lib/mibs/ietf/GMPLS-LABEL-STD-MIB.dic +965 -0
  97. data/lib/mibs/ietf/GMPLS-LSR-STD-MIB.dic +693 -0
  98. data/lib/mibs/ietf/GMPLS-TC-STD-MIB.dic +180 -0
  99. data/lib/mibs/ietf/GMPLS-TE-STD-MIB.dic +2542 -0
  100. data/lib/mibs/ietf/GSMP-MIB.dic +2468 -0
  101. data/lib/mibs/ietf/HC-ALARM-MIB.dic +1050 -0
  102. data/lib/mibs/ietf/HC-PerfHist-TC-MIB.dic +310 -0
  103. data/lib/mibs/ietf/HC-RMON-MIB.dic +4456 -0
  104. data/lib/mibs/ietf/HDSL2-SHDSL-LINE-MIB.dic +3955 -0
  105. data/lib/mibs/ietf/HOST-RESOURCES-MIB.dic +2453 -0
  106. data/lib/mibs/ietf/HPR-IP-MIB.dic +640 -0
  107. data/lib/mibs/ietf/HPR-MIB.dic +1959 -0
  108. data/lib/mibs/ietf/IANA-ITU-ALARM-TC-MIB.dic +936 -0
  109. data/lib/mibs/ietf/IF-CAP-STACK-MIB.dic +356 -0
  110. data/lib/mibs/ietf/IF-INVERTED-STACK-MIB.dic +220 -0
  111. data/lib/mibs/ietf/IF-MIB.dic +2753 -0
  112. data/lib/mibs/ietf/IFCP-MGMT-MIB.dic +1717 -0
  113. data/lib/mibs/ietf/IGMP-STD-MIB.dic +809 -0
  114. data/lib/mibs/ietf/INET-ADDRESS-MIB.dic +570 -0
  115. data/lib/mibs/ietf/INTEGRATED-SERVICES-GUARANTEED-MIB.dic +319 -0
  116. data/lib/mibs/ietf/INTEGRATED-SERVICES-MIB.dic +1196 -0
  117. data/lib/mibs/ietf/INTERFACETOPN-MIB.dic +1705 -0
  118. data/lib/mibs/ietf/IP-FORWARD-MIB.dic +1853 -0
  119. data/lib/mibs/ietf/IP-MIB.dic +7064 -0
  120. data/lib/mibs/ietf/IPATM-IPMC-MIB.dic +4830 -0
  121. data/lib/mibs/ietf/IPFIX-MIB.dic +2334 -0
  122. data/lib/mibs/ietf/IPFIX-SELECTOR-MIB.dic +215 -0
  123. data/lib/mibs/ietf/IPMCAST-MIB.dic +3390 -0
  124. data/lib/mibs/ietf/IPMROUTE-STD-MIB.dic +1246 -0
  125. data/lib/mibs/ietf/IPOA-MIB.dic +2372 -0
  126. data/lib/mibs/ietf/IPS-AUTH-MIB.dic +1609 -0
  127. data/lib/mibs/ietf/IPSEC-SPD-MIB.dic +3989 -0
  128. data/lib/mibs/ietf/IPV6-FLOW-LABEL-MIB.dic +110 -0
  129. data/lib/mibs/ietf/IPV6-ICMP-MIB.dic +748 -0
  130. data/lib/mibs/ietf/IPV6-MIB.dic +2028 -0
  131. data/lib/mibs/ietf/IPV6-MLD-MIB.dic +659 -0
  132. data/lib/mibs/ietf/IPV6-TCP-MIB.dic +332 -0
  133. data/lib/mibs/ietf/IPV6-UDP-MIB.dic +209 -0
  134. data/lib/mibs/ietf/ISCSI-MIB.dic +4613 -0
  135. data/lib/mibs/ietf/ISDN-MIB.dic +1796 -0
  136. data/lib/mibs/ietf/ISIS-MIB.dic +6215 -0
  137. data/lib/mibs/ietf/ISNS-MIB.dic +6578 -0
  138. data/lib/mibs/ietf/ITU-ALARM-MIB.dic +665 -0
  139. data/lib/mibs/ietf/ITU-ALARM-TC-MIB.dic +137 -0
  140. data/lib/mibs/ietf/Job-Monitoring-MIB.dic +2519 -0
  141. data/lib/mibs/ietf/L2TP-MIB.dic +4050 -0
  142. data/lib/mibs/ietf/LANGTAG-TC-MIB.dic +104 -0
  143. data/lib/mibs/ietf/LISP-MIB.dic +4067 -0
  144. data/lib/mibs/ietf/LMP-MIB.dic +5166 -0
  145. data/lib/mibs/ietf/MALLOC-MIB.dic +2156 -0
  146. data/lib/mibs/ietf/MAU-MIB.dic +2619 -0
  147. data/lib/mibs/ietf/MIDCOM-MIB.dic +2856 -0
  148. data/lib/mibs/ietf/MIOX25-MIB.dic +828 -0
  149. data/lib/mibs/ietf/MIP-MIB.dic +3473 -0
  150. data/lib/mibs/ietf/MOBILEIPV6-MIB.dic +5228 -0
  151. data/lib/mibs/ietf/MPLS-FTN-STD-MIB.dic +1594 -0
  152. data/lib/mibs/ietf/MPLS-L3VPN-STD-MIB.dic +2548 -0
  153. data/lib/mibs/ietf/MPLS-LC-ATM-STD-MIB.dic +491 -0
  154. data/lib/mibs/ietf/MPLS-LC-FR-STD-MIB.dic +395 -0
  155. data/lib/mibs/ietf/MPLS-LDP-ATM-STD-MIB.dic +1019 -0
  156. data/lib/mibs/ietf/MPLS-LDP-FRAME-RELAY-STD-MIB.dic +862 -0
  157. data/lib/mibs/ietf/MPLS-LDP-GENERIC-STD-MIB.dic +445 -0
  158. data/lib/mibs/ietf/MPLS-LDP-STD-MIB.dic +3657 -0
  159. data/lib/mibs/ietf/MPLS-LSR-STD-MIB.dic +3103 -0
  160. data/lib/mibs/ietf/MPLS-TC-STD-MIB.dic +911 -0
  161. data/lib/mibs/ietf/MPLS-TE-STD-MIB.dic +3673 -0
  162. data/lib/mibs/ietf/MSDP-MIB.dic +1893 -0
  163. data/lib/mibs/ietf/MTA-MIB.dic +1898 -0
  164. data/lib/mibs/ietf/Modem-MIB.dic +2054 -0
  165. data/lib/mibs/ietf/NAT-MIB.dic +3866 -0
  166. data/lib/mibs/ietf/NETWORK-SERVICES-MIB.dic +1034 -0
  167. data/lib/mibs/ietf/NHDP-MIB.dic +3005 -0
  168. data/lib/mibs/ietf/NHRP-MIB.dic +3660 -0
  169. data/lib/mibs/ietf/NOTIFICATION-LOG-MIB.dic +1156 -0
  170. data/lib/mibs/ietf/NTPv4-MIB.dic +1535 -0
  171. data/lib/mibs/ietf/OPT-IF-MIB.dic +8972 -0
  172. data/lib/mibs/ietf/OSPF-MIB.dic +5963 -0
  173. data/lib/mibs/ietf/OSPF-TRAP-MIB.dic +1190 -0
  174. data/lib/mibs/ietf/OSPFV3-MIB.dic +5708 -0
  175. data/lib/mibs/ietf/P-BRIDGE-MIB.dic +1499 -0
  176. data/lib/mibs/ietf/PARALLEL-MIB.dic +476 -0
  177. data/lib/mibs/ietf/PIM-MIB.dic +1393 -0
  178. data/lib/mibs/ietf/PIM-STD-MIB.dic +6819 -0
  179. data/lib/mibs/ietf/PINT-MIB.dic +830 -0
  180. data/lib/mibs/ietf/PKTC-IETF-MTA-MIB.dic +3191 -0
  181. data/lib/mibs/ietf/PKTC-IETF-SIG-MIB.dic +4713 -0
  182. data/lib/mibs/ietf/PMIPV6-MIB.dic +3010 -0
  183. data/lib/mibs/ietf/PMIPV6-TC-MIB.dic +293 -0
  184. data/lib/mibs/ietf/POLICY-BASED-MANAGEMENT-MIB.dic +3316 -0
  185. data/lib/mibs/ietf/POWER-ETHERNET-MIB.dic +959 -0
  186. data/lib/mibs/ietf/PPP-BRIDGE-NCP-MIB.dic +587 -0
  187. data/lib/mibs/ietf/PPP-IP-NCP-MIB.dic +269 -0
  188. data/lib/mibs/ietf/PPP-LCP-MIB.dic +994 -0
  189. data/lib/mibs/ietf/PPP-SEC-MIB.dic +411 -0
  190. data/lib/mibs/ietf/PSAMP-MIB.dic +998 -0
  191. data/lib/mibs/ietf/PTOPO-MIB.dic +1135 -0
  192. data/lib/mibs/ietf/PW-ATM-MIB.dic +1642 -0
  193. data/lib/mibs/ietf/PW-CEP-STD-MIB.dic +3661 -0
  194. data/lib/mibs/ietf/PW-STD-MIB.dic +3592 -0
  195. data/lib/mibs/ietf/PW-TC-STD-MIB.dic +437 -0
  196. data/lib/mibs/ietf/PW-TDM-MIB.dic +1896 -0
  197. data/lib/mibs/ietf/PerfHist-TC-MIB.dic +152 -0
  198. data/lib/mibs/ietf/Printer-MIB.dic +6665 -0
  199. data/lib/mibs/ietf/Q-BRIDGE-MIB.dic +3115 -0
  200. data/lib/mibs/ietf/RADIUS-ACC-CLIENT-MIB.dic +991 -0
  201. data/lib/mibs/ietf/RADIUS-ACC-SERVER-MIB.dic +1183 -0
  202. data/lib/mibs/ietf/RADIUS-AUTH-CLIENT-MIB.dic +1073 -0
  203. data/lib/mibs/ietf/RADIUS-AUTH-SERVER-MIB.dic +1251 -0
  204. data/lib/mibs/ietf/RADIUS-DYNAUTH-CLIENT-MIB.dic +1116 -0
  205. data/lib/mibs/ietf/RADIUS-DYNAUTH-SERVER-MIB.dic +1003 -0
  206. data/lib/mibs/ietf/RAQMON-MIB.dic +2695 -0
  207. data/lib/mibs/ietf/RBRIDGE-MIB.dic +2981 -0
  208. data/lib/mibs/ietf/RDBMS-MIB.dic +1935 -0
  209. data/lib/mibs/ietf/RFC1065-SMI.dic +108 -0
  210. data/lib/mibs/ietf/RFC1155-SMI.dic +118 -0
  211. data/lib/mibs/ietf/RFC1158-MIB.dic +2440 -0
  212. data/lib/mibs/ietf/RFC1213-MIB.dic +3434 -0
  213. data/lib/mibs/ietf/RFC1269-MIB.dic +557 -0
  214. data/lib/mibs/ietf/RFC1271-MIB.dic +4135 -0
  215. data/lib/mibs/ietf/RFC1285-MIB.dic +2842 -0
  216. data/lib/mibs/ietf/RFC1316-MIB.dic +800 -0
  217. data/lib/mibs/ietf/RFC1381-MIB.dic +1347 -0
  218. data/lib/mibs/ietf/RFC1382-MIB.dic +3820 -0
  219. data/lib/mibs/ietf/RFC1414-MIB.dic +214 -0
  220. data/lib/mibs/ietf/RIPv2-MIB.dic +773 -0
  221. data/lib/mibs/ietf/RMON-MIB.dic +5551 -0
  222. data/lib/mibs/ietf/RMON2-MIB.dic +8224 -0
  223. data/lib/mibs/ietf/ROHC-MIB.dic +1613 -0
  224. data/lib/mibs/ietf/ROHC-RTP-MIB.dic +859 -0
  225. data/lib/mibs/ietf/ROHC-UNCOMPRESSED-MIB.dic +267 -0
  226. data/lib/mibs/ietf/RPKI-ROUTER-MIB.dic +1363 -0
  227. data/lib/mibs/ietf/RS-232-MIB.dic +1335 -0
  228. data/lib/mibs/ietf/RSERPOOL-MIB.dic +2501 -0
  229. data/lib/mibs/ietf/RSTP-MIB.dic +427 -0
  230. data/lib/mibs/ietf/RSVP-MIB.dic +4135 -0
  231. data/lib/mibs/ietf/RTP-MIB.dic +1376 -0
  232. data/lib/mibs/ietf/SCSI-MIB.dic +3804 -0
  233. data/lib/mibs/ietf/SCTP-MIB.dic +1924 -0
  234. data/lib/mibs/ietf/SFLOW-MIB.dic +568 -0
  235. data/lib/mibs/ietf/SIP-COMMON-MIB.dic +2769 -0
  236. data/lib/mibs/ietf/SIP-MIB.dic +1438 -0
  237. data/lib/mibs/ietf/SIP-SERVER-MIB.dic +1150 -0
  238. data/lib/mibs/ietf/SIP-TC-MIB.dic +257 -0
  239. data/lib/mibs/ietf/SIP-UA-MIB.dic +268 -0
  240. data/lib/mibs/ietf/SLAPM-MIB.dic +4527 -0
  241. data/lib/mibs/ietf/SMON-MIB.dic +1758 -0
  242. data/lib/mibs/ietf/SNA-NAU-MIB.dic +4042 -0
  243. data/lib/mibs/ietf/SNA-SDLC-MIB.dic +3858 -0
  244. data/lib/mibs/ietf/SNMP-COMMUNITY-MIB.dic +715 -0
  245. data/lib/mibs/ietf/SNMP-FRAMEWORK-MIB.dic +709 -0
  246. data/lib/mibs/ietf/SNMP-MPD-MIB.dic +230 -0
  247. data/lib/mibs/ietf/SNMP-NOTIFICATION-MIB.dic +859 -0
  248. data/lib/mibs/ietf/SNMP-PROXY-MIB.dic +414 -0
  249. data/lib/mibs/ietf/SNMP-REPEATER-MIB.dic +4335 -0
  250. data/lib/mibs/ietf/SNMP-SSH-TM-MIB.dic +447 -0
  251. data/lib/mibs/ietf/SNMP-TARGET-MIB.dic +924 -0
  252. data/lib/mibs/ietf/SNMP-TLS-TM-MIB.dic +1449 -0
  253. data/lib/mibs/ietf/SNMP-TSM-MIB.dic +315 -0
  254. data/lib/mibs/ietf/SNMP-USER-BASED-SM-MIB.dic +1164 -0
  255. data/lib/mibs/ietf/SNMP-USM-AES-MIB.dic +95 -0
  256. data/lib/mibs/ietf/SNMP-USM-DH-OBJECTS-MIB.dic +653 -0
  257. data/lib/mibs/ietf/SNMP-VIEW-BASED-ACM-MIB.dic +1202 -0
  258. data/lib/mibs/ietf/SNMPv2-MIB.dic +1382 -0
  259. data/lib/mibs/ietf/SNMPv2-SMI.dic +223 -0
  260. data/lib/mibs/ietf/SNMPv2-USEC-MIB.dic +405 -0
  261. data/lib/mibs/ietf/SONET-MIB.dic +3308 -0
  262. data/lib/mibs/ietf/SOURCE-ROUTING-MIB.dic +542 -0
  263. data/lib/mibs/ietf/SSPM-MIB.dic +1530 -0
  264. data/lib/mibs/ietf/SYSAPPL-MIB.dic +2092 -0
  265. data/lib/mibs/ietf/T11-FC-FABRIC-ADDR-MGR-MIB.dic +1779 -0
  266. data/lib/mibs/ietf/T11-FC-FABRIC-CONFIG-SERVER-MIB.dic +2822 -0
  267. data/lib/mibs/ietf/T11-FC-FABRIC-LOCK-MIB.dic +700 -0
  268. data/lib/mibs/ietf/T11-FC-FSPF-MIB.dic +1889 -0
  269. data/lib/mibs/ietf/T11-FC-NAME-SERVER-MIB.dic +1775 -0
  270. data/lib/mibs/ietf/T11-FC-ROUTE-MIB.dic +655 -0
  271. data/lib/mibs/ietf/T11-FC-RSCN-MIB.dic +1110 -0
  272. data/lib/mibs/ietf/T11-FC-VIRTUAL-FABRIC-MIB.dic +770 -0
  273. data/lib/mibs/ietf/T11-FC-ZONE-SERVER-MIB.dic +3886 -0
  274. data/lib/mibs/ietf/T11-TC-MIB.dic +110 -0
  275. data/lib/mibs/ietf/TCP-ESTATS-MIB.dic +3926 -0
  276. data/lib/mibs/ietf/TCP-MIB.dic +1319 -0
  277. data/lib/mibs/ietf/TCPIPX-MIB.dic +457 -0
  278. data/lib/mibs/ietf/TE-LINK-STD-MIB.dic +2876 -0
  279. data/lib/mibs/ietf/TE-MIB.dic +2924 -0
  280. data/lib/mibs/ietf/TED-MIB.dic +1749 -0
  281. data/lib/mibs/ietf/TIME-AGGREGATE-MIB.dic +550 -0
  282. data/lib/mibs/ietf/TN3270E-MIB.dic +2785 -0
  283. data/lib/mibs/ietf/TN3270E-RT-MIB.dic +1317 -0
  284. data/lib/mibs/ietf/TOKEN-RING-RMON-MIB.dic +2820 -0
  285. data/lib/mibs/ietf/TOKENRING-MIB.dic +1184 -0
  286. data/lib/mibs/ietf/TOKENRING-STATION-SR-MIB.dic +292 -0
  287. data/lib/mibs/ietf/TRANSPORT-ADDRESS-MIB.dic +610 -0
  288. data/lib/mibs/ietf/TRIP-MIB.dic +3159 -0
  289. data/lib/mibs/ietf/TRIP-TC-MIB.dic +241 -0
  290. data/lib/mibs/ietf/TUNNEL-MIB.dic +1095 -0
  291. data/lib/mibs/ietf/UDP-MIB.dic +751 -0
  292. data/lib/mibs/ietf/UDPLITE-MIB.dic +704 -0
  293. data/lib/mibs/ietf/UPS-MIB.dic +3088 -0
  294. data/lib/mibs/ietf/URI-TC-MIB.dic +193 -0
  295. data/lib/mibs/ietf/UUID-TC-MIB.dic +135 -0
  296. data/lib/mibs/ietf/VDSL-LINE-EXT-MCM-MIB.dic +989 -0
  297. data/lib/mibs/ietf/VDSL-LINE-EXT-SCM-MIB.dic +605 -0
  298. data/lib/mibs/ietf/VDSL-LINE-MIB.dic +4518 -0
  299. data/lib/mibs/ietf/VDSL2-LINE-MIB.dic +11029 -0
  300. data/lib/mibs/ietf/VDSL2-LINE-TC-MIB.dic +3152 -0
  301. data/lib/mibs/ietf/VPN-TC-STD-MIB.dic +121 -0
  302. data/lib/mibs/ietf/VRRP-MIB.dic +1163 -0
  303. data/lib/mibs/ietf/VRRPV3-MIB.dic +1403 -0
  304. data/lib/mibs/ietf/WWW-MIB.dic +1810 -0
  305. data/lib/mibs/logstash/iso.dic +18 -0
  306. data/logstash-input-snmp.gemspec +1 -1
  307. data/spec/inputs/snmp/mib_spec.rb +10 -17
  308. data/spec/inputs/snmp_spec.rb +27 -1
  309. metadata +302 -2
@@ -0,0 +1,139 @@
1
+ require 'java'
2
+ require 'logstash-input-snmp_jars.rb'
3
+
4
+
5
+ java_import 'org.snmp4j.PDU'
6
+ java_import 'org.snmp4j.ScopedPDU'
7
+ java_import 'org.snmp4j.Snmp'
8
+ java_import 'org.snmp4j.Target'
9
+ java_import 'org.snmp4j.TransportMapping'
10
+ java_import 'org.snmp4j.event.ResponseEvent'
11
+ java_import 'org.snmp4j.mp.MPv3'
12
+ java_import 'org.snmp4j.mp.SnmpConstants'
13
+ java_import 'org.snmp4j.security.AuthMD5'
14
+ java_import 'org.snmp4j.security.AuthSHA'
15
+ java_import 'org.snmp4j.security.AuthSHA2'
16
+ java_import 'org.snmp4j.security.AuthHMAC128SHA224'
17
+ java_import 'org.snmp4j.security.AuthHMAC192SHA256'
18
+ java_import 'org.snmp4j.security.AuthHMAC256SHA384'
19
+ java_import 'org.snmp4j.security.AuthHMAC384SHA512'
20
+ java_import 'org.snmp4j.security.Priv3DES'
21
+ java_import 'org.snmp4j.security.PrivDES'
22
+ java_import 'org.snmp4j.security.PrivAES128'
23
+ java_import 'org.snmp4j.security.PrivAES192'
24
+ java_import 'org.snmp4j.security.PrivAES256'
25
+ java_import 'org.snmp4j.security.SecurityModels'
26
+ java_import 'org.snmp4j.security.SecurityProtocols'
27
+ java_import 'org.snmp4j.security.USM'
28
+ java_import 'org.snmp4j.security.UsmUser'
29
+ java_import 'org.snmp4j.security.SecurityLevel'
30
+ java_import 'org.snmp4j.smi.Address'
31
+ java_import 'org.snmp4j.smi.GenericAddress'
32
+ java_import 'org.snmp4j.smi.OID'
33
+ java_import 'org.snmp4j.smi.OctetString'
34
+ java_import 'org.snmp4j.transport.DefaultUdpTransportMapping'
35
+ java_import 'org.snmp4j.transport.DefaultTcpTransportMapping'
36
+ java_import 'org.snmp4j.UserTarget'
37
+ java_import 'org.snmp4j.util.DefaultPDUFactory'
38
+
39
+ module LogStash
40
+ class SnmpClientV3 < BaseSnmpClient
41
+
42
+ def initialize(protocol, address, port, retries, timeout, mib, security_name, auth_protocol, auth_pass, priv_protocol, priv_pass, security_level)
43
+ super(protocol, address, port, retries, timeout, mib)
44
+
45
+ security_level = parse_security_level(security_level)
46
+ security_name = OctetString.new(security_name)
47
+ auth_protocol = parse_auth_protocol(auth_protocol)
48
+ priv_protocol = parse_priv_protocol(priv_protocol)
49
+ auth_pass = auth_pass.nil? ? nil : OctetString.new(auth_pass)
50
+ priv_pass = priv_pass.nil? ? nil : OctetString.new(priv_pass)
51
+
52
+ usm = USM.new(SecurityProtocols.getInstance, OctetString.new(MPv3.createLocalEngineID), 0)
53
+ SecurityModels.getInstance.addSecurityModel(usm)
54
+
55
+ @snmp.getUSM.addUser(UsmUser.new(security_name, auth_protocol, auth_pass, priv_protocol, priv_pass))
56
+ @target = build_target("#{protocol}:#{address}/#{port}", security_name, security_level, retries, timeout)
57
+ end
58
+
59
+ private
60
+
61
+ def build_target(address, name, seclevel, retries, timeout)
62
+ target = UserTarget.new
63
+ target.setSecurityLevel(seclevel)
64
+ target.setSecurityName(name)
65
+ target.setAddress(GenericAddress.parse(address))
66
+ target.setRetries(retries)
67
+ target.setTimeout(timeout)
68
+ target.setVersion(SnmpConstants.version3)
69
+ target
70
+ end
71
+
72
+ def get_pdu
73
+ pdu = ScopedPDU.new
74
+ pdu.setType(PDU::GET)
75
+ pdu
76
+ end
77
+
78
+ def get_pdu_factory
79
+ DefaultPDUFactory.new(PDU::GET)
80
+ end
81
+
82
+ def parse_priv_protocol(priv_protocol)
83
+ return nil if priv_protocol.nil?
84
+
85
+ case priv_protocol.to_s.downcase
86
+ when "des"
87
+ SnmpConstants::usmDESPrivProtocol
88
+ when "3des"
89
+ SnmpConstants::usm3DESEDEPrivProtocol
90
+ when "aes"
91
+ SnmpConstants::usmAesCfb128Protocol
92
+ when "aes128"
93
+ SnmpConstants::usmAesCfb128Protocol
94
+ when "aes192"
95
+ SnmpConstants::oosnmpUsmAesCfb192Protocol
96
+ when "aes256"
97
+ SnmpConstants::oosnmpUsmAesCfb256Protocol
98
+ else
99
+ raise(SnmpClientError, "privacy protocol '#{priv_protocol}' is not supported, expected protocols are 'des', '3des', 'aes', 'aes128', 'aes192', and 'aes256'")
100
+ end
101
+ end
102
+
103
+ def parse_auth_protocol(auth_protocol)
104
+ return nil if auth_protocol.nil?
105
+
106
+ case auth_protocol.to_s.downcase
107
+ when 'md5'
108
+ AuthMD5::ID
109
+ when 'sha'
110
+ AuthSHA::ID
111
+ when 'sha2'
112
+ AuthSHA2::ID
113
+ when 'hmac128sha224'
114
+ AuthHMAC128SHA224::ID
115
+ when 'hmac192sha256'
116
+ AuthHMAC192SHA256::ID
117
+ when 'hmac256sha384'
118
+ AuthHMAC256SHA384::ID
119
+ when 'hmac384sha512'
120
+ AuthHMAC384SHA512::ID
121
+ else
122
+ raise(SnmpClientError, "authentication protocol '#{auth_protocol}' is not supported, expected protocols are 'md5', 'sha', and 'sha2'")
123
+ end
124
+ end
125
+
126
+ def parse_security_level(security_level)
127
+ case security_level.to_s.downcase
128
+ when 'noauthnopriv'
129
+ SecurityLevel::NOAUTH_NOPRIV
130
+ when 'authnopriv'
131
+ SecurityLevel::AUTH_NOPRIV
132
+ when 'authpriv'
133
+ SecurityLevel::AUTH_PRIV
134
+ else
135
+ SecurityLevel::NOAUTH_NOPRIV
136
+ end
137
+ end
138
+ end
139
+ end
@@ -1,10 +1,14 @@
1
1
  # encoding: utf-8
2
2
 
3
+ require "logstash/util/loggable"
4
+
3
5
  module LogStash
4
6
  class SnmpMibError < StandardError
5
7
  end
6
8
 
7
9
  class SnmpMib
10
+ include LogStash::Util::Loggable
11
+
8
12
  attr_reader :tree
9
13
 
10
14
  class Oid
@@ -14,7 +18,7 @@ module LogStash
14
18
  end
15
19
 
16
20
  class BaseNode
17
- attr_reader :name, :childs
21
+ attr_accessor :name, :childs
18
22
 
19
23
  def initialize(name)
20
24
  @name = name
@@ -35,12 +39,13 @@ module LogStash
35
39
  end
36
40
 
37
41
  class Tree
42
+ include LogStash::Util::Loggable
43
+
38
44
  def initialize
39
45
  @root = BaseNode.new("root")
40
46
  end
41
47
 
42
48
  def add_node(node)
43
- warnings = []
44
49
  current = @root
45
50
  path = node.oid_path.dup
46
51
 
@@ -55,11 +60,13 @@ module LogStash
55
60
  end
56
61
 
57
62
  if current.childs[last_node] && current.childs[last_node].name != node.name
58
- warnings << "warning: overwriting MIB OID '#{node.oid}' and name '#{current.childs[last_node].name}' with new name '#{node.name}' from module '#{node.module_name}'"
59
- end
60
- current.childs[last_node] = node
63
+ logger.debug("warning: overwriting MIB OID '#{node.oid}' and name '#{current.childs[last_node].name}' with new name '#{node.name}' from module '#{node.module_name}'")
64
+ end
65
+
66
+ # preserve previous childs if replacing a node
67
+ node.childs = current.childs[last_node].childs.dup if current.childs[last_node]
61
68
 
62
- warnings
69
+ current.childs[last_node] = node
63
70
  end
64
71
 
65
72
  def map_oid(oid, strip_root = 0)
@@ -101,16 +108,12 @@ module LogStash
101
108
  raise(SnmpMibError, "file or directory path expected: #{path.to_s}")
102
109
  end
103
110
 
104
- warnings = []
105
111
  dic_files.each do |f|
106
112
  module_name, nodes = read_mib_dic(f)
107
-
108
113
  nodes.each do |k, v|
109
- warnings += @tree.add_node(Node.new(v["nodetype"], k, v["moduleName"], v["oid"]))
114
+ @tree.add_node(Node.new(v["nodetype"], k, v["moduleName"], v["oid"]))
110
115
  end
111
116
  end
112
-
113
- warnings
114
117
  end
115
118
 
116
119
  # read and parse a mib dic file
@@ -119,18 +122,16 @@ module LogStash
119
122
  # @return [[String, Hash, Hash, Hash]] the 2-tuple of the mib module name and the complete nodes
120
123
  def read_mib_dic(filename)
121
124
  mib = eval_mib_dic(filename)
125
+
122
126
  raise(SnmpMibError, "invalid mib dic format for file #{filename}") unless mib
123
127
  module_name = mib["moduleName"]
128
+
124
129
  raise(SnmpMibError, "invalid mib dic format for file #{filename}") unless module_name
125
- nodes = mib["nodes"]
126
- raise(SnmpMibError, "no nodes defined in mib dic file #{filename}") unless nodes
130
+ nodes = mib["nodes"] || []
127
131
 
128
- # name_hash is { mib-name => oid }
129
- # name_hash = {}
130
- # nodes.each { |k, v| name_hash[k] = v["oid"] }
131
- # if mib["notifications"]
132
- # mib["notifications"].each { |k, v| name_hash[k] = v["oid"] }
133
- # end
132
+ if nodes.empty?
133
+ logger.warn("no nodes defined in mib dic file #{filename}")
134
+ end
134
135
 
135
136
  [module_name, nodes]
136
137
  end
@@ -152,7 +153,8 @@ module LogStash
152
153
  mib = nil
153
154
  eval(mib_hash)
154
155
  mib
155
- rescue => e
156
+ rescue Exception => e
157
+ # rescuing Exception class is important here to rescue SyntaxError from eval
156
158
  raise(SnmpMibError, "error parsing mib dic file: #{filename}, error: #{e.message}")
157
159
  end
158
160
  end
@@ -0,0 +1,1316 @@
1
+ # python version 1.0 DO NOT EDIT
2
+ #
3
+ # This python file has been generated by smidump version 0.5.0:
4
+ #
5
+ # smidump -f python ACCOUNTING-CONTROL-MIB
6
+
7
+ FILENAME = "./libsmi-0.5.0/mibs/ietf/ACCOUNTING-CONTROL-MIB"
8
+
9
+ MIB = {
10
+ "moduleName" : "ACCOUNTING-CONTROL-MIB",
11
+
12
+ "ACCOUNTING-CONTROL-MIB" : {
13
+ "nodetype" : "module",
14
+ "language" : "SMIv2",
15
+ "organization" :
16
+ """IETF AToM MIB Working Group""",
17
+ "contact" :
18
+ """Keith McCloghrie
19
+ Cisco Systems, Inc.
20
+ 170 West Tasman Drive,
21
+ San Jose CA 95134-1706.
22
+ Phone: +1 408 526 5260
23
+ Email: kzm@cisco.com""",
24
+ "description" :
25
+ """The MIB module for managing the collection and storage of
26
+ accounting information for connections in a connection-
27
+ oriented network such as ATM.""",
28
+ "revisions" : (
29
+ {
30
+ "date" : "1998-09-28 10:00",
31
+ "description" :
32
+ """[Revision added by libsmi due to a LAST-UPDATED clause.]""",
33
+ },
34
+ ),
35
+ "identity node" : "accountingControlMIB",
36
+ },
37
+
38
+ "imports" : (
39
+ {"module" : "SNMPv2-SMI", "name" : "MODULE-IDENTITY"},
40
+ {"module" : "SNMPv2-SMI", "name" : "OBJECT-TYPE"},
41
+ {"module" : "SNMPv2-SMI", "name" : "NOTIFICATION-TYPE"},
42
+ {"module" : "SNMPv2-SMI", "name" : "mib-2"},
43
+ {"module" : "SNMPv2-SMI", "name" : "Integer32"},
44
+ {"module" : "SNMPv2-TC", "name" : "TEXTUAL-CONVENTION"},
45
+ {"module" : "SNMPv2-TC", "name" : "RowStatus"},
46
+ {"module" : "SNMPv2-TC", "name" : "TestAndIncr"},
47
+ {"module" : "SNMPv2-TC", "name" : "DisplayString"},
48
+ {"module" : "SNMPv2-TC", "name" : "TruthValue"},
49
+ {"module" : "SNMPv2-CONF", "name" : "MODULE-COMPLIANCE"},
50
+ {"module" : "SNMPv2-CONF", "name" : "OBJECT-GROUP"},
51
+ {"module" : "SNMPv2-CONF", "name" : "NOTIFICATION-GROUP"},
52
+ {"module" : "IF-MIB", "name" : "ifIndex"},
53
+ ),
54
+
55
+ "typedefs" : {
56
+ "DataCollectionSubtree" : {
57
+ "basetype" : "ObjectIdentifier",
58
+ "status" : "current",
59
+ "description" :
60
+ """The subtree component of a (subtree, list) tuple. Such a
61
+ (subtree, list) tuple defines a set of objects and their
62
+ values to be collected as accounting data for a connection.
63
+ The subtree specifies a single OBJECT IDENTIFIER value such
64
+ that each object in the set is named by the subtree value
65
+ appended with a single additional sub-identifier.""",
66
+ },
67
+ "DataCollectionList" : {
68
+ "basetype" : "OctetString",
69
+ "status" : "current",
70
+ "ranges" : [
71
+ {
72
+ "min" : "0",
73
+ "max" : "8"
74
+ },
75
+ ],
76
+ "range" : {
77
+ "min" : "0",
78
+ "max" : "8"
79
+ },
80
+ "description" :
81
+ """The list component of a (subtree, list) tuple. Such a
82
+ (subtree, list) tuple defines a set of objects and their
83
+ values to be collected as accounting data for a connection.
84
+ The subtree specifies a single OBJECT IDENTIFIER value such
85
+ that each object in the set is named by the subtree value
86
+ appended with a single additional sub-identifier. The list
87
+ specifies a set of data items, where the presence of an item
88
+ in the list indicates that the item is (to be) present in
89
+ the data collected for a connection; the absence of an item
90
+ from the list indicates that the item is not (to be) present
91
+ in the data collected for a connection. Each data item is
92
+ represented by an integer which when appended (as as
93
+ additional sub-identifier) to the OBJECT IDENTIFIER value of
94
+ the subtree identified by the tuple, is the name of an
95
+ object defining that data item (its description and its
96
+ syntax).
97
+
98
+ The list is specified as an OCTET STRING in which each data
99
+ item is represented by a single bit, where data items 1
100
+ through 8 are represented by the bits in the first octet,
101
+ data items 9 through 16 by the bits in the second octet,
102
+ etc. In each octet, the lowest numbered data item is
103
+ represented by the most significant bit, and the highest
104
+ numbered data item by the least significant bit. A data
105
+ item is present in the list when its bit is set, and absent
106
+ when its bit is reset. If the length of an OCTET STRING
107
+ value is too short to represent one or more data items
108
+ defined in a subtree, then those data items are absent from
109
+ the set identified by the tuple of that subtree and that
110
+ OCTET STRING value.""",
111
+ },
112
+ "FileIndex" : {
113
+ "basetype" : "Integer32",
114
+ "status" : "current",
115
+ "ranges" : [
116
+ {
117
+ "min" : "1",
118
+ "max" : "65535"
119
+ },
120
+ ],
121
+ "range" : {
122
+ "min" : "1",
123
+ "max" : "65535"
124
+ },
125
+ "description" :
126
+ """An arbitrary integer value identifying a file into which
127
+ accounting data is being collected.""",
128
+ },
129
+ }, # typedefs
130
+
131
+ "nodes" : {
132
+ "accountingControlMIB" : {
133
+ "nodetype" : "node",
134
+ "moduleName" : "ACCOUNTING-CONTROL-MIB",
135
+ "oid" : "1.3.6.1.2.1.60",
136
+ "status" : "current",
137
+ }, # node
138
+ "acctngMIBObjects" : {
139
+ "nodetype" : "node",
140
+ "moduleName" : "ACCOUNTING-CONTROL-MIB",
141
+ "oid" : "1.3.6.1.2.1.60.1",
142
+ }, # node
143
+ "acctngSelectionControl" : {
144
+ "nodetype" : "node",
145
+ "moduleName" : "ACCOUNTING-CONTROL-MIB",
146
+ "oid" : "1.3.6.1.2.1.60.1.1",
147
+ }, # node
148
+ "acctngSelectionTable" : {
149
+ "nodetype" : "table",
150
+ "moduleName" : "ACCOUNTING-CONTROL-MIB",
151
+ "oid" : "1.3.6.1.2.1.60.1.1.1",
152
+ "status" : "current",
153
+ "description" :
154
+ """A list of accounting information selection entries.
155
+
156
+ Note that additions, modifications and deletions of entries
157
+ in this table can occur at any time, but such changes only
158
+ take effect on the next occasion when collection begins into
159
+ a new file. Thus, between modification and the next 'swap',
160
+ the content of this table does not reflect the current
161
+ selection.""",
162
+ }, # table
163
+ "acctngSelectionEntry" : {
164
+ "nodetype" : "row",
165
+ "moduleName" : "ACCOUNTING-CONTROL-MIB",
166
+ "oid" : "1.3.6.1.2.1.60.1.1.1.1",
167
+ "create" : "true",
168
+ "status" : "current",
169
+ "linkage" : [
170
+ "acctngSelectionIndex",
171
+ ],
172
+ "description" :
173
+ """An entry identifying an (subtree, list) tuple used to
174
+ select a set of accounting information which is to be
175
+ collected.""",
176
+ }, # row
177
+ "acctngSelectionIndex" : {
178
+ "nodetype" : "column",
179
+ "moduleName" : "ACCOUNTING-CONTROL-MIB",
180
+ "oid" : "1.3.6.1.2.1.60.1.1.1.1.1",
181
+ "status" : "current",
182
+ "syntax" : {
183
+ "type" : {
184
+ "basetype" : "Integer32",
185
+ "ranges" : [
186
+ {
187
+ "min" : "1",
188
+ "max" : "65535"
189
+ },
190
+ ],
191
+ "range" : {
192
+ "min" : "1",
193
+ "max" : "65535"
194
+ },
195
+ },
196
+ },
197
+ "access" : "noaccess",
198
+ "description" :
199
+ """An arbitrary integer value which uniquely identifies a
200
+ tuple stored in this table. This value is required to be
201
+ the permanent 'handle' for an entry in this table for as
202
+ long as that entry exists, including across restarts and
203
+ power outages.""",
204
+ }, # column
205
+ "acctngSelectionSubtree" : {
206
+ "nodetype" : "column",
207
+ "moduleName" : "ACCOUNTING-CONTROL-MIB",
208
+ "oid" : "1.3.6.1.2.1.60.1.1.1.1.2",
209
+ "status" : "current",
210
+ "syntax" : {
211
+ "type" : { "module" :"ACCOUNTING-CONTROL-MIB", "name" : "DataCollectionSubtree"},
212
+ },
213
+ "access" : "readwrite",
214
+ "description" :
215
+ """The combination of acctngSelectionSubtree and
216
+ acctngSelectionList specifies one (subtree, list) tuple
217
+ which is to be collected.""",
218
+ }, # column
219
+ "acctngSelectionList" : {
220
+ "nodetype" : "column",
221
+ "moduleName" : "ACCOUNTING-CONTROL-MIB",
222
+ "oid" : "1.3.6.1.2.1.60.1.1.1.1.3",
223
+ "status" : "current",
224
+ "syntax" : {
225
+ "type" : { "module" :"ACCOUNTING-CONTROL-MIB", "name" : "DataCollectionList"},
226
+ },
227
+ "access" : "readwrite",
228
+ "description" :
229
+ """The combination of acctngSelectionSubtree and
230
+ acctngSelectionList specifies one (subtree, list) tuple
231
+ which is to be collected.""",
232
+ }, # column
233
+ "acctngSelectionFile" : {
234
+ "nodetype" : "column",
235
+ "moduleName" : "ACCOUNTING-CONTROL-MIB",
236
+ "oid" : "1.3.6.1.2.1.60.1.1.1.1.4",
237
+ "status" : "current",
238
+ "syntax" : {
239
+ "type" : { "module" :"ACCOUNTING-CONTROL-MIB", "name" : "FileIndex"},
240
+ },
241
+ "access" : "readwrite",
242
+ "description" :
243
+ """An indication of the file into which the accounting
244
+ information identified by this entry is to be stored. If
245
+ there is no conceptual row in the acctngFileTable for which
246
+ the value of acctngFileIndex has the same value as this
247
+ object, then the information selected by this entry is not
248
+ collected.""",
249
+ }, # column
250
+ "acctngSelectionType" : {
251
+ "nodetype" : "column",
252
+ "moduleName" : "ACCOUNTING-CONTROL-MIB",
253
+ "oid" : "1.3.6.1.2.1.60.1.1.1.1.5",
254
+ "status" : "current",
255
+ "syntax" : {
256
+ "type" : {
257
+ "basetype" : "Bits",
258
+ "svcIncoming" : {
259
+ "nodetype" : "namednumber",
260
+ "number" : "0"
261
+ },
262
+ "svcOutgoing" : {
263
+ "nodetype" : "namednumber",
264
+ "number" : "1"
265
+ },
266
+ "svpIncoming" : {
267
+ "nodetype" : "namednumber",
268
+ "number" : "2"
269
+ },
270
+ "svpOutgoing" : {
271
+ "nodetype" : "namednumber",
272
+ "number" : "3"
273
+ },
274
+ "pvc" : {
275
+ "nodetype" : "namednumber",
276
+ "number" : "4"
277
+ },
278
+ "pvp" : {
279
+ "nodetype" : "namednumber",
280
+ "number" : "5"
281
+ },
282
+ "spvcOriginator" : {
283
+ "nodetype" : "namednumber",
284
+ "number" : "6"
285
+ },
286
+ "spvcTarget" : {
287
+ "nodetype" : "namednumber",
288
+ "number" : "7"
289
+ },
290
+ "spvpOriginator" : {
291
+ "nodetype" : "namednumber",
292
+ "number" : "8"
293
+ },
294
+ "spvpTarget" : {
295
+ "nodetype" : "namednumber",
296
+ "number" : "9"
297
+ },
298
+ },
299
+ },
300
+ "access" : "readwrite",
301
+ "default" : "(svcIncoming, svcOutgoing, svpIncoming, svpOutgoing)",
302
+ "description" :
303
+ """Indicates the types of connections for which the
304
+ information selected by this entry are to be collected.""",
305
+ }, # column
306
+ "acctngSelectionRowStatus" : {
307
+ "nodetype" : "column",
308
+ "moduleName" : "ACCOUNTING-CONTROL-MIB",
309
+ "oid" : "1.3.6.1.2.1.60.1.1.1.1.6",
310
+ "status" : "current",
311
+ "syntax" : {
312
+ "type" : { "module" :"SNMPv2-TC", "name" : "RowStatus"},
313
+ },
314
+ "access" : "readwrite",
315
+ "description" :
316
+ """The status of this conceptual row. An agent may refuse to
317
+ create new conceptual rows and/or modify existing conceptual
318
+ rows, if such creation/modification would cause multiple
319
+ rows to have the same values of acctngSelectionSubtree and
320
+ acctngSelectionList.
321
+
322
+ A conceptual row can not have the status of 'active' until
323
+ values have been assigned to the acctngSelectionSubtree,
324
+ acctngSelectionList and acctngSelectionFile columnar objects
325
+ within that row.
326
+
327
+ An agent must not refuse to change the values of the
328
+ acctngSelectionSubtree, acctngSelectionList and
329
+ acctngSelectionFile columnar objects within a conceptual row
330
+ even while that row's status is 'active'. Similarly, an
331
+ agent must not refuse to destroy an existing conceptual row
332
+ while the file referenced by that row's instance of
333
+ acctngSelectionFile is in active use, i.e., while the
334
+ corresponding instance of acctngFileRowStatus has the value
335
+ 'active'. However, such changes only take effect upon the
336
+ next occasion when collection begins into a new (version of
337
+ the) file.""",
338
+ }, # column
339
+ "acctngFileControl" : {
340
+ "nodetype" : "node",
341
+ "moduleName" : "ACCOUNTING-CONTROL-MIB",
342
+ "oid" : "1.3.6.1.2.1.60.1.2",
343
+ }, # node
344
+ "acctngFileTable" : {
345
+ "nodetype" : "table",
346
+ "moduleName" : "ACCOUNTING-CONTROL-MIB",
347
+ "oid" : "1.3.6.1.2.1.60.1.2.1",
348
+ "status" : "current",
349
+ "description" :
350
+ """A list of files into which accounting information is to be
351
+ stored.""",
352
+ }, # table
353
+ "acctngFileEntry" : {
354
+ "nodetype" : "row",
355
+ "moduleName" : "ACCOUNTING-CONTROL-MIB",
356
+ "oid" : "1.3.6.1.2.1.60.1.2.1.1",
357
+ "create" : "true",
358
+ "status" : "current",
359
+ "linkage" : [
360
+ "acctngFileIndex",
361
+ ],
362
+ "description" :
363
+ """An entry identifying a file into which accounting
364
+ information is to be collected.""",
365
+ }, # row
366
+ "acctngFileIndex" : {
367
+ "nodetype" : "column",
368
+ "moduleName" : "ACCOUNTING-CONTROL-MIB",
369
+ "oid" : "1.3.6.1.2.1.60.1.2.1.1.1",
370
+ "status" : "current",
371
+ "syntax" : {
372
+ "type" : { "module" :"ACCOUNTING-CONTROL-MIB", "name" : "FileIndex"},
373
+ },
374
+ "access" : "noaccess",
375
+ "description" :
376
+ """A unique value identifying a file into which accounting
377
+ data is to be stored. This value is required to be the
378
+ permanent 'handle' for an entry in this table for as long as
379
+ that entry exists, including across restarts and power
380
+ outages.""",
381
+ }, # column
382
+ "acctngFileName" : {
383
+ "nodetype" : "column",
384
+ "moduleName" : "ACCOUNTING-CONTROL-MIB",
385
+ "oid" : "1.3.6.1.2.1.60.1.2.1.1.2",
386
+ "status" : "current",
387
+ "syntax" : {
388
+ "type" : {
389
+ "basetype" : "OctetString",
390
+ "parent module" : {
391
+ "name" : "SNMPv2-TC",
392
+ "type" : "DisplayString",
393
+ },
394
+ "ranges" : [
395
+ {
396
+ "min" : "1",
397
+ "max" : "32"
398
+ },
399
+ ],
400
+ "range" : {
401
+ "min" : "1",
402
+ "max" : "32"
403
+ },
404
+ },
405
+ },
406
+ "access" : "readwrite",
407
+ "description" :
408
+ """The name of the file into which accounting data is to be
409
+ stored. If files are named using suffixes, then the name of
410
+ the current file is the concatenation of acctngFileName and
411
+ acctngFileNameSuffix.
412
+
413
+ An agent will respond with an error (e.g., 'wrongValue') to
414
+ a management set operation which attempts to modify the
415
+ value of this object to the same value as already held by
416
+ another instance of acctngFileName. An agent will also
417
+ respond with an error (e.g., 'wrongValue') if the new value
418
+ is invalid for use as a file name on the local file system
419
+ (e.g., many file systems do not support white space embedded
420
+ in file names).
421
+
422
+ The value of this object can not be modified while the
423
+ corresponding instance of acctngFileRowStatus is 'active'.""",
424
+ }, # column
425
+ "acctngFileNameSuffix" : {
426
+ "nodetype" : "column",
427
+ "moduleName" : "ACCOUNTING-CONTROL-MIB",
428
+ "oid" : "1.3.6.1.2.1.60.1.2.1.1.3",
429
+ "status" : "current",
430
+ "syntax" : {
431
+ "type" : {
432
+ "basetype" : "OctetString",
433
+ "parent module" : {
434
+ "name" : "SNMPv2-TC",
435
+ "type" : "DisplayString",
436
+ },
437
+ "ranges" : [
438
+ {
439
+ "min" : "0",
440
+ "max" : "8"
441
+ },
442
+ ],
443
+ "range" : {
444
+ "min" : "0",
445
+ "max" : "8"
446
+ },
447
+ },
448
+ },
449
+ "access" : "readonly",
450
+ "description" :
451
+ """The suffix, if any, of the name of a file into which
452
+ accounting data is currently being stored. If suffixes are
453
+ not used, then the value of this object is the zero-length
454
+ string. Note that if a separator, such as a period, is used
455
+ in appending the suffix to the file name, then that
456
+ separator appears as the first character of this value.""",
457
+ }, # column
458
+ "acctngFileDescription" : {
459
+ "nodetype" : "column",
460
+ "moduleName" : "ACCOUNTING-CONTROL-MIB",
461
+ "oid" : "1.3.6.1.2.1.60.1.2.1.1.4",
462
+ "status" : "current",
463
+ "syntax" : {
464
+ "type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
465
+ },
466
+ "access" : "readwrite",
467
+ "default" : "",
468
+ "description" :
469
+ """The textual description of the accounting data which will
470
+ be stored (on the next occasion) when header information is
471
+ stored in the file. The value of this object may be
472
+ modified at any time.""",
473
+ }, # column
474
+ "acctngFileCommand" : {
475
+ "nodetype" : "column",
476
+ "moduleName" : "ACCOUNTING-CONTROL-MIB",
477
+ "oid" : "1.3.6.1.2.1.60.1.2.1.1.5",
478
+ "status" : "current",
479
+ "syntax" : {
480
+ "type" : {
481
+ "basetype" : "Enumeration",
482
+ "idle" : {
483
+ "nodetype" : "namednumber",
484
+ "number" : "1"
485
+ },
486
+ "cmdInProgress" : {
487
+ "nodetype" : "namednumber",
488
+ "number" : "2"
489
+ },
490
+ "swapToNewFile" : {
491
+ "nodetype" : "namednumber",
492
+ "number" : "3"
493
+ },
494
+ "collectNow" : {
495
+ "nodetype" : "namednumber",
496
+ "number" : "4"
497
+ },
498
+ },
499
+ },
500
+ "access" : "readwrite",
501
+ "default" : "idle",
502
+ "description" :
503
+ """A control object for the collection of accounting data.
504
+ When read the value is either 'idle' or 'cmdInProgress'.
505
+ Writing a value is only allowed when the current value is
506
+ 'idle'. When a value is successfully written, the value
507
+ changes to 'cmdInProgress' until completion of the action,
508
+ at which time the value reverts to 'idle'. Actions are
509
+ invoked by writing the following values:
510
+
511
+ 'swapToNewFile' - the collection of data into the current
512
+ file is terminated, and collection continues into
513
+ a new (version of the) file.
514
+
515
+ 'collectNow' - the agent creates and stores a connection
516
+ record into the current file for each active
517
+ connection having a type matching
518
+ acctngSelectionType and an age greater than
519
+ acctngFileMinAge.""",
520
+ }, # column
521
+ "acctngFileMaximumSize" : {
522
+ "nodetype" : "column",
523
+ "moduleName" : "ACCOUNTING-CONTROL-MIB",
524
+ "oid" : "1.3.6.1.2.1.60.1.2.1.1.6",
525
+ "status" : "current",
526
+ "syntax" : {
527
+ "type" : {
528
+ "basetype" : "Integer32",
529
+ "ranges" : [
530
+ {
531
+ "min" : "100",
532
+ "max" : "2147483647"
533
+ },
534
+ ],
535
+ "range" : {
536
+ "min" : "100",
537
+ "max" : "2147483647"
538
+ },
539
+ },
540
+ },
541
+ "access" : "readwrite",
542
+ "default" : "5000000",
543
+ "units" : "bytes",
544
+ "description" :
545
+ """The maximum size of the file (including header
546
+ information). When the file of collected data reaches this
547
+ size, either the agent automatically swaps to a new version
548
+ (i.e., a new value acctngFileNameSuffix) of the file, or new
549
+ records are discarded. Since a file must contain an
550
+ integral number of connection records, the actual maximum
551
+ size of the file may be just less OR Just greater than the
552
+ value of this object.
553
+
554
+ The value of this object can not be modified while the
555
+ corresponding instance of acctngFileRowStatus is 'active'.
556
+ The largest value of the maximum file size in some agents
557
+ will be less than 2147483647 bytes.""",
558
+ }, # column
559
+ "acctngFileCurrentSize" : {
560
+ "nodetype" : "column",
561
+ "moduleName" : "ACCOUNTING-CONTROL-MIB",
562
+ "oid" : "1.3.6.1.2.1.60.1.2.1.1.7",
563
+ "status" : "current",
564
+ "syntax" : {
565
+ "type" : {
566
+ "basetype" : "Integer32",
567
+ "ranges" : [
568
+ {
569
+ "min" : "0",
570
+ "max" : "2147483647"
571
+ },
572
+ ],
573
+ "range" : {
574
+ "min" : "0",
575
+ "max" : "2147483647"
576
+ },
577
+ },
578
+ },
579
+ "access" : "readonly",
580
+ "units" : "bytes",
581
+ "description" :
582
+ """The current size of the file into which data is currently
583
+ being collected, including header information.""",
584
+ }, # column
585
+ "acctngFileFormat" : {
586
+ "nodetype" : "column",
587
+ "moduleName" : "ACCOUNTING-CONTROL-MIB",
588
+ "oid" : "1.3.6.1.2.1.60.1.2.1.1.8",
589
+ "status" : "current",
590
+ "syntax" : {
591
+ "type" : {
592
+ "basetype" : "Enumeration",
593
+ "other" : {
594
+ "nodetype" : "namednumber",
595
+ "number" : "1"
596
+ },
597
+ "ber" : {
598
+ "nodetype" : "namednumber",
599
+ "number" : "2"
600
+ },
601
+ },
602
+ },
603
+ "access" : "readwrite",
604
+ "default" : "ber",
605
+ "description" :
606
+ """An indication of the format in which the accounting data is
607
+ to be stored in the file. If the value is modified, the new
608
+ value takes effect after the next 'swap' to a new file. The
609
+ value ber(2) indicates the standard format.""",
610
+ }, # column
611
+ "acctngFileCollectMode" : {
612
+ "nodetype" : "column",
613
+ "moduleName" : "ACCOUNTING-CONTROL-MIB",
614
+ "oid" : "1.3.6.1.2.1.60.1.2.1.1.9",
615
+ "status" : "current",
616
+ "syntax" : {
617
+ "type" : {
618
+ "basetype" : "Bits",
619
+ "onRelease" : {
620
+ "nodetype" : "namednumber",
621
+ "number" : "0"
622
+ },
623
+ "periodically" : {
624
+ "nodetype" : "namednumber",
625
+ "number" : "1"
626
+ },
627
+ },
628
+ },
629
+ "access" : "readwrite",
630
+ "default" : "(onRelease)",
631
+ "description" :
632
+ """An indication of when accounting data is to be written into
633
+ this file. Note that in addition to the occasions indicated
634
+ by the value of this object, an agent always writes
635
+ information on appropriate connections to the file when the
636
+ corresponding instance of acctngFileCommand is set to
637
+ 'collectNow'.
638
+
639
+ - 'onRelease' - whenever a connection (or possibly,
640
+ connection attempt) is terminated, either through
641
+ a Release message or through management removal,
642
+ information on that connection is written.
643
+
644
+ - 'periodically' - information on appropriate connections
645
+ is written on the expiry of a periodic timer,
646
+
647
+ This value may be modified at any time.""",
648
+ }, # column
649
+ "acctngFileCollectFailedAttempts" : {
650
+ "nodetype" : "column",
651
+ "moduleName" : "ACCOUNTING-CONTROL-MIB",
652
+ "oid" : "1.3.6.1.2.1.60.1.2.1.1.10",
653
+ "status" : "current",
654
+ "syntax" : {
655
+ "type" : {
656
+ "basetype" : "Bits",
657
+ "soft" : {
658
+ "nodetype" : "namednumber",
659
+ "number" : "0"
660
+ },
661
+ "regular" : {
662
+ "nodetype" : "namednumber",
663
+ "number" : "1"
664
+ },
665
+ },
666
+ },
667
+ "access" : "readwrite",
668
+ "default" : "(soft, regular)",
669
+ "description" :
670
+ """An indication of whether connection data is to be collected
671
+ for failed connection attempts when the value of the
672
+ corresponding instance of acctngFileCollectMode includes
673
+ 'onRelease'. The individual values have the following
674
+ meaning:
675
+
676
+ 'soft' - indicates that connection data is to be collected
677
+ for failed Soft PVCs/PVPs which originate or terminate at
678
+ the relevant interface.
679
+
680
+ 'regular' - indicates that connection data is to be
681
+ collected for failed SVCs, including Soft PVCs/PVPs not
682
+ originating or terminating at the relevant interface.
683
+
684
+ This value may be modified at any time.""",
685
+ }, # column
686
+ "acctngFileInterval" : {
687
+ "nodetype" : "column",
688
+ "moduleName" : "ACCOUNTING-CONTROL-MIB",
689
+ "oid" : "1.3.6.1.2.1.60.1.2.1.1.11",
690
+ "status" : "current",
691
+ "syntax" : {
692
+ "type" : {
693
+ "basetype" : "Integer32",
694
+ "ranges" : [
695
+ {
696
+ "min" : "60",
697
+ "max" : "86400"
698
+ },
699
+ ],
700
+ "range" : {
701
+ "min" : "60",
702
+ "max" : "86400"
703
+ },
704
+ },
705
+ },
706
+ "access" : "readwrite",
707
+ "default" : "3600",
708
+ "units" : "seconds",
709
+ "description" :
710
+ """The number of seconds between the periodic collections of
711
+ accounting data when the value of the corresponding instance
712
+ of acctngFileCollectMode includes 'periodically'. Some
713
+ agents may impose restrictions on the range of this
714
+ interval. This value may be modified at any time.""",
715
+ }, # column
716
+ "acctngFileMinAge" : {
717
+ "nodetype" : "column",
718
+ "moduleName" : "ACCOUNTING-CONTROL-MIB",
719
+ "oid" : "1.3.6.1.2.1.60.1.2.1.1.12",
720
+ "status" : "current",
721
+ "syntax" : {
722
+ "type" : {
723
+ "basetype" : "Integer32",
724
+ "ranges" : [
725
+ {
726
+ "min" : "60",
727
+ "max" : "86400"
728
+ },
729
+ ],
730
+ "range" : {
731
+ "min" : "60",
732
+ "max" : "86400"
733
+ },
734
+ },
735
+ },
736
+ "access" : "readwrite",
737
+ "default" : "3600",
738
+ "units" : "seconds",
739
+ "description" :
740
+ """The minimum age of a connection, as used to determine the
741
+ set of connections for which data is to be collected at the
742
+ periodic intervals and/or when acctngFileCommand is set to
743
+ 'collectNow'. The age of a connection is the elapsed time
744
+ since it was last installed.
745
+
746
+ When the periodic interval expires for a file or when
747
+ acctngFileCommand is set to 'collectNow', accounting data is
748
+ collected and stored in the file for each connection having
749
+ a type matching acctngSelectionType and whose age at that
750
+ time is greater than the value of acctngFileMinAge
751
+ associated with the file. This value may be modified at any
752
+ time.""",
753
+ }, # column
754
+ "acctngFileRowStatus" : {
755
+ "nodetype" : "column",
756
+ "moduleName" : "ACCOUNTING-CONTROL-MIB",
757
+ "oid" : "1.3.6.1.2.1.60.1.2.1.1.13",
758
+ "status" : "current",
759
+ "syntax" : {
760
+ "type" : { "module" :"SNMPv2-TC", "name" : "RowStatus"},
761
+ },
762
+ "access" : "readwrite",
763
+ "description" :
764
+ """The status of this conceptual row.
765
+
766
+ This object can not be set to 'active' until a value has
767
+ been assigned to the corresponding instance of
768
+ acctngFileName. Collection of data into the file does not
769
+ begin until this object has the value 'active' and one or
770
+ more (active) instances of acctngSelectionFile refer to it.
771
+ If this value is modified after a collection has begun,
772
+ collection into this file terminates and a new (or new
773
+ version of the) file is immediately made ready for future
774
+ collection (as if acctngFileCommand had been set to
775
+ 'swapToNewFile'), but collection into the new (or new
776
+ version of the) file does not begin until the value is
777
+ subsequently set back to active.""",
778
+ }, # column
779
+ "acctngInterfaceControl" : {
780
+ "nodetype" : "node",
781
+ "moduleName" : "ACCOUNTING-CONTROL-MIB",
782
+ "oid" : "1.3.6.1.2.1.60.1.3",
783
+ }, # node
784
+ "acctngAdminStatus" : {
785
+ "nodetype" : "scalar",
786
+ "moduleName" : "ACCOUNTING-CONTROL-MIB",
787
+ "oid" : "1.3.6.1.2.1.60.1.3.1",
788
+ "status" : "current",
789
+ "syntax" : {
790
+ "type" : {
791
+ "basetype" : "Enumeration",
792
+ "enabled" : {
793
+ "nodetype" : "namednumber",
794
+ "number" : "1"
795
+ },
796
+ "disabled" : {
797
+ "nodetype" : "namednumber",
798
+ "number" : "2"
799
+ },
800
+ },
801
+ },
802
+ "access" : "readwrite",
803
+ "description" :
804
+ """A control object to indicate the administratively desired
805
+ state of the collection of accounting records across all
806
+ interfaces.
807
+
808
+ Modifying the value of acctngAdminStatus to 'disabled' does
809
+ not remove or change the current configuration as
810
+ represented by the active rows in the acctngSelectionTable,
811
+ acctngFileTable and acctngInterfaceTable tables.""",
812
+ }, # scalar
813
+ "acctngOperStatus" : {
814
+ "nodetype" : "scalar",
815
+ "moduleName" : "ACCOUNTING-CONTROL-MIB",
816
+ "oid" : "1.3.6.1.2.1.60.1.3.2",
817
+ "status" : "current",
818
+ "syntax" : {
819
+ "type" : {
820
+ "basetype" : "Enumeration",
821
+ "enabled" : {
822
+ "nodetype" : "namednumber",
823
+ "number" : "1"
824
+ },
825
+ "disabled" : {
826
+ "nodetype" : "namednumber",
827
+ "number" : "2"
828
+ },
829
+ },
830
+ },
831
+ "access" : "readonly",
832
+ "description" :
833
+ """A status object to indicate the operational state of the
834
+ collection of accounting records across all interfaces.
835
+
836
+ When the value of acctngAdminStatus is modified to be
837
+ 'enabled', the value of this object will change to 'enabled'
838
+ providing it is possible to begin collecting accounting
839
+ records.
840
+
841
+ When the value of acctngAdminStatus is modified to be
842
+ 'disabled', the value of this object will change to
843
+ 'disabled' as soon as the collection of accounting records
844
+ has terminated.""",
845
+ }, # scalar
846
+ "acctngProtection" : {
847
+ "nodetype" : "scalar",
848
+ "moduleName" : "ACCOUNTING-CONTROL-MIB",
849
+ "oid" : "1.3.6.1.2.1.60.1.3.3",
850
+ "status" : "current",
851
+ "syntax" : {
852
+ "type" : { "module" :"SNMPv2-TC", "name" : "TestAndIncr"},
853
+ },
854
+ "access" : "readwrite",
855
+ "description" :
856
+ """A control object to protect against duplication of control
857
+ commands. Over some transport/network protocols, it is
858
+ possible for SNMP messages to get duplicated. Such
859
+ duplication, if it occurred at just the wrong time could
860
+ cause serious disruption to the collection and retrieval of
861
+ accounting data, e.g., if a SNMP message setting
862
+ acctngFileCommand to 'swapToNewFile' were to be duplicated,
863
+ a whole file of accounting data could be lost.
864
+
865
+ To protect against such duplication, a management
866
+ application should retrieve the value of this object, and
867
+ include in the Set operation needing protection, a variable
868
+ binding which sets this object to the retrieved value.""",
869
+ }, # scalar
870
+ "acctngAgentMode" : {
871
+ "nodetype" : "scalar",
872
+ "moduleName" : "ACCOUNTING-CONTROL-MIB",
873
+ "oid" : "1.3.6.1.2.1.60.1.3.4",
874
+ "status" : "current",
875
+ "syntax" : {
876
+ "type" : {
877
+ "basetype" : "Enumeration",
878
+ "swapOnCommand" : {
879
+ "nodetype" : "namednumber",
880
+ "number" : "1"
881
+ },
882
+ "swapOnFull" : {
883
+ "nodetype" : "namednumber",
884
+ "number" : "2"
885
+ },
886
+ },
887
+ },
888
+ "access" : "readonly",
889
+ "description" :
890
+ """An indication of the behaviour mode of the agent when a
891
+ file becomes full:
892
+
893
+ 'swapOnCommand' - the agent does not automatically swap
894
+ to a new file; rather, it discards newly collected
895
+ data until a management application subsequently
896
+ instructs it to swap to a new file.
897
+
898
+ 'swapOnFull' - the agent terminates collection into the
899
+ current file as and when that file becomes full.""",
900
+ }, # scalar
901
+ "acctngInterfaceTable" : {
902
+ "nodetype" : "table",
903
+ "moduleName" : "ACCOUNTING-CONTROL-MIB",
904
+ "oid" : "1.3.6.1.2.1.60.1.3.5",
905
+ "status" : "current",
906
+ "description" :
907
+ """A table controlling the collection of accounting data on
908
+ specific interfaces of the switch.""",
909
+ }, # table
910
+ "acctngInterfaceEntry" : {
911
+ "nodetype" : "row",
912
+ "moduleName" : "ACCOUNTING-CONTROL-MIB",
913
+ "oid" : "1.3.6.1.2.1.60.1.3.5.1",
914
+ "status" : "current",
915
+ "linkage" : [
916
+ "ifIndex",
917
+ ],
918
+ "description" :
919
+ """An entry which controls whether accounting data is to be
920
+ collected on an interface. The types of interfaces which
921
+ are represented in this table is implementation-specific.""",
922
+ }, # row
923
+ "acctngInterfaceEnable" : {
924
+ "nodetype" : "column",
925
+ "moduleName" : "ACCOUNTING-CONTROL-MIB",
926
+ "oid" : "1.3.6.1.2.1.60.1.3.5.1.1",
927
+ "status" : "current",
928
+ "syntax" : {
929
+ "type" : { "module" :"SNMPv2-TC", "name" : "TruthValue"},
930
+ },
931
+ "access" : "readwrite",
932
+ "description" :
933
+ """Indicates whether the collection of accounting data is
934
+ enabled on this interface.""",
935
+ }, # column
936
+ "acctngTrapControl" : {
937
+ "nodetype" : "node",
938
+ "moduleName" : "ACCOUNTING-CONTROL-MIB",
939
+ "oid" : "1.3.6.1.2.1.60.1.4",
940
+ }, # node
941
+ "acctngControlTrapThreshold" : {
942
+ "nodetype" : "scalar",
943
+ "moduleName" : "ACCOUNTING-CONTROL-MIB",
944
+ "oid" : "1.3.6.1.2.1.60.1.4.1",
945
+ "status" : "current",
946
+ "syntax" : {
947
+ "type" : {
948
+ "basetype" : "Integer32",
949
+ "ranges" : [
950
+ {
951
+ "min" : "0",
952
+ "max" : "99"
953
+ },
954
+ ],
955
+ "range" : {
956
+ "min" : "0",
957
+ "max" : "99"
958
+ },
959
+ },
960
+ },
961
+ "access" : "readwrite",
962
+ "description" :
963
+ """A percentage of the maximum file size at which a 'nearly-
964
+ full' trap is generated. The value of 0 indicates that no
965
+ 'nearly-full' trap is to be generated.""",
966
+ }, # scalar
967
+ "acctngControlTrapEnable" : {
968
+ "nodetype" : "scalar",
969
+ "moduleName" : "ACCOUNTING-CONTROL-MIB",
970
+ "oid" : "1.3.6.1.2.1.60.1.4.2",
971
+ "status" : "current",
972
+ "syntax" : {
973
+ "type" : { "module" :"SNMPv2-TC", "name" : "TruthValue"},
974
+ },
975
+ "access" : "readwrite",
976
+ "description" :
977
+ """An indication of whether the acctngFileNearlyFull and
978
+ acctngFileFull traps are enabled.""",
979
+ }, # scalar
980
+ "acctngNotifications" : {
981
+ "nodetype" : "node",
982
+ "moduleName" : "ACCOUNTING-CONTROL-MIB",
983
+ "oid" : "1.3.6.1.2.1.60.2",
984
+ }, # node
985
+ "acctngNotifyPrefix" : {
986
+ "nodetype" : "node",
987
+ "moduleName" : "ACCOUNTING-CONTROL-MIB",
988
+ "oid" : "1.3.6.1.2.1.60.2.0",
989
+ }, # node
990
+ "acctngConformance" : {
991
+ "nodetype" : "node",
992
+ "moduleName" : "ACCOUNTING-CONTROL-MIB",
993
+ "oid" : "1.3.6.1.2.1.60.3",
994
+ }, # node
995
+ "acctngGroups" : {
996
+ "nodetype" : "node",
997
+ "moduleName" : "ACCOUNTING-CONTROL-MIB",
998
+ "oid" : "1.3.6.1.2.1.60.3.1",
999
+ }, # node
1000
+ "acctngCompliances" : {
1001
+ "nodetype" : "node",
1002
+ "moduleName" : "ACCOUNTING-CONTROL-MIB",
1003
+ "oid" : "1.3.6.1.2.1.60.3.2",
1004
+ }, # node
1005
+ }, # nodes
1006
+
1007
+ "notifications" : {
1008
+ "acctngFileNearlyFull" : {
1009
+ "nodetype" : "notification",
1010
+ "moduleName" : "ACCOUNTING-CONTROL-MIB",
1011
+ "oid" : "1.3.6.1.2.1.60.2.0.1",
1012
+ "status" : "current",
1013
+ "objects" : {
1014
+ "acctngFileName" : {
1015
+ "nodetype" : "object",
1016
+ "module" : "ACCOUNTING-CONTROL-MIB"
1017
+ },
1018
+ "acctngFileMaximumSize" : {
1019
+ "nodetype" : "object",
1020
+ "module" : "ACCOUNTING-CONTROL-MIB"
1021
+ },
1022
+ "acctngControlTrapThreshold" : {
1023
+ "nodetype" : "object",
1024
+ "module" : "ACCOUNTING-CONTROL-MIB"
1025
+ },
1026
+ "acctngFileNameSuffix" : {
1027
+ "nodetype" : "object",
1028
+ "module" : "ACCOUNTING-CONTROL-MIB"
1029
+ },
1030
+ },
1031
+ "description" :
1032
+ """An indication that the size of the file into which
1033
+ accounting information is currently being collected has
1034
+ exceeded the threshold percentage of its maximum file size.
1035
+ This notification is generated only at the time of the
1036
+ transition from not-exceeding to exceeding.""",
1037
+ }, # notification
1038
+ "acctngFileFull" : {
1039
+ "nodetype" : "notification",
1040
+ "moduleName" : "ACCOUNTING-CONTROL-MIB",
1041
+ "oid" : "1.3.6.1.2.1.60.2.0.2",
1042
+ "status" : "current",
1043
+ "objects" : {
1044
+ "acctngFileName" : {
1045
+ "nodetype" : "object",
1046
+ "module" : "ACCOUNTING-CONTROL-MIB"
1047
+ },
1048
+ "acctngFileMaximumSize" : {
1049
+ "nodetype" : "object",
1050
+ "module" : "ACCOUNTING-CONTROL-MIB"
1051
+ },
1052
+ "acctngFileNameSuffix" : {
1053
+ "nodetype" : "object",
1054
+ "module" : "ACCOUNTING-CONTROL-MIB"
1055
+ },
1056
+ },
1057
+ "description" :
1058
+ """An indication that the size of the file into which
1059
+ accounting information is currently being collected has
1060
+ transistioned to its maximum file size. This notification
1061
+ is generated (for all values of acctngAgentMode) at the time
1062
+ of the transition from not-full to full. If acctngAgentMode
1063
+ has the value 'swapOnCommand', it is also generated
1064
+ periodically thereafter until such time as collection of
1065
+ data is no longer inhibited by the file full condition.""",
1066
+ }, # notification
1067
+ }, # notifications
1068
+
1069
+ "groups" : {
1070
+ "acctngBasicGroup" : {
1071
+ "nodetype" : "group",
1072
+ "moduleName" : "ACCOUNTING-CONTROL-MIB",
1073
+ "oid" : "1.3.6.1.2.1.60.3.1.1",
1074
+ "status" : "current",
1075
+ "members" : {
1076
+ "acctngSelectionSubtree" : {
1077
+ "nodetype" : "member",
1078
+ "module" : "ACCOUNTING-CONTROL-MIB"
1079
+ },
1080
+ "acctngSelectionList" : {
1081
+ "nodetype" : "member",
1082
+ "module" : "ACCOUNTING-CONTROL-MIB"
1083
+ },
1084
+ "acctngSelectionFile" : {
1085
+ "nodetype" : "member",
1086
+ "module" : "ACCOUNTING-CONTROL-MIB"
1087
+ },
1088
+ "acctngSelectionType" : {
1089
+ "nodetype" : "member",
1090
+ "module" : "ACCOUNTING-CONTROL-MIB"
1091
+ },
1092
+ "acctngSelectionRowStatus" : {
1093
+ "nodetype" : "member",
1094
+ "module" : "ACCOUNTING-CONTROL-MIB"
1095
+ },
1096
+ "acctngFileName" : {
1097
+ "nodetype" : "member",
1098
+ "module" : "ACCOUNTING-CONTROL-MIB"
1099
+ },
1100
+ "acctngFileNameSuffix" : {
1101
+ "nodetype" : "member",
1102
+ "module" : "ACCOUNTING-CONTROL-MIB"
1103
+ },
1104
+ "acctngFileDescription" : {
1105
+ "nodetype" : "member",
1106
+ "module" : "ACCOUNTING-CONTROL-MIB"
1107
+ },
1108
+ "acctngFileCommand" : {
1109
+ "nodetype" : "member",
1110
+ "module" : "ACCOUNTING-CONTROL-MIB"
1111
+ },
1112
+ "acctngFileMaximumSize" : {
1113
+ "nodetype" : "member",
1114
+ "module" : "ACCOUNTING-CONTROL-MIB"
1115
+ },
1116
+ "acctngFileCurrentSize" : {
1117
+ "nodetype" : "member",
1118
+ "module" : "ACCOUNTING-CONTROL-MIB"
1119
+ },
1120
+ "acctngFileRowStatus" : {
1121
+ "nodetype" : "member",
1122
+ "module" : "ACCOUNTING-CONTROL-MIB"
1123
+ },
1124
+ "acctngFileFormat" : {
1125
+ "nodetype" : "member",
1126
+ "module" : "ACCOUNTING-CONTROL-MIB"
1127
+ },
1128
+ "acctngFileCollectMode" : {
1129
+ "nodetype" : "member",
1130
+ "module" : "ACCOUNTING-CONTROL-MIB"
1131
+ },
1132
+ "acctngFileCollectFailedAttempts" : {
1133
+ "nodetype" : "member",
1134
+ "module" : "ACCOUNTING-CONTROL-MIB"
1135
+ },
1136
+ "acctngFileInterval" : {
1137
+ "nodetype" : "member",
1138
+ "module" : "ACCOUNTING-CONTROL-MIB"
1139
+ },
1140
+ "acctngFileMinAge" : {
1141
+ "nodetype" : "member",
1142
+ "module" : "ACCOUNTING-CONTROL-MIB"
1143
+ },
1144
+ "acctngAdminStatus" : {
1145
+ "nodetype" : "member",
1146
+ "module" : "ACCOUNTING-CONTROL-MIB"
1147
+ },
1148
+ "acctngOperStatus" : {
1149
+ "nodetype" : "member",
1150
+ "module" : "ACCOUNTING-CONTROL-MIB"
1151
+ },
1152
+ "acctngProtection" : {
1153
+ "nodetype" : "member",
1154
+ "module" : "ACCOUNTING-CONTROL-MIB"
1155
+ },
1156
+ "acctngAgentMode" : {
1157
+ "nodetype" : "member",
1158
+ "module" : "ACCOUNTING-CONTROL-MIB"
1159
+ },
1160
+ "acctngInterfaceEnable" : {
1161
+ "nodetype" : "member",
1162
+ "module" : "ACCOUNTING-CONTROL-MIB"
1163
+ },
1164
+ "acctngControlTrapThreshold" : {
1165
+ "nodetype" : "member",
1166
+ "module" : "ACCOUNTING-CONTROL-MIB"
1167
+ },
1168
+ "acctngControlTrapEnable" : {
1169
+ "nodetype" : "member",
1170
+ "module" : "ACCOUNTING-CONTROL-MIB"
1171
+ },
1172
+ }, # members
1173
+ "description" :
1174
+ """A collection of objects providing control of the basic
1175
+ collection of accounting data for connection-oriented
1176
+ networks.""",
1177
+ }, # group
1178
+ "acctngNotificationsGroup" : {
1179
+ "nodetype" : "group",
1180
+ "moduleName" : "ACCOUNTING-CONTROL-MIB",
1181
+ "oid" : "1.3.6.1.2.1.60.3.1.2",
1182
+ "status" : "current",
1183
+ "members" : {
1184
+ "acctngFileNearlyFull" : {
1185
+ "nodetype" : "member",
1186
+ "module" : "ACCOUNTING-CONTROL-MIB"
1187
+ },
1188
+ "acctngFileFull" : {
1189
+ "nodetype" : "member",
1190
+ "module" : "ACCOUNTING-CONTROL-MIB"
1191
+ },
1192
+ }, # members
1193
+ "description" :
1194
+ """The notifications of events relating to controlling the
1195
+ collection of accounting data.""",
1196
+ }, # group
1197
+ }, # groups
1198
+
1199
+ "compliances" : {
1200
+ "acctngCompliance" : {
1201
+ "nodetype" : "compliance",
1202
+ "moduleName" : "ACCOUNTING-CONTROL-MIB",
1203
+ "oid" : "1.3.6.1.2.1.60.3.2.1",
1204
+ "status" : "current",
1205
+ "description" :
1206
+ """The compliance statement for switches which implement the
1207
+ Accounting Control MIB.""",
1208
+ "requires" : {
1209
+ "acctngBasicGroup" : {
1210
+ "nodetype" : "mandatory",
1211
+ "module" : "ACCOUNTING-CONTROL-MIB"
1212
+ },
1213
+ "acctngNotificationsGroup" : {
1214
+ "nodetype" : "mandatory",
1215
+ "module" : "ACCOUNTING-CONTROL-MIB"
1216
+ },
1217
+ }, # requires
1218
+ "refinements" : {
1219
+ "acctngSelectionType" : {
1220
+ "module" : "ACCOUNTING-CONTROL-MIB",
1221
+ "syntax" : {
1222
+ "type" : {
1223
+ "basetype" : "Bits",
1224
+ "svcIncoming" : {
1225
+ "nodetype" : "namednumber",
1226
+ "number" : "0"
1227
+ },
1228
+ "svcOutgoing" : {
1229
+ "nodetype" : "namednumber",
1230
+ "number" : "1"
1231
+ },
1232
+ },
1233
+ }, # syntax
1234
+ "description" :
1235
+ """The minimal requirement is collection for SVCs.""",
1236
+ },
1237
+ "acctngSelectionRowStatus" : {
1238
+ "module" : "ACCOUNTING-CONTROL-MIB",
1239
+ "access" : "readonly",
1240
+ "description" :
1241
+ """Write access is not required.""",
1242
+ },
1243
+ "acctngFileName" : {
1244
+ "module" : "ACCOUNTING-CONTROL-MIB",
1245
+ "access" : "readonly",
1246
+ "description" :
1247
+ """Write access is not required.""",
1248
+ },
1249
+ "acctngFileCommand" : {
1250
+ "module" : "ACCOUNTING-CONTROL-MIB",
1251
+ "access" : "readonly",
1252
+ "description" :
1253
+ """Write access is not required.""",
1254
+ },
1255
+ "acctngFileFormat" : {
1256
+ "module" : "ACCOUNTING-CONTROL-MIB",
1257
+ "syntax" : {
1258
+ "type" : {
1259
+ "basetype" : "Enumeration",
1260
+ "ber" : {
1261
+ "nodetype" : "namednumber",
1262
+ "number" : "2"
1263
+ },
1264
+ },
1265
+ }, # syntax
1266
+ "access" : "readonly",
1267
+ "description" :
1268
+ """Only the standard format is required, and write
1269
+ access is not required.""",
1270
+ },
1271
+ "acctngFileMaximumSize" : {
1272
+ "module" : "ACCOUNTING-CONTROL-MIB",
1273
+ "access" : "readonly",
1274
+ "description" :
1275
+ """Write access is not required.""",
1276
+ },
1277
+ "acctngFileCollectMode" : {
1278
+ "module" : "ACCOUNTING-CONTROL-MIB",
1279
+ "syntax" : {
1280
+ "type" : {
1281
+ "basetype" : "Bits",
1282
+ "onRelease" : {
1283
+ "nodetype" : "namednumber",
1284
+ "number" : "0"
1285
+ },
1286
+ },
1287
+ }, # syntax
1288
+ "access" : "readonly",
1289
+ "description" :
1290
+ """The minimal requirement is for collection on
1291
+ connection release.""",
1292
+ },
1293
+ "acctngFileInterval" : {
1294
+ "module" : "ACCOUNTING-CONTROL-MIB",
1295
+ "access" : "readonly",
1296
+ "description" :
1297
+ """Write access is not required.""",
1298
+ },
1299
+ "acctngFileCollectFailedAttempts" : {
1300
+ "module" : "ACCOUNTING-CONTROL-MIB",
1301
+ "access" : "readonly",
1302
+ "description" :
1303
+ """Write access is not required.""",
1304
+ },
1305
+ "acctngFileRowStatus" : {
1306
+ "module" : "ACCOUNTING-CONTROL-MIB",
1307
+ "access" : "readonly",
1308
+ "description" :
1309
+ """Write access is not required.""",
1310
+ },
1311
+ }, # refinements
1312
+
1313
+ }, # compliance
1314
+ }, # compliances
1315
+
1316
+ }