To get an overview of the available commands, you have to enter "./pialert-cli help" in the directory "~/pialert/back".
The current commands are:
command |
explanation |
set_login |
- Sets the parameter PIALERT_WEB_PROTECTION in the config file to TRUE
- If the parameter is not present, it will be created. Additionally the default password '123456' is set.
|
unset_login |
- Sets the parameter PIALERT_WEB_PROTECTION in the config file to FALSE
- If the parameter is not present, it will be created. Additionally the default password '123456' is set.
|
set_password <password> |
- Sets the new password as a hashed value.
- If the PIALERT_WEB_PROTECTION parameter does not exist yet, it will be created and set to TRUE (login enabled).
|
set_autopassword |
- Sets a new random password as a hashed value and show it plaintext in the console.
- If the PIALERT_WEB_PROTECTION parameter does not exist yet, it will be created and set to TRUE (login enabled).
|
disable_scan <MIN> |
- Stops all active scans
- Prevents new scans from starting.
- You can set a Timeout in minutes. If no timeout is set, Pi.Alert restarts itself with the next scan after 10min.
|
enable_scan |
- Allows the start of new scans again.
|
enable_service_mon |
- Enable Web Service Monitoring.
- If the SCAN_WEBSERVICES parameter does not exist yet, it will be created and set to TRUE.
|
disable_service_mon |
- Disable Web Service Monitoring.
- If the SCAN_WEBSERVICES parameter does not exist yet, it will be created and set to FALSE.
|
update_db |
- The script tries to make the database compatible for this fork.
|
set_apikey |
- With the API key it is possible to make queries to the database without using the web page. If an API key already exists, it will be replaced.
|
reporting_test |
- Test reporting for all activated services.
|
rewrite_config |
- A new decluttered configuration file (pialert-rewritten.conf) will be created.
|
Back