⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rfc1253-mib

📁 很不错java的SNMP应用例子
💻
📖 第 1 页 / 共 3 页
字号:
RFC1253-MIB DEFINITIONS ::= BEGINIMPORTS        Counter, Gauge, IpAddress                FROM RFC1155-SMI        mib-2                FROM RFC1213-MIB        OBJECT-TYPE                FROM RFC-1212;--  This MIB module uses the extended OBJECT-TYPE macro as--  defined in [9].        ospf OBJECT IDENTIFIER ::= { mib-2 14 }--  The Area ID, in OSPF, has the same format as an IP Address,--  but has the function of defining a summarization point for--  Link State Advertisements        AreaID ::= IpAddress--  The Router ID, in OSPF, has the same format as an IP Address,--  but identifies the router independent of its IP Address.        RouterID ::= IpAddress--  The OSPF Metric is defined as an unsigned value in the range        Metric    ::= INTEGER (1..'FFFF'h)        BigMetric ::= INTEGER (1..'FFFFFF'h)--  Boolean Values        TruthValue ::= INTEGER { true (1), false (2) }--  Status Values        Status ::= INTEGER { enabled (1), disabled (2) }--  Row Creation/Deletion Values        Validation ::= INTEGER { valid (1), invalid (2) }--  Time Durations measured in seconds        PositiveInteger ::= INTEGER (1..'FFFFFFFF'h)        HelloRange      ::= INTEGER (1..'FFFF'h)        UpToMaxAge      ::= INTEGER (1..3600)--  The range of ifIndex, i.e. (1..ifNumber)        InterfaceIndex ::= INTEGER--  Potential Priorities for the Designated Router Election        DesignatedRouterPriority ::= INTEGER (0..'FF'h)--  Type of Service is defined as a mapping to the IP Type of--  Service Flags as defined in the Router Requirements--  Document:----      D => Low Delay          R => Reliable Route--      T => High Bandwidth--  D T R   TOS      D T R   TOS--  0 0 0 =>  0      0 0 1 =>  4--  0 1 0 =>  8      0 1 1 => 12--  1 0 0 => 16      1 0 1 => 20--  1 1 0 => 24      1 1 1 => 28--  The remaining values are left for future definition.        TOSType ::= INTEGER (0..31)--  OSPF General Variables--      These parameters apply globally to the Router's--      OSPF Process.ospfGeneralGroup OBJECT IDENTIFIER ::= { ospf 1 }ospfRouterId OBJECT-TYPE    SYNTAX   RouterID    ACCESS   read-write    STATUS   mandatory    DESCRIPTION       "A 32-bit integer uniquely identifying the router in       the Autonomous System.       By convention, to ensure uniqueness, this should       default to the value of one of the router's IP       interface addresses."    REFERENCE       "OSPF Version 2, C.1 Global parameters"    ::= { ospfGeneralGroup 1 }ospfAdminStat OBJECT-TYPE    SYNTAX   Status    ACCESS   read-write    STATUS   mandatory    DESCRIPTION       "The administrative status of OSPF in the router.  The       value 'enabled' denotes that the OSPF Process is active       on at least one interface; 'disabled' disables it on       all interfaces."    ::= { ospfGeneralGroup 2 }ospfVersionNumber OBJECT-TYPE    SYNTAX   INTEGER { version2 (2) }    ACCESS   read-only    STATUS   mandatory    DESCRIPTION       "The current version number of the OSPF protocol is 2."    REFERENCE       "OSPF Version 2, Title"    ::= { ospfGeneralGroup 3 }ospfAreaBdrRtrStatus OBJECT-TYPE    SYNTAX   TruthValue    ACCESS   read-only    STATUS   mandatory    DESCRIPTION       "A flag to note whether this router is an area border       router."    REFERENCE       "OSPF Version 2, Section 3 Splitting the AS into Areas"    ::= { ospfGeneralGroup 4 }ospfASBdrRtrStatus OBJECT-TYPE    SYNTAX   TruthValue    ACCESS   read-write    STATUS   mandatory    DESCRIPTION       "A flag to note whether this router is an Autonomous       System border router."    REFERENCE       "OSPF Version 2, Section 3.3 Classification of routers"    ::= { ospfGeneralGroup 5 }ospfExternLSACount OBJECT-TYPE    SYNTAX   Gauge    ACCESS   read-only    STATUS   mandatory    DESCRIPTION       "The number of external (LS type 5) link-state       advertisements in the link-state database."    REFERENCE       "OSPF Version 2, Appendix A.4.5 AS external link       advertisements"    ::= { ospfGeneralGroup 6 }ospfExternLSACksumSum OBJECT-TYPE    SYNTAX   INTEGER    ACCESS   read-only    STATUS   mandatory    DESCRIPTION       "The 32-bit unsigned sum of the LS checksums of the       external link-state advertisements contained in the       link-state database.  This sum can be used to determine       if there has been a change in a router's link state       database, and to compare the link-state database of two       routers."    ::= { ospfGeneralGroup 7 }ospfTOSSupport OBJECT-TYPE    SYNTAX   TruthValue    ACCESS   read-write    STATUS   mandatory    DESCRIPTION       "The router's support for type-of-service routing."    REFERENCE       "OSPF Version 2, Appendix F.1.2 Optional TOS support"    ::= { ospfGeneralGroup 8 }ospfOriginateNewLSAs OBJECT-TYPE    SYNTAX   Counter    ACCESS   read-only    STATUS   mandatory    DESCRIPTION       "The number of new link-state advertisements that have       been originated.  This number is incremented each time       the router originates a new LSA."    ::= { ospfGeneralGroup 9 }ospfRxNewLSAs OBJECT-TYPE    SYNTAX   Counter    ACCESS   read-only    STATUS   mandatory    DESCRIPTION       "The number of link-state advertisements received       determined to be new instantiations.  This number does       not include newer instantiations of self-originated       link-state advertisements."    ::= { ospfGeneralGroup 10 }--      The OSPF Area Data Structure contains information--      regarding the various areas. The interfaces and--      virtual links are configured as part of these areas.--      Area 0.0.0.0, by definition, is the Backbone AreaospfAreaTable OBJECT-TYPE    SYNTAX   SEQUENCE OF OspfAreaEntry    ACCESS   not-accessible    STATUS   mandatory    DESCRIPTION       "Information describing the configured parameters and       cumulative statistics of the router's attached areas."    REFERENCE       "OSPF Version 2, Section 6  The Area Data Structure"    ::= { ospf 2 }ospfAreaEntry OBJECT-TYPE    SYNTAX   OspfAreaEntry    ACCESS   not-accessible    STATUS   mandatory    DESCRIPTION       "Information describing the configured parameters and       cumulative statistics of one of the router's attached       areas."-- FIX: changed index from ospfAreaID to ospfAreaId    INDEX { ospfAreaId }    ::= { ospfAreaTable 1 }OspfAreaEntry ::=    SEQUENCE {        ospfAreaId            AreaID,        ospfAuthType            INTEGER,        ospfImportASExtern            TruthValue,        ospfSpfRuns            Counter,        ospfAreaBdrRtrCount            Gauge,        ospfASBdrRtrCount            Gauge,-- FIX: changed 'ospfLSACount' to 'ospfAreaLSACount'        ospfAreaLSACount            Gauge,        ospfAreaLSACksumSum            INTEGER    }ospfAreaId OBJECT-TYPE    SYNTAX   AreaID    ACCESS   read-write    STATUS   mandatory    DESCRIPTION       "A 32-bit integer uniquely identifying an area.  Area       ID 0.0.0.0 is used for the OSPF backbone."    REFERENCE       "OSPF Version 2, Appendix C.2 Area parameters"    ::= { ospfAreaEntry 1 }ospfAuthType OBJECT-TYPE    SYNTAX   INTEGER                -- none (0),                -- simplePassword (1)                -- reserved for specification by IANA (> 1)    ACCESS   read-write    STATUS   mandatory    DESCRIPTION       "The authentication type specified for an area.       Additional authentication types may be assigned locally       on a per Area basis."    REFERENCE       "OSPF Version 2, Appendix E Authentication"    DEFVAL { 0 }        -- no authentication, by default    ::= { ospfAreaEntry 2 }ospfImportASExtern OBJECT-TYPE    SYNTAX   TruthValue    ACCESS   read-write    STATUS   mandatory    DESCRIPTION       "The area's support for importing AS external link-       state advertisements."    REFERENCE       "OSPF Version 2, Appendix C.2 Area parameters"    DEFVAL { true }    ::= { ospfAreaEntry 3 }ospfSpfRuns OBJECT-TYPE    SYNTAX   Counter    ACCESS   read-only    STATUS   mandatory    DESCRIPTION       "The number of times that the intra-area route table       has been calculated using this area's link-state       database.  This is typically done using Dijkstra's       algorithm."    DEFVAL   { 0 }    ::= { ospfAreaEntry 4 }ospfAreaBdrRtrCount OBJECT-TYPE    SYNTAX   Gauge    ACCESS   read-only    STATUS   mandatory    DESCRIPTION       "The total number of area border routers reachable       within this area.  This is initially zero, and is       calculated in each SPF Pass."    DEFVAL   { 0 }    ::= { ospfAreaEntry 5 }ospfASBdrRtrCount OBJECT-TYPE    SYNTAX   Gauge    ACCESS   read-only    STATUS   mandatory    DESCRIPTION       "The total number of Autonomous System border routers       reachable within this area.  This is initially zero,       and is calculated in each SPF Pass."    DEFVAL   { 0 }    ::= { ospfAreaEntry 6 }ospfAreaLSACount OBJECT-TYPE    SYNTAX   Gauge    ACCESS   read-only    STATUS   mandatory    DESCRIPTION       "The total number of link-state advertisements in this       area's link-state database, excluding AS External       LSA's."    DEFVAL   { 0 }    ::= { ospfAreaEntry 7 }ospfAreaLSACksumSum OBJECT-TYPE    SYNTAX   INTEGER    ACCESS   read-only    STATUS   mandatory    DESCRIPTION       "The 32-bit unsigned sum of the link-state       advertisements' LS checksums contained in this area's       link-state database.  This sum excludes external (LS       type 5) link-state advertisements.  The sum can be used       to determine if there has been a change in a router's       link state database, and to compare the link-state       database of two routers."    DEFVAL   { 0 }    ::= { ospfAreaEntry 8 }--  OSPF Area Default Metric Table--      The OSPF Area Default Metric Table describes the metrics--      that a default Area Border Router will advertise into a--      Stub area.ospfStubAreaTable OBJECT-TYPE    SYNTAX   SEQUENCE OF OspfStubAreaEntry    ACCESS   not-accessible    STATUS   mandatory    DESCRIPTION       "The set of metrics that will be advertised by a       default Area Border Router into a stub area."    REFERENCE       "OSPF Version 2, Appendix C.2, Area Parameters"    ::= { ospf 3 }ospfStubAreaEntry OBJECT-TYPE    SYNTAX   OspfStubAreaEntry    ACCESS   not-accessible    STATUS   mandatory    DESCRIPTION       "The metric for a given Type of Service that will be       advertised by a default Area Border Router into a stub       area."    REFERENCE       "OSPF Version 2, Appendix C.2, Area Parameters"    INDEX { ospfStubAreaID, ospfStubTOS }    ::= { ospfStubAreaTable 1 }OspfStubAreaEntry ::=    SEQUENCE {        ospfStubAreaID            AreaID,        ospfStubTOS            TOSType,        ospfStubMetric            BigMetric,        ospfStubStatus            Validation    }ospfStubAreaID OBJECT-TYPE    SYNTAX   AreaID    ACCESS   read-write    STATUS   mandatory    DESCRIPTION       "The 32 bit identifier for the Stub Area.  On creation,       this can be derived from the instance."    ::= { ospfStubAreaEntry 1 }ospfStubTOS OBJECT-TYPE    SYNTAX   TOSType    ACCESS   read-write    STATUS   mandatory    DESCRIPTION       "The Type of Service associated with the metric.  On       creation, this can be derived from the instance."    ::= { ospfStubAreaEntry 2 }ospfStubMetric OBJECT-TYPE    SYNTAX   BigMetric    ACCESS   read-write    STATUS   mandatory    DESCRIPTION       "The metric value applied at the indicated type of       service.  By default, this equals the least metric at       the type of service among the interfaces to other       areas."    ::= { ospfStubAreaEntry 3 }ospfStubStatus OBJECT-TYPE    SYNTAX   Validation    ACCESS   read-write    STATUS   mandatory    DESCRIPTION       "This variable displays the validity or invalidity of       the entry.  Setting it to 'invalid' has the effect of       rendering it inoperative.  The internal effect (row       removal) is implementation dependent."    DEFVAL   { valid }    ::= { ospfStubAreaEntry 4 }--  OSPF Link State Database--      The Link State Database contains the Link State--      Advertisements from throughout the areas that the--      device is attached to.ospfLsdbTable OBJECT-TYPE    SYNTAX   SEQUENCE OF OspfLsdbEntry    ACCESS   not-accessible    STATUS   mandatory    DESCRIPTION       "The OSPF Process's Links State Database."    REFERENCE       "OSPF Version 2, Section 12 Link State Advertisements"    ::= { ospf 4 }ospfLsdbEntry OBJECT-TYPE    SYNTAX   OspfLsdbEntry    ACCESS   not-accessible    STATUS   mandatory    DESCRIPTION       "A single Link State Advertisement."    INDEX { ospfLsdbAreaId, ospfLsdbType,            ospfLsdbLSID, ospfLsdbRouterId }    ::= { ospfLsdbTable 1 }OspfLsdbEntry ::=    SEQUENCE {        ospfLsdbAreaId            AreaID,        ospfLsdbType            INTEGER,        ospfLsdbLSID            IpAddress,        ospfLsdbRouterId            RouterID,        ospfLsdbSequence            INTEGER,        ospfLsdbAge            INTEGER,        ospfLsdbChecksum            INTEGER,        ospfLsdbAdvertisement            OCTET STRING    }ospfLsdbAreaId OBJECT-TYPE    SYNTAX   AreaID    ACCESS   read-only    STATUS   mandatory    DESCRIPTION       "The 32 bit identifier of the Area from which the LSA       was received."    REFERENCE       "OSPF Version 2, Appendix C.2 Area parameters"    ::= { ospfLsdbEntry 1 }ospfLsdbType OBJECT-TYPE    SYNTAX   INTEGER {                routerLink (1),                networkLink (2),                summaryLink (3),                asSummaryLink (4),                asExternalLink (5)             }    ACCESS   read-only    STATUS   mandatory    DESCRIPTION       "The type of the link state advertisement.  Each link       state type has a separate advertisement format."    REFERENCE       "OSPF Version 2, Appendix A.4.1 The Link State       Advertisement header"    ::= { ospfLsdbEntry 2 }ospfLsdbLSID OBJECT-TYPE    SYNTAX   IpAddress    ACCESS   read-only    STATUS   mandatory    DESCRIPTION       "The Link State ID is an LS Type Specific field       containing either a Router ID or an IP Address; it       identifies the piece of the routing domain that is       being described by the advertisement."    REFERENCE       "OSPF Version 2, Section 12.1.4 Link State ID"    ::= { ospfLsdbEntry 3 }ospfLsdbRouterId OBJECT-TYPE    SYNTAX   RouterID    ACCESS   read-only    STATUS   mandatory    DESCRIPTION       "The 32 bit number that uniquely identifies the       originating router in the Autonomous System."    REFERENCE       "OSPF Version 2, Appendix C.1 Global parameters"    ::= { ospfLsdbEntry 4 }--  Note that the OSPF Sequence Number is a 32 bit signed--  integer.  It starts with the value '80000001'h,--  or -'7FFFFFFF'h, and increments until '7FFFFFFF'h

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -