How to figure out the state of a network link ...

From: Thomas Leitner (tom@radar.tu-graz.ac.at)
Date: Thu Apr 10 2003 - 07:27:27 EDT


Hi,

I need to write a script which monitors the state of various network
links. I have an ee0 and an fta0 and see the "link up" and "link down"
messages in /var/adm/messages when the cable is plugged in and unplugged.

How can I detect the current state of the network link on an arbitrary
network interface (like ee0 or fta0). I've already searched the list
archives and Google but did not find any hint about that. If all else
fails, is this possibly available via SNMP?

BTW: this is for Tru64 4.0g!

Thanks // Tom



This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 10:49:15 EDT