02-14-2017 09:28 PM - edited 03-01-2019 01:04 PM
I’m looking for a way to export WWPN’s from unassociated service profiles. I need to decom a large number of WWPN’s from our switches/arrays and re-using SP’s is not an option. I’ve tried using UCS Powertool but can’t seem to pipe out “unassociated” only. Below is the command i've used which worked, just can't seem to sort by associated state.
Get-UcsServiceProfile -type instance | Get-UcsVhba | Select Dn,Addr | Export-Csv C:\UCS\domain1.csv
Solved! Go to Solution.
02-15-2017 04:58 AM
Greetings.
Try: Get-UcsServiceProfile -type instance | Where {$_.AssocState -eq "unassociated"} | Get-UcsVhba | Select Dn,Addr | Export-Csv C:\UCS\Domain1.csv
Or to filter out 'derived':
Get-UcsServiceProfile -type instance | Where {$_.AssocState -eq "unassociated"} | Get-UcsVhba | Select Dn,Addr |Where {$_.Addr -ne "derived"}| Export-Csv C:\UCS\Domain1.csv
Thanks,
Kirk
02-15-2017 04:58 AM
Greetings.
Try: Get-UcsServiceProfile -type instance | Where {$_.AssocState -eq "unassociated"} | Get-UcsVhba | Select Dn,Addr | Export-Csv C:\UCS\Domain1.csv
Or to filter out 'derived':
Get-UcsServiceProfile -type instance | Where {$_.AssocState -eq "unassociated"} | Get-UcsVhba | Select Dn,Addr |Where {$_.Addr -ne "derived"}| Export-Csv C:\UCS\Domain1.csv
Thanks,
Kirk
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide