How to get the network connections of an ESXi

August 16, 2011 — 3 Comments

We are going to suppose that you are trying to troubleshoot your ESXi network problems and as an experienced sysadmin one of the first things to do is getting the network connections of the host. But you are in ESXi and that means there is no netstat command, that handy Unix command that saved your life so many times in the past.

Please don’t panic yet, because as always in VMware there is a solution for that: esxcli to the rescue. Here it is the way to list the network connections of your ESXi host, both for ESXi 4.1 and ESXi 5 :-)

ESXi 4.1

I tested it in ESXi 4.1 and ESXi 4.1 Update 1. The network namespace is not available in ESXi 4.0.

ESXi 5

I used Remote Tech Support (SSH), simply known as SSH in ESXi5, in both examples but you can also launch the command from the vMA or using vSphere CLI from a Windows or a Linux machine.

vMA 4.1

[vi-admin@vma ~]$ esxcli --server=arrakis.jreypo.local --username=root network connection list

vMA 5

vi-admin@vma5:~> esxcli --server=esxi5.jreypo.local --username=root network ip connection list



3 responses to How to get the network connections of an ESXi


    How do you change the IP address/nework configuration of the vmnic1/second ethernet adapter in the ESXi 5.5 server from the console? I need to set up a private network to move some VM’s around locally on a 192 address.


Trackbacks and Pingbacks:

  1. Networx 5.1.9 | Daily Freeware Download - December 8, 2011

    […] Cellular Phone 3G Bandwidth UsagePersonal Exclusive Network and Dialup Connections Device StringsHow to get the network connections of an ESXi /* […]

  2. How to get ESX(i) network connections using PowerCLI « Juanma's Blog - January 8, 2015

    […] a previous post I described how to get the network connections of an ESXi server using esxcli from Tech Support […]

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s