I am using some linux machines that have had their MAC address changed. I would like to be able to read it back with a shell script.
Is the original MAC address stored anywhere except the sticker on the box? How do I bring back the original hardware address?
you can check you
dmesg
logs it will report the hardware MAC address as seen on boot.on one of my boxes the output looks like:
what you are interested in is the
node addr 00:21:9b:a0:b7:cc
bit at the endMight be on the physical card, or etched onto the motherboard. I doubt you can access it from a script however.