Skip to content

CLI operations tool ​

To reduce the maintenance workload for Linux system administrators, 丰盘 ships with a CLI tool named xpc.sh, stored at /opt/xpan/tools/xpc.sh. Use it to take the system offline, bring it back online, restart it, and change some configuration.

Update the tool to the latest version ​

Before you use the tool, run the command below to update xpc.sh to the latest version. Replace the license parameter in the URL (sample value XXXXXYYYYY) with the license key you received.

bash
# Download the script with curl
# If this command fails with a "curl: command not found" error, use the wget command below
curl -fsSL -o /opt/xpan/tools/xpc.sh "https://ota.ekbcloud.com/api/v1/ota/scriptfile?name=xpc&license=XXXXXYYYYY" && sudo chmod u+rx,g+rx /opt/xpan/tools/xpc.sh

# The second argument is an uppercase letter O
wget -q -O /opt/xpan/tools/xpc.sh "https://ota.ekbcloud.com/api/v1/ota/scriptfile?name=xpc&license=XXXXXYYYYY" && sudo chmod u+rx,g+rx /opt/xpan/tools/xpc.sh

Run the command with no arguments to see its usage notes.

bash
sudo /opt/xpan/tools/xpc.sh

丰盘运维助手: v1.2.3+221107
系统运维手册: https://www.ekbcloud.com/docs/admin_manual/linuxop.html
Command line tools for managing XPAN system.
Usage: xpc COMMAND

List of Commands:
  up:          Make sure all containers are running.
  stop:        Temporary shutdown XPAN system without data loss.
  restart:     Restart the XPAN system.
  config:      Reset the config of XPAN system.
  update:      Update system components to latest stable version.
  add:         Integrate new components like OnlyOffice to XPAN system.
  rm:          Remove optional components like OnlyOffice from XPAN system.

Run 'xpc COMMAND [-h|--help]' for more information on specific command.

Common use cases ​