-
Notifications
You must be signed in to change notification settings - Fork 0
Usage Examples
Send command list
to panel server with ID ad332323
pteroctl command list -s ad332323
You can specify multiple servers on most commands to run against by iterating them with comma.
So to send command stop
to servers ad332323
and bb585fb5
you need the following:
pteroctl command stop --servers ad332323,bb585fb5
pteroctl command
has proactive behaviour. It sends the command without checking the results of said command.
If you need more reactive behaviour look into Conditional Commands (WIP).
You can delete remote file resource (either file or directory) with path file/to/delete
for server ad332323
the following way:
pteroctl file rm file/to/delete -s ad332323
Note that pteroctl file
commands consider /home/container/
as root path, so paths to needed resources need to be specified relatively to it.
Meaning that actual path to file from example would be /home/container/file/to/delete
.
pteroctl file -s ad332323 local/path/to/file remote/path/