-
Notifications
You must be signed in to change notification settings - Fork 539
Open
Description
It looks like they changed the performance counter names in Windows 2025 (maybe earlier versions as well). This causes the RDMA test to fail with the following:
ERROR: RDMA traffic test FAILED: Please check
ERROR: a) physical switch port configuration for Priorty Flow Control.
ERROR: b) job owner has write permission at 192.168.100.3 \C$
If you remove the ignore you see:
Get-Counter : The specified object was not found on the computer.
At line:1 char:1
+ Get-Counter -Counter "\SMB Direct Connection(_Total)\Bytes RDMA Writt ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidResult: (:) [Get-Counter], Exception
+ FullyQualifiedErrorId : CounterApiError,Microsoft.PowerShell.Commands.GetCounterCommand
$written and $sent will be empty due to this.
Adding this code fixes the issue.
Replace lines 291 and 292 with:
$osVersion = (Get-CimInstance Win32_OperatingSystem).Version
if ($osVersion -like "10.0.26*") {
$written = Get-Counter -Counter "\SMB Direct\Bytes RDMA Written/sec" -ErrorAction Ignore
$sent = Get-Counter -Counter "\SMB Direct\Bytes Sent/sec" -ErrorAction Ignore
} else {
$written = Get-Counter -Counter "\SMB Direct Connection(_Total)\Bytes RDMA Written/sec" -ErrorAction Ignore
$sent = Get-Counter -Counter "\SMB Direct Connection(_Total)\Bytes Sent/sec" -ErrorAction Ignore
}
Metadata
Metadata
Assignees
Labels
No labels