Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Query WWPN values

Is there a way to query out all of the WWPN's on my chasis? I am looking to automate some zoning and iGroup creation.

I've done some googling, but I am not getting great results..

Thanks in advance!

Everyone's tags (3)
1 ACCEPTED SOLUTION

Accepted Solutions
Cisco Employee

Query WWPN values

Hi Jay,

Ah ok I see you are using UCSM.  You can use the Cisco UCS PowerTool to quickly retrieve the WWN information (http://developer.cisco.com/web/unifiedcomputing/pshell-download) from all blades in UCSM. The below two commands will provide you with the required information:

Connect-Ucs
Get-UcsServiceProfile -type instance | Get-UcsVhba | Select Dn,Addr,NodeAddr

6 REPLIES
New Member

Query WWPN values

If I understand what you are after, try this:

show flogi database

This will display all the pWWN's that are logged into a switch.

Steven

New Member

Query WWPN values

Yes, but that leaves out the server name.. like if I want to know what WWPN's are for blade 1, blade 2, ...

I know I can get this through the gui and clicking all over the place, but I figured there should be some way to automate this.

Thanks for your reply!

Cisco Employee

Query WWPN values

Hi Jay,

Are you using fcalias or a device alias database? 

A device alias database will allow you to quickly see the device name in the cli if you do a sh flogi/sh zone etc

(http://www.cisco.com/en/US/docs/switches/datacenter/nexus5000/sw/configuration/guide/cli_rel_4_0_1a/ddas.html). 

If you are using fcalias, you could store the results of show fcalias in your script and then associate the wwpn's from show flogi database.

New Member

Query WWPN values

That is what I am trying to do.. build the device alias table and then do the zoning. It would be nice to not have to click all over the place in UCSM (on each host twice, plus a right click and copy.)

Am I explaining this right? I am somewhat new to FC - I could be missing something.

Thanks for your reply!

Cisco Employee

Query WWPN values

Hi Jay,

Ah ok I see you are using UCSM.  You can use the Cisco UCS PowerTool to quickly retrieve the WWN information (http://developer.cisco.com/web/unifiedcomputing/pshell-download) from all blades in UCSM. The below two commands will provide you with the required information:

Connect-Ucs
Get-UcsServiceProfile -type instance | Get-UcsVhba | Select Dn,Addr,NodeAddr

New Member

Query WWPN values

I'm trying to discover number of HBAs along with their WWPN/WWNN installed on the chassis using Cisco UCS Manager XML API.

using configResolveClass with classID="adptorUnit" request, however the response to this request does not content the wwpn rather than wwnn. what is the best way to get the WWPN?

Thanks

1271
Views
5
Helpful
6
Replies
CreatePlease to create content