harbor/tests/nightly-test/shellscript/getvmip.sh

7 lines
164 B
Bash
Raw Normal View History

#!/bin/sh
export GOVC_USERNAME=$2
export GOVC_PASSWORD=$3
export GOVC_INSECURE=1
export GOVC_URL=$1
govc vm.info -json $4 | jq -r .VirtualMachines[].Guest.HostName