- Community Home
- >
- Servers and Operating Systems
- >
- ProLiant
- >
- Server Management - Remote Server Management
- >
- Problems with iLO Unauthenticated XML query
-
-
Forums
- Products
- Servers and Operating Systems
- Storage
- Software
- Services
- HPE GreenLake
- Company
- Events
- Webinars
- Partner Solutions and Certifications
- Local Language
- China - 简体中文
- Japan - 日本語
- Korea - 한국어
- Taiwan - 繁體中文
-
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Middle East
- HPE Blog, Latin America
- HPE Blog, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Blog, Poland
-
Blogs
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Blog, Latin America
- HPE Blog, Middle East
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
-
Information
- Community
- Welcome
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Tips and Tricks
- Resources
- Announcements
- Email us
- Feedback
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Forums
-
Blogs
-
Information
-
English
- 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
- Email to a Friend
- Report Inappropriate Content
09-26-2013 12:12 PM - last edited on 09-28-2013 06:49 PM by Maiko-I
09-26-2013 12:12 PM - last edited on 09-28-2013 06:49 PM by Maiko-I
I'm reading the HP iLO Scripting and Command Line Guides for iLO 2, 3, and 4 (the iLO's I have in my environment). All three documents contain the same information for an Unauthenticated XML query. The reason I'm focusing on this information is because I'd like to script the retrieval of the MAC address for NIC 1 for Network (PXE) boot purposes.
The three servers I'm testing with are:
ProLiant DL385 G6, iLO 2 v2.12
ProLiant DL385 G7, iLO 3 v1.50
ProLiant DL360p Gen8, iLO 4 v1.20
Using the /xmldata?item=all query, only the iLO 4 server is returning information on the NIC's. The iLO 2 and iLO 3 servers are returning no information (similar to the short response in the documentation).
I have verified that the CIM_SECURITY_MASK setting is 3 on all servers.
All of these servers are running VMware ESXi 5.1 and HP SMH is not installed.
On all servers, I can log into the iLO web interface, click System Information, and see the MAC addresses of all NIC's.
What am I doing wrong? What else can I check to get this information to return?
HP iLO Scripting and Command Line Guides
iLO 2: https://h20566.www2.hp.com/portal/site/hpsc/template.BINARYPORTLET/public/kb/docDisplay/resource.process/?spf_p.tpst=kbDocDisplay_ws_BI&spf_p.rid_kbDocDisplay=docDisplayResURL&javax.portlet.begCacheTok=com.vignette.cachetoken&spf_p.rst_kbDocDisplay=wsrp-resourceState%3DdocId%253Demr_na-c03351064-2%257CdocLocale%253Den_US&javax.portlet.endCacheTok=com.vignette.cachetoken
iLO 3: http://h20000.www2.hp.com/bc/docs/support/SupportManual/c02774508/c02774508.pdf
iLO 4: http://h20000.www2.hp.com/bc/docs/support/SupportManual/c03334058/c03334058.pdf
P.S. This thread has been moved from ProLiant Servers (ML,DL,SL) to ITRC Remote Lights-Out Mgmt (iLO 2, iLO, RILOE II) Forum. - Hp Forum Moderator
Solved! Go to Solution.
- Tags:
- XML
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
09-26-2013 01:18 PM
09-26-2013 01:18 PM
SolutionThe Unauthenticated XML reply has been enhanced only in iLO4. For older G6 and G7 servers, you can use the Get_Host_Data.xml to obtain the server NIC MAC addresses (SMBIOS record type 209)
__________________________________________________
If you feel this was helpful please click the KUDOS! thumb below!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
09-26-2013 02:24 PM
09-26-2013 02:24 PM
Re: Problems with iLO Unauthenticated XML query
Thanks, Oscar. So the documentation for iLO 2 and iLO 3 is incorrect I presume?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
09-26-2013 02:46 PM
09-26-2013 02:46 PM
Re: Problems with iLO Unauthenticated XML query
@Hossy wrote:Thanks, Oscar. So the documentation for iLO 2 and iLO 3 is incorrect I presume?
Just checked the iLO2 docs, and the answer is yes/no It has two entries, one showing data returned for an iLO2 system, and one showing data returned for an iLO4 system. I'd say it's a good bet that the iLO4 info shouldn't really be there since it is an iLO2 document...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
09-26-2013 07:34 PM
09-26-2013 07:34 PM
Re: Problems with iLO Unauthenticated XML query
For inquiring minds, I figured I'd share my script. Feel free to reuse. All I ask is that you credit me (John Hossbach).
param ( [string]$iLOAddress, [string]$userName, [string]$password, [switch]$tryBoth ) function Get-iLOVersion { param ( [string]$iLOAddress ) $xml = New-Object System.Xml.XmlDocument $xml.Load("http://$iLOAddress/xmldata?item=All") $xml.RIMP.MP.PN } function Get-NIC1MAC_HTTP { param ( [string]$iLOAddress ) $xml = New-Object System.Xml.XmlDocument $xml.Load("http://$iLOAddress/xmldata?item=All") ($xml.RIMP.HSI.NICS.NIC | ? {$_.PORT -eq '1'}).MACADDR } function Get-NIC1MAC_CPQLOCFG { param ( [string]$iLOAddress, [string]$userName, [string]$password ) $cpqlocfg = 'C:\Program Files (x86)\HP Lights-Out Configuration Utility\cpqlocfg.exe' $gethostdataxml = 'C:\Program Files (x86)\HP Lights-Out Configuration Utility\samples\Get_Host_Data.xml' $command = "& `"$cpqlocfg`" -s $iLOAddress -u $userName -p `"$password`" -f `"$gethostdataxml`"" $output = Invoke-Expression $command $xml = New-Object System.Xml.XmlDocument $xml2 = New-Object System.Xml.XmlDocument ($output -join "`r`n" | Select-String '(?smi)<\?xml version="1.0"\?>\r?\n(\s*(?!<s>)(?!<\?xml version="1.0"\?>)</?[^>]*>\r?\n)*' -AllMatches).Matches | ? { $_.Value -match 'GET_HOST_DATA' } | ForEach-Object { $xml2.LoadXml($_.Value) if ($xml2.RIBCL.GET_HOST_DATA -ne $null) { $xml = $xml2.Clone() } } $foundone = $false ($xml.RIBCL.GET_HOST_DATA.SMBIOS_RECORD | Where-Object {$_.TYPE -eq 209}).FIELD | ForEach-Object { if ($_.NAME -eq 'MAC' -and $foundone) { $_.VALUE } if ($_.NAME -eq 'Port' -and $_.VALUE -eq '1') { $foundone = $true } else { $foundone = $false } } } function Get-NIC1MAC { param ( [string]$iLOAddress, [string]$userName, [string]$password, [switch]$tryBoth ) if ($tryBoth) { Write-Host -ForegroundColor Yellow $iLOAddress [$(Get-iLOVersion -iLOAddress $iLOAddress)] Write-Host -ForegroundColor Green 'Trying Get-NIC1MAC_HTTP (iLO 4 and up)...' } $time = Measure-Command {$output = Get-NIC1MAC_HTTP -iLOAddress $iLOAddress} $output if ($tryBoth) { Write-Host -ForegroundColor Green 'Get-NIC1MAC_HTTP completed in ' -NoNewLine Write-Host -ForegroundColor Yellow "$($time.TotalMilliseconds) ms" Write-Host -ForegroundColor Green 'Trying Get-NIC1MAC_CPQLOCFG (prior to iLO 4)...' } if ($tryBoth -or $output -eq $null) { $time = Measure-Command {$output = Get-NIC1MAC_CPQLOCFG -iLOAddress $iloAddress -userName $userName -password $password} $output } if ($tryBoth) { Write-Host -ForegroundColor Green 'Get-NIC1MAC_CPQLOCFG completed in ' -NoNewLine Write-Host -ForegroundColor Yellow "$($time.TotalMilliseconds) ms" '' } } if ($iLOAddress -eq '') { Write-Host -ForegroundColor Yellow 'Syntax: ' -NoNewLine Get-Help Get-NIC1MAC } else { Get-NIC1MAC -iLOAddress $iLOAddress -userName $userName -password $password -tryBoth:$tryBoth }
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2022 Hewlett Packard Enterprise Development LP