From 0f59c6c81ad88ef8715673382fba8e04acb31896 Mon Sep 17 00:00:00 2001 From: exu Date: Sun, 20 Aug 2023 12:49:06 +0200 Subject: [PATCH] Separate host-reboot and host-shutdown. Include hostname using bash subshell --- pages/02.linux/xcp-ng/xe-cli/default.en.md | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/pages/02.linux/xcp-ng/xe-cli/default.en.md b/pages/02.linux/xcp-ng/xe-cli/default.en.md index 8706997..0acbb1b 100644 --- a/pages/02.linux/xcp-ng/xe-cli/default.en.md +++ b/pages/02.linux/xcp-ng/xe-cli/default.en.md @@ -32,7 +32,7 @@ From command line: [shroot] ```sh -xe host-disable host={hostname} +xe host-disable host=$(hostname) ``` [/shroot] @@ -41,10 +41,19 @@ Migrate the VMs running on the host to other hosts in the pool, or shut them dow Reboot or shutdown. Can be done from XO, or from command line + [shroot] ```sh -xe host-reboot|host-shutdown host={hostname} +xe host-reboot host=$(hostname) +``` + +[/shroot] + +[shroot] + +```sh +xe host-reboot host=$(hostname) ``` [/shroot]