{"id":67,"date":"2021-04-03T15:07:18","date_gmt":"2021-04-03T13:07:18","guid":{"rendered":"https:\/\/bilbo-b.wks20.de\/?p=67"},"modified":"2021-04-03T15:07:18","modified_gmt":"2021-04-03T13:07:18","slug":"shell-script-to-remote-control-some-aspects-of-rock-powerdown-reboot-wake-on-lan-etc","status":"publish","type":"post","link":"https:\/\/qlch.de\/blog\/2021\/04\/03\/shell-script-to-remote-control-some-aspects-of-rock-powerdown-reboot-wake-on-lan-etc\/","title":{"rendered":"Shell script to remote control some aspects of rock (powerdown, reboot, wake on LAN, etc.)"},"content":{"rendered":"\n<p>I created a shell script because sometimes it is easier for me to run a command than open a Webbrowser and control ROCK from there.<\/p>\n\n\n\n<p>You can find it here: <a href=\"https:\/\/github.com\/bilbo-b\/rock\">https:\/\/github.com\/bilbo-b\/rock<\/a><\/p>\n\n\n\n<p>it can:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>poweroff:  shuts down gracefully and powers off at $ROCKIP\nwake:      sends \"magic packet\" to ROCK over network to power on\nstatus:    gives back some JSON-formatted status output of ROCK at $ROCKIP\nhas_cdrom: outputs \"no_cd_rom\" if none connected or other\neject:     ejects disk in a connected CDROM (if one is connected)\nreboot:    reboots your ROCK\nrestart:   restarts ROON software\nstop:      stops ROON software \nwake:      sends \"magic packet\" to ROCK over network to power on\n\nrequirements:\npoweroff, status, has_cdrom, eject, reboot, restart, stop need \"curl\"\nwake needs \"etherwake\" and the proper mac-address in \/etc\/ethers for \"rock\"\nstatus, has_cdrom and eject need \"jq\" installed<\/code><\/pre>\n\n\n\n<p>As always: if you have questions, suggestions or find problems, please let me know (e.g. in twitter @bilbo_b )<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I created a shell script because sometimes it is easier for me to run a command than open a Webbrowser and control ROCK from there. You can find it here: https:\/\/github.com\/bilbo-b\/rock it can: As always: if you have questions, suggestions or find problems, please let me know (e.g. in twitter @bilbo_b )<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[7],"class_list":["post-67","post","type-post","status-publish","format-standard","hentry","category-allgemein","tag-scripts"],"_links":{"self":[{"href":"https:\/\/qlch.de\/blog\/wp-json\/wp\/v2\/posts\/67","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/qlch.de\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/qlch.de\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/qlch.de\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/qlch.de\/blog\/wp-json\/wp\/v2\/comments?post=67"}],"version-history":[{"count":0,"href":"https:\/\/qlch.de\/blog\/wp-json\/wp\/v2\/posts\/67\/revisions"}],"wp:attachment":[{"href":"https:\/\/qlch.de\/blog\/wp-json\/wp\/v2\/media?parent=67"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/qlch.de\/blog\/wp-json\/wp\/v2\/categories?post=67"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/qlch.de\/blog\/wp-json\/wp\/v2\/tags?post=67"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}