Added polling for serial and OS version

This commit is contained in:
vitalisator
2015-05-29 11:01:55 +02:00
parent 20165f0382
commit bc39cf2058
+8
View File
@@ -0,0 +1,8 @@
<?php
if (preg_match('/^Pacific Broadband Networks .+\n.+ Version ([^,]+), .+\n.+\n.+\nSerial num:([^,]+), .+/', $poll_device['sysDescr'], $regexp_result)) {
$version = $regexp_result[1];
$serial = $regexp_result[2];
}
?>