chore: initial import from KNEL/PFVCluster@041d311 [#769]
Split per O&M lane work order. Full history: KNEL/PFVCluster. https://projects.knownelement.com/issues/769#note-4152
This commit is contained in:
Executable
+14
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/bash
|
||||
# Audit all VM disk configs on a Proxmox host
|
||||
set -uo pipefail
|
||||
HOST="$1"
|
||||
PROX_HOST="$HOST" bash tests/remote.sh prox '
|
||||
qm list 2>/dev/null | tail -n +2 | while read -r line; do
|
||||
vmid=$(echo "$line" | awk "{print \$1}")
|
||||
name=$(echo "$line" | awk "{print \$2}")
|
||||
status=$(echo "$line" | awk "{print \$3}")
|
||||
echo "VMID=$vmid NAME=$name STATUS=$status"
|
||||
qm config "$vmid" 2>/dev/null | grep -E "^(scsi|virtio|ide)[0-9]+:" | sed "s/^/ /"
|
||||
echo ""
|
||||
done
|
||||
'
|
||||
Reference in New Issue
Block a user