06-12-2007
13,
0
Join Date: May 2007
Last Activity: 10 March 2008, 5:12 PM EDT
Posts: 13
Thanks Given: 0
Thanked 0 Times in 0 Posts
Here is an interesting idea...
Does anyone know how to test if an ethernet interface is alive, or accepting connections? Here is the scenario - I have rsc and sc console interfaces on some Suns. There are some sporadic vulnerability scans that send them out to lunch when they run the scans. I have to login to the host and reset the console cards with the software installed on the host, but if the host gets honked up it is the wrong time to find out if my console connection isn't working.
So, I've been thinking about a script that could just check to make sure all of my consoles are alive and if not, I can reset them before something happens. Like maybe
for $IP
do
$some_way_to_check_consoles
done
This would be cool to see, either sh, csh, ksh, whatever!
D