2019-02-15 09:00:07 -06:00
< ? php
return [
2019-10-17 17:22:43 +00:00
'config:get' => [
'description' => 'Get configuration value' ,
'arguments' => [
'setting' => 'setting to get value of in dot notation (example: snmp.community.0)' ,
],
'options' => [
2021-08-19 18:34:19 -05:00
'dump' => 'Output the entire config as json' ,
2019-10-17 17:22:43 +00:00
],
],
'config:set' => [
'description' => 'Set configuration value (or unset)' ,
'arguments' => [
2021-04-26 21:03:03 -05:00
'setting' => 'setting to set in dot notation (example: snmp.community.0) To append to an array suffix with .+' ,
2019-10-17 17:22:43 +00:00
'value' => 'value to set, unset setting if this is omitted' ,
],
2020-04-19 21:44:26 -05:00
'options' => [
2020-09-21 14:54:51 +02:00
'ignore-checks' => 'Ignore all safety checks' ,
2020-04-19 21:44:26 -05:00
],
'confirm' => 'Reset :setting to the default?' ,
2021-04-26 21:03:03 -05:00
'forget_from' => 'Forget :path from :parent?' ,
2020-04-19 21:44:26 -05:00
'errors' => [
2021-04-26 21:03:03 -05:00
'append' => 'Cannot append to non-array setting' ,
2020-04-19 21:44:26 -05:00
'failed' => 'Failed to set :setting' ,
2021-08-19 18:34:19 -05:00
'invalid' => 'This is not a valid setting. Please check your input' ,
'invalid_os' => 'Specified OS (:os) does not exist' ,
2020-04-19 21:44:26 -05:00
'nodb' => 'Database is not connected' ,
'no-validation' => 'Cannot set :setting, it is missing validation definition.' ,
2020-09-21 14:54:51 +02:00
],
2019-10-17 17:22:43 +00:00
],
2021-09-27 12:17:15 -05:00
'db:seed' => [
'existing_config' => 'Database contains existing settings. Continue?' ,
],
2020-05-22 20:27:48 -05:00
'dev:check' => [
'description' => 'LibreNMS code checks. Running with no options runs all checks' ,
'arguments' => [
'check' => 'Run the specified check :checks' ,
],
'options' => [
'commands' => 'Print commands that would be run only, no checks' ,
'db' => 'Run unit tests that require a database connection' ,
'fail-fast' => 'Stop checks when any failure is encountered' ,
'full' => 'Run full checks ignoring changed file filtering' ,
'module' => 'Specific Module to run tests on. Implies unit, --db, --snmpsim' ,
'os' => 'Specific OS to run tests on. Implies unit, --db, --snmpsim' ,
2022-01-26 08:31:51 -06:00
'os-modules-only' => 'Skip os detection test when specifying a specific OS. Speeds up test time when checking non-detection changes.' ,
2020-05-22 20:27:48 -05:00
'quiet' => 'Hide output unless there is an error' ,
'snmpsim' => 'Use snmpsim for unit tests' ,
2020-09-18 06:04:54 +01:00
],
],
2021-03-03 21:42:49 -06:00
'dev:simulate' => [
'description' => 'Simulate devices using test data' ,
'arguments' => [
'file' => 'The file name (only base name) of the snmprec file to update or add to LibreNMS. If file not specified, no device will be added or updated.' ,
],
'options' => [
'multiple' => 'Use community name for hostname instead of snmpsim' ,
'remove' => 'Remove the device after stopping' ,
],
'added' => 'Device :hostname (:id) added' ,
'exit' => 'Ctrl-C to stop' ,
'removed' => 'Device :id removed' ,
'updated' => 'Device :hostname (:id) updated' ,
],
2021-10-03 22:45:10 -05:00
'device:ping' => [
'description' => 'Ping device and record data for response' ,
'arguments' => [
'device spec' => 'Device to ping one of: <Device ID>, <Hostname/IP>, all' ,
],
],
2021-11-17 19:23:55 -06:00
'device:poll' => [
'description' => 'Poll data from device(s) as defined by discovery' ,
'arguments' => [
'device spec' => 'Device spec to poll: device_id, hostname, wildcard, odd, even, all' ,
],
'options' => [
'modules' => 'Specify single module to be run. Comma separate modules, submodules may be added with /' ,
'no-data' => 'Do not update datastores (RRD, InfluxDB, etc)' ,
],
'errors' => [
'db_connect' => 'Failed to connect to database. Verify database service is running and connection settings.' ,
'db_auth' => 'Failed to connect to database. Verify credentials: :error' ,
],
],
2021-08-27 22:48:21 -05:00
'key:rotate' => [
'description' => 'Rotate APP_KEY, this decrypts all encrypted data with the given old key and stores it with the new key in APP_KEY.' ,
'arguments' => [
'old_key' => 'The old APP_KEY which is valid for encrypted data' ,
],
'cleared-cache' => 'Config was cached, cleared cache to make sure APP_KEY is correct. Please re-run lnms key:rotate' ,
'backup_keys' => 'Document BOTH keys! In case something goes wrong set the new key in .env and use the old key as an argument to this command' ,
'backups' => 'This command could cause irreversible loss of data and will invalidate all browser sessions. Make sure you have backups.' ,
'confirm' => 'I have backups and want to continue' ,
'decrypt-failed' => 'Failed to decrypt :item, skipping' ,
'failed' => 'Failed to decrypt item(s). Set new key as APP_KEY and run this again with the old key as an argument.' ,
'new_key' => 'New key: :key' ,
'old_key' => 'Old key: :key' ,
'save_key' => 'Save new key to .env?' ,
'success' => 'Successfully rotated keys!' ,
'validation-errors' => [
'not_in' => ':attribute must not match current APP_KEY' ,
'required' => 'Either old key or --generate-new-key is required.' ,
],
],
2020-09-18 06:04:54 +01:00
'smokeping:generate' => [
'args-nonsense' => 'Use one of --probes and --targets' ,
'config-insufficient' => 'In order to generate a smokeping configuration, you must have set "smokeping.probes", "fping", and "fping6" set in your configuration' ,
'dns-fail' => 'was not resolvable and was omitted from the configuration' ,
'description' => 'Generate a configuration suitable for use with smokeping' ,
'header-first' => 'This file was automatically generated by "lnms smokeping:generate' ,
'header-second' => 'Local changes may be overwritten without notice or backups being taken' ,
'header-third' => 'For more information see https://docs.librenms.org/Extensions/Smokeping/"' ,
'no-devices' => 'No eligible devices found - devices must not be disabled.' ,
'no-probes' => 'At least one probe is required.' ,
'options' => [
'probes' => 'Generate probe list - used for splitting the smokeping configuration into multiple files. Conflicts with "--targets"' ,
'targets' => 'Generate the target list - used for splitting the smokeping configuration into multiple files. Conflicts with "--probes"' ,
'no-header' => 'Don\'t add the boilerplate comment to the start of the generated file' ,
'no-dns' => 'Skip DNS lookups' ,
'single-process' => 'Only use a single process for smokeping' ,
'compat' => '[deprecated] Mimic the behaviour of gen_smokeping.php' ,
],
],
2021-10-01 18:58:12 -05:00
'snmp:fetch' => [
'description' => 'Run snmp query against a device' ,
'arguments' => [
2021-11-18 15:35:19 -06:00
'device spec' => 'Device to query: device_id, hostname/ip, hostname regex, or all' ,
2021-10-01 18:58:12 -05:00
'oid' => 'SNMP OID to fetch. Should be either MIB::oid or a numeric oid' ,
],
'failed' => 'SNMP command failed!' ,
'oid' => 'OID' ,
'options' => [
'type' => 'The type of snmp query to perform :types' ,
'output' => 'Specify the output format :formats' ,
'numeric' => 'Numeric OIDs' ,
],
'not_found' => 'Device not found' ,
'value' => 'Value' ,
],
2020-09-18 06:04:54 +01:00
'translation:generate' => [
'description' => 'Generate updated json language files for use in the web frontend' ,
2020-05-22 20:27:48 -05:00
],
2019-02-15 09:00:07 -06:00
'user:add' => [
'description' => 'Add a local user, you can only log in with this user if auth is set to mysql' ,
'arguments' => [
'username' => 'The username the user will log in with' ,
],
'options' => [
'descr' => 'User description' ,
'email' => 'Email to use for the user' ,
'password' => 'Password for the user, if not given, you will be prompted' ,
'full-name' => 'Full name for the user' ,
'role' => 'Set the user to the desired role :roles' ,
],
'password-request' => " Please enter the user's password " ,
'success' => 'Successfully added user: :username' ,
'wrong-auth' => 'Warning! You will not be able to log in with this user because you are not using MySQL auth' ,
2020-09-21 14:54:51 +02:00
],
2019-02-15 09:00:07 -06:00
];