Jarvis Panel

Servers

Scripts

Scripts are saved Bash scripts you can run on any server in your organization. Use them for setup tasks you repeat across servers, such as installing a tool, adding a swap file, or tuning a config.

Select Scripts in the main sidebar. Scripts belong to the organization, so you write one once and run it on any server.

Create a script

  1. Click Create Script.
  2. Enter a Name, for example Add swap file.
  3. Write the Script in the editor. It runs with Bash.
  4. Click Save.

Variables

Add ${VARIABLE_NAME} anywhere in the script to fill in a value each time you run it. For example:

fallocate -l ${SIZE} /swapfile
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile

When you run this script, Jarvisway asks for SIZE, such as 2G.

Run a script

  1. Click the run button next to the script.
  2. Select the Server to run it on.
  3. Select the User to run it as. Use root for system changes.
  4. Fill in any variables.
  5. Click Execute.

The script runs in the background.

Execution history

Open the actions menu on a script and click Executions to see every run, with the date, server, and status: Executing, Completed, or Failed. From each execution you can View log or Download the output.

Edit or delete a script

Open the actions menu on a script and click Edit or Delete.

Scripts run with the selected user's permissions. Review a script before running it as root.