Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sample to list all VM network controllers #710

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

amdei
Copy link

@amdei amdei commented Sep 25, 2022

I find it difficult to get list of VM(s) virtual Ethernet cards on my ESXi Datacenter.
Hope my humble contribution will help my fellow developers.

Sample usage:

python3 samples/getallvm_nics.py --host my-esx-host.org.con --user my-login -p my-secret-password -nossl --sort --datacenter-name MY-DATACENTER-NAME

Sample output:

VM Name    :  whipsec-mc2
Path       :  [esx-vpn-datastore] whipsec-mc2/whipsec-mc2.vmx
Guest      :  Debian GNU/Linux 8 (64-bit)
Network adapter 1 -> MY_DSwitch/VM Network
Network adapter 2 -> switch-4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant