#!/usr/bin/env php setSnmprecSavePath($options['f']); } elseif (isset($options['file'])) { $capture->setSnmprecSavePath($options['file']); } $prefer_new_snmprec = isset($options['n']) || isset($options['prefer-new']); $full = isset($options['full']); echo 'Capturing Data: '; \LibreNMS\Util\OS::updateCache(true); // Force update of OS Cache $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; }