VMware Cloud Community
roswellevent
Contributor
Contributor
Jump to solution

Any way to get virtual machine Nic card usage?

Hi all

I would like to know if there are any way to get nic card(NetworkAdapterImpl object) transmit rate/receive rate statistical data of virtual machine via get-stat cmd-lets?

Regards

Danny

Reply
0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

I decided to do a blog post on this.

See vNIC transmit and receive rates


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

View solution in original post

Reply
0 Kudos
5 Replies
vmdkness
Enthusiast
Enthusiast
Jump to solution

Is this what you are looking for ?
Get-VM vmname | Get-stat  | where {$_.Metricid -match "net.usage.average"}

Reply
0 Kudos
LucD
Leadership
Leadership
Jump to solution

Yes, you can use the Network metrics

There's a sample in How to get a total network transmit and receive in 7 days?


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos
roswellevent
Contributor
Contributor
Jump to solution

Hi vmdkness/LucD

Thanks for your reply, I have read "How to get a total network transmit and receive in 7 days" post before, I know this script can generate average usage of All NIC card that VMs has, but i would like to get the individual NIC card transmit/receive usage over a period of time.

How can I do that via PowerCLI?

Thanks

Danny

Reply
0 Kudos
LucD
Leadership
Leadership
Jump to solution

I decided to do a blog post on this.

See vNIC transmit and receive rates


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos
roswellevent
Contributor
Contributor
Jump to solution

Dear LucD

Great post! you are No.1 PowerCLI expert! That all what i want

Thanks

Reply
0 Kudos