summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorAlejandro Sirgo Rica <asirgo@soleta.eu>2024-03-04 09:58:41 +0100
committerAlejandro Sirgo Rica <asirgo@soleta.eu>2024-03-04 09:58:41 +0100
commitb242ee9f6e1f84d7cbc6114cac1bc5300fa3afcc (patch)
treee6f07500de87d7f4a708fba18d3dd4efccf5dd98 /examples
parent9f78cc5acee3e974e1c30bfdeac740e895e2dab1 (diff)
change 'ogcli send' command into 'ogcli request'
By using the word 'request' the command becomes more semantic and represents the 'best effort' nature of the communication with ogserver.
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/deploy-ubuntu.sh8
-rw-r--r--examples/poweroff.cron2
2 files changed, 5 insertions, 5 deletions
diff --git a/examples/deploy-ubuntu.sh b/examples/deploy-ubuntu.sh
index 94541a4..0f80c10 100755
--- a/examples/deploy-ubuntu.sh
+++ b/examples/deploy-ubuntu.sh
@@ -21,13 +21,13 @@ function check_client_status {
IP="192.168.56.11"
-echo "Sending WoL to client $IP"
-./ogcli send wol --client-ip "$IP"
+echo "Requesting WoL to client $IP"
+./ogcli request wol --client-ip "$IP"
check_client_status $IP "WOL_SENT"
echo "Client is ready... partitioning client"
./ogcli setup disk --type dos --num 1 --part 1,LINUX,EXT4,40G --part 4,CACHE,CACHE,10G --format 1,4 --client-ip "$IP"
-# ./ogcli send refresh --client-ip "$IP"
+# ./ogcli request refresh --client-ip "$IP"
check_client_status $IP "BSY"
echo "Client is ready... restoring image"
@@ -39,4 +39,4 @@ echo "Client is ready... setting boot mode to first disk first partition"
check_client_status $IP "BSY"
echo "Client is ready... shutting down client"
-./ogcli send poweroff --client-ip "$IP"
+./ogcli request poweroff --client-ip "$IP"
diff --git a/examples/poweroff.cron b/examples/poweroff.cron
index da4c476..8e3bed6 100644
--- a/examples/poweroff.cron
+++ b/examples/poweroff.cron
@@ -8,4 +8,4 @@
# Usually on debian based distros one can insert cron tasks
# using "crontab -e".
-0 22 * * 1-5 ogcli send poweroff --client-ip 192.168.56.11
+0 22 * * 1-5 ogcli request poweroff --client-ip 192.168.56.11