From 316b31acb1cb4d2f85ddb922509c5241fe67ad5b Mon Sep 17 00:00:00 2001 From: Tom Laermans Date: Sat, 7 Apr 2012 22:26:52 +0000 Subject: [PATCH] Detect Dell systems and servicetag on Windows the same way as on "unix" Patch by RobJE. git-svn-id: http://www.observium.org/svn/observer/trunk@2982 61d68cd4-352d-0410-923a-c4978735b2b8 --- includes/polling/os/windows.inc.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/includes/polling/os/windows.inc.php b/includes/polling/os/windows.inc.php index 27e0b0d6a..59e9a2851 100755 --- a/includes/polling/os/windows.inc.php +++ b/includes/polling/os/windows.inc.php @@ -57,4 +57,12 @@ if (strstr($poll_device['sysDescr'], "Multiprocessor")) { $features = "Multiproc ### Detect processor type? : I.E. x86 Family 15 Model 2 Stepping 7 +// Detect Dell hardware via OpenManage SNMP +$hw = snmp_get($device, ".1.3.6.1.4.1.674.10892.1.300.10.1.9.1", "-Oqv", "MIB-Dell-10892"); +$hw = trim(str_replace("\"", "", $hw)); +if ($hw) { $hardware = "Dell " . $hw; } + +$serial = snmp_get($device, ".1.3.6.1.4.1.674.10892.1.300.10.1.11.1", "-Oqv", "MIB-Dell-10892"); +$serial = trim(str_replace("\"", "", $serial)); + ?>