2011-03-16 20:13:50 +00:00
|
|
|
<?php
|
|
|
|
|
2016-09-22 23:10:34 +03:00
|
|
|
if (starts_with($sysDescr, 'Sentry') && str_contains($sysDescr, array('Switched', 'Smart'))) {
|
2016-09-22 02:34:17 +03:00
|
|
|
// ServerTech doesn't have a way to distinguish between sentry3 and sentry4 devices
|
|
|
|
// Hopefully, we can use the version string to figure it out
|
2016-12-14 16:26:34 +00:00
|
|
|
$version = trim(snmp_get($device, 'serverTech.4.1.1.1.3.0', '-Osqnv', 'Sentry3-MIB', 'sentry'));
|
2016-09-22 02:34:17 +03:00
|
|
|
$version = explode(" ", $version);
|
|
|
|
$version = intval($version[1]);
|
2016-06-14 18:21:16 -07:00
|
|
|
|
2016-09-22 02:34:17 +03:00
|
|
|
// It appears that version 8 and up is good for sentry4
|
2016-09-23 21:28:02 +01:00
|
|
|
if ($version < 8) {
|
2016-09-22 02:34:17 +03:00
|
|
|
$os = 'sentry3';
|
2015-07-13 20:10:26 +02:00
|
|
|
}
|
2011-03-16 20:13:50 +00:00
|
|
|
}
|