mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 00:24:21 +02:00
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
This commit is contained in:
@@ -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));
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user