[COLUG] Testing Cat5e
Rob Funk
rfunk at funknet.net
Tue Jan 29 13:31:17 EST 2008
William Yang wrote:
> 1. Set up the box you want to set up as 10.1.1.1/30.
> 2. Set up a laptop at 10.1.1.2/30.
> 3. Make sure 10.1.1.1 will respond to ICMP echo requests.
> 4. Start a constant ping of 10.1.1.1 from the *laptop*.
> 5. Check individual patch ports/cables on the laptop. Give 5-10
> seconds per cable end.
This reminds me of a script I wrote long ago that could be helpful in this
sort of situation:
#!/usr/bin/perl
# sping - ping with an audible sound for each echo-reply
$play = "/usr/bin/play";
# omitting the part where I listed a bunch of soundfiles
# and picked one randomly -- just pick a good one here.
$soundfile = "/usr/share/sounds/pop.wav";
$ping = "/bin/ping";
@args = @ARGV;
open (PING, "$ping @args |") or die "Can't ping @args\n";
select STDERR; $|=1; select STDOUT;
$|=1;
while (<PING>) {
print;
if (/ bytes from /) {
system($cmd) and printf("%c", 7); # beep if the play fails
}
}
--
==============================| "A microscope locked in on one point
Rob Funk <rfunk at funknet.net> |Never sees what kind of room that it's in"
http://www.funknet.net/rfunk | -- Chris Mars, "Stuck in Rewind"
More information about the colug432
mailing list