Anpassungen
This commit is contained in:
12
vbox_ip.sh
Normal file
12
vbox_ip.sh
Normal file
@@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
|
||||
VAR_VBox="vboxmanage list runningvms"
|
||||
|
||||
VAR_RUN="$($VAR_VBox | awk '{print ($1)}' | sed 's/"//g')"
|
||||
|
||||
echo -e "$VAR_RUN \t\t\tAAA"
|
||||
|
||||
for i in $VAR_RUN
|
||||
do VBoxManage guestproperty enumerate $i | grep IP | grep -o -w -P -e '\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}'
|
||||
done
|
||||
Reference in New Issue
Block a user