Is there a way to query online status from command line

But you get the response, so the node is online. It would become “AllHealthy”, when your online score would be 100%.

This is because it uses the time window of the last 30 days, see