I know it’s possible to display a node’s dashboard via terminal like so:
docker exec -it STORJ_NODE_NAME /app/dashboard.sh
Which displays something like follows:
Storage Node Dashboard ( Node Version: v1.45.3 )
======================
ID xxxx
Status ONLINE
Uptime 113h10m4s
Available Used Egress Ingress
Bandwidth N/A 34.47 GB 13.22 GB 21.26 GB (since Dec 1)
Disk 2.16 GB 17.84 GB
Internal 127.0.0.1:7778
External xxxx:xxxx
But this is a dynamic dashboard that gets updated automatically on screen every 3 seconds, and locks the input until Ctrl+C is pressed.
Is it possible to run this dashboard so it prints these info on screen, and then exit right away?
When running dashboard.sh --help I couldn’t make sense of most options, so I’m not sure that’s doable.
“timeout 5” is the same as “timeout 5s”, it’s just that “second” is the default unit:
DURATION is a floating point number with an optional suffix: ‘s’ for seconds (the default), ‘m’ for minutes, ‘h’ for hours or ‘d’ for days. A duration of 0 disables the associated timeout.
I tried anyway to be sure, but the result is the same: no output.