- Community Home
- >
- Servers and Operating Systems
- >
- BladeSystem
- >
- BladeSystem Server Blades
- >
- Re: Read MAC-Addresses from NICs with Powershell
-
- Forums
-
- 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, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
-
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
-
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
05-16-2018 01:38 AM
05-16-2018 01:38 AM
Hey,
before we install a OS (RHEL / Windows) on a HPE Server (Blade / Rack / Gen8 / Gen9 / Gen10), we read out the current MAC-Addresses from each HPE Server with SSH. It is possible to read out the MAC-Addresses with new Powershell-CMDLets? I cant find a solution with powershell.
Example SSH:
Connect to ILO with SSA - /system1/network1/integrated_NICs
No we can find the MAC-Addresses from each Networkadapter.
In ILO Console we also cant find the MAC-Addresses from Server-NICs.
Thank you for reply.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-25-2018 03:17 AM
05-25-2018 03:17 AM
Re: Read MAC-Addresses from NICs with Powershell
Yes its possible using Get-HPEiLONICInfo cmdlet as show below.
Thanks,
Gokul
PS C:\WINDOWS\system32> $con = Connect-HPEiLO 15.146.44.21 admin admin123 -DisableCertificateAuthentication
PS C:\WINDOWS\system32> $n = $con | Get-HPEiLONICInfoPS C:\WINDOWS\system32> $n.EthernetInterface
NetworkPort : iLO Shared Network Port
PortDescription : iLO Shared Network Port
Location : Embedded
IPAddress : 192.16.44.21
MACAddress : 30:8d:99:b2:c9:f2
Status : OK
I am a HPE Employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-29-2018 05:24 AM
05-29-2018 05:24 AM
Re: Read MAC-Addresses from NICs with Powershell
Hey Gokul,
thank you for your reply.
I have test it again, but i cant find the MACs of physical NICs. The only NIC i found is from ILO. In your Post it is also only ILO Port. I need the Networkport from Server (not ILO).
In the Administration Website from ILO i can find the NICs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-30-2018 10:31 PM
05-30-2018 10:31 PM
Re: Read MAC-Addresses from NICs with Powershell
Hi,
I got your problem now. Only if you have AMS installed on the server host then only you will get physical NIC informaiton on iLO page or through our PS Cmdlets.
You can use same Get-HPEiLONICInfo cmdlet to fetch the physical NIC information of the server.
Hope its clear now for you.
$NIC = $con | Get-HPEiLONICInfo
$NIC.NetworkAdapter
Thanks,
Gokul
I am a HPE Employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
06-04-2018 12:22 AM
06-04-2018 12:22 AM
Re: Read MAC-Addresses from NICs with Powershell
Hey,
i test ist again, but with the same result. I cant find the MAC-Addresses from phisical NICs with powershell CMDLets.
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
06-04-2018 04:01 AM
06-04-2018 04:01 AM
Re: Read MAC-Addresses from NICs with Powershell
Hi,
In the output you have not expanded the Ports memeber which will have the MAC address in it.
But i strongly believe that you might not have HOST OS on your ilo server and AMS running on it. Please cross check that.
Without that you can't get MAC address of the physical server NIC.
Thanks,
Gokul
I am a HPE Employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
06-04-2018 05:01 AM
06-04-2018 05:01 AM
Re: Read MAC-Addresses from NICs with Powershell
That's exactly my problem. I have no OS installed and therefore no AMS. With SSH (example with putty in Screenshot) I can read the MACs without an existing OS. But not with powershell (see also screenshot).
I think the Problem is only with Blades. When i try it with RACK Server (DL380 Gen10) it is possible to read out the addresses.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
06-04-2018 05:11 AM
06-04-2018 05:11 AM
Re: Read MAC-Addresses from NICs with Powershell
Here an Example from Rackserver DL380 Gen10 with Powershell:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
06-05-2018 12:50 AM
06-05-2018 12:50 AM
SolutionHi,
I just got to know that MAC address data is available without Host OS and AMS.
I tried to reproduce in my lab but could not reproduce your issue with below configuration of server. Looks like you might have not latest version.
ProLiant BL460c Gen10
iLO5 1.20 Firmware version
Can you check what is your iLO firmware version.
Thanks,
Gokul
I am a HPE Employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
06-05-2018 11:54 PM
06-05-2018 11:54 PM
Re: Read MAC-Addresses from NICs with Powershell
Hi Gokul,
i have test it on a BL460c Gen10 with ILO Firmware 1.16. After Update to ILO 1.20 i can read out the MACs. Also via Powershell and Webinterface.
So the problem comes from the old ILO Firmware.
Thank you very much for your support and time.
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2021 Hewlett Packard Enterprise Development LP