oidtable.h
资源名称:hp_snmp3.zip [点击查看]
上传用户:czjinwang
上传日期:2007-01-12
资源大小:2484k
文件大小:4k
源码类别:
SNMP编程
开发平台:
Visual C++
- /*============================================================================
- Copyright (c) 1996
- Hewlett-Packard Company
- ATTENTION: USE OF THIS SOFTWARE IS SUBJECT TO THE FOLLOWING TERMS.
- Permission to use, copy, modify, distribute and/or sell this software
- and/or its documentation is hereby granted without fee. User agrees
- to display the above copyright notice and this license notice in all
- copies of the software and any documentation of the software. User
- agrees to assume all liability for the use of the software; Hewlett-Packard
- makes no representations about the suitability of this software for any
- purpose. It is provided "AS-IS without warranty of any kind,either express
- or implied. User hereby grants a royalty-free license to any and all
- derivatives based upon this software code base.
- =============================================================================*/
- #ifndef _OIDTABLE
- #define _OIDTABLE
- //----------------------------------------------------------------------------
- // Harde Coded MIB INFO
- //
- // Generated with a little help from my trusty MIB Compiler
- #define INDEX "I"
- #define SCALAR "S"
- #define MAXMIBVALS 55
- static char * MIBVals[MAXMIBVALS][3] = {
- "[iso]", INDEX, "1",
- "[org]", INDEX, "1.3",
- "[dod]", INDEX, "1.3.6",
- "[internet]", INDEX, "1.3.6.1",
- "[mgmt]", INDEX, "1.3.6.1.2",
- "[mib2]", INDEX, "1.3.6.1.2.1",
- "[system]", INDEX, "1.3.6.1.2.1.1",
- "sysDescr", SCALAR, "1.3.6.1.2.1.1.1",
- "sysObjectID", SCALAR, "1.3.6.1.2.1.1.2",
- "sysUpTime", SCALAR, "1.3.6.1.2.1.1.3",
- "sysContact", SCALAR, "1.3.6.1.2.1.1.4",
- "sysName", SCALAR, "1.3.6.1.2.1.1.5",
- "sysLocation", SCALAR, "1.3.6.1.2.1.1.6",
- "sysServices", SCALAR, "1.3.6.1.2.1.1.7",
- "[interfaces]", SCALAR, "1.3.6.1.2.1.2",
- "ifNumber", SCALAR, "1.3.6.1.2.1.2.1",
- "[at]", INDEX, "1.3.6.1.2.1.3",
- "[ip]", INDEX, "1.3.6.1.2.1.4",
- "[icmp]", INDEX, "1.3.6.1.2.1.5",
- "[tcp]", INDEX, "1.3.6.1.2.1.6",
- "[udp]", INDEX, "1.3.6.1.2.1.7",
- "[egp]", INDEX, "1.3.6.1.2.1.8",
- "[transmission]", INDEX, "1.3.6.1.2.1.10",
- "[snmp]", INDEX, "1.3.6.1.2.1.11",
- "snmpInPkts", SCALAR, "1.3.6.1.2.1.11.1",
- "snmpOutPkts", SCALAR, "1.3.6.1.2.1.11.2",
- "snmpInBadversions", SCALAR, "1.3.6.1.2.1.11.3",
- "snmpInBadCommunityNames", SCALAR, "1.3.6.1.2.1.11.4",
- "snmpInBadCommunityUsers", SCALAR, "1.3.6.1.2.1.11.5",
- "snmpInASNParseErrs", SCALAR, "1.3.6.1.2.1.11.6",
- "snmpInTooBig", SCALAR, "1.3.6.1.2.1.11.8",
- "snmpInNoSuchNames", SCALAR, "1.3.6.1.2.1.11.9",
- "snmpInBadValues", SCALAR, "1.3.6.1.2.1.11.10",
- "snmpInReadOnlys", SCALAR, "1.3.6.1.2.1.11.11",
- "snmpInGenErrs", SCALAR, "1.3.6.1.2.1.11.12",
- "snmpInTotalReqVars", SCALAR, "1.3.6.1.2.1.11.13",
- "snmpTotalSetVars", SCALAR, "1.3.6.1.2.1.11.14",
- "snmpInGetRequests", SCALAR, "1.3.6.1.2.1.11.15",
- "snmpInGetNexts", SCALAR, "1.3.6.1.2.1.11.16",
- "snmpInSetRequests", SCALAR, "1.3.6.1.2.1.11.17",
- "snmpInGetResponses", SCALAR, "1.3.6.1.2.1.11.18",
- "snmpInTraps", SCALAR, "1.3.6.1.2.1.11.19",
- "snmpOutTooBigs", SCALAR, "1.3.6.1.2.1.11.20",
- "snmpOutNoSuchNames", SCALAR, "1.3.6.1.2.1.11.21",
- "snmpOutBadValues", SCALAR, "1.3.6.1.2.1.11.22",
- "snmpOutGenErrs", SCALAR, "1.3.6.1.2.1.11.24",
- "snmpOutGetRequests", SCALAR, "1.3.6.1.2.1.11.25",
- "snmpOutGetNexts", SCALAR, "1.3.6.1.2.1.11.26",
- "snmpOutSetRequests", SCALAR, "1.3.6.1.2.1.11.27",
- "snmpOutgetResponses", SCALAR, "1.3.6.1.2.1.11.28",
- "snmpOutTraps", SCALAR, "1.3.6.1.2.1.11.29",
- "snmpEnableAuthenTraps", SCALAR, "1.3.6.1.2.1.11.30",
- "[experimental]", INDEX, "1.3.6.1.3",
- "[private]", INDEX, "1.3.6.1.4",
- "[enterprise]", INDEX, "1.3.6.1.4.1"
- };
- #endif // OIDTABLE