Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding VMNIC CRC error check #344

Closed
mithun2186 opened this issue May 3, 2023 · 2 comments
Closed

Adding VMNIC CRC error check #344

mithun2186 opened this issue May 3, 2023 · 2 comments

Comments

@mithun2186
Copy link

Hello team

is there a way we can add CRC error for VMNIC as part of data collection ?

@mithun2186
Copy link
Author

mithun2186 commented May 4, 2023

Here is the command and powercli code that can be used to details

esxcli network nic stats get -n vmnicX

Get-Cluster -PipelineVariable cluster |
Get-VMHost -PipelineVariable esx |
ForEach-Object -Process {
$esxcli = Get-EsxCli -VMHost $esx -V2
$esxcli.network.nic.list.Invoke() |
ForEach-Object -Process {
$esxcli.network.nic.stats.get.Invoke(@{nicname=$_.Name}) |
Select @{N='Cluster';E={$cluster.Name}},
@{N='VMHost';E={$esxcli.VMHost.Name}},
NICName,PacketsReceived,PacketsSent,ReceiveCRCerrors
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants