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

📄 smon-mib

📁 很不错java的SNMP应用例子
💻
📖 第 1 页 / 共 3 页
字号:
SMON-MIB DEFINITIONS ::= BEGINIMPORTS     MODULE-IDENTITY, OBJECT-TYPE, Counter32,     Integer32, Counter64             FROM SNMPv2-SMI     RowStatus, TEXTUAL-CONVENTION             FROM SNMPv2-TC     rmon, OwnerString             FROM RMON-MIB     LastCreateTime, DataSource, rmonConformance, probeConfig             FROM RMON2-MIB     InterfaceIndex             FROM IF-MIB     MODULE-COMPLIANCE, OBJECT-GROUP             FROM SNMPv2-CONF;switchRMON MODULE-IDENTITY     LAST-UPDATED "9812160000Z"     ORGANIZATION "IETF RMON MIB Working Group"     CONTACT-INFO     "IETF RMONMIB WG Mailing list: rmonmib@cisco.com             Rich Waterman             Allot Networks Inc.             Tel:  +1-408-559-0253             Email: rich@allot.com             Bill Lahaye             Xylan Corp.             Tel: +1-800-995-2612             Email:  lahaye@ctron.com             Dan Romascanu             Lucent Technologies             Tel:  +972-3-645-8414             Email: dromasca@lucent.com             Steven Waldbusser             International Network Services (INS)             Tel: +1-650-318-1251             Email: waldbusser@ins.com"     DESCRIPTION             "The MIB module for managing remote monitoring device              implementations for Switched Networks"      -- revision history     REVISION    "9812160000Z"     -- 16 Dec 1998 midemight     DESCRIPTION "Initial Version, published as RFC 2613."     ::= { rmon 22 }smonMIBObjects OBJECT IDENTIFIER ::= { switchRMON 1 }dataSourceCaps          OBJECT IDENTIFIER ::= {smonMIBObjects 1}smonStats               OBJECT IDENTIFIER ::= {smonMIBObjects 2}portCopyConfig          OBJECT IDENTIFIER ::= {smonMIBObjects 3}smonRegistrationPoints  OBJECT IDENTIFIER ::= {smonMIBObjects 4}-- Textual Conventions--SmonDataSource ::= TEXTUAL-CONVENTION STATUS        current DESCRIPTION     "Identifies the source of the data that the associated function      is configured to analyze. This Textual Convention      extends the DataSource Textual Convention defined by RMON 2      to the following data source types:      - ifIndex.<I>      DataSources of this traditional form are called 'port-based',      but only if ifType.<I> is not equal to 'propVirtual(53)'.      - smonVlanDataSource.<V>      A dataSource of this form refers to a 'Packet-based VLAN'      and is called a 'VLAN-based' dataSource. <V> is the VLAN      ID as defined by the IEEE 802.1Q standard [19]. The      value is between 1 and 4094 inclusive, and it represents      an 802.1Q VLAN-ID with global scope within a given      bridged domain, as defined by [19].     - entPhysicalEntry.<N>      A dataSource of this form refers to a physical entity within      the agent (e.g. entPhysicalClass = backplane(4)) and is called      an 'entity-based' dataSource." SYNTAX      OBJECT IDENTIFIER-- The smonCapabilities object describes SMON agent capabilities.smonCapabilities OBJECT-TYPE SYNTAX BITS {   smonVlanStats(0),   smonPrioStats(1),   dataSource(2),   smonUnusedBit(3),   portCopy(4)   } MAX-ACCESS read-only STATUS current DESCRIPTION     "An indication of the SMON MIB groups supported      by this agent." ::= { probeConfig  15 }-- dataSourceCaps MIB group - defines SMON data source and port-- copy capabilities for devices supporting SMON.-- A NMS application will check this MIB group and retrieve-- information about the SMON capabilities of the device before-- applying SMON control operations to the device.-- dataSourceCapsTable: defines capabilities of RMON data sourcesdataSourceCapsTable OBJECT-TYPE SYNTAX      SEQUENCE OF DataSourceCapsEntry MAX-ACCESS  not-accessible STATUS      current DESCRIPTION     "This table describes RMON data sources and port copy     capabilities. An NMS MAY use this table to discover the     identity and attributes of the data sources on a given agent     implementation. Similar to the probeCapabilities object,     actual row-creation operations will succeed or fail based on     the resources available and parameter values used in each     row-creation operation.     Upon restart of the RMON agent, the dataSourceTable, ifTable,     and perhaps entPhysicalTable are initialized for the available     dataSources.     For each dataSourceCapsEntry representing a VLAN or     entPhysicalEntry the agent MUST create an associated ifEntry     with a ifType value of 'propVirtual(53)'. This ifEntry will be     used as the actual value in RMON control table dataSource     objects. The assigned ifIndex value is copied into the     associated dataSourceCapsIfIndex object.     It is understood that dataSources representing VLANs may not     always be instantiated immediately upon restart, but rather as     VLAN usage is detected by the agent. The agent SHOULD attempt     to create dataSource and interface entries for all dataSources     as soon as possible."::= { dataSourceCaps 1 }dataSourceCapsEntry  OBJECT-TYPE SYNTAX      DataSourceCapsEntry MAX-ACCESS  not-accessible STATUS      current DESCRIPTION     "Entries per data source containing descriptions of data      source and port copy capabilities. This table is populated by      the SMON agent with one entry for each supported data      source."INDEX { IMPLIED dataSourceCapsObject }::= { dataSourceCapsTable 1 }DataSourceCapsEntry ::= SEQUENCE {     dataSourceCapsObject             SmonDataSource,     dataSourceRmonCaps             BITS,     dataSourceCopyCaps             BITS,     dataSourceCapsIfIndex             InterfaceIndex     }dataSourceCapsObject OBJECT-TYPE SYNTAX      SmonDataSource MAX-ACCESS  not-accessible STATUS      current DESCRIPTION     "Defines an object that can be a SMON data source or a       source or a destination for a port copy operation." ::= { dataSourceCapsEntry 1  }dataSourceRmonCaps OBJECT-TYPE SYNTAX BITS {        countErrFrames(0),        countAllGoodFrames(1),        countAnyRmonTables(2),        babyGiantsCountAsGood(3)        } MAX-ACCESS read-only STATUS current DESCRIPTION     " General attributes of the specified dataSource. Note that     these are static attributes, which SHOULD NOT be adjusted     because of current resources or configuration.   - countErrFrames(0)       The agent sets this bit for the dataSource if errored frames       received on this dataSource can actually be monitored by the       agent The agent clears this bit if any errored frames are       not visible to the RMON data collector.   - countAllGoodFrames(1)       The agent sets this bit for the dataSource if all good       frames received on this dataSource can actually be monitored       by the agent. The agent clears this bit if any good frames       are not visible for RMON collection, e.g., the dataSource is       a non-promiscuous interface or an internal switch interface       which may not receive frames which were switched in hardware       or dropped by the bridge forwarding function.   - countAnyRmonTables(2)       The agent sets this bit if this dataSource can actually be       used in any of the implemented RMON tables, resources       notwithstanding. The agent clears this bit if this       dataSourceCapsEntry is present simply to identify a       dataSource that may only be used as portCopySource and/or a       portCopyDest, but not the source of an actual RMON data       collection.   - babyGiantsCountAsGood(3)       The agent sets this bit if it can distinguish, for counting       purposes, between true giant frames and frames that exceed       Ethernet maximum frame size 1518 due to VLAN tagging ('baby       giants'). Specifically, this BIT means that frames up to       1522 octets are counted as good.       Agents not capable of detecting 'baby giants' will clear       this bit and will view all frames less than or equal to 1518       octets as 'good frames' and all frames larger than 1518       octets as 'bad frames' for the purpose of counting in the       smonVlanIdStats and smonPrioStats tables.       Agents capable of detecting 'baby giants' SHALL consider       them as 'good frames' for the purpose of counting in the       smonVlanIdStats and smonPrioStats tables." ::= { dataSourceCapsEntry 2  }dataSourceCopyCaps OBJECT-TYPE SYNTAX BITS {     copySourcePort(0),     copyDestPort(1),     copySrcTxTraffic(2),     copySrcRxTraffic(3),     countDestDropEvents(4),     copyErrFrames(5),     copyUnalteredFrames(6),     copyAllGoodFrames(7)     } MAX-ACCESS   read-only STATUS       current DESCRIPTION     "PortCopy function capabilities of the specified dataSource. Note that these are static capabilities, which SHOULD NOT be adjusted because of current resources or configuration.   - copySourcePort(0)       The agent sets this bit if this dataSource is capable of       acting as a source of a portCopy operation. The agent clears       this bit otherwise.   - copyDestPort(1)       The agent sets this bit if this dataSource is capable of       acting as a destination of a portCopy operation. The agent       clears this bit otherwise.  - copySrcTxTraffic(2)       If the copySourcePort bit is set:             The agent sets this bit if this dataSource is capable of           copying frames transmitted out this portCopy source. The           agent clears this bit otherwise. This function is needed           to support full-duplex ports.        Else:            this bit SHOULD be cleared.   - copySrcRxTraffic(3)       If the copySourcePort bit is set:         The agent sets this bit if this dataSource is capable of         copying frames received on this portCopy source. The agent         clears this bit otherwise. This function is needed to         support full-duplex ports.       Else:         this bit SHOULD be cleared.   - countDestDropEvents(4)       If the copyDestPort bit is set:           The agent sets this bit if it is capable of incrementing           portCopyDestDropEvents, when this dataSource is the           target of a portCopy operation and a frame destined to           this dataSource is dropped (for RMON counting purposes).       Else:           this BIT SHOULD be cleared.   - copyErrFrames(5)       If the copySourcePort bit is set:           The agent sets this bit if it is capable of copying all           errored frames from this portCopy source-port, for           errored frames received on this dataSource.       Else:           this BIT SHOULD be cleared.   - copyUnalteredFrames(6)       If the copySourcePort bit is set:           The agent sets the copyUnalteredFrames bit If it is           capable of copying all frames from this portCopy           source-port without alteration in any way;       Else:           this bit SHOULD be cleared.   - copyAllGoodFrames(7)       If the copySourcePort bit is set:           The agent sets this bit for the dataSource if all good           frames received on this dataSource are normally capable           of being copied by the agent. The agent clears this bit           if any good frames are not visible for the RMON portCopy           operation, e.g., the dataSource is a non-promiscuous           interface or an internal switch interface which may not           receive frames which were switched in hardware or           dropped by the bridge forwarding function.        Else:           this bit SHOULD be cleared." ::= { dataSourceCapsEntry 3  }dataSourceCapsIfIndex OBJECT-TYPESYNTAX       InterfaceIndexMAX-ACCESS   read-onlySTATUS       currentDESCRIPTION     "This object contains the ifIndex value of the ifEntry      associated with this smonDataSource. The agent MUST create      'propVirtual' ifEntries for each dataSourceCapsEntry of type      VLAN or entPhysicalEntry." ::= { dataSourceCapsEntry 4  }-- The SMON Statistics MIB Group-- aggregated statistics for IEEE 802.1Q VLAN environments.-- VLAN statistics can be gathered by configuring smonVlanIdStats-- and/or smonPrioStats collections. These functions allow a-- VLAN-ID or user priority distributions per dataSource,-- auto-populated by the agent in a manner similar to the RMON-- hostTable.-- Only good frames are counted in the tables described in this-- section.-- VLAN ID Stats-- smonVlanStatsControlTable allows configuration of VLAN-ID-- collections.smonVlanStatsControlTable OBJECT-TYPE SYNTAX      SEQUENCE OF SmonVlanStatsControlEntry MAX-ACCESS  not-accessible STATUS      current DESCRIPTION     "Controls the setup of VLAN statistics tables.      The statistics collected represent a distribution based on      the IEEE 802.1Q VLAN-ID (VID), for each good frame attributed      to the data source for the collection." ::= { smonStats 1 }smonVlanStatsControlEntry OBJECT-TYPE SYNTAX      SmonVlanStatsControlEntry MAX-ACCESS  not-accessible STATUS      current DESCRIPTION     "A conceptual row in the smonVlanStatsControlTable." INDEX { smonVlanStatsControlIndex } ::= { smonVlanStatsControlTable 1 }SmonVlanStatsControlEntry ::= SEQUENCE { smonVlanStatsControlIndex                 Integer32, smonVlanStatsControlDataSource           DataSource, smonVlanStatsControlCreateTime       LastCreateTime, smonVlanStatsControlOwner               OwnerString, smonVlanStatsControlStatus                RowStatus}smonVlanStatsControlIndex OBJECT-TYPE SYNTAX      Integer32 (1..65535) MAX-ACCESS  not-accessible STATUS      current DESCRIPTION     "A unique arbitrary index for this smonVlanStatsControlEntry." ::= { smonVlanStatsControlEntry 1 }smonVlanStatsControlDataSource OBJECT-TYPE SYNTAX      DataSource MAX-ACCESS  read-create STATUS      current DESCRIPTION     "The source of data for this set of VLAN statistics.     This object MAY NOT be modified if the associated     smonVlanStatsControlStatus object is equal to active(1)." ::= { smonVlanStatsControlEntry 2 }smonVlanStatsControlCreateTime OBJECT-TYPE SYNTAX     LastCreateTime MAX-ACCESS read-only STATUS     current DESCRIPTION     "The value of sysUpTime when this control entry was last     activated. This object allows to a management station to     detect deletion and recreation cycles between polls." ::= { smonVlanStatsControlEntry 3 }smonVlanStatsControlOwner OBJECT-TYPE SYNTAX      OwnerString MAX-ACCESS  read-create STATUS      current DESCRIPTION     "Administratively assigned named of the owner of this entry.     It usually defines the entity that created this entry and is     therefore using the resources assigned to it, though there is

⌨️ 快捷键说明

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