From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Harris, Gary L." Newsgroups: gmane.os.tru64.managers Subject: GREP DOES JOB...Ethernet interface speed (cli on 4.0f) Date: Thu, 19 Dec 2002 07:35:39 -0600 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <85306A82FC614C4A9B1080CF305C691C5B8012@um-mailnode1.um.umsystem.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1040304942 28609 80.91.224.249 (19 Dec 2002 13:35:42 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 19 Dec 2002 13:35:42 +0000 (UTC) Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.20.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 18P0pw-0007RI-00 for ; Thu, 19 Dec 2002 14:35:40 +0100 Original-Received: (qmail 27319 invoked by uid 5); 19 Dec 2002 13:35:56 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 27302 invoked by uid 49493); 19 Dec 2002 13:35:56 -0000 Original-Received: from HarrisGa@umsystem.edu by sws1 by uid 49491 with qmail-scanner-1.14 (clamscan: 0.54. spamassassin: 2.50-cvs. Clear:SA:0(-0.1/5.0):. Processed in 0.403217 secs); 19 Dec 2002 13:35:56 -0000 Original-Received: from unknown (HELO emroute1.cind.ornl.gov) (160.91.4.119) by 0 with SMTP; 19 Dec 2002 13:35:55 -0000 Original-Received: from emroute1.cind.ornl.gov (localhost [127.0.0.1]) by emroute1.cind.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0H7D00MS9CFO38@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 19 Dec 2002 08:35:55 -0500 (EST) Original-Received: from um-msxproto2.um.umsystem.edu (um-msxproto2.um.umsystem.edu [207.160.156.152]) by emroute1.cind.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0H7D0089ECFF5B@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 19 Dec 2002 08:35:40 -0500 (EST) Original-Received: from um-mailnode1.um.umsystem.edu ([207.160.156.154]) by um-msxproto2.um.umsystem.edu with Microsoft SMTPSVC(5.0.2195.5329); Thu, 19 Dec 2002 07:35:39 -0600 Original-To: "Tru64-Unix-Managers \(E-mail\)" X-MIMEOLE: Produced By Microsoft Exchange V6.0.6249.0 Thread-Topic: GREP DOES JOB...Ethernet interface speed (cli on 4.0f) Thread-Index: AcKnY4Sd9jw2pXDOSpq/w60G6KQNWA== content-class: urn:content-classes:message X-MS-Has-Attach: X-MS-TNEF-Correlator: X-OriginalArrivalTime: 19 Dec 2002 13:35:39.0606 (UTC) FILETIME=[8513BF60:01C2A763] Xref: main.gmane.org gmane.os.tru64.managers:2778 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:2778 Thanks to Phil. grep did the job. -----Original Message----- From: Brown, Phillip=20 Sent: Wednesday, December 18, 2002 2:44 PM To: Harris, Gary L. Subject: RE: Ethernet interface speed (cli on 4.0f) - Wrapup You could try (though I didn't test for all the interfaces): # grep -E your_interface_expression /var/adm/messages | grep selecting | = tail -some_number For instance: # grep -E 'tu[0-1]|ee[0-1]' /var/adm/messages | grep selecting | tail -4 Now you just have to decode the speed types. Here are examples of=20 what you might see: selecting 10Base2 (BNC) port =3D=3D 10Base2 is BNC (Thin) selecting 10Base5 (AUI) port =3D=3D 10Base5 is AUI (Thick) selecting 10BaseT (UTP) port: half duplex =3D=3D 10BaseT is Twisted-Pair = >From the console: P00>>>set ewa0_mode bad value - valid selections: Twisted-Pair Full Duplex, Twisted-Pair <=3D=3D 10BaseT/Twisted-pair AUI <=3D=3D Thick BNC <=3D=3D Thin Fast FastFD (Full Duplex) Auto-Negotiate =20 Regards, Phil -----Original Message----- From: Harris, Gary L. Sent: Wednesday, December 18, 2002 1:11 PM To: Tru64-Unix-Managers (E-mail) Subject: Ethernet interface speed (cli on 4.0f) Greetings, A very basic question here: how can you get the current speed and = metrics for an Ethernet interface by command line on True64 4.0f ? Ifconfig does = not display. I saw a reply for 5.1a (below), but I need to do this on = 4.0f. Thanks. To: tru64-unix-managers@xxxxxxxx=20 Subject: SUMMARY: Ethernet interface speed ?=20 From: Pascal Robert =20 Date: Wed, 27 Feb 2002 09:10:18 -0500=20 God, that was fast :-) The command as noted by 5 persons is: # hwmgr -get attr -cat network -a name -a media_speed -a full_duplex