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

📄 bldg-hvac-mib

📁 很不错java的SNMP应用例子
💻
📖 第 1 页 / 共 2 页
字号:
BLDG-HVAC-MIB DEFINITIONS ::= BEGINIMPORTS    MODULE-IDENTITY, Counter32,    Gauge32, OBJECT-TYPE, Unsigned32, experimental        FROM SNMPv2-SMI    MODULE-COMPLIANCE, OBJECT-GROUP       FROM SNMPv2-CONF    TEXTUAL-CONVENTION,    TimeStamp, RowStatus, StorageType        FROM SNMPv2-TC    SnmpAdminString        FROM SNMP-FRAMEWORK-MIB;bldgHVACMIB MODULE-IDENTITY    LAST-UPDATED "200303270000Z"    ORGANIZATION "SNMPCONF working group                  E-mail: snmpconf@snmp.com"    CONTACT-INFO        "Jon Saperia        Postal:     JDS Consulting                    174 Chapman Street                    Watertown, MA 02472                    U.S.A.        Phone:      +1 617 744 1079        E-mail:     saperia@jdscons.com        Wayne Tackabury        Postal:     Gold Wire Technology                    411 Waverley Oaks Rd.                    Waltham, MA 02452                    U.S.A.        Phone:      +1 781 398 8800        E-mail:     wayne@goldwiretech.com        Michael MacFaden        Postal:     Riverstone Networks                    5200 Great America Pkwy.                    Santa Clara, CA 95054                    U.S.A.        Phone:      +1 408 878 6500        E-mail:     mrm@riverstonenet.com        David Partain        Postal:     Ericsson AB                    P.O. Box 1248                    SE-581 12  Linkoping                    Sweden        E-mail:     David.Partain@ericsson.com"    DESCRIPTION        "This example MIB module defines a set of management objects        for heating ventilation and air conditioning systems.  It        also includes objects that can be used to create policies        that are applied to rooms.  This eliminates the need to send        per-instance configuration commands to the system.        Copyright (C) The Internet Society (2003).  This version of        this MIB module is part of RFC 3512; see the RFC itself for        full legal notices."    REVISION "200303270000Z"    DESCRIPTION        "Initial version of BLDG-HVAC-MIB as published in RFC 3512."    ::= { experimental 122 }bldgHVACObjects         OBJECT IDENTIFIER ::= { bldgHVACMIB 1 }bldgConformance         OBJECT IDENTIFIER ::= { bldgHVACMIB 2 }---- Textual Conventions--BldgHvacOperation  ::= TEXTUAL-CONVENTION    STATUS             current    DESCRIPTION        "Operations supported by a heating and cooling system.        A reference to underlying general systems would go here."    SYNTAX      INTEGER {                         heat(1),                         cool(2)                }---- HVAC Objects Group--bldgHVACTable    OBJECT-TYPE    SYNTAX      SEQUENCE OF BldgHVACEntry    MAX-ACCESS  not-accessible    STATUS      current    DESCRIPTION        "This table is the representation and data control        for building HVAC by each individual office.        The table has rows for, and is indexed by a specific        floor and office number.  Each such row includes        HVAC statistical and current status information for        the associated office.  The row also contains a        bldgHVACCfgTemplate columnar object that relates the        bldgHVACTable row to a row in the bldgHVACCfgTemplateTable.        If this value is nonzero, then the instance in the row        that has a value for how the HVAC has been configured        in the associated template (bldgHVACCfgTeplateTable row).        Hence, the bldgHVACCfgTeplateTable row contains the        specific configuration values for the offices as described        in this table."    ::= { bldgHVACObjects 1 }bldgHVACEntry  OBJECT-TYPE    SYNTAX       BldgHVACEntry    MAX-ACCESS   not-accessible    STATUS       current    DESCRIPTION        "A row in the bldgHVACTable.  Each row represents a particular        office in the building, qualified by its floor and office        number.  A given row instance can be created or deleted by        set operations  upon its bldgHVACStatus columnar        object instance."    INDEX { bldgHVACFloor, bldgHVACOffice }        ::= { bldgHVACTable 1 }BldgHVACEntry ::= SEQUENCE {        bldgHVACFloor             Unsigned32,        bldgHVACOffice            Unsigned32,        bldgHVACCfgTemplate       Unsigned32,        bldgHVACFanSpeed          Gauge32,        bldgHVACCurrentTemp       Gauge32,        bldgHVACCoolOrHeatMins    Counter32,        bldgHVACDiscontinuityTime TimeStamp,        bldgHVACOwner             SnmpAdminString,        bldgHVACStorageType       StorageType,        bldgHVACStatus            RowStatus        }bldgHVACFloor    OBJECT-TYPE    SYNTAX      Unsigned32 (1..1000)    MAX-ACCESS  not-accessible    STATUS      current    DESCRIPTION        "This portion of the index indicates the floor of the         building.  The ground floor is considered the         first floor.  For the purposes of this example,         floors under the ground floor cannot be         controlled using this MIB module."    ::= { bldgHVACEntry 1 }bldgHVACOffice    OBJECT-TYPE    SYNTAX      Unsigned32 (1..2147483647)    MAX-ACCESS  not-accessible    STATUS      current    DESCRIPTION        "This second component of the index specifies the        office number."    ::= { bldgHVACEntry 2 }bldgHVACCfgTemplate  OBJECT-TYPE    SYNTAX          Unsigned32    MAX-ACCESS      read-create    STATUS          current    DESCRIPTION        "The index (bldgHVACCfgTemplateIndex instance)        of an entry in the 'bldgHVACCfgTemplateTable'.        The bldgHVACCfgTable row instance referenced        is a pre-made configuration 'template'        that represents the configuration described        by the bldgHVACCfgTemplateInfoDescr object.  Note        that not all configurations will be under a        defined template.  As a result, a row in this        bldgHVACTable may point to an entry in the        bldgHVACCfgTemplateTable that does not in turn        have a reference (bldgHVACCfgTemplateInfo) to an        entry in the bldgHVACCfgTemplateInfoTable.  The        benefit of this approach is that all        configuration information is available in one        table whether all elements in the system are        derived from configured templates or not.        Where the instance value for this colunmar object        is zero, this row represents data for an office        whose HVAC status can be monitored using the        read-only columnar object instances of this        row, but is not under the configuration control        of the agent."    ::= { bldgHVACEntry 3 }bldgHVACFanSpeed  OBJECT-TYPE    SYNTAX            Gauge32    UNITS             "revolutions per minute"    MAX-ACCESS        read-only    STATUS            current    DESCRIPTION        "Shows the revolutions per minute of the fan.  Fan speed        will vary based on the difference between        bldgHVACCfgTemplateDesiredTemp and bldgHVACCurrentTemp.  The        speed is measured in revolutions of the fan blade per minute."    ::= { bldgHVACEntry 4 }bldgHVACCurrentTemp  OBJECT-TYPE    SYNTAX            Gauge32    UNITS             "degrees in celsius"    MAX-ACCESS        read-only    STATUS            current    DESCRIPTION        "The current measured temperature in the office.  Should        the current temperature be measured at a value of less        than zero degrees celsius, a read of the instance        for this object will return a value of zero."    ::= { bldgHVACEntry 5 }bldgHVACCoolOrHeatMins  OBJECT-TYPE    SYNTAX            Counter32    UNITS             "minutes"    MAX-ACCESS        read-only    STATUS            current    DESCRIPTION        "The total number of heating or cooling minutes that have        been consumed since the row was activated.  Notice that        whether the minutes represent heating or cooling is a        function of the configuration of this row.  If the system        is re-initialized from a cooling to heating function or        vice versa, then the counter would start over again.  This        effect is similar to a reconfiguration of some network        interface cards.  When parameters that impact        configuration are changed, the subsystem must be        re-initialized.  Discontinuities in the value of this counter        can occur at re-initialization of the management system,        and at other times as indicated by the value of        bldgHVACDiscontinuityTime."    ::= { bldgHVACEntry 6 }bldgHVACDiscontinuityTime OBJECT-TYPE    SYNTAX      TimeStamp    MAX-ACCESS  read-only    STATUS      current    DESCRIPTION        "The value of sysUpTime on the most recent occasion at which        any heating or cooling operation for the office designated        by this row instance experienced a discontinuity.  If        no such discontinuities have occurred since the last re-        initialization of the this row, then this object contains a        zero value."    ::= { bldgHVACEntry 7 }bldgHVACOwner  OBJECT-TYPE    SYNTAX            SnmpAdminString    MAX-ACCESS        read-create    STATUS            current    DESCRIPTION        "The identity of the operator/system that        last modified this entry.  When a new entry        is created, a valid SnmpAdminString must        be supplied.  If, on the other hand, this        entry is populated by the agent 'discovering'        unconfigured rooms, the empty string is a valid        value for this object."    ::= { bldgHVACEntry 8 }bldgHVACStorageType  OBJECT-TYPE    SYNTAX            StorageType    MAX-ACCESS        read-create    STATUS            current    DESCRIPTION        "The persistence of this row of the table in system storage,        as it pertains to permanence across system resets.  A columnar        instance of this object with value 'permanent' need not allow        write-access to any of the columnar object instances in the        containing row."    ::= { bldgHVACEntry 9  }bldgHVACStatus  OBJECT-TYPE    SYNTAX            RowStatus    MAX-ACCESS        read-create    STATUS            current    DESCRIPTION        "Controls and reflects the creation and activation status of        a row in this table.        No attempt to modify a row columnar object instance value in        the bldgHVACTable should be issued while the value of        bldgHVACStatus is active(1).  Should an agent receive a SET        PDU attempting such a modification in this state, an        inconsistentValue error should be returned as a result of        the SET attempt."    ::= { bldgHVACEntry 10 }---- HVAC Configuration Template Table--bldgHVACCfgTemplateInfoTable  OBJECT-TYPE    SYNTAX      SEQUENCE OF BldgHVACCfgTemplateInfoEntry    MAX-ACCESS  not-accessible    STATUS      current    DESCRIPTION

⌨️ 快捷键说明

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