2009-11-28 09:48:23 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
2010-07-02 19:58:13 +00:00
|
|
|
$snmp_cmd = $config['snmpget'] . " -M ".$config['mibdir'] . " -m Dell-Vendor-MIB -O Qv -" . $device['snmpver'] . " -c " . $device['community'] . " " .
|
2009-11-28 09:48:23 +00:00
|
|
|
$device['hostname'].":".$device['port'];
|
|
|
|
$snmp_cmd .= " productIdentificationDisplayName.0 productIdentificationVersion.0 productIdentificationDescription.0";
|
|
|
|
|
|
|
|
list($hardware, $version, $features) = explode("\n", shell_exec($snmp_cmd));
|
|
|
|
|
2010-03-02 17:57:24 +00:00
|
|
|
if (strstr($hardware,"No Such Object available"))
|
|
|
|
{
|
|
|
|
$hardware = $sysDescr;
|
|
|
|
}
|
|
|
|
|
2009-11-28 09:48:23 +00:00
|
|
|
?>
|