-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathmodels.php
More file actions
14 lines (13 loc) · 802 Bytes
/
Copy pathmodels.php
File metadata and controls
14 lines (13 loc) · 802 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?php
// Описание модели
$sysDescr = @snmpget($ip, $rcomm, ".1.3.6.1.2.1.1.1.0");
// Определяем тип модели
if (stripos($sysDescr, 'DES-1228ME') !== false) $ModelType = 'DES-1228ME';
if (stripos($sysDescr, 'DES-3026') !== false) $ModelType = 'DES-3026';
if (stripos($sysDescr, 'DES-3028') !== false) $ModelType = 'DES-3028';
if (stripos($sysDescr, 'DES-3028G') !== false) $ModelType = 'DES-3028G';
if (stripos($sysDescr, 'DES-3028P') !== false) $ModelType = 'DES-3028P';
if (stripos($sysDescr, 'DES-3200-28') !== false) $ModelType = 'DES-3200-28';
if (stripos($sysDescr, 'DES-3526') !== false) $ModelType = 'DES-3526';
if (stripos($sysDescr, 'DGS-3100-24TG') !== false) $ModelType = 'DGS-3100-24TG';
?>