Created
August 28, 2024 19:07
-
-
Save koen-db/378335ad966d1a5c8e6c9e32e9d38483 to your computer and use it in GitHub Desktop.
Revisions
-
koen-db created this gist
Aug 28, 2024 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,6 @@ for vmid in $(qm list | grep vm | grep stopped | grep -v 110 | awk '{print $1}'); do echo $vmid; done for vmid in $(qm list | grep vm | grep stopped | grep -v 110 | awk '{print $1}'); do qm shutdown $vmid; done for vmid in $(qm list | grep vm | grep stopped | grep -v 110 | awk '{print $1}'); do qm stop $vmid; done - DANGER WILL ROBINSON! - for vmid in $(qm list | grep vm | grep stopped | grep -v 110 | awk '{print $1}'); do qm destroy $vmid; done