Compare commits

2 Commits

Author SHA1 Message Date
020edd51be Add bash ip-fetching of VMs script to virsh/ip-fetching 2025-11-27 07:26:44 +07:00
13177dacd3 Update .gitignore 2025-11-26 09:53:18 +07:00
2 changed files with 11 additions and 0 deletions

2
.gitignore vendored
View File

@@ -1 +1,3 @@
*~* # - Ignore temp vim files
*~
~*

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