Link to home
Start Free TrialLog in
Avatar of Greg_U
Greg_UFlag for United Kingdom of Great Britain and Northern Ireland

asked on

ESXiCLI: Is it possible to list VMs with Virtual Machine Port Groups which they are using?

Hi,

I'm trying to write simple script in Bash under vMA which will list (like in topic) all running VMs with virtual machine Port Groups which they they are attached to. Is it possible?

I've try to find solution to this problem for last couple hours.

Kind regards
Greg

(Please excuse my English it isn't my first language)
SOLUTION
Avatar of Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of BWXT
BWXT

Ditto, would recommend hanccocka's recommendation... ;)
Avatar of Greg_U

ASKER

Thank you for your answers.

I know about PowerCLI and if I could I would use it, but due to nature of environment I can use only Linux environment.
So I'm force to use ESXCli.

I'm guessing it cannot be done in ESXCli?

Kind regards
Greg
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Greg_U

ASKER

One more time thank you for your answers.

Kind regards
Greg