Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 11 lines (5 sloc) 104 Bytes
#!/bin/bash
VM=$1
shift
IP=$(onevm show $VM -x|grep '<IP>'|grep -o '[0-9.]\+'|head -n1)
ping "$IP"