snmp 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +179 -0
- data/Rakefile +34 -39
- data/data/ruby/snmp/mibs/ACCOUNTING-CONTROL-MIB.yaml +33 -32
- data/data/ruby/snmp/mibs/ADSL-LINE-EXT-MIB.yaml +57 -56
- data/data/ruby/snmp/mibs/ADSL-LINE-MIB.yaml +224 -223
- data/data/ruby/snmp/mibs/ADSL-TC-MIB.yaml +1 -0
- data/data/ruby/snmp/mibs/ADSL2-LINE-MIB.yaml +321 -0
- data/data/ruby/snmp/mibs/ADSL2-LINE-TC-MIB.yaml +3 -0
- data/data/ruby/snmp/mibs/AGENTX-MIB.yaml +25 -24
- data/data/ruby/snmp/mibs/AGGREGATE-MIB.yaml +28 -0
- data/data/ruby/snmp/mibs/ALARM-MIB.yaml +77 -0
- data/data/ruby/snmp/mibs/APM-MIB.yaml +75 -74
- data/data/ruby/snmp/mibs/APPC-MIB.yaml +261 -260
- data/data/ruby/snmp/mibs/APPLETALK-MIB.yaml +255 -254
- data/data/ruby/snmp/mibs/APPLICATION-MIB.yaml +138 -137
- data/data/ruby/snmp/mibs/APPN-DLUR-MIB.yaml +30 -29
- data/data/ruby/snmp/mibs/APPN-MIB.yaml +325 -324
- data/data/ruby/snmp/mibs/APPN-TRAP-MIB.yaml +10 -9
- data/data/ruby/snmp/mibs/APS-MIB.yaml +50 -49
- data/data/ruby/snmp/mibs/ARC-MIB.yaml +19 -0
- data/data/ruby/snmp/mibs/ATM-ACCOUNTING-INFORMATION-MIB.yaml +22 -21
- data/data/ruby/snmp/mibs/ATM-MIB.yaml +94 -93
- data/data/ruby/snmp/mibs/ATM-TC-MIB.yaml +12 -11
- data/data/ruby/snmp/mibs/ATM2-MIB.yaml +156 -155
- data/data/ruby/snmp/mibs/BGP4-MIB.yaml +48 -41
- data/data/ruby/snmp/mibs/BLDG-HVAC-MIB.yaml +25 -24
- data/data/ruby/snmp/mibs/BRIDGE-MIB.yaml +50 -44
- data/data/ruby/snmp/mibs/CHARACTER-MIB.yaml +35 -34
- data/data/ruby/snmp/mibs/CIRCUIT-IF-MIB.yaml +13 -12
- data/data/ruby/snmp/mibs/CLNS-MIB.yaml +98 -97
- data/data/ruby/snmp/mibs/COFFEE-POT-MIB.yaml +8 -7
- data/data/ruby/snmp/mibs/COPS-CLIENT-MIB.yaml +38 -37
- data/data/ruby/snmp/mibs/DECNET-PHIV-MIB.yaml +209 -208
- data/data/ruby/snmp/mibs/DIAL-CONTROL-MIB.yaml +72 -71
- data/data/ruby/snmp/mibs/DIFFSERV-CONFIG-MIB.yaml +11 -10
- data/data/ruby/snmp/mibs/DIFFSERV-DSCP-TC.yaml +1 -0
- data/data/ruby/snmp/mibs/DIFFSERV-MIB.yaml +151 -150
- data/data/ruby/snmp/mibs/DIRECTORY-SERVER-MIB.yaml +35 -34
- data/data/ruby/snmp/mibs/DISMAN-EVENT-MIB.yaml +95 -94
- data/data/ruby/snmp/mibs/DISMAN-EXPRESSION-MIB.yaml +37 -36
- data/data/ruby/snmp/mibs/DISMAN-NSLOOKUP-MIB.yaml +15 -14
- data/data/ruby/snmp/mibs/DISMAN-PING-MIB.yaml +43 -42
- data/data/ruby/snmp/mibs/DISMAN-SCHEDULE-MIB.yaml +22 -21
- data/data/ruby/snmp/mibs/DISMAN-SCRIPT-MIB.yaml +64 -63
- data/data/ruby/snmp/mibs/DISMAN-TRACEROUTE-MIB.yaml +59 -58
- data/data/ruby/snmp/mibs/DLSW-MIB.yaml +172 -171
- data/data/ruby/snmp/mibs/DNS-RESOLVER-MIB.yaml +70 -69
- data/data/ruby/snmp/mibs/DNS-SERVER-MIB.yaml +57 -56
- data/data/ruby/snmp/mibs/DOCS-BPI-MIB.yaml +81 -80
- data/data/ruby/snmp/mibs/DOCS-CABLE-DEVICE-MIB.yaml +114 -89
- data/data/ruby/snmp/mibs/DOCS-IETF-BPI2-MIB.yaml +187 -0
- data/data/ruby/snmp/mibs/DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB.yaml +39 -0
- data/data/ruby/snmp/mibs/DOCS-IETF-QOS-MIB.yaml +166 -0
- data/data/ruby/snmp/mibs/DOCS-IETF-SUBMGT-MIB.yaml +32 -0
- data/data/ruby/snmp/mibs/DOCS-IF-MIB.yaml +208 -119
- data/data/ruby/snmp/mibs/DOT12-IF-MIB.yaml +21 -20
- data/data/ruby/snmp/mibs/DOT3-EPON-MIB.yaml +101 -0
- data/data/ruby/snmp/mibs/DOT3-OAM-MIB.yaml +82 -0
- data/data/ruby/snmp/mibs/DS0-MIB.yaml +11 -10
- data/data/ruby/snmp/mibs/DS0BUNDLE-MIB.yaml +9 -8
- data/data/ruby/snmp/mibs/DS1-MIB.yaml +102 -98
- data/data/ruby/snmp/mibs/DS3-MIB.yaml +84 -83
- data/data/ruby/snmp/mibs/DSA-MIB.yaml +31 -30
- data/data/ruby/snmp/mibs/DSMON-MIB.yaml +193 -192
- data/data/ruby/snmp/mibs/EBN-MIB.yaml +32 -31
- data/data/ruby/snmp/mibs/EFM-CU-MIB.yaml +113 -0
- data/data/ruby/snmp/mibs/ENTITY-MIB.yaml +41 -38
- data/data/ruby/snmp/mibs/ENTITY-SENSOR-MIB.yaml +8 -7
- data/data/ruby/snmp/mibs/ENTITY-STATE-MIB.yaml +18 -0
- data/data/ruby/snmp/mibs/ENTITY-STATE-TC-MIB.yaml +3 -0
- data/data/ruby/snmp/mibs/ETHER-CHIPSET-MIB.yaml +61 -60
- data/data/ruby/snmp/mibs/ETHER-WIS.yaml +16 -15
- data/data/ruby/snmp/mibs/EtherLike-MIB.yaml +43 -42
- data/data/ruby/snmp/mibs/FC-MGMT-MIB.yaml +154 -0
- data/data/ruby/snmp/mibs/FCIP-MGMT-MIB.yaml +68 -0
- data/data/ruby/snmp/mibs/FDDI-SMT73-MIB.yaml +107 -106
- data/data/ruby/snmp/mibs/FIBRE-CHANNEL-FE-MIB.yaml +100 -99
- data/data/ruby/snmp/mibs/FLOW-METER-MIB.yaml +92 -91
- data/data/ruby/snmp/mibs/FR-ATM-PVC-SERVICE-IWF-MIB.yaml +33 -32
- data/data/ruby/snmp/mibs/FR-MFR-MIB.yaml +38 -37
- data/data/ruby/snmp/mibs/FRAME-RELAY-DTE-MIB.yaml +41 -40
- data/data/ruby/snmp/mibs/FRNETSERV-MIB.yaml +92 -91
- data/data/ruby/snmp/mibs/FRSLD-MIB.yaml +66 -65
- data/data/ruby/snmp/mibs/Finisher-MIB.yaml +38 -37
- data/data/ruby/snmp/mibs/GMPLS-LABEL-STD-MIB.yaml +27 -0
- data/data/ruby/snmp/mibs/GMPLS-LSR-STD-MIB.yaml +20 -0
- data/data/ruby/snmp/mibs/GMPLS-TC-STD-MIB.yaml +3 -0
- data/data/ruby/snmp/mibs/GMPLS-TE-STD-MIB.yaml +72 -0
- data/data/ruby/snmp/mibs/GSMP-MIB.yaml +75 -74
- data/data/ruby/snmp/mibs/HC-ALARM-MIB.yaml +26 -25
- data/data/ruby/snmp/mibs/HC-PerfHist-TC-MIB.yaml +1 -0
- data/data/ruby/snmp/mibs/HC-RMON-MIB.yaml +164 -163
- data/data/ruby/snmp/mibs/HCNUM-TC.yaml +1 -0
- data/data/ruby/snmp/mibs/HDSL2-SHDSL-LINE-MIB.yaml +117 -112
- data/data/ruby/snmp/mibs/HOST-RESOURCES-MIB.yaml +82 -81
- data/data/ruby/snmp/mibs/HOST-RESOURCES-TYPES.yaml +40 -39
- data/data/ruby/snmp/mibs/HPR-IP-MIB.yaml +17 -16
- data/data/ruby/snmp/mibs/HPR-MIB.yaml +64 -63
- data/data/ruby/snmp/mibs/IANA-ITU-ALARM-TC-MIB.yaml +3 -0
- data/data/ruby/snmp/mibs/IF-CAP-STACK-MIB.yaml +13 -0
- data/data/ruby/snmp/mibs/IF-INVERTED-STACK-MIB.yaml +6 -5
- data/data/ruby/snmp/mibs/IF-MIB.yaml +57 -56
- data/data/ruby/snmp/mibs/IFCP-MGMT-MIB.yaml +65 -0
- data/data/ruby/snmp/mibs/IGMP-STD-MIB.yaml +24 -23
- data/data/ruby/snmp/mibs/INET-ADDRESS-MIB.yaml +1 -0
- data/data/ruby/snmp/mibs/INTEGRATED-SERVICES-GUARANTEED-MIB.yaml +6 -5
- data/data/ruby/snmp/mibs/INTEGRATED-SERVICES-MIB.yaml +29 -28
- data/data/ruby/snmp/mibs/INTERFACETOPN-MIB.yaml +21 -20
- data/data/ruby/snmp/mibs/IP-FORWARD-MIB.yaml +49 -27
- data/data/ruby/snmp/mibs/IP-MIB.yaml +243 -40
- data/data/ruby/snmp/mibs/IPATM-IPMC-MIB.yaml +179 -178
- data/data/ruby/snmp/mibs/IPMCAST-MIB.yaml +105 -0
- data/data/ruby/snmp/mibs/IPMROUTE-STD-MIB.yaml +49 -48
- data/data/ruby/snmp/mibs/IPOA-MIB.yaml +74 -73
- data/data/ruby/snmp/mibs/IPS-AUTH-MIB.yaml +68 -0
- data/data/ruby/snmp/mibs/IPSEC-SPD-MIB.yaml +121 -0
- data/data/ruby/snmp/mibs/IPV6-FLOW-LABEL-MIB.yaml +1 -0
- data/data/ruby/snmp/mibs/IPV6-ICMP-MIB.yaml +27 -26
- data/data/ruby/snmp/mibs/IPV6-MIB.yaml +70 -69
- data/data/ruby/snmp/mibs/IPV6-MLD-MIB.yaml +18 -17
- data/data/ruby/snmp/mibs/IPV6-TCP-MIB.yaml +7 -6
- data/data/ruby/snmp/mibs/IPV6-UDP-MIB.yaml +6 -5
- data/data/ruby/snmp/mibs/ISCSI-MIB.yaml +199 -0
- data/data/ruby/snmp/mibs/ISDN-MIB.yaml +57 -56
- data/data/ruby/snmp/mibs/ISIS-MIB.yaml +247 -0
- data/data/ruby/snmp/mibs/ISNS-MIB.yaml +179 -0
- data/data/ruby/snmp/mibs/ITU-ALARM-MIB.yaml +34 -0
- data/data/ruby/snmp/mibs/ITU-ALARM-TC-MIB.yaml +3 -0
- data/data/ruby/snmp/mibs/Job-Monitoring-MIB.yaml +26 -27
- data/data/ruby/snmp/mibs/L2TP-MIB.yaml +138 -137
- data/data/ruby/snmp/mibs/LANGTAG-TC-MIB.yaml +3 -0
- data/data/ruby/snmp/mibs/LMP-MIB.yaml +202 -0
- data/data/ruby/snmp/mibs/MALLOC-MIB.yaml +66 -65
- data/data/ruby/snmp/mibs/MAU-MIB.yaml +55 -95
- data/data/ruby/snmp/mibs/MIDCOM-MIB.yaml +83 -0
- data/data/ruby/snmp/mibs/MIOX25-MIB.yaml +28 -27
- data/data/ruby/snmp/mibs/MIP-MIB.yaml +157 -156
- data/data/ruby/snmp/mibs/MOBILEIPV6-MIB.yaml +189 -0
- data/data/ruby/snmp/mibs/MPLS-FTN-STD-MIB.yaml +29 -28
- data/data/ruby/snmp/mibs/MPLS-L3VPN-STD-MIB.yaml +88 -0
- data/data/ruby/snmp/mibs/MPLS-LC-ATM-STD-MIB.yaml +19 -0
- data/data/ruby/snmp/mibs/MPLS-LC-FR-STD-MIB.yaml +16 -0
- data/data/ruby/snmp/mibs/MPLS-LDP-ATM-STD-MIB.yaml +23 -22
- data/data/ruby/snmp/mibs/MPLS-LDP-FRAME-RELAY-STD-MIB.yaml +17 -16
- data/data/ruby/snmp/mibs/MPLS-LDP-GENERIC-STD-MIB.yaml +9 -8
- data/data/ruby/snmp/mibs/MPLS-LDP-STD-MIB.yaml +103 -102
- data/data/ruby/snmp/mibs/MPLS-LSR-STD-MIB.yaml +85 -84
- data/data/ruby/snmp/mibs/MPLS-TC-STD-MIB.yaml +1 -0
- data/data/ruby/snmp/mibs/MPLS-TE-STD-MIB.yaml +106 -105
- data/data/ruby/snmp/mibs/MSDP-MIB.yaml +71 -0
- data/data/ruby/snmp/mibs/MTA-MIB.yaml +42 -41
- data/data/ruby/snmp/mibs/Modem-MIB.yaml +87 -86
- data/data/ruby/snmp/mibs/NAT-MIB.yaml +116 -0
- data/data/ruby/snmp/mibs/NETWORK-SERVICES-MIB.yaml +18 -17
- data/data/ruby/snmp/mibs/NHRP-MIB.yaml +140 -139
- data/data/ruby/snmp/mibs/NOTIFICATION-LOG-MIB.yaml +37 -36
- data/data/ruby/snmp/mibs/OPT-IF-MIB.yaml +394 -393
- data/data/ruby/snmp/mibs/OSPF-MIB.yaml +192 -123
- data/data/ruby/snmp/mibs/OSPF-TRAP-MIB.yaml +24 -19
- data/data/ruby/snmp/mibs/P-BRIDGE-MIB.yaml +37 -35
- data/data/ruby/snmp/mibs/PARALLEL-MIB.yaml +16 -15
- data/data/ruby/snmp/mibs/PIM-MIB.yaml +47 -46
- data/data/ruby/snmp/mibs/PIM-STD-MIB.yaml +235 -0
- data/data/ruby/snmp/mibs/PINT-MIB.yaml +38 -37
- data/data/ruby/snmp/mibs/PKTC-IETF-MTA-MIB.yaml +81 -0
- data/data/ruby/snmp/mibs/PKTC-IETF-SIG-MIB.yaml +128 -0
- data/data/ruby/snmp/mibs/POLICY-BASED-MANAGEMENT-MIB.yaml +94 -0
- data/data/ruby/snmp/mibs/POWER-ETHERNET-MIB.yaml +27 -26
- data/data/ruby/snmp/mibs/PPP-BRIDGE-NCP-MIB.yaml +16 -15
- data/data/ruby/snmp/mibs/PPP-IP-NCP-MIB.yaml +7 -6
- data/data/ruby/snmp/mibs/PPP-LCP-MIB.yaml +33 -32
- data/data/ruby/snmp/mibs/PPP-SEC-MIB.yaml +13 -12
- data/data/ruby/snmp/mibs/PTOPO-MIB.yaml +29 -28
- data/data/ruby/snmp/mibs/PerfHist-TC-MIB.yaml +1 -0
- data/data/ruby/snmp/mibs/Printer-MIB.yaml +185 -184
- data/data/ruby/snmp/mibs/Q-BRIDGE-MIB.yaml +96 -82
- data/data/ruby/snmp/mibs/RADIUS-ACC-CLIENT-MIB.yaml +34 -16
- data/data/ruby/snmp/mibs/RADIUS-ACC-SERVER-MIB.yaml +40 -24
- data/data/ruby/snmp/mibs/RADIUS-AUTH-CLIENT-MIB.yaml +38 -18
- data/data/ruby/snmp/mibs/RADIUS-AUTH-SERVER-MIB.yaml +40 -23
- data/data/ruby/snmp/mibs/RADIUS-DYNAUTH-CLIENT-MIB.yaml +44 -0
- data/data/ruby/snmp/mibs/RADIUS-DYNAUTH-SERVER-MIB.yaml +40 -0
- data/data/ruby/snmp/mibs/RAQMON-MIB.yaml +90 -0
- data/data/ruby/snmp/mibs/RDBMS-MIB.yaml +69 -68
- data/data/ruby/snmp/mibs/RFC1065-SMI.yaml +4 -5
- data/data/ruby/snmp/mibs/RFC1155-SMI.yaml +4 -5
- data/data/ruby/snmp/mibs/RFC1158-MIB.yaml +174 -173
- data/data/ruby/snmp/mibs/RFC1213-MIB.yaml +173 -172
- data/data/ruby/snmp/mibs/RFC1269-MIB.yaml +20 -19
- data/data/ruby/snmp/mibs/RFC1271-MIB.yaml +185 -184
- data/data/ruby/snmp/mibs/RFC1285-MIB.yaml +85 -84
- data/data/ruby/snmp/mibs/RFC1316-MIB.yaml +30 -29
- data/data/ruby/snmp/mibs/RFC1381-MIB.yaml +40 -39
- data/data/ruby/snmp/mibs/RFC1382-MIB.yaml +149 -148
- data/data/ruby/snmp/mibs/RFC1414-MIB.yaml +4 -3
- data/data/ruby/snmp/mibs/RIPv2-MIB.yaml +25 -24
- data/data/ruby/snmp/mibs/RMON-MIB.yaml +192 -191
- data/data/ruby/snmp/mibs/RMON2-MIB.yaml +253 -252
- data/data/ruby/snmp/mibs/ROHC-MIB.yaml +49 -48
- data/data/ruby/snmp/mibs/ROHC-RTP-MIB.yaml +19 -18
- data/data/ruby/snmp/mibs/ROHC-UNCOMPRESSED-MIB.yaml +6 -5
- data/data/ruby/snmp/mibs/RS-232-MIB.yaml +36 -35
- data/data/ruby/snmp/mibs/RSTP-MIB.yaml +18 -0
- data/data/ruby/snmp/mibs/RSVP-MIB.yaml +137 -136
- data/data/ruby/snmp/mibs/RTP-MIB.yaml +42 -41
- data/data/ruby/snmp/mibs/SCSI-MIB.yaml +160 -0
- data/data/ruby/snmp/mibs/SCTP-MIB.yaml +83 -0
- data/data/ruby/snmp/mibs/SFLOW-MIB.yaml +15 -14
- data/data/ruby/snmp/mibs/SIP-COMMON-MIB.yaml +112 -0
- data/data/ruby/snmp/mibs/SIP-MIB.yaml +56 -55
- data/data/ruby/snmp/mibs/SIP-SERVER-MIB.yaml +52 -0
- data/data/ruby/snmp/mibs/SIP-TC-MIB.yaml +3 -0
- data/data/ruby/snmp/mibs/SIP-UA-MIB.yaml +14 -0
- data/data/ruby/snmp/mibs/SLAPM-MIB.yaml +134 -133
- data/data/ruby/snmp/mibs/SMON-MIB.yaml +47 -46
- data/data/ruby/snmp/mibs/SNA-NAU-MIB.yaml +117 -116
- data/data/ruby/snmp/mibs/SNA-SDLC-MIB.yaml +126 -125
- data/data/ruby/snmp/mibs/SNMP-COMMUNITY-MIB.yaml +12 -11
- data/data/ruby/snmp/mibs/SNMP-FRAMEWORK-MIB.yaml +8 -7
- data/data/ruby/snmp/mibs/SNMP-MPD-MIB.yaml +6 -5
- data/data/ruby/snmp/mibs/SNMP-NOTIFICATION-MIB.yaml +16 -15
- data/data/ruby/snmp/mibs/SNMP-PROXY-MIB.yaml +10 -9
- data/data/ruby/snmp/mibs/SNMP-REPEATER-MIB.yaml +120 -119
- data/data/ruby/snmp/mibs/SNMP-TARGET-MIB.yaml +19 -18
- data/data/ruby/snmp/mibs/SNMP-USER-BASED-SM-MIB.yaml +26 -25
- data/data/ruby/snmp/mibs/SNMP-USM-AES-MIB.yaml +4 -0
- data/data/ruby/snmp/mibs/SNMP-USM-DH-OBJECTS-MIB.yaml +10 -9
- data/data/ruby/snmp/mibs/SNMP-VIEW-BASED-ACM-MIB.yaml +26 -25
- data/data/ruby/snmp/mibs/SNMPv2-MIB.yaml +46 -45
- data/data/ruby/snmp/mibs/SNMPv2-SMI.yaml +12 -11
- data/data/ruby/snmp/mibs/SNMPv2-TM.yaml +5 -4
- data/data/ruby/snmp/mibs/SNMPv2-USEC-MIB.yaml +10 -9
- data/data/ruby/snmp/mibs/SONET-MIB.yaml +110 -109
- data/data/ruby/snmp/mibs/SOURCE-ROUTING-MIB.yaml +18 -17
- data/data/ruby/snmp/mibs/SSPM-MIB.yaml +67 -0
- data/data/ruby/snmp/mibs/SYSAPPL-MIB.yaml +65 -64
- data/data/ruby/snmp/mibs/T11-FC-FABRIC-ADDR-MGR-MIB.yaml +63 -0
- data/data/ruby/snmp/mibs/T11-FC-FABRIC-CONFIG-SERVER-MIB.yaml +100 -0
- data/data/ruby/snmp/mibs/T11-FC-FABRIC-LOCK-MIB.yaml +22 -0
- data/data/ruby/snmp/mibs/T11-FC-FSPF-MIB.yaml +70 -0
- data/data/ruby/snmp/mibs/T11-FC-NAME-SERVER-MIB.yaml +56 -0
- data/data/ruby/snmp/mibs/T11-FC-ROUTE-MIB.yaml +27 -0
- data/data/ruby/snmp/mibs/T11-FC-RSCN-MIB.yaml +47 -0
- data/data/ruby/snmp/mibs/T11-FC-VIRTUAL-FABRIC-MIB.yaml +31 -0
- data/data/ruby/snmp/mibs/T11-FC-ZONE-SERVER-MIB.yaml +124 -0
- data/data/ruby/snmp/mibs/T11-TC-MIB.yaml +3 -0
- data/data/ruby/snmp/mibs/TCP-ESTATS-MIB.yaml +167 -0
- data/data/ruby/snmp/mibs/TCP-MIB.yaml +37 -18
- data/data/ruby/snmp/mibs/TCPIPX-MIB.yaml +16 -15
- data/data/ruby/snmp/mibs/TE-LINK-STD-MIB.yaml +82 -0
- data/data/ruby/snmp/mibs/TE-MIB.yaml +81 -0
- data/data/ruby/snmp/mibs/TIME-AGGREGATE-MIB.yaml +22 -0
- data/data/ruby/snmp/mibs/TN3270E-MIB.yaml +85 -84
- data/data/ruby/snmp/mibs/TN3270E-RT-MIB.yaml +33 -32
- data/data/ruby/snmp/mibs/TOKEN-RING-RMON-MIB.yaml +159 -158
- data/data/ruby/snmp/mibs/TOKENRING-MIB.yaml +42 -41
- data/data/ruby/snmp/mibs/TOKENRING-STATION-SR-MIB.yaml +8 -7
- data/data/ruby/snmp/mibs/TRANSPORT-ADDRESS-MIB.yaml +13 -12
- data/data/ruby/snmp/mibs/TRIP-MIB.yaml +118 -0
- data/data/ruby/snmp/mibs/TRIP-TC-MIB.yaml +3 -0
- data/data/ruby/snmp/mibs/TUNNEL-MIB.yaml +29 -13
- data/data/ruby/snmp/mibs/UDP-MIB.yaml +19 -6
- data/data/ruby/snmp/mibs/UDPLITE-MIB.yaml +26 -0
- data/data/ruby/snmp/mibs/UPS-MIB.yaml +100 -99
- data/data/ruby/snmp/mibs/URI-TC-MIB.yaml +3 -0
- data/data/ruby/snmp/mibs/VDSL-LINE-EXT-MCM-MIB.yaml +42 -0
- data/data/ruby/snmp/mibs/VDSL-LINE-EXT-SCM-MIB.yaml +27 -0
- data/data/ruby/snmp/mibs/VDSL-LINE-MIB.yaml +162 -161
- data/data/ruby/snmp/mibs/VPN-TC-STD-MIB.yaml +3 -0
- data/data/ruby/snmp/mibs/VRRP-MIB.yaml +39 -38
- data/data/ruby/snmp/mibs/WWW-MIB.yaml +75 -74
- data/examples/dump.rb +5 -5
- data/examples/iftable.rb +4 -4
- data/examples/link_down.rb +18 -18
- data/examples/log_traps.rb +9 -9
- data/examples/walk.rb +4 -4
- data/lib/snmp/agent.rb +42 -43
- data/lib/snmp/ber.rb +155 -156
- data/lib/snmp/manager.rb +412 -372
- data/lib/snmp/mib.rb +172 -182
- data/lib/snmp/options.rb +64 -0
- data/lib/snmp/pdu.rb +245 -245
- data/lib/snmp/varbind.rb +346 -341
- data/lib/snmp/version.rb +3 -0
- data/test/test_ber.rb +232 -233
- data/test/test_manager.rb +277 -238
- data/test/test_mib.rb +57 -57
- data/test/test_pdu.rb +172 -172
- data/test/test_retry.rb +54 -54
- data/test/test_smi.rb +10 -10
- data/test/test_varbind.rb +342 -331
- data/test/test_walk.rb +150 -150
- metadata +103 -45
- data/README +0 -252
- data/setup.rb +0 -1360
data/test/test_manager.rb
CHANGED
@@ -2,263 +2,302 @@ require 'test/unit'
|
|
2
2
|
require 'snmp/manager'
|
3
3
|
|
4
4
|
class EchoTransport
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
5
|
+
def initialize
|
6
|
+
end
|
7
|
+
|
8
|
+
def close
|
9
|
+
end
|
10
|
+
|
11
|
+
def send(data, host, port)
|
12
|
+
@data = data
|
13
|
+
end
|
14
|
+
|
15
|
+
def recv(max_bytes)
|
16
|
+
SNMP::Message.decode(@data).response.encode[0,max_bytes]
|
17
|
+
end
|
18
18
|
end
|
19
19
|
|
20
|
-
class
|
20
|
+
class TestConfig < Test::Unit::TestCase
|
21
21
|
|
22
|
-
|
23
|
-
|
24
|
-
def setup
|
25
|
-
@manager = Manager.new(:Transport => EchoTransport)
|
26
|
-
end
|
27
|
-
|
28
|
-
def teardown
|
29
|
-
@manager.close
|
30
|
-
end
|
31
|
-
|
32
|
-
def test_defaults
|
33
|
-
assert_equal('localhost', @manager.config[:Host])
|
34
|
-
assert_equal(161, @manager.config[:Port])
|
35
|
-
assert_equal('public', @manager.config[:WriteCommunity])
|
36
|
-
end
|
37
|
-
|
38
|
-
def test_community
|
39
|
-
@manager = Manager.new(:WriteCommunity=>'private', :Transport => EchoTransport)
|
40
|
-
assert_equal('public', @manager.config[:Community])
|
41
|
-
assert_equal('private', @manager.config[:WriteCommunity])
|
42
|
-
|
43
|
-
@manager = Manager.new(:Community=>'test', :Transport => EchoTransport)
|
44
|
-
assert_equal('test', @manager.config[:Community])
|
45
|
-
assert_equal('test', @manager.config[:WriteCommunity])
|
46
|
-
|
47
|
-
@manager = Manager.new(:Community=>'test', :WriteCommunity=>'private',
|
48
|
-
:Transport => EchoTransport)
|
49
|
-
assert_equal('test', @manager.config[:Community])
|
50
|
-
assert_equal('private', @manager.config[:WriteCommunity])
|
51
|
-
end
|
52
|
-
|
53
|
-
def test_transport_instance
|
54
|
-
@manager = Manager.new(:Transport => EchoTransport.new)
|
55
|
-
response = @manager.get("1.2.3.4")
|
56
|
-
assert_equal("1.2.3.4", response.varbind_list.first.name.to_s)
|
57
|
-
end
|
58
|
-
|
59
|
-
def test_get
|
60
|
-
response = @manager.get("1.2.3.4")
|
61
|
-
assert_equal("1.2.3.4", response.varbind_list.first.name.to_s)
|
62
|
-
|
63
|
-
response = @manager.get([ObjectId.new("1.2.3.4"), ObjectId.new("1.2.3.4.5")])
|
64
|
-
assert_equal(ObjectId.new("1.2.3.4.5"), response.varbind_list[1].name)
|
65
|
-
end
|
22
|
+
include SNMP
|
66
23
|
|
67
|
-
|
68
|
-
|
69
|
-
|
24
|
+
def test_new_style_symbols
|
25
|
+
config = Manager::Config.new(:host => "test")
|
26
|
+
assert_equal("test", config.host)
|
27
|
+
end
|
70
28
|
|
71
|
-
|
72
|
-
|
29
|
+
def test_defaults
|
30
|
+
config = Manager::Config.new({})
|
31
|
+
assert_equal("localhost", config.host)
|
32
|
+
end
|
73
33
|
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
end
|
79
|
-
|
80
|
-
def test_get_next
|
81
|
-
response = @manager.get_next("1.2.3.4")
|
82
|
-
assert_equal("1.2.3.4", response.varbind_list.first.name.to_s)
|
83
|
-
|
84
|
-
response = @manager.get_next([ObjectId.new("1.2.3.4"), ObjectId.new("1.2.3.4.5")])
|
85
|
-
assert_equal(ObjectId.new("1.2.3.4.5"), response.varbind_list[1].name)
|
86
|
-
end
|
87
|
-
|
88
|
-
def test_set
|
89
|
-
v0 = VarBind.new("1.3.6.1.3.1.1.1.0", OctetString.new("Hello1"))
|
90
|
-
v1 = VarBind.new("1.3.6.1.3.1.1.1.0", OctetString.new("Hello2"))
|
91
|
-
response = @manager.set([v0, v1])
|
92
|
-
assert_equal("Hello1", response.varbind_list[0].value.to_s)
|
93
|
-
assert_equal("Hello2", response.varbind_list[1].value.to_s)
|
94
|
-
end
|
34
|
+
def test_old_style_symbols
|
35
|
+
config = Manager::Config.new(:Transport => "transport")
|
36
|
+
assert_equal("transport", config.transport)
|
37
|
+
end
|
95
38
|
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
assert_equal("Hello", response.varbind_list.first.value.to_s)
|
100
|
-
end
|
39
|
+
def test_invalid_option
|
40
|
+
assert_raise(RuntimeError) { Manager::Config.new(:fly_to_the_moon => true) }
|
41
|
+
end
|
101
42
|
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
assert_equal("1.3.6.1.3.1.1.1.0", response.varbind_list[0].name.to_s)
|
108
|
-
assert_equal("1.3.6.1.3.1.1.2.0", response.varbind_list[1].name.to_s)
|
109
|
-
end
|
43
|
+
def test_ipv6_address_guessing
|
44
|
+
config = Manager::Config.new(:host => "::1")
|
45
|
+
assert(config.use_IPv6)
|
46
|
+
assert_equal("::1", config.host)
|
47
|
+
end
|
110
48
|
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
49
|
+
def test_applied_config
|
50
|
+
config = Manager::Config.new(:host => "1:2:3:4:5:6:7:8", :port => 42, :timeout => 3)
|
51
|
+
config.host
|
52
|
+
config.use_IPv6
|
53
|
+
config.retries
|
54
|
+
assert_equal({:host=>"1:2:3:4:5:6:7:8", :retries=>5, :use_IPv6=>true,
|
55
|
+
:Host => "1:2:3:4:5:6:7:8", :Retries => 5}, config.applied_config)
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
class TestManager < Test::Unit::TestCase
|
60
|
+
|
61
|
+
include SNMP
|
62
|
+
|
63
|
+
def setup
|
64
|
+
@manager = Manager.new(:Transport => EchoTransport.new)
|
65
|
+
end
|
66
|
+
|
67
|
+
def teardown
|
68
|
+
@manager.close
|
69
|
+
end
|
70
|
+
|
71
|
+
def test_defaults
|
72
|
+
assert_equal('localhost', @manager.config[:host])
|
73
|
+
assert_equal(161, @manager.config[:port])
|
74
|
+
assert_equal('public', @manager.config[:write_community])
|
75
|
+
end
|
76
|
+
|
77
|
+
def test_community
|
78
|
+
@manager = Manager.new(:WriteCommunity=>'private', :Transport => EchoTransport.new)
|
79
|
+
assert_equal('public', @manager.config[:community])
|
80
|
+
assert_equal('private', @manager.config[:write_community])
|
81
|
+
|
82
|
+
@manager = Manager.new(:Community=>'test', :Transport => EchoTransport.new)
|
83
|
+
assert_equal('test', @manager.config[:community])
|
84
|
+
assert_equal('test', @manager.config[:write_community])
|
85
|
+
|
86
|
+
@manager = Manager.new(:Community=>'test', :WriteCommunity=>'private',
|
87
|
+
:Transport => EchoTransport.new)
|
88
|
+
assert_equal('test', @manager.config[:community])
|
89
|
+
assert_equal('private', @manager.config[:write_community])
|
90
|
+
end
|
91
|
+
|
92
|
+
def test_transport_instance
|
93
|
+
@manager = Manager.new(:Transport => EchoTransport.new)
|
94
|
+
response = @manager.get("1.2.3.4")
|
95
|
+
assert_equal("1.2.3.4", response.varbind_list.first.name.to_s)
|
96
|
+
end
|
97
|
+
|
98
|
+
def test_get
|
99
|
+
response = @manager.get("1.2.3.4")
|
100
|
+
assert_equal("1.2.3.4", response.varbind_list.first.name.to_s)
|
101
|
+
|
102
|
+
response = @manager.get([ObjectId.new("1.2.3.4"), ObjectId.new("1.2.3.4.5")])
|
103
|
+
assert_equal(ObjectId.new("1.2.3.4.5"), response.varbind_list[1].name)
|
104
|
+
end
|
105
|
+
|
106
|
+
def test_get_value
|
107
|
+
value = @manager.get_value("1.2.3.4")
|
108
|
+
assert_equal(Null, value)
|
109
|
+
|
110
|
+
value = @manager.get_value(["1.2.3.4"])
|
111
|
+
assert_equal([Null], value)
|
112
|
+
|
113
|
+
values = @manager.get_value(["1.2.3.4", "1.2.3.4.5"])
|
114
|
+
assert_equal(2, values.length)
|
115
|
+
assert_equal(Null, values[0])
|
116
|
+
assert_equal(Null, values[1])
|
117
|
+
end
|
118
|
+
|
119
|
+
def test_get_next
|
120
|
+
response = @manager.get_next("1.2.3.4")
|
121
|
+
assert_equal("1.2.3.4", response.varbind_list.first.name.to_s)
|
122
|
+
|
123
|
+
response = @manager.get_next([ObjectId.new("1.2.3.4"), ObjectId.new("1.2.3.4.5")])
|
124
|
+
assert_equal(ObjectId.new("1.2.3.4.5"), response.varbind_list[1].name)
|
125
|
+
end
|
126
|
+
|
127
|
+
def test_set
|
128
|
+
v0 = VarBind.new("1.3.6.1.3.1.1.1.0", OctetString.new("Hello1"))
|
129
|
+
v1 = VarBind.new("1.3.6.1.3.1.1.1.0", OctetString.new("Hello2"))
|
130
|
+
response = @manager.set([v0, v1])
|
131
|
+
assert_equal("Hello1", response.varbind_list[0].value.to_s)
|
132
|
+
assert_equal("Hello2", response.varbind_list[1].value.to_s)
|
133
|
+
end
|
134
|
+
|
135
|
+
def test_single_set
|
136
|
+
varbind = VarBind.new("1.3.6.1.3.1.1.1.0", OctetString.new("Hello"))
|
137
|
+
response = @manager.set(varbind)
|
138
|
+
assert_equal("Hello", response.varbind_list.first.value.to_s)
|
139
|
+
end
|
140
|
+
|
141
|
+
def test_get_bulk
|
142
|
+
response = @manager.get_bulk(1, 3, ["1.3.6.1.3.1.1.1.0", "1.3.6.1.3.1.1.2.0"])
|
143
|
+
assert_equal(:noError, response.error_status)
|
144
|
+
assert_equal(0, response.error_index)
|
145
|
+
assert_equal(2, response.varbind_list.length)
|
146
|
+
assert_equal("1.3.6.1.3.1.1.1.0", response.varbind_list[0].name.to_s)
|
147
|
+
assert_equal("1.3.6.1.3.1.1.2.0", response.varbind_list[1].name.to_s)
|
148
|
+
end
|
149
|
+
|
150
|
+
def test_walk
|
151
|
+
old_verbose = $VERBOSE
|
152
|
+
$VERBOSE = nil
|
153
|
+
@manager.walk("ifTable") { fail "Expected break from OID not increasing" }
|
154
|
+
ensure
|
155
|
+
$VERBOSE = old_verbose
|
156
|
+
end
|
157
|
+
|
158
|
+
def test_request_id
|
159
|
+
id = RequestId.new
|
160
|
+
fail if id.next < 0 or id.next >= 2**31
|
161
|
+
|
162
|
+
id.force_next(1)
|
163
|
+
assert_equal(1, id.next)
|
164
|
+
|
165
|
+
id.force_next(RequestId::MAX_REQUEST_ID-1)
|
166
|
+
assert_equal(RequestId::MAX_REQUEST_ID-1, id.next)
|
167
|
+
|
168
|
+
assert_raise(RuntimeError) { id.force_next(RequestId::MAX_REQUEST_ID) }
|
169
|
+
assert_raise(RuntimeError) { id.force_next(0) }
|
170
|
+
end
|
171
|
+
|
172
|
+
def test_trap_v1
|
173
|
+
manager = Manager.new(:Transport => EchoTransport.new, :Version => :SNMPv1)
|
174
|
+
sent_data = manager.trap_v1(
|
175
|
+
"enterprises.9",
|
176
|
+
"10.1.2.3",
|
177
|
+
:enterpriseSpecific,
|
178
|
+
42,
|
179
|
+
12345,
|
180
|
+
[VarBind.new("1.3.6.1.2.3.4", Integer.new(1))]
|
181
|
+
)
|
182
|
+
pdu = Message.decode(sent_data).pdu
|
183
|
+
assert_equal(ObjectId.new("1.3.6.1.4.1.9"), pdu.enterprise)
|
184
|
+
assert_equal(IpAddress.new("10.1.2.3"), pdu.agent_addr)
|
185
|
+
assert_equal(:enterpriseSpecific, pdu.generic_trap)
|
186
|
+
assert_equal(42, pdu.specific_trap)
|
187
|
+
assert_equal(TimeTicks.new(12345), pdu.timestamp)
|
188
|
+
assert_equal(1, pdu.vb_list.length)
|
189
|
+
end
|
190
|
+
|
191
|
+
def test_trap_v2
|
192
|
+
sent_data = @manager.trap_v2(1234, "1.3.6.1.2.3.4")
|
193
|
+
pdu = Message.decode(sent_data).pdu
|
194
|
+
assert_equal(1234, pdu.sys_up_time)
|
195
|
+
assert_equal("1.3.6.1.2.3.4", pdu.trap_oid.to_s)
|
196
|
+
assert_equal(2, pdu.vb_list.length)
|
197
|
+
|
198
|
+
sent_data = @manager.trap_v2(1234, "1.3.6.1.2.3.4", ["1.2.3", "1.4.5.6"])
|
199
|
+
pdu = Message.decode(sent_data).pdu
|
200
|
+
assert_equal(1234, pdu.sys_up_time)
|
201
|
+
assert_equal("1.3.6.1.2.3.4", pdu.trap_oid.to_s)
|
202
|
+
assert_equal(4, pdu.vb_list.length)
|
203
|
+
assert_equal("1.4.5.6", pdu.vb_list.last.name.to_s)
|
204
|
+
end
|
205
|
+
|
206
|
+
def test_inform
|
207
|
+
response = @manager.inform(1234, "1.3.6.1.2.3.4")
|
208
|
+
assert_equal(1234, response.vb_list[0].value)
|
209
|
+
assert_equal("1.3.6.1.2.3.4", response.vb_list[1].value.to_s)
|
210
|
+
assert_equal(2, response.vb_list.length)
|
211
|
+
|
212
|
+
response = @manager.inform(1234, "1.3.6.1.2.3.4", ["1.2.3", "1.4.5.6"])
|
213
|
+
assert_equal(1234, response.vb_list[0].value)
|
214
|
+
assert_equal("1.3.6.1.2.3.4", response.vb_list[1].value.to_s)
|
215
|
+
assert_equal(4, response.vb_list.length)
|
216
|
+
end
|
178
217
|
end
|
179
218
|
|
180
219
|
class TrapTestTransport
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
end
|
220
|
+
include SNMP
|
221
|
+
def initialize
|
222
|
+
@count = 0
|
223
|
+
sys_up_varbind = VarBind.new(ObjectId.new("1.3.6.1.2.1.1.3.0"),
|
224
|
+
TimeTicks.new(1234))
|
225
|
+
trap_oid_varbind = VarBind.new(ObjectId.new("1.3.6.1.6.3.1.1.4.1.0"),
|
226
|
+
ObjectId.new("1.2.3"))
|
227
|
+
trap = SNMPv2_Trap.new(42, VarBindList.new([sys_up_varbind, trap_oid_varbind]))
|
228
|
+
message = Message.new(:SNMPv2c, "public", trap)
|
229
|
+
@data = message.encode
|
230
|
+
end
|
231
|
+
|
232
|
+
def close
|
233
|
+
end
|
234
|
+
|
235
|
+
def recvfrom(max_bytes)
|
236
|
+
@count += 1
|
237
|
+
case @count
|
238
|
+
when 1
|
239
|
+
return @data, "127.0.0.1"
|
240
|
+
when 2
|
241
|
+
Thread.exit
|
242
|
+
else
|
243
|
+
raise "Huh?"
|
206
244
|
end
|
245
|
+
end
|
207
246
|
end
|
208
247
|
|
209
248
|
|
210
249
|
class TestTrapListener < Test::Unit::TestCase
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
end
|
218
|
-
m.join
|
219
|
-
assert(init_called)
|
250
|
+
include SNMP
|
251
|
+
|
252
|
+
def test_init_no_handlers
|
253
|
+
init_called = false
|
254
|
+
m = TrapListener.new(:ServerTransport => TrapTestTransport.new) do |manager|
|
255
|
+
init_called = true
|
220
256
|
end
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
assert(v2c_called)
|
257
|
+
m.join
|
258
|
+
assert(init_called)
|
259
|
+
end
|
260
|
+
|
261
|
+
def test_v2c_handler
|
262
|
+
default_called = false
|
263
|
+
v2c_called = false
|
264
|
+
m = TrapListener.new(:ServerTransport => TrapTestTransport.new) do |manager|
|
265
|
+
manager.on_trap_default { default_called = true }
|
266
|
+
manager.on_trap_v2c { v2c_called = true }
|
232
267
|
end
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
assert(oid_called)
|
268
|
+
m.join
|
269
|
+
assert(!default_called)
|
270
|
+
assert(v2c_called)
|
271
|
+
end
|
272
|
+
|
273
|
+
def test_oid_handler
|
274
|
+
default_called = false
|
275
|
+
v2c_called = false
|
276
|
+
oid_called = false
|
277
|
+
m = TrapListener.new(:ServerTransport => TrapTestTransport.new) do |manager|
|
278
|
+
manager.on_trap("1.2.3") do |trap|
|
279
|
+
assert_equal(ObjectId.new("1.2.3"), trap.trap_oid)
|
280
|
+
assert_equal("127.0.0.1", trap.source_ip)
|
281
|
+
oid_called = true
|
282
|
+
end
|
283
|
+
manager.on_trap_default { default_called = true }
|
284
|
+
manager.on_trap_v2c { v2c_called = true }
|
251
285
|
end
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
286
|
+
m.join
|
287
|
+
assert(!default_called)
|
288
|
+
assert(!v2c_called)
|
289
|
+
assert(oid_called)
|
290
|
+
end
|
291
|
+
|
292
|
+
def test_reject_wrong_community
|
293
|
+
default_called = false
|
294
|
+
m = TrapListener.new(
|
295
|
+
:Community => "test",
|
296
|
+
:ServerTransport => TrapTestTransport.new) do |manager|
|
297
|
+
manager.on_trap_default { default_called = true }
|
262
298
|
end
|
263
|
-
|
299
|
+
m.join
|
300
|
+
assert(!default_called)
|
301
|
+
end
|
302
|
+
|
264
303
|
end
|