Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how do I display the serial and mac address on ipxe main menu?
2019-02-08, 01:06
Post: #1
how do I display the serial and mac address on ipxe main menu?
I'd like to display the computer serial and mac address. This is because when we recieve new machines, typically 40 at a time, I use ipxe to boot and then enter these details into a new machine database.

I must enter the ipxe shell to type show net0/mac and show serial. To be easier it would be useful to be displayed on the ipxe menu itself, or have a submenu to show this info.

Preferably if it could be displayed underneath the menu title directly, psedo code below, as I do not know the correct way to display undefined variables.

menu iPXE Boot Menu
text serial: $(serial)
text MAC: $(net0/mac)
Find all posts by this user
Quote this message in a reply
2019-02-08, 02:10
Post: #2
RE: how do I display the serial and mac address on ipxe main menu?
display it with
item --gap Serial: ${smbios/serial} mac last used nic: ${netX/mac}

But since you want to save it in a database - just send it to the database with a serverside script that you post to with http.

Use GitHub Discussions
VRAM bin
Visit this user's website Find all posts by this user
Quote this message in a reply
2019-02-10, 20:59
Post: #3
RE: how do I display the serial and mac address on ipxe main menu?
Thanks that was useful.
I'll look at pushing info with a http post.
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 3 Guest(s)