Batch Execution
Introduction
Contains two parts of the maintenance command template and batch remote execution command, commonly used to execute some temporary tasks such as batch installation / uninstallation of a dependency package, etc.
Execute task
One or more hosts added in the host management can be selected as the target host to execute, and the command content can be written directly or read from the saved command in the template.
tips
Global variables
In the Shell script, the $SPUG_HOST_HOSTNAME
is used to refer to, and in the Python script, the os.getenv('SPUG_HOST_HOSTNAME')
can be used to refer to.
Variable name | Example | Description |
---|---|---|
SPUG_HOST_ID | 1 | Host ID |
SPUG_HOST_NAME | webserver01 | Host name |
SPUG_HOST_HOSTNAME | 172.10.26.5 | Host IP/domain name |
SPUG_SSH_PORT | 22 | SSH connection port |
SPUG_SSH_USERNAME | root | SSH connection user |
SPUG_INTERPRETER | python | Command interpreter |
Template Management
Used to store complex, commonly used command collections for future use.