CLI commands

17 views
Skip to first unread message

Chris Morris

unread,
Jun 27, 2024, 5:41:08 AM (10 days ago) Jun 27
to ClusterHAT
does anyone know what are all of the commands within clusterctrl and formats 

im wondering do to this,

root@Host:/home/pi# clusterctrl savepos 1234
Invalid order
Error: Unable to find Cluster CTRL device with that order

nothing but powering on the nods has been done, just booted up powered them on and trying to save the power state.

any help on this would be awesome.


root@Host:/home/pi# clusterctrl status
clusterhat:1
clusterctrl:False
maxpi:4
throttled:0x0
hat_version:2.5
hat_version_major:2
hat_version_minor:5
hat_size:4
hat_uuid:~~~~~~~~~~~
hat_vendor:~~~~~~~~
hat_product_id:~~~~~~~~~~
hat_alert:0
hat_hub:1
hat_wp:1
hat_led:1
hat_wplink:0
hat_xra1200p:True
p1:1
p2:1
p3:1
p4:1

ClusterHAT

unread,
Jun 27, 2024, 6:16:00 AM (10 days ago) Jun 27
to ClusterHAT
Hi,
does anyone know what are all of the commands within clusterctrl and formats

clusterctrl help # Or -h ,--help, /? should show the commands

There's also a bit of information at the top of the file itself which you can see on https://github.com/burtyb/clusterhat-image/blob/master/files/usr/sbin/clusterctrl
 
im wondering do to this,

root@Host:/home/pi# clusterctrl savepos 1234
Invalid order
Error: Unable to find Cluster CTRL device with that order
 
clusterhat:1
clusterctrl:False

Looking at the output of status you have a clusterhat rather than a clusterctrl device (Triple/Single/Stack) so you wouldn't be able to use savepos.

If you want to power the Pi Zeros on after the controller Pi has started up you can do this using crontab, sadly I can't find the official RPi docs on using cron but you should be able to add it by doing this.

sudo crontab -e

When it asks which editor you want to use you'll probably want to select nano, then go to the end of the file and add this line.

@reboot sleep 30 && /usr/sbin/clusterctrl on

To exit nano and save the file press Ctrl-X, Y and then press Enter.

When you next restart the controller Pi it should then start up the Pi Zeros ~30 seconds after it has started up.

Chris.

Chris Morris

unread,
Jun 27, 2024, 8:05:06 PM (9 days ago) Jun 27
to ClusterHAT
Sweet! yeah this will work, 

Thank you,

Reply all
Reply to author
Forward
0 new messages