cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
459
Views
0
Helpful
1
Replies

Export WWPN from Unassociated Service Profiles

ramdodger
Level 1
Level 1

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

1 Accepted Solution

Accepted Solutions

Kirk J
Cisco Employee
Cisco Employee

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

View solution in original post

1 Reply 1

Kirk J
Cisco Employee
Cisco Employee

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

Review Cisco Networking products for a $25 gift card