阅读:1697回复:0
搞不懂 TextualConventions,特来求救,在线等待
解析MIB文件:
RFC1212-MIB DEFINITIONS ::= BEGIN IMPORTS ObjectName FROM RFC1155-SMI DisplayString FROM SNMPv2-TC; OBJECT-TYPE MACRO ::= BEGIN TYPE NOTATION ::= -- must conform to -- RFC1155's ObjectSyntax "SYNTAX" type(ObjectSyntax) "ACCESS" Access "STATUS" Status DescrPart ReferPart IndexPart DefValPart VALUE NOTATION ::= value (VALUE ObjectName) Access ::= "read-only" | "read-write" | "write-only" | "not-accessible" Status ::= "mandatory" | "optional" | "obsolete" | "deprecated" DescrPart ::= "DESCRIPTION" value (description DisplayString) | empty ReferPart ::= "REFERENCE" value (reference DisplayString) | empty IndexPart ::= "INDEX" "{" IndexTypes "}" | empty IndexTypes ::= IndexType | IndexTypes "," IndexType IndexType ::= -- if indexobject, use the SYNTAX -- value of the correspondent -- OBJECT-TYPE invocation value (indexobject ObjectName) -- otherwise use named SMI type -- must conform to IndexSyntax below | type (indextype) DefValPart ::= "DEFVAL" "{" value (defvalue ObjectSyntax) "}" | empty END END =================================================================== 解析完毕输出: MODULE: RFC1212-MIB -- TextualConventions -- Traps END MODULE: RFC1212-MIB MODULE: SNMPv2-TC -- TextualConventions TC:DisplayString TC:PhysAddress TC:MacAddress TC:TruthValue TC:TestAndIncr TC:AutonomousType TC:InstancePointer TC:VariablePointer TC:RowPointer TC:RowStatus TC:TimeStamp TC:TimeInterval TC:DateAndTime TC:StorageType TC:TDomain TC:TAddress -- Traps END MODULE: SNMPv2-TC MODULE: RFC1155-SMI iso_(.1) org_(.1.3) dod_(.1.3.6) internet_(.1.3.6.1) directory_(.1.3.6.1.1) mgmt_(.1.3.6.1.2) experimental_(.1.3.6.1.3) private_(.1.3.6.1.4) enterprises_(.1.3.6.1.4.1) -- TextualConventions -- Traps END MODULE: RFC1155-SMI 搞不懂MODULE: SNMPv2-TC的"-- TextualConventions"和"-- Traps"之间输出的到底是什么东西,请各位大哥务必帮帮我,时间紧迫,我没有更多的时间去查资料,所以来问各位大峡,拜托拜托! |
|