Meraki MS: add serial number (#9768)

* added line to merakims.inc.php to properly code serial # in devices table

* Update merakims.inc.php

* Update merakims.snmprec

* Create merakims.json

* Update merakims.inc.php

* Update merakims.inc.php
This commit is contained in:
GitStoph
2019-03-05 22:19:54 -06:00
committed by Tony Murray
parent 9deb00f20c
commit a114d98cdd
3 changed files with 43 additions and 0 deletions

View File

@@ -13,3 +13,5 @@
if (empty($hardware)) {
$hardware = $device['sysDescr'];
}
// ENTITY-MIB::entPhysicalSerialNum
$serial = snmp_getnext($device, '.1.3.6.1.2.1.47.1.1.1.1.11', '-Oqv', 'ENTITY-MIB');

40
tests/data/merakims.json Normal file
View File

@@ -0,0 +1,40 @@
{
"os": {
"discovery": {
"devices": [
{
"sysName": "",
"sysObjectID": null,
"sysDescr": "Meraki MS",
"sysContact": null,
"version": null,
"hardware": null,
"features": null,
"os": "merakims",
"type": "network",
"serial": null,
"icon": "meraki.png",
"location": null
}
]
},
"poller": {
"devices": [
{
"sysName": "",
"sysObjectID": null,
"sysDescr": "Meraki MS",
"sysContact": null,
"version": null,
"hardware": "Meraki MS",
"features": null,
"os": "merakims",
"type": "network",
"serial": "9999999999",
"icon": "meraki.png",
"location": null
}
]
}
}
}

View File

@@ -1 +1,2 @@
1.3.6.1.2.1.1.1.0|4|Meraki MS
1.3.6.1.2.1.47.1.1.1.1.11.1|4|9999999999