Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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.

Example 1: Escape special characters in the password

Code Block
./castor-change-log-level.sh -d 192.168.8.84 -p admin:pa\@ss\$word -i 20 -t 600

Example 2: Enclose the password in single quotes

Code Block
./castor-change-log-level.sh -d 192.168.8.84 -p 'admin:pa@ss$word' -i 20 -t 600

Example 3: Use the secure password prompt (Recommended)

Code Block
./castor-change-log-level.sh -p admin -d 192.168.8.84 -i 10 -t 300

The script will securely prompt you to enter the password without exposing it in the command line.

Usage of the script as described below:

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]

...