Is there anyway to show a registered computers mac address in the BES Console? It would also be handy to then create a custom report showing username,ip address and mac address. Any help is much aprreciated.
I’m looking at creating a retrieved property that will report the mac address of the active nic regardless of the OS…which means including Windows 9X pc’s. I see that the “mac addresses of adapters of network” will work for all nics on XP, 2000, 2003…but not 9X.
For Windows 9X I’ll use the following which is the MAC address from DHCP on our 9X pc’s
Q: (if (exists (value “HardwareAddress” of key “HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\VxD\DHCP\DhcpInfo00” of registry)) then (value “HardwareAddress” of key “HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\VxD\DHCP\DhcpInfo00” of registry as string) else (“n/a”))
A: 000103240e15
Just wondering how I screen out only the active mac in the XP/2000/2003’s. I don’t want to pull multiples on pc’s with more than one nic…
Is there a way to query ONLY the primary MAC address on windows machines? In a dos prompt typing ipconfig /all will return all MAC addresses, but the primary, hardwired NIC is always listed first, even if not in use. Is there a way to have BigFix hone in on this NIC only?
This works great with Windows boxes, but we have a bunch of SLED 10 boxes (and other linux flavors) that report the result as . Is there anything that works with inspectors on linux boxes, or will we have to do something with writing the results of ifconfig to a file and reading it? Thanks.
EDIT:
We managed to figure out that the following relevance will retrieve the MAC address on a linux box:
mac addresses of ip interfaces of network
While we were able to get your code from the previous post to work with Windows, when modifying to use the above code, it did not work.
What we ended up with was this:
if name of operating system as lowercase starts with
"win" then mac addresses of adapters of network
else mac addresses of ip interfaces of network
This works for 99% of what we do since almost all of our boxes only have one interface, though it would be nice to know if linux could figure out the “primary” MAC address as well.