Sandfly is largely self-maintaining. Outside of the expected installation and upgrade scripts, there are additional scripts provided in the package that can be of aid in certain situations. For example, resetting different configurations or clearing out large backlogs of events.

Install and Upgrade Scripts

These scripts are located in the setup directory and are used to install Docker or upgrade Docker images:

  • - Used to delete all existing Docker containers prior to an upgrade. Please see the section on Upgrading Sandfly for more information.
  • - Install Sandfly server script.
  • - Install Docker on an Amazon AMI Linux Image.
  • - Install Docker on a CentOS 7 system.
  • - Install Docker on a Debian system.
  • - Install Docker on Ubuntu 20 and higher system.
  • - Upgrades Sandfly 3.0 configurations and migrates the Elasticsearch database to PostgreSQL.

Sandfly Install Scripts

These scripts are located in the setup_scripts directory and are used to install the Sandfly server and SSL keys:

  • - Used to install the base Sandfly server without SSL key generation.
  • - Setup the Sandfly SSL keys (unsigned).
  • - Renew Certbot signed SSL keys. Optionally, you can just run again if you want a new signed key.
  • - Setup the Sandfly SSL keys (signed with EFF Certbot).

System Utility Scripts

These scripts are located in the util_scripts directory and are used to aid in the management of the Sandfly system in various ways:

  • - This script deletes EVERYTHING. Sandfly configurations, database, any other unused Docker volumes on the host, etc.
  • - A script that is used as part of the Offline Installation process.
  • - Reset the system admin password to a random value.
  • - Deletes system alarm and log data, but preserves the configuration data. Useful if you have a large number of alarms you want to purge and start again without needing to reload all your other user data.
  • - Resets the system password used by nodes to log into the API. This is only needed if you feel the node password has been compromised and you wish to reset it to something new. Please contact Sandfly for assistance.

Sandfly Administration Scripts

These scripts are located in the start_scripts directory and are used to aid in the administration of the Sandfly application:

  • - Use when it is necessary to properly and completely shut down the Sandfly containers in the correct order to minimize problems and messages in error logs.

Previous Article:

Next Article: