From 9f8f8b6c263fcaff0864467de8a08b8925ca4592 Mon Sep 17 00:00:00 2001 From: Tony Murray Date: Thu, 2 Feb 2017 01:58:20 -0600 Subject: [PATCH] newdevice: Added support for HPE ILO 4 (#5726) Actually has some proper snmp support. *Older HP ILO can not be added under this OS. --- includes/definitions/hpe-ilo.yaml | 9 +++++++++ tests/OSDiscoveryTest.php | 5 +++++ tests/snmpsim/hpe-ilo.snmprec | 2 ++ 3 files changed, 16 insertions(+) create mode 100644 includes/definitions/hpe-ilo.yaml create mode 100644 tests/snmpsim/hpe-ilo.snmprec diff --git a/includes/definitions/hpe-ilo.yaml b/includes/definitions/hpe-ilo.yaml new file mode 100644 index 0000000000..ef50e2a3cc --- /dev/null +++ b/includes/definitions/hpe-ilo.yaml @@ -0,0 +1,9 @@ +os: hpe-ilo +text: 'HPE Integrated Lights Out' +type: appliance +icon: hpe +over: + - { graph: device_bits, text: Traffic } +discovery: + - sysObjectId: + - .1.3.6.1.4.1.232.9.4.10 diff --git a/tests/OSDiscoveryTest.php b/tests/OSDiscoveryTest.php index ca72780e43..1f2621042a 100644 --- a/tests/OSDiscoveryTest.php +++ b/tests/OSDiscoveryTest.php @@ -709,6 +709,11 @@ class DiscoveryTest extends \PHPUnit_Framework_TestCase $this->checkOS('hpblmos'); } + public function testHpeIlo() + { + $this->checkOS('hpe-ilo'); + } + public function testHpeMsl() { $this->checkOS('hpe-msl'); diff --git a/tests/snmpsim/hpe-ilo.snmprec b/tests/snmpsim/hpe-ilo.snmprec new file mode 100644 index 0000000000..989e2ee182 --- /dev/null +++ b/tests/snmpsim/hpe-ilo.snmprec @@ -0,0 +1,2 @@ +1.3.6.1.2.1.1.1.0|4|Integrated Lights-Out 4 2.50 Sep 23 2016 +1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.232.9.4.10