collect-snmp-data.php can now capture snmp context test data (#13596)

* collect-snmp-data.php can now capture snmp context test data
This is helpful for devices that use context for multiple data sets such as VLANs and VRFs.  Allows us to test things that use those now, but does make more snmprec files :/

* update typehints on affected methods and baseline
This commit is contained in:
Tony Murray
2021-12-03 13:27:06 -06:00
committed by GitHub
parent ef8dd82bc9
commit b32524294c
3 changed files with 44 additions and 76 deletions

View File

@ -135,7 +135,8 @@ try {
echo 'Capturing Data: ';
\LibreNMS\Util\OS::updateCache(true); // Force update of OS Cache
$capture->captureFromDevice($device['device_id'], true, $prefer_new_snmprec, $full);
$capture->captureFromDevice($device['device_id'], $prefer_new_snmprec, $full);
echo "\nVerify these file(s) do not contain any private data before sharing!\n";
} catch (InvalidModuleException $e) {
echo $e->getMessage() . PHP_EOL;
}