1 /* $OpenBSD: mib.h,v 1.21 2010/09/20 16:29:51 sthen Exp $ */ 2 3 /* 4 * Copyright (c) 2007, 2008 Reyk Floeter <reyk@vantronix.net> 5 * 6 * Permission to use, copy, modify, and distribute this software for any 7 * purpose with or without fee is hereby granted, provided that the above 8 * copyright notice and this permission notice appear in all copies. 9 * 10 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 11 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 12 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 13 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 14 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 15 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 16 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 17 */ 18 19 #ifndef _SNMPD_MIB_H 20 #define _SNMPD_MIB_H 21 22 /* 23 * Adding new MIBs: 24 * - add the OID definitions below 25 * - add the OIDs to the MIB_TREE table at the end of this file 26 * - optional: write the implementation in mib.c 27 */ 28 29 /* From the SNMPv2-SMI MIB */ 30 #define MIB_iso 1 31 #define MIB_org MIB_iso, 3 32 #define MIB_dod MIB_org, 6 33 #define MIB_internet MIB_dod, 1 34 #define MIB_directory MIB_internet, 1 35 #define MIB_mgmt MIB_internet, 2 36 #define MIB_mib_2 MIB_mgmt, 1 /* XXX mib-2 */ 37 #define MIB_system MIB_mib_2, 1 38 #define OIDIDX_system 7 39 #define MIB_sysDescr MIB_system, 1 40 #define MIB_sysOID MIB_system, 2 41 #define MIB_sysUpTime MIB_system, 3 42 #define MIB_sysContact MIB_system, 4 43 #define MIB_sysName MIB_system, 5 44 #define MIB_sysLocation MIB_system, 6 45 #define MIB_sysServices MIB_system, 7 46 #define MIB_sysORLastChange MIB_system, 8 47 #define MIB_sysORTable MIB_system, 9 48 #define MIB_sysOREntry MIB_sysORTable, 1 49 #define OIDIDX_sysOR 9 50 #define OIDIDX_sysOREntry 10 51 #define MIB_sysORIndex MIB_sysOREntry, 1 52 #define MIB_sysORID MIB_sysOREntry, 2 53 #define MIB_sysORDescr MIB_sysOREntry, 3 54 #define MIB_sysORUpTime MIB_sysOREntry, 4 55 #define MIB_transmission MIB_mib_2, 10 56 #define MIB_snmp MIB_mib_2, 11 57 #define OIDIDX_snmp 7 58 #define MIB_snmpInPkts MIB_snmp, 1 59 #define MIB_snmpOutPkts MIB_snmp, 2 60 #define MIB_snmpInBadVersions MIB_snmp, 3 61 #define MIB_snmpInBadCommunityNames MIB_snmp, 4 62 #define MIB_snmpInBadCommunityUses MIB_snmp, 5 63 #define MIB_snmpInASNParseErrs MIB_snmp, 6 64 #define MIB_snmpInTooBigs MIB_snmp, 8 65 #define MIB_snmpInNoSuchNames MIB_snmp, 9 66 #define MIB_snmpInBadValues MIB_snmp, 10 67 #define MIB_snmpInReadOnlys MIB_snmp, 11 68 #define MIB_snmpInGenErrs MIB_snmp, 12 69 #define MIB_snmpInTotalReqVars MIB_snmp, 13 70 #define MIB_snmpInTotalSetVars MIB_snmp, 14 71 #define MIB_snmpInGetRequests MIB_snmp, 15 72 #define MIB_snmpInGetNexts MIB_snmp, 16 73 #define MIB_snmpInSetRequests MIB_snmp, 17 74 #define MIB_snmpInGetResponses MIB_snmp, 18 75 #define MIB_snmpInTraps MIB_snmp, 19 76 #define MIB_snmpOutTooBigs MIB_snmp, 20 77 #define MIB_snmpOutNoSuchNames MIB_snmp, 21 78 #define MIB_snmpOutBadValues MIB_snmp, 22 79 #define MIB_snmpOutGenErrs MIB_snmp, 24 80 #define MIB_snmpOutGetRequests MIB_snmp, 25 81 #define MIB_snmpOutGetNexts MIB_snmp, 26 82 #define MIB_snmpOutSetRequests MIB_snmp, 27 83 #define MIB_snmpOutGetResponses MIB_snmp, 28 84 #define MIB_snmpOutTraps MIB_snmp, 29 85 #define MIB_snmpEnableAuthenTraps MIB_snmp, 30 86 #define MIB_snmpSilentDrops MIB_snmp, 31 87 #define MIB_snmpProxyDrops MIB_snmp, 32 88 #define MIB_experimental MIB_internet, 3 89 #define MIB_private MIB_internet, 4 90 #define MIB_enterprises MIB_private, 1 91 #define MIB_security MIB_internet, 5 92 #define MIB_snmpV2 MIB_internet, 6 93 #define MIB_snmpDomains MIB_snmpV2, 1 94 #define MIB_snmpProxies MIB_snmpV2, 2 95 #define MIB_snmpModules MIB_snmpV2, 3 96 #define MIB_snmpMIB MIB_snmpModules, 1 97 #define MIB_snmpMIBObjects MIB_snmpMIB, 1 98 #define MIB_snmpTrap MIB_snmpMIBObjects, 4 99 #define MIB_snmpTrapOID MIB_snmpTrap, 1 100 #define MIB_snmpTrapEnterprise MIB_snmpTrap, 3 101 #define MIB_snmpTraps MIB_snmpMIBObjects, 5 102 #define MIB_coldStart MIB_snmpTraps, 1 103 #define MIB_warmStart MIB_snmpTraps, 2 104 #define MIB_linkDown MIB_snmpTraps, 3 105 #define MIB_linkUp MIB_snmpTraps, 4 106 #define MIB_authenticationFailure MIB_snmpTraps, 5 107 #define MIB_egpNeighborLoss MIB_snmpTraps, 6 108 109 /* HOST-RESOURCES-MIB */ 110 #define MIB_host MIB_mib_2, 25 111 #define MIB_hrSystem MIB_host, 1 112 #define MIB_hrSystemUptime MIB_hrSystem, 1 113 #define MIB_hrSystemDate MIB_hrSystem, 2 114 #define MIB_hrSystemInitialLoadDevice MIB_hrSystem, 3 115 #define MIB_hrSystemInitialLoadParameters MIB_hrSystem, 4 116 #define MIB_hrSystemNumUsers MIB_hrSystem, 5 117 #define MIB_hrSystemProcesses MIB_hrSystem, 6 118 #define MIB_hrSystemMaxProcesses MIB_hrSystem, 7 119 #define MIB_hrStorage MIB_host, 2 120 #define MIB_hrStorageTypes MIB_hrStorage, 1 121 #define MIB_hrStorageOther MIB_hrStorageTypes, 1 122 #define MIB_hrStorageRam MIB_hrStorageTypes, 2 123 #define MIB_hrStorageVirtualMemory MIB_hrStorageTypes, 3 124 #define MIB_hrStorageFixedDisk MIB_hrStorageTypes, 4 125 #define MIB_hrStorageRemovableDisk MIB_hrStorageTypes, 5 126 #define MIB_hrStorageFloppyDisk MIB_hrStorageTypes, 6 127 #define MIB_hrStorageCompactDisc MIB_hrStorageTypes, 7 128 #define MIB_hrStorageRamDisk MIB_hrStorageTypes, 8 129 #define MIB_hrStorageFlashMemory MIB_hrStorageTypes, 9 130 #define MIB_hrStorageNetworkDisk MIB_hrStorageTypes, 10 131 #define MIB_hrMemorySize MIB_hrStorage, 2 132 #define MIB_hrStorageTable MIB_hrStorage, 3 133 #define MIB_hrStorageEntry MIB_hrStorageTable, 1 134 #define OIDIDX_hrStorage 10 135 #define OIDIDX_hrStorageEntry 11 136 #define MIB_hrStorageIndex MIB_hrStorageEntry, 1 137 #define MIB_hrStorageType MIB_hrStorageEntry, 2 138 #define MIB_hrStorageDescr MIB_hrStorageEntry, 3 139 #define MIB_hrStorageAllocationUnits MIB_hrStorageEntry, 4 140 #define MIB_hrStorageSize MIB_hrStorageEntry, 5 141 #define MIB_hrStorageUsed MIB_hrStorageEntry, 6 142 #define MIB_hrStorageAllocationFailures MIB_hrStorageEntry, 7 143 #define MIB_hrDevice MIB_host, 3 144 #define MIB_hrDeviceTypes MIB_hrDevice, 1 145 #define MIB_hrDeviceOther MIB_hrDeviceTypes, 1 146 #define MIB_hrDeviceUnknown MIB_hrDeviceTypes, 2 147 #define MIB_hrDeviceProcessor MIB_hrDeviceTypes, 3 148 #define MIB_hrDeviceNetwork MIB_hrDeviceTypes, 4 149 #define MIB_hrDevicePrinter MIB_hrDeviceTypes, 5 150 #define MIB_hrDeviceDiskStorage MIB_hrDeviceTypes, 6 151 #define MIB_hrDeviceVideo MIB_hrDeviceTypes, 10 152 #define MIB_hrDeviceAudio MIB_hrDeviceTypes, 11 153 #define MIB_hrDeviceCoprocessor MIB_hrDeviceTypes, 12 154 #define MIB_hrDeviceKeyboard MIB_hrDeviceTypes, 13 155 #define MIB_hrDeviceModem MIB_hrDeviceTypes, 14 156 #define MIB_hrDeviceParallelPort MIB_hrDeviceTypes, 15 157 #define MIB_hrDevicePointing MIB_hrDeviceTypes, 16 158 #define MIB_hrDeviceSerialPort MIB_hrDeviceTypes, 17 159 #define MIB_hrDeviceTape MIB_hrDeviceTypes, 18 160 #define MIB_hrDeviceClock MIB_hrDeviceTypes, 19 161 #define MIB_hrDeviceVolatileMemory MIB_hrDeviceTypes, 20 162 #define MIB_hrDeviceNonVolatileMemory MIB_hrDeviceTypes, 21 163 #define MIB_hrDeviceTable MIB_hrDevice, 2 164 #define MIB_hrDeviceEntry MIB_hrDeviceTable, 1 165 #define OIDIDX_hrDevice 10 166 #define OIDIDX_hrDeviceEntry 11 167 #define MIB_hrDeviceIndex MIB_hrDeviceEntry, 1 168 #define MIB_hrDeviceType MIB_hrDeviceEntry, 2 169 #define MIB_hrDeviceDescr MIB_hrDeviceEntry, 3 170 #define MIB_hrDeviceID MIB_hrDeviceEntry, 4 171 #define MIB_hrDeviceStatus MIB_hrDeviceEntry, 5 172 #define MIB_hrDeviceErrors MIB_hrDeviceEntry, 6 173 #define MIB_hrProcessorTable MIB_hrDevice, 3 174 #define MIB_hrProcessorEntry MIB_hrProcessorTable, 1 175 #define OIDIDX_hrProcessor 10 176 #define OIDIDX_hrProcessorEntry 11 177 #define MIB_hrProcessorFrwID MIB_hrProcessorEntry, 1 178 #define MIB_hrProcessorLoad MIB_hrProcessorEntry, 2 179 #define MIB_hrSWRun MIB_host, 4 180 #define MIB_hrSWOSIndex MIB_hrSWRun, 1 181 #define MIB_hrSWRunTable MIB_hrSWRun, 2 182 #define MIB_hrSWRunEntry MIB_hrSWRunTable, 1 183 #define OIDIDX_hrSWRun 10 184 #define OIDIDX_hrSWRunEntry 11 185 #define MIB_hrSWRunIndex MIB_hrSWRunEntry, 1 186 #define MIB_hrSWRunName MIB_hrSWRunEntry, 2 187 #define MIB_hrSWRunID MIB_hrSWRunEntry, 3 188 #define MIB_hrSWRunPath MIB_hrSWRunEntry, 4 189 #define MIB_hrSWRunParameters MIB_hrSWRunEntry, 5 190 #define MIB_hrSWRunType MIB_hrSWRunEntry, 6 191 #define MIB_hrSWRunStatus MIB_hrSWRunEntry, 7 192 #define MIB_hrSWRunPerf MIB_host, 5 193 #define MIB_hrSWRunPerfTable MIB_hrSWRunPerf, 1 194 #define OIDIDX_hrSWRunPerf 10 195 #define OIDIDX_hrSWRunPerfEntry 11 196 #define MIB_hrSWRunPerfEntry MIB_hrSWRunPerfTable, 1 197 #define MIB_hrSWRunPerfCPU MIB_hrSWRunPerfEntry, 1 198 #define MIB_hrSWRunPerfMem MIB_hrSWRunPerfEntry, 2 199 #define MIB_hrSWInstalled MIB_host, 6 200 #define MIB_hrMIBAdminInfo MIB_host, 7 201 202 /* IF-MIB */ 203 #define MIB_ifMIB MIB_mib_2, 31 204 #define MIB_ifMIBObjects MIB_ifMIB, 1 205 #define MIB_ifXTable MIB_ifMIBObjects, 1 206 #define MIB_ifXEntry MIB_ifXTable, 1 207 #define OIDIDX_ifX 10 208 #define OIDIDX_ifXEntry 11 209 #define MIB_ifName MIB_ifXEntry, 1 210 #define MIB_ifInMulticastPkts MIB_ifXEntry, 2 211 #define MIB_ifInBroadcastPkts MIB_ifXEntry, 3 212 #define MIB_ifOutMulticastPkts MIB_ifXEntry, 4 213 #define MIB_ifOutBroadcastPkts MIB_ifXEntry, 5 214 #define MIB_ifHCInOctets MIB_ifXEntry, 6 215 #define MIB_ifHCInUcastPkts MIB_ifXEntry, 7 216 #define MIB_ifHCInMulticastPkts MIB_ifXEntry, 8 217 #define MIB_ifHCInBroadcastPkts MIB_ifXEntry, 9 218 #define MIB_ifHCOutOctets MIB_ifXEntry, 10 219 #define MIB_ifHCOutUcastPkts MIB_ifXEntry, 11 220 #define MIB_ifHCOutMulticastPkts MIB_ifXEntry, 12 221 #define MIB_ifHCOutBroadcastPkts MIB_ifXEntry, 13 222 #define MIB_ifLinkUpDownTrapEnable MIB_ifXEntry, 14 223 #define MIB_ifHighSpeed MIB_ifXEntry, 15 224 #define MIB_ifPromiscuousMode MIB_ifXEntry, 16 225 #define MIB_ifConnectorPresent MIB_ifXEntry, 17 226 #define MIB_ifAlias MIB_ifXEntry, 18 227 #define MIB_ifCounterDiscontinuityTime MIB_ifXEntry, 19 228 #define MIB_ifStackTable MIB_ifMIBObjects, 2 229 #define MIB_ifStackEntry MIB_ifStackTable, 1 230 #define OIDIDX_ifStack 10 231 #define OIDIDX_ifStackEntry 11 232 #define MIB_ifStackStatus MIB_ifStackEntry, 3 233 #define MIB_ifRcvAddressTable MIB_ifMIBObjects, 4 234 #define MIB_ifRcvAddressEntry MIB_ifRcvAddressTable, 1 235 #define OIDIDX_ifRcvAddress 10 236 #define OIDIDX_ifRcvAddressEntry 11 237 #define MIB_ifRcvAddressStatus MIB_ifRcvAddressEntry, 2 238 #define MIB_ifRcvAddressType MIB_ifRcvAddressEntry, 3 239 #define MIB_ifStackLastChange MIB_ifMIBObjects, 6 240 #define MIB_interfaces MIB_mib_2, 2 241 #define MIB_ifNumber MIB_interfaces, 1 242 #define MIB_ifTable MIB_interfaces, 2 243 #define MIB_ifEntry MIB_ifTable, 1 244 #define OIDIDX_if 9 245 #define OIDIDX_ifEntry 10 246 #define MIB_ifIndex MIB_ifEntry, 1 247 #define MIB_ifDescr MIB_ifEntry, 2 248 #define MIB_ifType MIB_ifEntry, 3 249 #define MIB_ifMtu MIB_ifEntry, 4 250 #define MIB_ifSpeed MIB_ifEntry, 5 251 #define MIB_ifPhysAddress MIB_ifEntry, 6 252 #define MIB_ifAdminStatus MIB_ifEntry, 7 253 #define MIB_ifOperStatus MIB_ifEntry, 8 254 #define MIB_ifLastChange MIB_ifEntry, 9 255 #define MIB_ifInOctets MIB_ifEntry, 10 256 #define MIB_ifInUcastPkts MIB_ifEntry, 11 257 #define MIB_ifInNUcastPkts MIB_ifEntry, 12 258 #define MIB_ifInDiscards MIB_ifEntry, 13 259 #define MIB_ifInErrors MIB_ifEntry, 14 260 #define MIB_ifInUnknownProtos MIB_ifEntry, 15 261 #define MIB_ifOutOctets MIB_ifEntry, 16 262 #define MIB_ifOutUcastPkts MIB_ifEntry, 17 263 #define MIB_ifOutNUcastPkts MIB_ifEntry, 18 264 #define MIB_ifOutDiscards MIB_ifEntry, 19 265 #define MIB_ifOutErrors MIB_ifEntry, 20 266 #define MIB_ifOutQLen MIB_ifEntry, 21 267 #define MIB_ifSpecific MIB_ifEntry, 22 268 269 /* IP-MIB */ 270 #define MIB_ipMIB MIB_mib_2, 4 271 #define OIDIDX_ip 7 272 #define MIB_ipForwarding MIB_ipMIB, 1 273 #define MIB_ipDefaultTTL MIB_ipMIB, 2 274 #define MIB_ipInReceives MIB_ipMIB, 3 275 #define MIB_ipInHdrErrors MIB_ipMIB, 4 276 #define MIB_ipInAddrErrors MIB_ipMIB, 5 277 #define MIB_ipForwDatagrams MIB_ipMIB, 6 278 #define MIB_ipInUnknownProtos MIB_ipMIB, 7 279 #define MIB_ipInDiscards MIB_ipMIB, 8 280 #define MIB_ipInDelivers MIB_ipMIB, 9 281 #define MIB_ipOutRequests MIB_ipMIB, 10 282 #define MIB_ipOutDiscards MIB_ipMIB, 11 283 #define MIB_ipOutNoRoutes MIB_ipMIB, 12 284 #define MIB_ipReasmTimeout MIB_ipMIB, 13 285 #define MIB_ipReasmReqds MIB_ipMIB, 14 286 #define MIB_ipReasmOKs MIB_ipMIB, 15 287 #define MIB_ipReasmFails MIB_ipMIB, 16 288 #define MIB_ipFragOKs MIB_ipMIB, 17 289 #define MIB_ipFragFails MIB_ipMIB, 18 290 #define MIB_ipFragCreates MIB_ipMIB, 19 291 #define MIB_ipAddrTable MIB_ipMIB, 20 292 #define MIB_ipAddrEntry MIB_ipAddrTable, 1 293 #define OIDIDX_ipAddr 9 294 #define OIDIDX_ipAddrEntry 10 295 #define MIB_ipAdEntAddr MIB_ipAddrEntry, 1 296 #define MIB_ipAdEntIfIndex MIB_ipAddrEntry, 2 297 #define MIB_ipAdEntNetMask MIB_ipAddrEntry, 3 298 #define MIB_ipAdEntBcastAddr MIB_ipAddrEntry, 4 299 #define MIB_ipAdEntReasmMaxSize MIB_ipAddrEntry, 5 300 #define MIB_ipNetToMediaTable MIB_ipMIB, 22 301 #define MIB_ipNetToMediaEntry MIB_ipNetToMediaTable, 1 302 #define MIB_ipNetToMediaIfIndex MIB_ipNetToMediaEntry, 1 303 #define MIB_ipNetToMediaPhysAddress MIB_ipNetToMediaEntry, 2 304 #define MIB_ipNetToMediaNetAddress MIB_ipNetToMediaEntry, 3 305 #define MIB_ipNetToMediaType MIB_ipNetToMediaEntry, 4 306 #define MIB_ipRoutingDiscards MIB_ipMIB, 23 307 308 /* IP-FORWARD-MIB */ 309 #define MIB_ipfMIB MIB_ipMIB, 24 310 #define MIB_ipfInetCidrRouteNumber MIB_ipfMIB, 6 311 #define MIB_ipfInetCidrRouteTable MIB_ipfMIB, 7 312 #define MIB_ipfInetCidrRouteEntry MIB_ipfInetCidrRouteTable, 1 313 #define OIDIDX_ipfInetCidrRoute 10 314 #define MIB_ipfRouteEntDestType MIB_ipfInetCidrRouteEntry, 1 315 #define MIB_ipfRouteEntDest MIB_ipfInetCidrRouteEntry, 2 316 #define MIB_ipfRouteEntPfxLen MIB_ipfInetCidrRouteEntry, 3 317 #define MIB_ipfRouteEntPolicy MIB_ipfInetCidrRouteEntry, 4 318 #define MIB_ipfRouteEntNextHopType MIB_ipfInetCidrRouteEntry, 5 319 #define MIB_ipfRouteEntNextHop MIB_ipfInetCidrRouteEntry, 6 320 #define MIB_ipfRouteEntIfIndex MIB_ipfInetCidrRouteEntry, 7 321 #define MIB_ipfRouteEntType MIB_ipfInetCidrRouteEntry, 8 322 #define MIB_ipfRouteEntProto MIB_ipfInetCidrRouteEntry, 9 323 #define MIB_ipfRouteEntAge MIB_ipfInetCidrRouteEntry, 10 324 #define MIB_ipfRouteEntNextHopAS MIB_ipfInetCidrRouteEntry, 11 325 #define MIB_ipfRouteEntRouteMetric1 MIB_ipfInetCidrRouteEntry, 12 326 #define MIB_ipfRouteEntRouteMetric2 MIB_ipfInetCidrRouteEntry, 13 327 #define MIB_ipfRouteEntRouteMetric3 MIB_ipfInetCidrRouteEntry, 14 328 #define MIB_ipfRouteEntRouteMetric4 MIB_ipfInetCidrRouteEntry, 15 329 #define MIB_ipfRouteEntRouteMetric5 MIB_ipfInetCidrRouteEntry, 16 330 #define MIB_ipfRouteEntStatus MIB_ipfInetCidrRouteEntry, 17 331 #define MIB_ipfInetCidrRouteDiscards MIB_ipfMIB, 8 332 333 /* BRIDGE-MIB */ 334 #define MIB_dot1dBridge MIB_mib_2, 17 335 #define MIB_dot1dBase MIB_dot1dBridge, 1 336 #define MIB_dot1dBaseBridgeAddress MIB_dot1dBase, 1 337 #define MIB_dot1dBaseNumPorts MIB_dot1dBase, 2 338 #define MIB_dot1dBaseType MIB_dot1dBase, 3 339 #define MIB_dot1dBasePortTable MIB_dot1dBase, 4 340 #define OIDIDX_dot1d 10 341 #define OIDIDX_dot1dEntry 11 342 #define MIB_dot1dBasePortEntry MIB_dot1dBasePortTable, 1 343 #define MIB_dot1dBasePort MIB_dot1dBasePortEntry, 1 344 #define MIB_dot1dBasePortIfIndex MIB_dot1dBasePortEntry, 2 345 #define MIB_dot1dBasePortCircuit MIB_dot1dBasePortEntry, 3 346 #define MIB_dot1dBasePortDelayExceededDiscards MIB_dot1dBasePortEntry, 4 347 #define MIB_dot1dBasePortMtuExceededDiscards MIB_dot1dBasePortEntry, 5 348 #define MIB_dot1dStp MIB_dot1dBridge, 2 349 #define MIB_dot1dSr MIB_dot1dBridge, 3 350 #define MIB_dot1dTp MIB_dot1dBridge, 4 351 #define MIB_dot1dStatic MIB_dot1dBridge, 5 352 353 /* 354 * PRIVATE ENTERPRISE NUMBERS from 355 * http://www.iana.org/assignments/enterprise-numbers 356 * 357 * This is not the complete list of private enterprise numbers, it only 358 * includes some well-known companies and especially network companies 359 * that are very common in the datacenters around the world. It would 360 * be an overkill to include ~30.000 entries for all the organizations 361 * from the official list. 362 */ 363 #define MIB_ibm MIB_enterprises, 2 364 #define MIB_cmu MIB_enterprises, 3 365 #define MIB_unix MIB_enterprises, 4 366 #define MIB_ciscoSystems MIB_enterprises, 9 367 #define MIB_hp MIB_enterprises, 11 368 #define MIB_mit MIB_enterprises, 20 369 #define MIB_nortelNetworks MIB_enterprises, 35 370 #define MIB_sun MIB_enterprises, 42 371 #define MIB_3com MIB_enterprises, 43 372 #define MIB_synOptics MIB_enterprises, 45 373 #define MIB_enterasys MIB_enterprises, 52 374 #define MIB_sgi MIB_enterprises, 59 375 #define MIB_apple MIB_enterprises, 63 376 #define MIB_att MIB_enterprises, 74 377 #define MIB_nokia MIB_enterprises, 94 378 #define MIB_cern MIB_enterprises, 96 379 #define MIB_fsc MIB_enterprises, 231 380 #define MIB_compaq MIB_enterprises, 232 381 #define MIB_dell MIB_enterprises, 674 382 #define MIB_alteon MIB_enterprises, 1872 383 #define MIB_extremeNetworks MIB_enterprises, 1916 384 #define MIB_foundryNetworks MIB_enterprises, 1991 385 #define MIB_huawaiTechnology MIB_enterprises, 2011 386 #define MIB_ucDavis MIB_enterprises, 2021 387 #define MIB_checkPoint MIB_enterprises, 2620 388 #define MIB_juniper MIB_enterprises, 2636 389 #define MIB_force10Networks MIB_enterprises, 6027 390 #define MIB_alcatelLucent MIB_enterprises, 7483 391 #define MIB_snom MIB_enterprises, 7526 392 #define MIB_google MIB_enterprises, 11129 393 #define MIB_f5Networks MIB_enterprises, 12276 394 #define MIB_sFlow MIB_enterprises, 14706 395 #define MIB_microSystems MIB_enterprises, 18623 396 #define MIB_vantronix MIB_enterprises, 26766 397 #define MIB_openBSD MIB_enterprises, 30155 398 399 /* OPENBSD-MIB */ 400 #define MIB_pfMIBObjects MIB_openBSD, 1 401 #define MIB_sensorsMIBObjects MIB_openBSD, 2 402 #define MIB_sensors MIB_sensorsMIBObjects, 1 403 #define MIB_sensorNumber MIB_sensors, 1 404 #define MIB_sensorTable MIB_sensors, 2 405 #define MIB_sensorEntry MIB_sensorTable, 1 406 #define OIDIDX_sensor 11 407 #define OIDIDX_sensorEntry 12 408 #define MIB_sensorIndex MIB_sensorEntry, 1 409 #define MIB_sensorDescr MIB_sensorEntry, 2 410 #define MIB_sensorType MIB_sensorEntry, 3 411 #define MIB_sensorDevice MIB_sensorEntry, 4 412 #define MIB_sensorValue MIB_sensorEntry, 5 413 #define MIB_sensorUnits MIB_sensorEntry, 6 414 #define MIB_sensorStatus MIB_sensorEntry, 7 415 #define MIB_carpMIBObjects MIB_openBSD, 3 416 #define MIB_ipsecMIBObjects MIB_openBSD, 4 417 #define MIB_memMIBObjects MIB_openBSD, 5 418 #define MIB_memMIBVersion MIB_memMIBObjects, 1 419 #define OIDVER_OPENBSD_MEM 1 420 #define MIB_memIfTable MIB_memMIBObjects, 2 421 #define MIB_memIfEntry MIB_memIfTable, 1 422 #define OIDIDX_memIf 10 423 #define OIDIDX_memIfEntry 11 424 #define MIB_memIfName MIB_memIfEntry, 1 425 #define MIB_memIfLiveLocks MIB_memIfEntry, 2 426 #define MIB_localSystem MIB_openBSD, 23 427 #define MIB_SYSOID_DEFAULT MIB_openBSD, 23, 1 428 #define MIB_localTest MIB_openBSD, 42 429 430 #define MIB_TREE { \ 431 { MIBDECL(iso) }, \ 432 { MIBDECL(org) }, \ 433 { MIBDECL(dod) }, \ 434 { MIBDECL(internet) }, \ 435 { MIBDECL(directory) }, \ 436 { MIBDECL(mgmt) }, \ 437 { MIBDECL(mib_2) }, \ 438 { MIBDECL(system) }, \ 439 { MIBDECL(sysDescr) }, \ 440 { MIBDECL(sysOID) }, \ 441 { MIBDECL(sysUpTime) }, \ 442 { MIBDECL(sysContact) }, \ 443 { MIBDECL(sysName) }, \ 444 { MIBDECL(sysLocation) }, \ 445 { MIBDECL(sysServices) }, \ 446 { MIBDECL(sysORLastChange) }, \ 447 { MIBDECL(sysORTable) }, \ 448 { MIBDECL(sysOREntry) }, \ 449 { MIBDECL(sysORIndex) }, \ 450 { MIBDECL(sysORID) }, \ 451 { MIBDECL(sysORDescr) }, \ 452 { MIBDECL(sysORUpTime) }, \ 453 { MIBDECL(transmission) }, \ 454 { MIBDECL(snmp) }, \ 455 { MIBDECL(snmpInPkts) }, \ 456 { MIBDECL(snmpOutPkts) }, \ 457 { MIBDECL(snmpInBadVersions) }, \ 458 { MIBDECL(snmpInBadCommunityNames) }, \ 459 { MIBDECL(snmpInBadCommunityUses) }, \ 460 { MIBDECL(snmpInASNParseErrs) }, \ 461 { MIBDECL(snmpInTooBigs) }, \ 462 { MIBDECL(snmpInNoSuchNames) }, \ 463 { MIBDECL(snmpInBadValues) }, \ 464 { MIBDECL(snmpInReadOnlys) }, \ 465 { MIBDECL(snmpInGenErrs) }, \ 466 { MIBDECL(snmpInTotalReqVars) }, \ 467 { MIBDECL(snmpInTotalSetVars) }, \ 468 { MIBDECL(snmpInGetRequests) }, \ 469 { MIBDECL(snmpInGetNexts) }, \ 470 { MIBDECL(snmpInSetRequests) }, \ 471 { MIBDECL(snmpInGetResponses) }, \ 472 { MIBDECL(snmpInTraps) }, \ 473 { MIBDECL(snmpOutTooBigs) }, \ 474 { MIBDECL(snmpOutNoSuchNames) }, \ 475 { MIBDECL(snmpOutBadValues) }, \ 476 { MIBDECL(snmpOutGenErrs) }, \ 477 { MIBDECL(snmpOutGetRequests) }, \ 478 { MIBDECL(snmpOutGetNexts) }, \ 479 { MIBDECL(snmpOutSetRequests) }, \ 480 { MIBDECL(snmpOutGetResponses) }, \ 481 { MIBDECL(snmpOutTraps) }, \ 482 { MIBDECL(snmpEnableAuthenTraps) }, \ 483 { MIBDECL(snmpSilentDrops) }, \ 484 { MIBDECL(snmpProxyDrops) }, \ 485 { MIBDECL(experimental) }, \ 486 { MIBDECL(private) }, \ 487 { MIBDECL(enterprises) }, \ 488 { MIBDECL(security) }, \ 489 { MIBDECL(snmpV2) }, \ 490 { MIBDECL(snmpDomains) }, \ 491 { MIBDECL(snmpProxies) }, \ 492 { MIBDECL(snmpModules) }, \ 493 { MIBDECL(snmpMIB) }, \ 494 { MIBDECL(snmpMIBObjects) }, \ 495 { MIBDECL(snmpTrap) }, \ 496 { MIBDECL(snmpTrapOID) }, \ 497 { MIBDECL(snmpTrapEnterprise) }, \ 498 { MIBDECL(snmpTraps) }, \ 499 { MIBDECL(coldStart) }, \ 500 { MIBDECL(warmStart) }, \ 501 { MIBDECL(linkDown) }, \ 502 { MIBDECL(linkUp) }, \ 503 { MIBDECL(authenticationFailure) }, \ 504 { MIBDECL(egpNeighborLoss) }, \ 505 \ 506 { MIBDECL(host) }, \ 507 { MIBDECL(hrSystem) }, \ 508 { MIBDECL(hrSystemUptime) }, \ 509 { MIBDECL(hrSystemDate) }, \ 510 { MIBDECL(hrSystemInitialLoadDevice) }, \ 511 { MIBDECL(hrSystemInitialLoadParameters) }, \ 512 { MIBDECL(hrSystemNumUsers) }, \ 513 { MIBDECL(hrSystemProcesses) }, \ 514 { MIBDECL(hrSystemMaxProcesses) }, \ 515 { MIBDECL(hrStorage) }, \ 516 { MIBDECL(hrStorageTypes) }, \ 517 { MIBDECL(hrMemorySize) }, \ 518 { MIBDECL(hrStorageTable) }, \ 519 { MIBDECL(hrStorageEntry) }, \ 520 { MIBDECL(hrStorageIndex) }, \ 521 { MIBDECL(hrStorageType) }, \ 522 { MIBDECL(hrStorageDescr) }, \ 523 { MIBDECL(hrStorageAllocationUnits) }, \ 524 { MIBDECL(hrStorageSize) }, \ 525 { MIBDECL(hrStorageUsed) }, \ 526 { MIBDECL(hrStorageAllocationFailures) }, \ 527 { MIBDECL(hrDevice) }, \ 528 { MIBDECL(hrDeviceTypes) }, \ 529 { MIBDECL(hrDeviceOther) }, \ 530 { MIBDECL(hrDeviceUnknown) }, \ 531 { MIBDECL(hrDeviceProcessor) }, \ 532 { MIBDECL(hrDeviceNetwork) }, \ 533 { MIBDECL(hrDevicePrinter) }, \ 534 { MIBDECL(hrDeviceDiskStorage) }, \ 535 { MIBDECL(hrDeviceVideo) }, \ 536 { MIBDECL(hrDeviceAudio) }, \ 537 { MIBDECL(hrDeviceCoprocessor) }, \ 538 { MIBDECL(hrDeviceKeyboard) }, \ 539 { MIBDECL(hrDeviceModem) }, \ 540 { MIBDECL(hrDeviceParallelPort) }, \ 541 { MIBDECL(hrDevicePointing) }, \ 542 { MIBDECL(hrDeviceSerialPort) }, \ 543 { MIBDECL(hrDeviceTape) }, \ 544 { MIBDECL(hrDeviceClock) }, \ 545 { MIBDECL(hrDeviceVolatileMemory) }, \ 546 { MIBDECL(hrDeviceNonVolatileMemory) }, \ 547 { MIBDECL(hrDeviceTable) }, \ 548 { MIBDECL(hrDeviceEntry) }, \ 549 { MIBDECL(hrDeviceIndex) }, \ 550 { MIBDECL(hrDeviceType) }, \ 551 { MIBDECL(hrDeviceDescr) }, \ 552 { MIBDECL(hrDeviceID) }, \ 553 { MIBDECL(hrDeviceStatus) }, \ 554 { MIBDECL(hrDeviceErrors) }, \ 555 { MIBDECL(hrProcessorTable) }, \ 556 { MIBDECL(hrProcessorEntry) }, \ 557 { MIBDECL(hrProcessorFrwID) }, \ 558 { MIBDECL(hrProcessorLoad) }, \ 559 { MIBDECL(hrSWRun) }, \ 560 { MIBDECL(hrSWOSIndex) }, \ 561 { MIBDECL(hrSWRunTable) }, \ 562 { MIBDECL(hrSWRunEntry) }, \ 563 { MIBDECL(hrSWRunIndex) }, \ 564 { MIBDECL(hrSWRunName) }, \ 565 { MIBDECL(hrSWRunID) }, \ 566 { MIBDECL(hrSWRunPath) }, \ 567 { MIBDECL(hrSWRunParameters) }, \ 568 { MIBDECL(hrSWRunType) }, \ 569 { MIBDECL(hrSWRunStatus) }, \ 570 { MIBDECL(hrSWRunPerf) }, \ 571 { MIBDECL(hrSWRunPerfTable) }, \ 572 { MIBDECL(hrSWRunPerfEntry) }, \ 573 { MIBDECL(hrSWRunPerfCPU) }, \ 574 { MIBDECL(hrSWRunPerfMem) }, \ 575 \ 576 { MIBDECL(ifMIB) }, \ 577 { MIBDECL(ifMIBObjects) }, \ 578 { MIBDECL(ifXTable) }, \ 579 { MIBDECL(ifXEntry) }, \ 580 { MIBDECL(ifName) }, \ 581 { MIBDECL(ifInMulticastPkts) }, \ 582 { MIBDECL(ifInBroadcastPkts) }, \ 583 { MIBDECL(ifOutMulticastPkts) }, \ 584 { MIBDECL(ifOutBroadcastPkts) }, \ 585 { MIBDECL(ifHCInOctets) }, \ 586 { MIBDECL(ifHCInUcastPkts) }, \ 587 { MIBDECL(ifHCInMulticastPkts) }, \ 588 { MIBDECL(ifHCInBroadcastPkts) }, \ 589 { MIBDECL(ifHCOutOctets) }, \ 590 { MIBDECL(ifHCOutUcastPkts) }, \ 591 { MIBDECL(ifHCOutMulticastPkts) }, \ 592 { MIBDECL(ifHCOutBroadcastPkts) }, \ 593 { MIBDECL(ifLinkUpDownTrapEnable) }, \ 594 { MIBDECL(ifHighSpeed) }, \ 595 { MIBDECL(ifPromiscuousMode) }, \ 596 { MIBDECL(ifConnectorPresent) }, \ 597 { MIBDECL(ifAlias) }, \ 598 { MIBDECL(ifCounterDiscontinuityTime) }, \ 599 { MIBDECL(ifStackTable) }, \ 600 { MIBDECL(ifStackEntry) }, \ 601 { MIBDECL(ifRcvAddressTable) }, \ 602 { MIBDECL(ifRcvAddressEntry) }, \ 603 { MIBDECL(ifRcvAddressStatus) }, \ 604 { MIBDECL(ifRcvAddressType) }, \ 605 { MIBDECL(ifStackLastChange) }, \ 606 { MIBDECL(interfaces) }, \ 607 { MIBDECL(ifNumber) }, \ 608 { MIBDECL(ifTable) }, \ 609 { MIBDECL(ifEntry) }, \ 610 { MIBDECL(ifIndex) }, \ 611 { MIBDECL(ifDescr) }, \ 612 { MIBDECL(ifType) }, \ 613 { MIBDECL(ifMtu) }, \ 614 { MIBDECL(ifSpeed) }, \ 615 { MIBDECL(ifPhysAddress) }, \ 616 { MIBDECL(ifAdminStatus) }, \ 617 { MIBDECL(ifOperStatus) }, \ 618 { MIBDECL(ifLastChange) }, \ 619 { MIBDECL(ifInOctets) }, \ 620 { MIBDECL(ifInUcastPkts) }, \ 621 { MIBDECL(ifInNUcastPkts) }, \ 622 { MIBDECL(ifInDiscards) }, \ 623 { MIBDECL(ifInErrors) }, \ 624 { MIBDECL(ifInUnknownProtos) }, \ 625 { MIBDECL(ifOutOctets) }, \ 626 { MIBDECL(ifOutUcastPkts) }, \ 627 { MIBDECL(ifOutNUcastPkts) }, \ 628 { MIBDECL(ifOutDiscards) }, \ 629 { MIBDECL(ifOutErrors) }, \ 630 { MIBDECL(ifOutQLen) }, \ 631 { MIBDECL(ifSpecific) }, \ 632 \ 633 { MIBDECL(dot1dBridge) }, \ 634 { MIBDECL(dot1dBase) }, \ 635 { MIBDECL(dot1dBaseBridgeAddress) }, \ 636 { MIBDECL(dot1dBaseNumPorts) }, \ 637 { MIBDECL(dot1dBaseType) }, \ 638 { MIBDECL(dot1dBasePortTable) }, \ 639 { MIBDECL(dot1dBasePortEntry) }, \ 640 { MIBDECL(dot1dBasePort) }, \ 641 { MIBDECL(dot1dBasePortIfIndex) }, \ 642 { MIBDECL(dot1dBasePortCircuit) }, \ 643 { MIBDECL(dot1dBasePortDelayExceededDiscards) },\ 644 { MIBDECL(dot1dBasePortMtuExceededDiscards) }, \ 645 { MIBDECL(dot1dStp) }, \ 646 { MIBDECL(dot1dSr) }, \ 647 { MIBDECL(dot1dTp) }, \ 648 { MIBDECL(dot1dStatic) }, \ 649 \ 650 { MIBDECL(ibm) }, \ 651 { MIBDECL(cmu) }, \ 652 { MIBDECL(unix) }, \ 653 { MIBDECL(ciscoSystems) }, \ 654 { MIBDECL(hp) }, \ 655 { MIBDECL(mit) }, \ 656 { MIBDECL(nortelNetworks) }, \ 657 { MIBDECL(sun) }, \ 658 { MIBDECL(3com) }, \ 659 { MIBDECL(synOptics) }, \ 660 { MIBDECL(enterasys) }, \ 661 { MIBDECL(sgi) }, \ 662 { MIBDECL(apple) }, \ 663 { MIBDECL(att) }, \ 664 { MIBDECL(nokia) }, \ 665 { MIBDECL(cern) }, \ 666 { MIBDECL(fsc) }, \ 667 { MIBDECL(compaq) }, \ 668 { MIBDECL(dell) }, \ 669 { MIBDECL(alteon) }, \ 670 { MIBDECL(extremeNetworks) }, \ 671 { MIBDECL(foundryNetworks) }, \ 672 { MIBDECL(huawaiTechnology) }, \ 673 { MIBDECL(ucDavis) }, \ 674 { MIBDECL(checkPoint) }, \ 675 { MIBDECL(juniper) }, \ 676 { MIBDECL(force10Networks) }, \ 677 { MIBDECL(alcatelLucent) }, \ 678 { MIBDECL(snom) }, \ 679 { MIBDECL(google) }, \ 680 { MIBDECL(f5Networks) }, \ 681 { MIBDECL(sFlow) }, \ 682 { MIBDECL(microSystems) }, \ 683 { MIBDECL(vantronix) }, \ 684 { MIBDECL(openBSD) }, \ 685 \ 686 { MIBDECL(sensorsMIBObjects) }, \ 687 { MIBDECL(sensors) }, \ 688 { MIBDECL(sensorNumber) }, \ 689 { MIBDECL(sensorTable) }, \ 690 { MIBDECL(sensorEntry) }, \ 691 { MIBDECL(sensorIndex) }, \ 692 { MIBDECL(sensorDescr) }, \ 693 { MIBDECL(sensorType) }, \ 694 { MIBDECL(sensorDevice) }, \ 695 { MIBDECL(sensorValue) }, \ 696 { MIBDECL(sensorUnits) }, \ 697 { MIBDECL(sensorStatus) }, \ 698 { MIBDECL(memMIBObjects) }, \ 699 { MIBDECL(memMIBVersion) }, \ 700 { MIBDECL(memIfTable) }, \ 701 { MIBDECL(memIfEntry) }, \ 702 { MIBDECL(memIfName) }, \ 703 { MIBDECL(memIfLiveLocks) }, \ 704 { MIBDECL(localSystem) }, \ 705 { MIBDECL(localTest) }, \ 706 \ 707 { MIBDECL(ipMIB) }, \ 708 { MIBDECL(ipForwarding) }, \ 709 { MIBDECL(ipDefaultTTL) }, \ 710 { MIBDECL(ipInReceives) }, \ 711 { MIBDECL(ipInHdrErrors) }, \ 712 { MIBDECL(ipInAddrErrors) }, \ 713 { MIBDECL(ipForwDatagrams) }, \ 714 { MIBDECL(ipInUnknownProtos) }, \ 715 { MIBDECL(ipInDiscards) }, \ 716 { MIBDECL(ipInDelivers) }, \ 717 { MIBDECL(ipOutRequests) }, \ 718 { MIBDECL(ipOutDiscards) }, \ 719 { MIBDECL(ipOutNoRoutes) }, \ 720 { MIBDECL(ipReasmTimeout) }, \ 721 { MIBDECL(ipReasmReqds) }, \ 722 { MIBDECL(ipReasmOKs) }, \ 723 { MIBDECL(ipReasmFails) }, \ 724 { MIBDECL(ipFragOKs) }, \ 725 { MIBDECL(ipFragFails) }, \ 726 { MIBDECL(ipFragCreates) }, \ 727 { MIBDECL(ipRoutingDiscards) }, \ 728 { MIBDECL(ipAddrTable) }, \ 729 { MIBDECL(ipAddrEntry) }, \ 730 { MIBDECL(ipAdEntAddr) }, \ 731 { MIBDECL(ipAdEntIfIndex) }, \ 732 { MIBDECL(ipAdEntNetMask) }, \ 733 { MIBDECL(ipAdEntBcastAddr) }, \ 734 { MIBDECL(ipAdEntReasmMaxSize) }, \ 735 { MIBDECL(ipNetToMediaTable) }, \ 736 { MIBDECL(ipNetToMediaEntry) }, \ 737 { MIBDECL(ipNetToMediaIfIndex) }, \ 738 { MIBDECL(ipNetToMediaPhysAddress) }, \ 739 { MIBDECL(ipNetToMediaNetAddress) }, \ 740 { MIBDECL(ipNetToMediaType) }, \ 741 { MIBDECL(ipNetToMediaType) }, \ 742 \ 743 { MIBDECL(ipfMIB) }, \ 744 { MIBDECL(ipfInetCidrRouteNumber) }, \ 745 { MIBDECL(ipfInetCidrRouteTable) }, \ 746 { MIBDECL(ipfInetCidrRouteEntry) }, \ 747 { MIBDECL(ipfRouteEntIfIndex) }, \ 748 { MIBDECL(ipfRouteEntType) }, \ 749 { MIBDECL(ipfRouteEntProto) }, \ 750 { MIBDECL(ipfRouteEntAge) }, \ 751 { MIBDECL(ipfRouteEntNextHopAS) }, \ 752 { MIBDECL(ipfRouteEntRouteMetric1) }, \ 753 { MIBDECL(ipfRouteEntRouteMetric2) }, \ 754 { MIBDECL(ipfRouteEntRouteMetric3) }, \ 755 { MIBDECL(ipfRouteEntRouteMetric4) }, \ 756 { MIBDECL(ipfRouteEntRouteMetric5) }, \ 757 { MIBDECL(ipfRouteEntStatus) }, \ 758 { MIBEND } \ 759 } 760 761 void mib_init(void); 762 763 #endif /* _SNMPD_MIB_H */ 764