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

📄 ups-mib

📁 很不错java的SNMP应用例子
💻
📖 第 1 页 / 共 5 页
字号:
UPS-MIB DEFINITIONS ::= BEGINIMPORTS    MODULE-IDENTITY, OBJECT-TYPE, NOTIFICATION-TYPE,    OBJECT-IDENTITY, Counter32, Gauge32, Integer32, mib-2        FROM SNMPv2-SMI    DisplayString, TimeStamp, TimeInterval, TestAndIncr,      AutonomousType, TEXTUAL-CONVENTION        FROM SNMPv2-TC    MODULE-COMPLIANCE, OBJECT-GROUP        FROM SNMPv2-CONF;upsMIB MODULE-IDENTITY    LAST-UPDATED "9402230000Z"    ORGANIZATION "IETF UPS MIB Working Group"    CONTACT-INFO           "        Jeffrey D. Case             Postal: SNMP Research, Incorporated                     3001 Kimberlin Heights Road                     Knoxville, TN  37920                     US                Tel: +1 615 573 1434                Fax: +1 615 573 9197             E-mail: case@snmp.com"    DESCRIPTION            "The MIB module to describe Uninterruptible Power            Supplies."    ::= { mib-2 33 }PositiveInteger ::= TEXTUAL-CONVENTION    DISPLAY-HINT "d"    STATUS       current    DESCRIPTION            "This data type is a non-zero and non-negative value."    SYNTAX       INTEGER (1..2147483647)NonNegativeInteger ::= TEXTUAL-CONVENTION    DISPLAY-HINT "d"    STATUS       current    DESCRIPTION            "This data type is a non-negative value."    SYNTAX       INTEGER (0..2147483647)upsObjects            OBJECT IDENTIFIER ::= { upsMIB 1 }---- The Device Identification group.--      All objects in this group except for upsIdentName and--      upsIdentAttachedDevices are set at device initialization--      and remain static.--upsIdent              OBJECT IDENTIFIER ::= { upsObjects 1 }upsIdentManufacturer OBJECT-TYPE    SYNTAX     DisplayString (SIZE (0..31))    MAX-ACCESS read-only    STATUS     current    DESCRIPTION            "The name of the UPS manufacturer."    ::= { upsIdent 1 }upsIdentModel OBJECT-TYPE    SYNTAX     DisplayString (SIZE (0..63))    MAX-ACCESS read-only    STATUS     current    DESCRIPTION            "The UPS Model designation."    ::= { upsIdent 2 }upsIdentUPSSoftwareVersion OBJECT-TYPE    SYNTAX     DisplayString (SIZE (0..63))    MAX-ACCESS read-only    STATUS     current    DESCRIPTION            "The UPS firmware/software version(s).  This variable            may or may not have the same value as            upsIdentAgentSoftwareVersion in some implementations."    ::= { upsIdent 3 }upsIdentAgentSoftwareVersion OBJECT-TYPE    SYNTAX     DisplayString (SIZE (0..63))    MAX-ACCESS read-only    STATUS     current    DESCRIPTION            "The UPS agent software version.  This variable may or            may not have the same value as            upsIdentUPSSoftwareVersion in some implementations."    ::= { upsIdent 4 }upsIdentName OBJECT-TYPE    SYNTAX     DisplayString (SIZE(0..63))    MAX-ACCESS read-write    STATUS     current    DESCRIPTION            "A string identifying the UPS.  This object should be            set by the administrator."    ::= { upsIdent 5 }upsIdentAttachedDevices OBJECT-TYPE    SYNTAX     DisplayString (SIZE(0..63))    MAX-ACCESS read-write    STATUS     current    DESCRIPTION            "A string identifying the devices attached to the            output(s) of the UPS.  This object should be set by            the administrator."    ::= { upsIdent 6 }---- Battery Group--upsBattery            OBJECT IDENTIFIER ::= { upsObjects 2 }upsBatteryStatus OBJECT-TYPE    SYNTAX     INTEGER {        unknown(1),        batteryNormal(2),        batteryLow(3),        batteryDepleted(4)    }    MAX-ACCESS read-only    STATUS     current    DESCRIPTION            "The indication of the capacity remaining in the UPS            system's batteries.   A value of batteryNormal            indicates that the remaining run-time is greater than            upsConfigLowBattTime.  A value of batteryLow indicates            that the remaining battery run-time is less than or            equal to upsConfigLowBattTime.  A value of            batteryDepleted indicates that the UPS will be unable            to sustain the present load when and if the utility            power is lost (including the possibility that the            utility power is currently absent and the UPS is            unable to sustain the output)."    ::= { upsBattery 1 }upsSecondsOnBattery OBJECT-TYPE    SYNTAX     NonNegativeInteger    UNITS      "seconds"    MAX-ACCESS read-only    STATUS     current    DESCRIPTION            "If the unit is on battery power, the elapsed time            since the UPS last switched to battery power, or the            time since the network management subsystem was last            restarted, whichever is less.  Zero shall be returned            if the unit is not on battery power."    ::= { upsBattery 2 }upsEstimatedMinutesRemaining OBJECT-TYPE    SYNTAX     PositiveInteger    UNITS      "minutes"    MAX-ACCESS read-only    STATUS     current    DESCRIPTION            "An estimate of the time to battery charge depletion            under the present load conditions if the utility power            is off and remains off, or if it were to be lost and            remain off."    ::= { upsBattery 3 }upsEstimatedChargeRemaining OBJECT-TYPE    SYNTAX     INTEGER (0..100)    UNITS      "percent"    MAX-ACCESS read-only    STATUS     current    DESCRIPTION            "An estimate of the battery charge remaining expressed            as a percent of full charge."    ::= { upsBattery 4 }upsBatteryVoltage OBJECT-TYPE    SYNTAX     NonNegativeInteger    UNITS      "0.1 Volt DC"    MAX-ACCESS read-only    STATUS     current    DESCRIPTION            "The magnitude of the present battery voltage."    ::= { upsBattery 5 }upsBatteryCurrent OBJECT-TYPE    SYNTAX     Integer32    UNITS      "0.1 Amp DC"    MAX-ACCESS read-only    STATUS     current    DESCRIPTION            "The present battery current."    ::= { upsBattery 6 }upsBatteryTemperature OBJECT-TYPE    SYNTAX     Integer32    UNITS      "degrees Centigrade"    MAX-ACCESS read-only    STATUS     current    DESCRIPTION            "The ambient temperature at or near the UPS Battery            casing."    ::= { upsBattery 7 }---- Input Group--upsInput              OBJECT IDENTIFIER ::= { upsObjects 3 }upsInputLineBads OBJECT-TYPE    SYNTAX     Counter32    MAX-ACCESS read-only    STATUS     current    DESCRIPTION            "A count of the number of times the input entered an            out-of-tolerance condition as defined by the            manufacturer.  This count is incremented by one each            time the input transitions from zero out-of-tolerance            lines to one or more input lines out-of-tolerance."    ::= { upsInput 1 }upsInputNumLines OBJECT-TYPE    SYNTAX     NonNegativeInteger    MAX-ACCESS read-only    STATUS     current    DESCRIPTION            "The number of input lines utilized in this device.            This variable indicates the number of rows in the            input table."    ::= { upsInput 2 }upsInputTable OBJECT-TYPE    SYNTAX     SEQUENCE OF UpsInputEntry    MAX-ACCESS not-accessible    STATUS     current    DESCRIPTION            "A list of input table entries.  The number of entries            is given by the value of upsInputNumLines."    ::= { upsInput 3 }upsInputEntry OBJECT-TYPE    SYNTAX     UpsInputEntry    MAX-ACCESS not-accessible    STATUS     current    DESCRIPTION            "An entry containing information applicable to a            particular input line."    INDEX { upsInputLineIndex }    ::= { upsInputTable 1 }UpsInputEntry ::= SEQUENCE {    upsInputLineIndex   PositiveInteger,    upsInputFrequency   NonNegativeInteger,    upsInputVoltage     NonNegativeInteger,    upsInputCurrent     NonNegativeInteger,    upsInputTruePower   NonNegativeInteger}upsInputLineIndex OBJECT-TYPE    SYNTAX     PositiveInteger    MAX-ACCESS not-accessible    STATUS     current    DESCRIPTION            "The input line identifier."    ::= { upsInputEntry 1 }upsInputFrequency OBJECT-TYPE    SYNTAX     NonNegativeInteger    UNITS      "0.1 Hertz"    MAX-ACCESS read-only    STATUS     current    DESCRIPTION            "The present input frequency."    ::= { upsInputEntry 2 }upsInputVoltage OBJECT-TYPE    SYNTAX     NonNegativeInteger    UNITS      "RMS Volts"    MAX-ACCESS read-only    STATUS     current    DESCRIPTION            "The magnitude of the present input voltage."    ::= { upsInputEntry 3 }upsInputCurrent OBJECT-TYPE    SYNTAX     NonNegativeInteger    UNITS      "0.1 RMS Amp"    MAX-ACCESS read-only    STATUS     current    DESCRIPTION            "The magnitude of the present input current."    ::= { upsInputEntry 4 }upsInputTruePower OBJECT-TYPE    SYNTAX     NonNegativeInteger    UNITS      "Watts"    MAX-ACCESS read-only    STATUS     current    DESCRIPTION            "The magnitude of the present input true power."    ::= { upsInputEntry 5 }---- The Output group.--upsOutput             OBJECT IDENTIFIER ::= { upsObjects 4 }upsOutputSource OBJECT-TYPE    SYNTAX     INTEGER {        other(1),        none(2),        normal(3),        bypass(4),        battery(5),        booster(6),        reducer(7)    }    MAX-ACCESS read-only    STATUS     current    DESCRIPTION            "The present source of output power.  The enumeration            none(2) indicates that there is no source of output            power (and therefore no output power), for example,            the system has opened the output breaker."    ::= { upsOutput 1 }upsOutputFrequency OBJECT-TYPE    SYNTAX     NonNegativeInteger    UNITS      "0.1 Hertz"    MAX-ACCESS read-only    STATUS     current    DESCRIPTION            "The present output frequency."    ::= { upsOutput 2 }upsOutputNumLines OBJECT-TYPE    SYNTAX     NonNegativeInteger    MAX-ACCESS read-only    STATUS     current    DESCRIPTION            "The number of output lines utilized in this device.            This variable indicates the number of rows in the            output table."    ::= { upsOutput 3 }upsOutputTable OBJECT-TYPE    SYNTAX     SEQUENCE OF UpsOutputEntry    MAX-ACCESS not-accessible    STATUS     current    DESCRIPTION            "A list of output table entries.  The number of            entries is given by the value of upsOutputNumLines."    ::= { upsOutput 4 }upsOutputEntry OBJECT-TYPE    SYNTAX     UpsOutputEntry    MAX-ACCESS not-accessible    STATUS     current    DESCRIPTION            "An entry containing information applicable to a            particular output line."    INDEX { upsOutputLineIndex }    ::= { upsOutputTable 1 }UpsOutputEntry ::= SEQUENCE {    upsOutputLineIndex   PositiveInteger,    upsOutputVoltage     NonNegativeInteger,    upsOutputCurrent     NonNegativeInteger,    upsOutputPower       NonNegativeInteger,    upsOutputPercentLoad INTEGER}upsOutputLineIndex OBJECT-TYPE    SYNTAX     PositiveInteger    MAX-ACCESS not-accessible    STATUS     current

⌨️ 快捷键说明

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