- 论坛徽章:
- 0
|
我自己写的一个测试性质的MIB文件
- --11N-AP-MIB.txt
- N-AP-MIB DEFINITIONS ::= BEGIN
- IMPORTS
- MODULE-IDENTITY FROM RFC1213;
- --MODULE-COMPLIANCE
- netSNMPMIB MODULE-IDENTITY
- LAST-UPDATED "000515000Z"
- ORGANIZATION "MTIW"
- CONTACT-INFO "
- Author: Wes Hardaker
- MTIW
- postal: WUXI NEW DS
- MTIWoody
- Cheney,CHN 214174
- China
- email:suertang@gmail.com
- phone:4807
- "
- DESCRIPTION "MTIW 11n OUTdoor AP MIB" ::= { enterprises 8888 }
- nODAP OBJECT IDENTIFIER ::= { netSNMPMIB 1 }
- nODAPsys OBJECT IDENTIFIER ::= { nODAP 1 }
- nODAPsysVer OBJECT-TYPE
- SYNTAX OCTET STRING
- MAX-ACCESS read-only
- STATUS current
- DESCRIPTION
- "
- This is the firem ware version."
- DEFVAL { 1.20 }
- ::= { nODAPsys 1 }
- nODAPsysRcommunity OBJECT-TYPE
- SYNTAX OCTET STRING
- MAX-ACCESS read-write
- STATUS current
- DESCRIPTION
- "This is read community!"
- DEFVAL { public }
- ::= { nODAPsys 2}
- END
复制代码
我使用mib2c得到了C和H并且将其编译到snmpd里面去了。
但是当我使用snmpget或者snmpwalk等等的命令的时候总是显示
- snmptranslate N-AP-MIB:nOAPsysVer
- No log handling enabled - turning on stderr logging
- Bad timestamp format (11 or 13 characters) (000515000Z): At line 8 in /usr/local/share/snmp/mibs/80211N-AP-MIB.txt
- Unlinked OID in N-AP-MIB: netSNMPMIB ::= { enterprises 8888 }
- Undefined identifier: enterprises near line 7 of /usr/local/share/snmp/mibs/80211N-AP-MIB.txt
- N-AP-MIB:nOAPsysVer: Unknown Object Identifier
复制代码
我想问各位一下,为什么,或者说我要怎么做
我已经把MIB文件放到了snmp的默认路径下面了。 |
|