Hi, FreeBSD Gurus!
How to flash LEDs on copper ETH RJ-45 NIC's port by shell script?
I need to physically identify certain port on back of my servers with a lot of NICs each of them have 2-4 ETH ports.
For now I find this solution (on StackExschange, not tested) but may be You propose a much better way than just text on screen and playing with cable jack:
Ideal would be solution where script give me list of NICs interfaces WITH their state (UP/DOWN, ACTIVE), speed and IP, and waiting to interface name entering to 7-10s blinking by one of LED.
(Of course in case when port active and sending/receiving data, script must using other that already blinking LED...)
Thank You so much for detailed explanation.
How to flash LEDs on copper ETH RJ-45 NIC's port by shell script?
I need to physically identify certain port on back of my servers with a lot of NICs each of them have 2-4 ETH ports.
For now I find this solution (on StackExschange, not tested) but may be You propose a much better way than just text on screen and playing with cable jack:
Perl:
use strict;
my $intf = "igb0";
while (1) {
foreach my $state (qw/up down/) {
system("ifconfig $intf $state\n");
sleep 3;
}
}
Ideal would be solution where script give me list of NICs interfaces WITH their state (UP/DOWN, ACTIVE), speed and IP, and waiting to interface name entering to 7-10s blinking by one of LED.
(Of course in case when port active and sending/receiving data, script must using other that already blinking LED...)
Thank You so much for detailed explanation.
Last edited by a moderator: