mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
APC InfraStruxure Detection
- Just basic s/n & hw detection
This commit is contained in:
@@ -27,6 +27,12 @@ if ($serial == "")
|
|||||||
$serial = trim(snmp_get($device, "PowerNet-MIB::airIRRCUnitIdentSerialNumber.0", "-OQv", "", ""),'"');
|
$serial = trim(snmp_get($device, "PowerNet-MIB::airIRRCUnitIdentSerialNumber.0", "-OQv", "", ""),'"');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($serial == "")
|
||||||
|
{
|
||||||
|
# InfraStruxure
|
||||||
|
$serial = trim(snmp_get($device, "PowerNet-MIB::isxModularPduIdentSerialNumber.0", "-OQv", "", ""),'"');
|
||||||
|
}
|
||||||
|
|
||||||
/////////////////////
|
/////////////////////
|
||||||
|
|
||||||
# PDU
|
# PDU
|
||||||
@@ -61,6 +67,13 @@ if ($hardware == " ")
|
|||||||
$hardware .= ' ' . trim(snmp_get($device, "PowerNet-MIB::airIRRCUnitIdentHardwareRevision.0", "-OQv", "", ""),'"');
|
$hardware .= ' ' . trim(snmp_get($device, "PowerNet-MIB::airIRRCUnitIdentHardwareRevision.0", "-OQv", "", ""),'"');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($hardware == " ")
|
||||||
|
{
|
||||||
|
# InfraStruxure
|
||||||
|
$hardware = trim(snmp_get($device, "PowerNet-MIB::isxModularPduIdentModelNumber.0", "-OQv", "", ""),'"');
|
||||||
|
$hardware .= ' ' . trim(snmp_get($device, "PowerNet-MIB::isxModularPduIdentMonitorCardHardwareRev.0", "-OQv", "", ""),'"');
|
||||||
|
}
|
||||||
|
|
||||||
/////////////////////
|
/////////////////////
|
||||||
|
|
||||||
$AOSrev = trim(snmp_get($device, "1.3.6.1.4.1.318.1.4.2.4.1.4.1", "-OQv", "", ""),'"');
|
$AOSrev = trim(snmp_get($device, "1.3.6.1.4.1.318.1.4.2.4.1.4.1", "-OQv", "", ""),'"');
|
||||||
@@ -88,6 +101,12 @@ if ($AOSrev == '')
|
|||||||
# InRow chiller
|
# InRow chiller
|
||||||
$version = trim(snmp_get($device, "PowerNet-MIB::airIRRCUnitIdentFirmwareRevision.0", "-OQv", "", ""),'"');
|
$version = trim(snmp_get($device, "PowerNet-MIB::airIRRCUnitIdentFirmwareRevision.0", "-OQv", "", ""),'"');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($version == "")
|
||||||
|
{
|
||||||
|
# InfraStruxure
|
||||||
|
$version = trim(snmp_get($device, "PowerNet-MIB::isxModularPduIdentMonitorCardFirmwareAppRev.0", "-OQv", "", ""),'"');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user