5

I am generally familiar with hpacucli and hpasmcli but how do I determine in which slot a network card is installed? I need to be able to map to and from the slot and the MAC (and from there to the interface as Linux sees it), but SHOW SERVER only gives me the MACs of the onboard ports. Thanks!

Also I know the technique for remotely illuminating a drive light for the benefit of a technician in the datacentre for a hotswap - is there anything like this for network cards?

1 Answer 1

7

Similar to using the ID light identify a server or specific disk the ethtool utility has the -p switch:

-p --identify Initiates adapter-specific action intended to enable an operator to easily identify the adapter by sight. Typically this involves blinking one or more LEDs on the specific network port.

Alternatively the /sys directory under Linux will have the correct mapping to PCI ports (in this case two on-board NIC's and a second dual-port PCI card):

# find /sys | grep -e eth.*/address
/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/net/eth0/address
/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.1/net/eth1/address
/sys/devices/pci0000:00/0000:00:07.0/0000:03:00.0/net/eth2/address
/sys/devices/pci0000:00/0000:00:07.0/0000:03:00.1/net/eth3/address
2
  • 1
    Once you have the PCI address, you can get the slot from hplog. Thanks!
    – Gaius
    Commented Mar 7, 2014 at 11:12
  • 1
    @Gaius ethtool -i eth0 will show the PCIe-ID.
    – Nils
    Commented Dec 21, 2014 at 22:43

You must log in to answer this question.

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