2010-07-20 14:03:54 +00:00
|
|
|
<?php
|
|
|
|
|
2011-03-16 17:52:29 +00:00
|
|
|
if (!$os)
|
2010-07-20 14:03:54 +00:00
|
|
|
{
|
|
|
|
#if (strstr($sysDescr, "Neyland 24T")) { $os = "powerconnect"; } /* Powerconnect 5324 */
|
|
|
|
if (stristr($sysDescr, "PowerConnect ")) { $os = "powerconnect"; }
|
2011-03-16 17:52:29 +00:00
|
|
|
else if (preg_match("/Dell.*Gigabit\ Ethernet/i",$sysDescr)) { $os = "powerconnect"; }
|
2015-03-21 21:18:44 -03:00
|
|
|
//PowerConnect 55xx
|
|
|
|
else if (stristr(snmp_get($device, "1.3.6.1.4.1.674.10895.3000.1.2.100.1.0", "-Oqv", ""),"PowerConnect") ) { $os = "powerconnect";}
|
2010-07-20 14:03:54 +00:00
|
|
|
}
|
|
|
|
|
2015-03-21 21:18:44 -03:00
|
|
|
?>
|