Added Cisco SGE OS Detection (#10697)

* Added Cisco SGE OS Detection

* Corrected Style.

* Included hwversion.

* Added snmprec file for sge variant

* Create ciscosb_sge.json
This commit is contained in:
joseUPV
2019-10-21 03:39:55 +02:00
committed by Tony Murray
parent 4e2d227c72
commit cbc307c1c7
4 changed files with 125395 additions and 2 deletions

View File

@@ -34,6 +34,7 @@ discovery_modules:
discovery:
- sysObjectID:
- .1.3.6.1.4.1.9.6.1.23.3.13
- .1.3.6.1.4.1.9.6.1.72
- .1.3.6.1.4.1.9.6.1.80
- .1.3.6.1.4.1.9.6.1.81
- .1.3.6.1.4.1.9.6.1.82

View File

@@ -21,7 +21,10 @@ $hwversion = $data['0']['genGroupHWVersion'];
if (! $hwversion) {
$hwversion = $data['1']['rlPhdUnitGenParamHardwareVersion'];
}
if ($device['sysObjectID'] == '.1.3.6.1.4.1.9.6.1.89.26.1') {
if (preg_match('/\.1\.3\.6\.1\.4\.1\.9\.6\.1\.72\.(....).+/', $device['sysObjectID'], $model)) {
$hardware = 'SGE' . $model[1] . '-' . substr($device['sysDescr'], 0, 2);
} elseif ($device['sysObjectID'] == '.1.3.6.1.4.1.9.6.1.89.26.1') {
$hardware = 'SG220-26';
} else {
$hardware = str_replace(' ', '', $data['1']['rlPhdUnitGenParamModelName']);
@@ -29,7 +32,6 @@ if ($device['sysObjectID'] == '.1.3.6.1.4.1.9.6.1.89.26.1') {
if ($hwversion) {
$hardware .= " " . $hwversion;
}
$version = 'Software ' . $data['1']['rlPhdUnitGenParamSoftwareVersion'];
$boot = $data['0']['rndBaseBootVersion'];
$firmware = $data['1']['rlPhdUnitGenParamFirmwareVersion'];

105488
tests/ciscosb_sge.json Normal file

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff