Add bash ip-fetching of VMs script to virsh/ip-fetching
This commit is contained in:
9
bash/ip_fetch/mk_ip-hostname_table.sh
Executable file
9
bash/ip_fetch/mk_ip-hostname_table.sh
Executable 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
|
||||
Reference in New Issue
Block a user