cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3776
Views
5
Helpful
6
Replies

Query WWPN values

NetechJay
Level 1
Level 1

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!

1 Accepted Solution

Accepted Solutions

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

View solution in original post

6 Replies 6

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

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!

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.

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!

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

hieunguyeh815
Level 1
Level 1

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

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: