device: Added temp, power and state sensors to procurve os (#8281)

* device: Added temp, power and state sensors to procurve os

* changed sensor value

* updated sensors value

* updated test data
This commit is contained in:
Neil Lathwood
2018-02-27 20:48:16 +00:00
committed by GitHub
parent 897081b2d3
commit 9dac4cfa6e
6 changed files with 3454 additions and 180 deletions

236
mibs/hp/FAN-MIB Normal file
View File

@@ -0,0 +1,236 @@
FAN-MIB DEFINITIONS ::= BEGIN
IMPORTS
MODULE-IDENTITY, OBJECT-TYPE, Integer32, Counter32, Unsigned32
FROM SNMPv2-SMI
MODULE-COMPLIANCE, OBJECT-GROUP
FROM SNMPv2-CONF
TEXTUAL-CONVENTION
FROM SNMPv2-TC
hpSwitch
FROM HP-ICF-OID;
hpicfFanMIB MODULE-IDENTITY
LAST-UPDATED "200808271030Z" --August 27, 2008 10:30 GMT
ORGANIZATION "HP Networking"
CONTACT-INFO "Hewlett-Packard Company
8000 Foothills Blvd.
Roseville, CA 95747"
DESCRIPTION "The MIB module is for representing switch fan entity."
REVISION "200808271030Z" --August 27, 2008 10:30 GMT
DESCRIPTION "Revision 01."
::= { hpSwitch 54 }
-- ********************************************************************
-- FAN Textual Conventions
-- ********************************************************************
HpicfDcFanIndex ::= TEXTUAL-CONVENTION
DISPLAY-HINT "d"
STATUS current
DESCRIPTION "A unique value that serves as an index to identify the fan."
SYNTAX Unsigned32
HpicfDcFanType ::= TEXTUAL-CONVENTION
STATUS current
DESCRIPTION "An enumerated value that indications the fan types."
SYNTAX INTEGER {
unknown(0),
mm(1),
fm(2),
im(3),
ps(4),
rollup(5),
maxtype(6)
}
HpicfDcFanAirflowDirection ::= TEXTUAL-CONVENTION
STATUS current
DESCRIPTION "An enumerated value which provides an indication of the
fan airflow direction. The Physical fan airflow direction
could be either from the port towards the power supply
module i.e. portToPower(1), or from the power supply module
towards the port i.e. powerToPort(2)"
SYNTAX INTEGER {
portToPower(1),
powerToPort(2)
}
HpicfDcFanState ::= TEXTUAL-CONVENTION
STATUS current
DESCRIPTION "An enumerated value which provides an indication of the
fan state."
SYNTAX INTEGER {
failed(0),
removed(1),
off(2),
underspeed(3),
overspeed(4),
ok(5),
maxstate(6)
}
-- ********************************************************************
-- Fan Scalars
-- ********************************************************************
hpicfFanScalars OBJECT IDENTIFIER ::= { hpicfFanMIB 1 }
hpicfFanUserPrefAirflowDir OBJECT-TYPE
SYNTAX INTEGER {
portToPower(1),
powerToPort(2)
}
MAX-ACCESS read-write
STATUS current
DESCRIPTION "The user preferred fan airflow direction. The direction could be
powerToPort or portToPower. The actual fan direction has to be
changed manually, this will be used to indicate to the user when
when the actual fan airflow direction is different from the user
preferred airflow direction."
DEFVAL { powerToPort }
::= { hpicfFanScalars 1 }
-- ********************************************************************
-- FAN entry
-- ********************************************************************
hpicfEntityFan OBJECT IDENTIFIER ::= { hpicfFanMIB 2 }
hpicfFanTable OBJECT-TYPE
SYNTAX SEQUENCE OF HpicfFanEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION "This table contains one row for every fan in the switch entity."
::= { hpicfEntityFan 1 }
hpicfFanEntry OBJECT-TYPE
SYNTAX HpicfFanEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION "Information about fan entity table."
INDEX { hpicfFanIndex }
::= { hpicfFanTable 1 }
HpicfFanEntry ::= SEQUENCE {
hpicfFanIndex HpicfDcFanIndex,
hpicfFanTray Integer32,
hpicfFanType HpicfDcFanType,
hpicfFanState HpicfDcFanState,
hpicfFanRecovering Integer32,
hpicfFanNumFailures Counter32,
hpicfFanAirflowDirection HpicfDcFanAirflowDirection
}
hpicfFanIndex OBJECT-TYPE
SYNTAX HpicfDcFanIndex
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION "The index that is used to access the switch fan entry table."
::= { hpicfFanEntry 1 }
hpicfFanTray OBJECT-TYPE
SYNTAX Integer32
MAX-ACCESS read-only
STATUS current
DESCRIPTION "The tray number in which the fan is docked."
::= { hpicfFanEntry 2 }
hpicfFanType OBJECT-TYPE
SYNTAX HpicfDcFanType
MAX-ACCESS read-only
STATUS current
DESCRIPTION "An indication of the vendor-specific fan."
::= { hpicfFanEntry 3 }
hpicfFanState OBJECT-TYPE
SYNTAX HpicfDcFanState
MAX-ACCESS read-only
STATUS current
DESCRIPTION "The current state of the fan."
::= { hpicfFanEntry 4 }
hpicfFanRecovering OBJECT-TYPE
SYNTAX Integer32
MAX-ACCESS read-only
STATUS current
DESCRIPTION "An indication that the switch fan entity is faulty.
Before declaring a fan to be good after a failure is
detected, the same good indication must happen five (5)
times in a row. A failure indication is always TRUE, while
a good indication could be FALSE, hence this parameter is
used to count the repeated good indications before
declaring the fan to be good "
::= { hpicfFanEntry 5 }
hpicfFanNumFailures OBJECT-TYPE
SYNTAX Counter32
MAX-ACCESS read-only
STATUS current
DESCRIPTION "The number of times the fan has failed."
::= { hpicfFanEntry 6 }
hpicfFanAirflowDirection OBJECT-TYPE
SYNTAX HpicfDcFanAirflowDirection
MAX-ACCESS read-only
STATUS current
DESCRIPTION "Indication of the fan air flow direction, either
from Power supply towards the port or from the port
towards the power supply."
::= { hpicfFanEntry 7 }
-- ********************************************************************
-- FAN Conformance
--********************************************************************
hpicfFanConformance OBJECT IDENTIFIER ::= { hpicfFanMIB 3 }
hpicfFanCompliance OBJECT IDENTIFIER ::= { hpicfFanConformance 1 }
hpicfFanGroups OBJECT IDENTIFIER ::= { hpicfFanConformance 2 }
-- ********************************************************************
-- FAN Complicance
-- ********************************************************************
hpicfDcFanCompliance MODULE-COMPLIANCE
STATUS current
DESCRIPTION "The compliance statement for entries which implement
the FAN MIB."
MODULE -- This module
MANDATORY-GROUPS
{
hpicfFanScalarsGroup,
hpicfFanGroup
}
GROUP hpicfFanGroup
DESCRIPTION "Objects associated with switch entity FAN."
::= { hpicfFanCompliance 1 }
--
-- FAN Groups
--
hpicfFanScalarsGroup OBJECT-GROUP
OBJECTS
{
hpicfFanUserPrefAirflowDir
}
STATUS current
DESCRIPTION "Basic Scalars required in FAN MIB implementation."
::= { hpicfFanGroups 1 }
hpicfFanGroup OBJECT-GROUP
OBJECTS
{
hpicfFanTray,
hpicfFanType,
hpicfFanState,
hpicfFanRecovering,
hpicfFanNumFailures,
hpicfFanAirflowDirection
}
STATUS current
DESCRIPTION "FAN MIB parameters "
::= { hpicfFanGroups 2 }
END

File diff suppressed because it is too large Load Diff

181
mibs/hp/POWERSUPPLY-MI Normal file
View File

@@ -0,0 +1,181 @@
POWERSUPPLY-MIB DEFINITIONS ::= BEGIN
IMPORTS
MODULE-IDENTITY, OBJECT-TYPE, Integer32, Unsigned32, Counter32
FROM SNMPv2-SMI
MODULE-COMPLIANCE, OBJECT-GROUP
FROM SNMPv2-CONF
SnmpAdminString
FROM SNMP-FRAMEWORK-MIB
TEXTUAL-CONVENTION
FROM SNMPv2-TC
hpSwitch
FROM HP-ICF-OID;
hpicfPsMIB MODULE-IDENTITY
LAST-UPDATED "200808271000Z" --August 27, 2008 10:00 GMT
ORGANIZATION "HP Networking"
CONTACT-INFO "Hewlett-Packard Company
8000 Foothills Blvd.
Roseville, CA 95747"
DESCRIPTION "This MIB module is for representing
switch power supply entity."
REVISION "200808271000Z" --August 27, 2008 10:00 GMT
DESCRIPTION "Initial Version of Power Supply MIB, Version 1"
::= { hpSwitch 55 }
hpicfEntityPs OBJECT IDENTIFIER ::= { hpicfPsMIB 1 }
-- ********************************************************************
-- POWER SUPPLY Textual Conventions
-- ********************************************************************
HpicfDcPsIndex ::= TEXTUAL-CONVENTION
DISPLAY-HINT "d"
STATUS current
DESCRIPTION "A unique value that serves as index to identify the power supply."
SYNTAX Unsigned32
HpicfDcPsState ::= TEXTUAL-CONVENTION
STATUS current
DESCRIPTION "An enumerated value which provides the state of the
switch power supply entity."
SYNTAX INTEGER {
psNotPresent(1),
psNotPlugged(2),
psPowered(3),
psFailed(4),
psPermFailure(5),
psMax(6)
}
hpicfPsTable OBJECT-TYPE
SYNTAX SEQUENCE OF HpicfPsEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION "This table contains one row per switch power supply entity."
::= { hpicfEntityPs 1 }
hpicfPsEntry OBJECT-TYPE
SYNTAX HpicfPsEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION "Information about the power supply physical entity
table."
INDEX { hpicfPsBayNum }
::= { hpicfPsTable 1 }
HpicfPsEntry ::= SEQUENCE {
hpicfPsBayNum HpicfDcPsIndex,
hpicfPsState HpicfDcPsState,
hpicfPsFailures Counter32,
hpicfPsTemp Integer32,
hpicfPsVoltageInfo SnmpAdminString,
hpicfPsWattageCur Integer32,
hpicfPsWattageMax Integer32,
hpicfPsLastCall Counter32
}
hpicfPsBayNum OBJECT-TYPE
SYNTAX HpicfDcPsIndex
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION "The index of switch power supply entity."
::= { hpicfPsEntry 1 }
hpicfPsState OBJECT-TYPE
SYNTAX HpicfDcPsState
MAX-ACCESS read-only
STATUS current
DESCRIPTION "The physical state of the switch power supply entity."
::= { hpicfPsEntry 2 }
hpicfPsFailures OBJECT-TYPE
SYNTAX Counter32
MAX-ACCESS read-only
STATUS current
DESCRIPTION "Number of times power supply has failed."
::= { hpicfPsEntry 3 }
hpicfPsTemp OBJECT-TYPE
SYNTAX Integer32
MAX-ACCESS read-only
STATUS current
DESCRIPTION "The temperature of the power supply in Celsius"
::= { hpicfPsEntry 4 }
hpicfPsVoltageInfo OBJECT-TYPE
SYNTAX SnmpAdminString (SIZE(0..32))
MAX-ACCESS read-only
STATUS current
DESCRIPTION "The voltage info and max current of power supply.
e.g. AC 120V/220V. "
::= { hpicfPsEntry 5 }
hpicfPsWattageCur OBJECT-TYPE
SYNTAX Integer32
MAX-ACCESS read-only
STATUS current
DESCRIPTION "The present power supply wattage information"
::= { hpicfPsEntry 6 }
hpicfPsWattageMax OBJECT-TYPE
SYNTAX Integer32
MAX-ACCESS read-only
STATUS current
DESCRIPTION "The maximum wattage of the power supply."
::= { hpicfPsEntry 7 }
hpicfPsLastCall OBJECT-TYPE
SYNTAX Counter32
MAX-ACCESS read-only
STATUS current
DESCRIPTION "The number of seconds since the switch power supply is up."
::= { hpicfPsEntry 8 }
-- ********************************************************************
-- POWER SUPPLY Conformance
--* *******************************************************************
hpicfPsConformance OBJECT IDENTIFIER ::= { hpicfPsMIB 2 }
hpicfPsCompliance OBJECT IDENTIFIER ::= { hpicfPsConformance 1 }
hpicfPsGroups OBJECT IDENTIFIER ::= { hpicfPsConformance 2 }
-- ********************************************************************
-- POWER SUPPLY Complicance
-- ********************************************************************
hpicfDcPsCompliance MODULE-COMPLIANCE
STATUS current
DESCRIPTION
"The compliance statement for entries which implement the
POWER SUPPLY MIB."
MODULE
MANDATORY-GROUPS
{
hpicfPsGroup
}
GROUP hpicfPsGroup
DESCRIPTION "Objects associated with Entity POWER SUPPLY."
::= { hpicfPsCompliance 1 }
--
-- POWER SUPPLY Groups
--
hpicfPsGroup OBJECT-GROUP
OBJECTS
{
hpicfPsState,
hpicfPsFailures,
hpicfPsTemp,
hpicfPsVoltageInfo,
hpicfPsWattageCur,
hpicfPsWattageMax,
hpicfPsLastCall
}
STATUS current
DESCRIPTION "POWER SUPPLY parameters "
::= { hpicfPsGroups 1 }
END