- Community Home
- >
- Servers and Operating Systems
- >
- HPE ProLiant
- >
- ProLiant Servers (ML,DL,SL)
- >
- wwpn information
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2018 05:37 AM
12-11-2018 05:37 AM
wwpn information
Is it possible to find wwpn/wwnn information for a bare metal server using powershell or REST. I looked at the HP ILO cmdlets and I do not see anything I can use to pull up the information. I could go into the ILO but trying to automate.
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2018 02:02 AM
12-13-2018 02:02 AM
Re: wwpn information
What is the Model No. of server?
What is the Installed Network card/HBA in use?
Which OS is installed on server?
I work for HPE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2018 05:05 AM
12-13-2018 05:05 AM
Re: wwpn information
This is the PowerShell command: Get-InitiatorPort

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2018 07:22 AM
12-17-2018 07:22 AM
Re: wwpn information
380 G10 or G9
Bare Bones no OS installed.
If an OS is installed I see a lot of approaches to get the information. I am thinking redfish might get me the answer. Two conflicting opinions, I have been told I need AMS running ie OS installed, but I have been also told I do not need it. I will test
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2020 11:38 AM - edited 02-10-2020 11:51 AM
02-10-2020 11:38 AM - edited 02-10-2020 11:51 AM
Re: wwpn information
I have the same problem at work and I wrote something that does not use the OS but just the ILO, but it only works for some models. I only tested on three models. I found this post because I don't want to rewrite this code for Gen 8 because there has to be a better way but seems not.
DL380 Gen 10 = Works
DL380 Gen 8,9 = Failed, going to make this soon/someday. If I remember I'll post back.
You need the redfish PowerShell cmdlets, found here.
https://github.com/HewlettPackard/PowerShell-ProLiant-SDK
#########################################START OF CODE #############
$conn = Connect-HPERedfish -Address $iloip -Password $password -Username $username -DisableCertificateAuthentication
$hbalist = (Get-HPERedfishDataRaw -Odataid 'redfish/v1/Chassis/1/NetworkAdapters' -Session $conn -DisableCertificateAuthentication).Members
$HBAMASTER = @()
foreach($element in $hbalist)
{
$hbatemp = Get-HPERedfishDataraw -Odataid $element.'@odata.id' -Session $conn -DisableCertificateAuthentication
$hbamodel = $hbatemp.SKU
$hbapn = $hbatemp.PartNumber
$hbasn = $hbatemp.SerialNumber
$hbafw = (Get-HPERedfishDataraw -Odataid $element.'@odata.id' -Session $conn -DisableCertificateAuthentication).Controllers.FirmwarePackageVersion.trim(" ")
$temp = ($element.'@odata.id').TrimEnd("/") + "/NetworkDeviceFunctions/"
$temp1 = ((Get-HPERedfishDataRaw -Odataid $temp -Session $conn -DisableCertificateAuthentication).Members).'@odata.id'
$WWTEMP = ((Get-HPERedfishDataRaw -Odataid $temp1 -Session $conn -DisableCertificateAuthentication).FibreChannel)
$WWNN = $WWTEMP.PermanentWWNN
$WWPN = $WWTEMP.PermanentWWPN
$interfacetemp = ($element.'@odata.id').TrimStart("/redfish/v1/Systems/1/NetworkInterfaces/").Trim("/")
$HBAMASTER += "HBAM:$hbamodel, HBAPN:$hbapn, HBAFW:$hbafw, HBASN:$hbasn, WWNN:$WWNN, WWPN:$WWPN"
}
$HBAMASTER
############### END OF CODE #########################
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2020 10:22 AM
02-11-2020 10:22 AM
Re: wwpn information
I changed the code a bit. Works only on DL380 Gen 10, it seems there is no way using redfish/ilo cmdlets getting the WWNN.
$hbalist = (Get-HPERedfishDataRaw -Odataid 'redfish/v1/Chassis/1/NetworkAdapters' -Session $conn -DisableCertificateAuthentication).Members
$hbacount = $hbatemp.Count
$hbacard = 1
$HBAMASTER = @()
foreach($element in $hbalist)
{
# Get-HPERedfishDataraw -Odataid redfish/v1/Chassis/1/NetworkAdapters/6907470F/ -Session $conn -DisableCertificateAuthentication
$hbatemp = Get-HPERedfishDataraw -Odataid $element.'@odata.id' -Session $conn -DisableCertificateAuthentication
$hbamodel = $hbatemp.SKU
$hbapn = $hbatemp.PartNumber
$hbasn = $hbatemp.SerialNumber
$hbafw = (Get-HPERedfishDataraw -Odataid $element.'@odata.id' -Session $conn -DisableCertificateAuthentication).Controllers.FirmwarePackageVersion.trim(" ")
$temp = ($element.'@odata.id').TrimEnd("/") + "/NetworkDeviceFunctions/"
$temp1 = ((Get-HPERedfishDataRaw -Odataid $temp -Session $conn -DisableCertificateAuthentication).Members).'@odata.id'
$HBAPORTCOUNT = $temp1.count
if($HBAPORTCOUNT -eq 1)
{
$WWTEMP = ((Get-HPERedfishDataRaw -Odataid $temp1 -Session $conn -DisableCertificateAuthentication).FibreChannel)
$WWNN = $WWTEMP.PermanentWWNN
$WWPN = $WWTEMP.PermanentWWPN
$interfacetemp = ($element.'@odata.id').TrimStart("/redfish/v1/Systems/1/NetworkInterfaces/").Trim("/")
$HBAMASTER += "CARD:$hbacard, PORT:1, HBAM:$hbamodel, HBAPN:$hbapn, HBAFW:$hbafw, HBASN:$hbasn, WWNN:$WWNN, WWPN:$WWPN"
}
else
{
for($i=0; $i -lt $HBAPORTCOUNT; $i++)
{
$WWTEMP = ((Get-HPERedfishDataRaw -Odataid $temp1[$i] -Session $conn -DisableCertificateAuthentication).FibreChannel)
$WWNN = $WWTEMP.PermanentWWNN
$WWPN = $WWTEMP.PermanentWWPN
$interfacetemp = ($element.'@odata.id').TrimStart("/redfish/v1/Systems/1/NetworkInterfaces/").Trim("/")
$tempi = $i + 1
$HBAMASTER += "CARD:$hbacard, PORT:$tempi, HBAM:$hbamodel, HBAPN:$hbapn, HBAFW:$hbafw, HBASN:$hbasn, WWNN:$WWNN, WWPN:$WWPN"
}
}
$hbacard++
}
$HBAMASTER