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:
Tom Laermans
2010-07-21 00:51:43 +00:00
parent 75da043061
commit dfaa442667
2 changed files with 392 additions and 0 deletions

View 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]));
?>