...
Code Block |
---|
./castor-change-log-level.sh -d <swarm<node_ip> -p <admin:password> -i <new_log_level> [-t <duration_in_seconds>] [--background] [-v] |
Parameter | Description |
---|---|
| IP address of the Swarm API endpoint (or set |
| Admin credentials in the format |
| New log level to set (values: |
| Duration in seconds to keep the new log level (optional). |
| Runs the script in a detached session using |
| Enables verbose mode to display debug information. |
...
Code Block |
---|
[root@scs dist]# ./castor-change-log-level.sh -p admin:datacore -i 2010 -t 300 Swarm IP: 192.168.1.84 Credentials: [hidden for security] Cluster Name: gatewayadmindomain New log level: 510 Current log level is 30. Updating log level to 510... Log level changed successfully from 30 → 510. Keeping log level at 510 for 300 second(s)... Countdown: 00:00:01 remaining... Time's up! Reverting log level back to 30... Approximate 69.4MB new logs were generated at log level 510. Current castor.log size is 371.3MB after 00:05:00. Log level reverted successfully back to 30. [root@scs dist]# |
...