ESXCLI tips for ESXi 5

Just a quick post on ESXi 5 command line tips.

Remember, with ESX i 5, vmware wants to get rid of esxcfg- commands and wants us to use esxcli commands instead.
I was stuck with networking and found the below command to help me a little.
> esxcli network interface list
Above lists all the networks on your hypervisor
> esxcli network interface ipv4 get
Above prints out all the ipv4 addresses in your system. By that I mean vmk ports.
> esxcli network interface ipv4 get -i vmX
Replacing X above will get you just the vmk port group with its ip, netmask, ipv4 broadcast, address type info.
Try them 🙂

Leave a Reply

Your email address will not be published.

Post Navigation