- Community Home
- >
- Servers and Operating Systems
- >
- HPE BladeSystem
- >
- BladeSystem - General
- >
- Read MAC-Addresses from NICs with Powershell
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
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
- 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
- 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
- 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
- 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
- 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
- Report Inappropriate Content
06-04-2018 05:01 AM - last edited on 11-16-2023 11:55 PM by Sunitha_Mod
06-04-2018 05:01 AM - last edited on 11-16-2023 11:55 PM by Sunitha_Mod
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.
[Moderator edit: Erased the confidential info]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- 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
- 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
- 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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2024 08:28 AM
03-28-2024 08:28 AM
Re: Read MAC-Addresses from NICs with Powershell
I am experiencing the same issue, ProLiant DL380 Gen 11 firmware 1.57; HPeilocmdlet 4.3.0.0 using Powershell version 5.1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2024 11:45 PM
03-31-2024 11:45 PM
Re: Read MAC-Addresses from NICs with Powershell
Hello @DQ07,
Thank you for posting.
You might want to consider creating a new topic by utilizing the "New Discussion" button, as this will not only enhance visibility compared to the old topic but also boost your chances of receiving responses from experts.
Thanks,
Sunitha G
I'm an HPE employee.
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
