Looking for a couple of terminal commands that i can use to get the following -

  • View domain name of current Windows AD a Mac is connected to

  • Network link speed of en0

  • Bios/EFI firmware date

  • OSX Software GUID (or some such identifier)

Any help would be greatly appreciated!!

  • 2
    man man > man -k <query>
    – klanomath
    Oct 10, 2017 at 15:46

3 Answers 3


Try system_profiler and sysctl.


The commands you are looking for in the order listed

  • To get the domain name, use uname -n. The -n flag will give you the node name on your network.

  • Use the command ifconfig en0 | grep media to print out information on the media of your selected interface.

  • You can use system_profiler SPHardwareDataType | grep -i "Version" to get you the current firmware/ROM versions.

  • If you are looking for info on the GPT partition map, use sudo gpt show diskX where X is the integer for the disk identifier

You can get more info on all of these commands by viewing their respective man pages (i.e. man ifconfig)

  • The last one is wrong. The GUIDs shown there are partition type UUIDs and aren't really related to OS X (software).
    – klanomath
    Oct 10, 2017 at 15:53
  • @4Maes- What specifically are you looking for when you say "OS X Software GUID"?
    – Allan
    Oct 10, 2017 at 16:05
  • Cheers for the replies. Looking for some type of unique identifier for the OS. i believe in Linux this is done with a GUID?
    – 4Maes
    Oct 11, 2017 at 12:25

Maybe something like-

 pkgutil --pkg-info com.apple.pkg.EmbeddedOSFirmware

for the firmware install date.

I'll leave the how to parse and convert the install time as an exercise for you.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .