VMware Cloud Community
chrischay
Contributor
Contributor

vmkernel Ports Usage

Hi,

Is there any cli commands I can use yo check what is the usage of my ESXi 5.5 vmkernel ports? I have four vmkernel ports (vmk0-vmk3) and I want to know which one is use by vmotion, iSCSI or management traffic?

I know I can see it from the vCenter server, but it would also very nice to know the commands and work with it using the CLI.

Thanks,

0 Kudos
4 Replies
bspagna89
Hot Shot
Hot Shot

Hi,

Using SSH (Enabling ssh on the host -> Configuration - > Security Profile -> Services enable ssh) you can log in via root/rootpassword you made.

After that run the following :

esxcfg-vswitch -l (for detailed vswitch information)

esxcfg-vmknic -l  (for detailed VMkernel information)

Let me know if this helps.

New blog - https://virtualizeme.org/
0 Kudos
chrischay
Contributor
Contributor

both commands really doesn't tell me which vmkernel port is used by vmotion and management traffic.

0 Kudos
bspagna89
Hot Shot
Hot Shot

Can we use PowerCLI instead? This is VMware's Powershell which can be downloaded here : VMware vSphere with Operations Management

Install it on vCenter and launch then type :

1. Connect-VIserver localhost

2. Get-VMHostNetworkAdapter -VMKernel |FT Name,IP,VMHost,DeviceName,ManagementTrafficEnabled,VMotionEnabled

That one liner will give you the VMkernel's along with Management/vMotion traffic status :

New blog - https://virtualizeme.org/
chrischay
Contributor
Contributor

this is a helpful command. Thanks...

0 Kudos