From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Thomas Leitner Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: How to figure out the state of a network link .... Date: Thu, 10 Apr 2003 15:41:12 +0200 (MET DST) Sender: tru64-unix-managers-owner@ornl.gov Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: main.gmane.org 1049982069 25073 80.91.224.249 (10 Apr 2003 13:41:09 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 10 Apr 2003 13:41:09 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Thu Apr 10 15:41:05 2003 Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.22.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 193cIb-0006W1-00 for ; Thu, 10 Apr 2003 15:41:05 +0200 Original-Received: (qmail 22155 invoked by uid 5); 10 Apr 2003 13:41:28 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 22146 invoked by uid 49493); 10 Apr 2003 13:41:28 -0000 Original-Received: from tom@radar.tu-graz.ac.at by sws1 by uid 49491 with qmail-scanner-1.14 (clamscan: 0.54. spamassassin: 2.50-cvs. Clear:SA:0(-1.7/5.0):. Processed in 0.418031 secs); 10 Apr 2003 13:41:28 -0000 Original-Received: from unknown (HELO emroute1.cind.ornl.gov) (160.91.4.119) by 0 with SMTP; 10 Apr 2003 13:41:27 -0000 Original-Received: from emroute1.cind.ornl.gov (localhost [127.0.0.1]) by emroute1.cind.ornl.gov (PMDF V6.2 #30669) with ESMTP id <0HD400BRMRCZA7@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 10 Apr 2003 09:41:25 -0400 (EDT) Original-Received: from mailrelay01.tugraz.at (mailrelay01.tu-graz.ac.at [129.27.3.7]) by emroute1.cind.ornl.gov (PMDF V6.2 #30669) with ESMTPS id <0HD400HEWRCRTD@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 10 Apr 2003 09:41:17 -0400 (EDT) Original-Received: from ds01.radar.tugraz.at (ns1.radar.tugraz.at [129.27.147.2]) by mailrelay01.tugraz.at (8.12.9/8.12.9) with ESMTP id h3ADfEI6022420 for ; Thu, 10 Apr 2003 15:41:14 +0200 (MEST) Original-Received: from al01.radar.tugraz.at (al01.radar.tugraz.at [129.27.147.21]) by ds01.radar.tugraz.at (Postfix) with ESMTP id 765EFCECE for ; Thu, 10 Apr 2003 15:41:13 +0200 (MET DST) Original-To: TRU64 Unix Managers X-Virus-Scanned: by amavisd-new Xref: main.gmane.org gmane.os.tru64.managers:3941 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:3941 Hi, Thanks everybody for your replies! Here's the (quite sad) summary. It's not possible under Tru64 4.x. Many people suggest to use ifconfig and check for UP or RUNNING flags but they really don't reflect the state of the link. I can even ping the IP address of the interface when the link is down!! Also none of the SNMP variables reflects the real link state. Below's the definitive answer from "Brusche, Johan" . Thanks // Tom ---------- Forwarded message ---------- Date: Thu, 10 Apr 2003 15:33:34 +0200 From: "Brusche, Johan" Tom, The only status SNMP can give you is the operator status, ie "ifconfig up/down". There is no software that monitors the health of your connections, except when you configure NetRain on redundant interfaces. On V5.x systems the niffd (netw interface fault finder daemon)is used for this task. Johan. -----Original Message----- From: Thomas Leitner [mailto:tom@radar.tu-graz.ac.at] Sent: donderdag 10 april 2003 13:27 To: TRU64 Unix Managers Subject: How to figure out the state of a network link ... 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