...
jq: Used for parsing JSON responses; falls back to
grep
if unavailable.screen or tmux (optional): Required for background execution.
Permissions: Ensure sufficient permissions to execute on the DataCore Swarm server and access required files.
Script Usage
Handling Passwords with Special Characters
If your password contains special characters such as @
, #
, $
, &
or !
, you need to properly escape them or enclose the password in single quote ('
) when passing it as a parameter. Alternatively, use a secure password prompt.
Code Block |
---|
./castor-change-log-level.sh -d <node_ip> -p '<admin:password>' [-i new_log_level | -L new_node_log_level] [-t <duration_in_seconds>] [-D --detach] [-v] |
...