2010-07-18 00:05:32 +00:00
|
|
|
<?php
|
|
|
|
|
2011-05-03 21:46:25 +00:00
|
|
|
if ($poll_device[sysDescr] == "Neyland 24T")
|
2011-03-15 11:59:47 +00:00
|
|
|
{
|
2010-07-18 00:05:32 +00:00
|
|
|
#$hardware = snmp_get($device, "productIdentificationVendor.0", "-Ovq", "Dell-Vendor-MIB");
|
|
|
|
$hardware = "Dell ".snmp_get($device, "productIdentificationDisplayName.0", "-Ovq", "Dell-Vendor-MIB");
|
|
|
|
$version = snmp_get($device, "productIdentificationVersion.0", "-Ovq", "Dell-Vendor-MIB");
|
2011-03-15 11:59:47 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2010-08-04 17:17:00 +00:00
|
|
|
$version = snmp_get($device, "rndBrgVersion.0", "-Ovq", "RADLAN-MIB");
|
2011-05-03 21:46:25 +00:00
|
|
|
$hardware = str_replace("ATI", "Allied Telesis", $poll_device[sysDescr]);
|
2010-07-18 00:05:32 +00:00
|
|
|
}
|
2010-08-04 17:17:00 +00:00
|
|
|
$features = snmp_get($device, "rndBaseBootVersion.00", "-Ovq", "RADLAN-MIB");
|
2010-07-18 00:05:32 +00:00
|
|
|
|
|
|
|
$version = str_replace("\"","", $version);
|
|
|
|
$features = str_replace("\"","", $features);
|
|
|
|
$hardware = str_replace("\"","", $hardware);
|
|
|
|
|
2011-03-15 11:59:47 +00:00
|
|
|
?>
|