If you want the MAC addresses of all nic's in a machine, provided the machine is running an snmp agent, it's a simple walk:
snmpwalk -Ovq -v2c -c COMMSTRING IPAddr ifPhysAddress b8:ca:3a:ff:ff:f9 b8:ca:3a:ff:ff:fa b8:ca:3a:ff:ff:fb b8:ca:3a:ff:ff:fc b8:ca:3a:ff:ff:f9 0:a:f7:ff:ff:fd 0:a:f7:ff:ff:fe 0:a:f7:ff:ff:ff b8:ca:3a:ff:ff:f9 You can also get the DRAC MAC address via snmp as well: snmpget -Ovq -v2c -c COMMSTRING IPAddr_of_Host_OS_running_OMSA SNMPv2-SMI::enterprises.674.10892.1.1900.30.1.12.1.1.1 "FC F9 DD FF FF FF " The MAC address of a DRAC it's also available via omsa commands from the host OS. omreport chassis remoteaccess Remote Access Information Remote Access Device Device Type : iDRAC7 Enterprise iDRAC Ports : Present IPMI Version : 2.0 System GUID : Number of Possible Active Sessions : 5 Number of Current Active Sessions : 0 Enable IPMI Over LAN : No SOL Enabled : Yes MAC Address : FC-F9-DD-FF-FF-FF On Wed, Jan 4, 2017 at 2:32 AM, Klaus Steden <[email protected]> wrote: > > Hi there, > > I know that some vendors (e.g., SuperMicro) make it possible to fetch the > MAC address of a NIC that's attached to the motherboard, but does something > similar exist for Dell? I've been fishing around the Internet in vain to > find if there's some command or sequence of hex that I can use to fetch > that programmatically from our Dell machines. > > I know that there is a 'delloem mac' command supported by IPMI tool, but > when I try that, I get an error and not any kind of meaningful output: > > ipmitool -H <stuff> -U <stuff> -P <stuff> delloem mac > Error in getting MAC Address (Unknown (0x80)) > > I've also tried '-l lanplus' and I poked at ipmi-oem's commands as well, > but no dice. I can confirm that the machines I've poked at are online, as I > can do more mundane things like get power state, sensor data, etc.; I am > also able to fetch some of the system attributes like serial number using > raw hex sequences, but I am a bit lost when it comes to the appropriate > codes, and brute-forcing through canned sequences seems dangerous/a fool's > errand. > > Any help would be greatly appreciated! > > thanks, > Klaus > > _______________________________________________ > Linux-PowerEdge mailing list > [email protected] > https://lists.us.dell.com/mailman/listinfo/linux-poweredge > >
_______________________________________________ Linux-PowerEdge mailing list [email protected] https://lists.us.dell.com/mailman/listinfo/linux-poweredge
