Highlighted
Contributor
Contributor

Any way to get virtual machine Nic card usage?

Jump to solution

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

0 Kudos
1 Solution

Accepted Solutions
Highlighted
User Moderator
User Moderator

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

0 Kudos
5 Replies
Highlighted
Enthusiast
Enthusiast

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

0 Kudos
Highlighted
User Moderator
User Moderator

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

0 Kudos
Highlighted
Contributor
Contributor

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

0 Kudos
Highlighted
User Moderator
User Moderator

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

0 Kudos
Highlighted
Contributor
Contributor

Dear LucD

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

Thanks

0 Kudos