newdevice: Basic support for HPE MSA storage (#5907)

* Basic support for HPE MSA

* Basic support for HPE MSA

* Padawan needs to follow master Murrant to become a Jedi.

* Trying to correct snmpsim
This commit is contained in:
FTBZ
2017-02-16 09:14:28 +01:00
committed by Neil Lathwood
parent e017f7a71b
commit 44c3f1f00c
5 changed files with 3895 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
os: hpe-msa
text: 'HPE MSA'
type: storage
icon: hpe
over:
- { graph: device_bits, text: Traffic }
discovery:
- sysObjectId:
- .1.3.6.1.4.1.11.2.51
mib_dir:
- hp

View File

@@ -0,0 +1,8 @@
<?php
$oids = 'cpqSiProductName.0 cpqSiSysSerialNum.0';
$data = snmp_get_multi($device, $oids, '-OQUs', 'CPQSINFO-MIB');
$hardware = str_replace("\"", "", $data[0]['cpqSiProductName']);
$serial = str_replace("\"", "", $data[0]['cpqSiSysSerialNum']);

3867
mibs/hp/CPQSINFO-MIB Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -794,6 +794,11 @@ class DiscoveryTest extends \PHPUnit_Framework_TestCase
$this->checkOS('hpe-msl');
}
public function testHpeMsa()
{
$this->checkOS('hpe-msa');
}
public function testHpmsm()
{
$this->checkOS('hpmsm');

View File

@@ -0,0 +1,4 @@
1.3.6.1.2.1.1.1.0|4|HP MSA 2040 SAN
1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.11.2.51
1.3.6.1.4.1.232.2.2.4.2.0|4|"HP MSA 2040 SAN"
1.3.6.1.4.1.232.2.2.2.1.0|4|"DRSAKZR-123456789"