mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
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:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user