librenms/includes/polling/os/vrp.inc.php
Tom Laermans 722d912aa1 cleanup OS polling
git-svn-id: http://www.observium.org/svn/observer/trunk@1841 61d68cd4-352d-0410-923a-c4978735b2b8
2011-03-15 11:59:47 +00:00

8 lines
206 B
PHP

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