Automating management

Tools to automate tasks in VMware:
1. PowerCLI
2. vCLI
3. vRealize Orchestrator vRO
4. vSphere Web Services SDK
5. vSphere Management Assistant vMA

1. PowerCLI

Download from the Internet from the Microsoft site: Package Management_64.msi.
From Powershell > install-module -name vmware.powercli

help                                      =    get-help       get-help get-vm
connect to vCenter               =    connect-viserver -server vcsa_FQDN
list all installed modules         =    get-module vmware* -listavailable
list running VM's                   =    get-vm
get-v (name vSS)                  = -  list all settings of switch

Command on host or GUI
esxcli esxcli command list
esxcli network nic list
esxcli system
esxcli system version get
esxcfg-vswitch -L
esxcli network vswitch standard list
esxcli network vswitch dvs vmware list
esxcli network vswitch standard list -v   -  list all settings of switch
esxcli network vswitch standard -policy security    -  list all security settings of switch
esxcli network nic list   -  list all adapters with esxcli
esxcfg-nics -L   -  list all adapters with esxcli

 

More information, use this link:
https://www.vmware.com/support/developer/PowerCLI/PowerCLI651/html/

 

2. vCLI

Download from VMware vCLI + Data Center CLI
Download and install active Perl 5.14 or later from activestate.com
install xml/libxml.pm   =   ppm install xml-libxml
htttps://www.vmwar.com/support/developer/vcli

Rest api -  https://vcsa_ipaddress/apiexplorer