mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
add Huawei MIB though not used/useful by itself, add VRP version and hardware detection
git-svn-id: http://www.observium.org/svn/observer/trunk@1452 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
8
includes/polling/os/vrp.inc.php
Normal file
8
includes/polling/os/vrp.inc.php
Normal file
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
$hardware = trim(snmp_get($device, ".1.3.6.1.4.1.2011.2.33.20.1.1.1.3.0", "-OQv"),'"');
|
||||
|
||||
preg_match("/Version .*\n/",$sysDescr, $matches);
|
||||
$version = trim(str_replace("Version ","",$matches[0]));
|
||||
|
||||
?>
|
Reference in New Issue
Block a user