I want to write a powershell-script which checks if a network interface card which uses receive side scaling uses a processor with a NUMA (Non-Uniform Memory Access) distance > 0.
What I've done so far:
$name = "Ethernet"
$adapter = Get-NetAdapterRss -Name $name
This outputs the RSS-Adapter processor data (together with other information) like:
RssProcessorArray: [Group:Number/NUMA Distance] : 0:0/0 0:2/0 0:4/0 0:6/0 0:8/0 0:10/0 0:12/0 0:14/0 0:16/0 0:18/0 0:20/0 0:22/0 0:24/32767 0:26/32767 0:28/32767 0:30/32767 0:32/32767 0:34/32767 0:36/32767 0:38/32767 0:40/32767 0:42/32767 0:44/32767 0:46/32767
As you see, the NUMA distance is the value behind the '/'. Now i want to retrieve it like:
foreach($processor in $adapter.RssProcessorArray)
{
Write-Host $processor.ProcessorGroup
Write-Host $processor.ProcessorNumber
Write-Host $processor.??
}
Somehow there is no ".NumaDistance" property on the object i get. How can i get this value for each processor in the list?