Separate host-reboot and host-shutdown. Include hostname using bash subshell

This commit is contained in:
exu 2023-08-20 12:49:06 +02:00
parent 939b8a4b7e
commit 0f59c6c81a

View File

@ -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]