Add bash ip-fetching of VMs script to virsh/ip-fetching

This commit is contained in:
2025-11-27 07:26:44 +07:00
parent 13177dacd3
commit 020edd51be

View File

@@ -0,0 +1,9 @@
#!/usr/bin/bash
prefix="hosting_"
postfix="_vm"
for var in $(cat ../../memlist)
do
echo $var:$(virsh domifaddr $prefix$var$postfix --full --source arp | awk '/192.168.0./ {print $4}' | cut -d "/" -f 1)
done