hmm... not ethernet devices, though. I could run 2 cards on a solaris box as le0 and hme0. Count the unique IPs with your perl code to get the number of devices set. Not sure how to do so in perl, but essentially grep for "*.*.*.*", read number of lines without a comment hash before that pattern. get your output by redirecting lines from that file into another.
I think I could tcl it, but not perl.
|