GREP DOES JOB...Ethernet interface speed (cli on 4.0f)

From: Harris, Gary L. (HarrisGa@umsystem.edu)
Date: Thu Dec 19 2002 - 08:35:39 EST


Thanks to Phil. grep did the job.

-----Original Message-----
From: Brown, Phillip
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
what you might see:

selecting 10Base2 (BNC) port == 10Base2 is BNC (Thin)
selecting 10Base5 (AUI) port == 10Base5 is AUI (Thick)
selecting 10BaseT (UTP) port: half duplex == 10BaseT is Twisted-Pair

>From the console:

P00>>>set ewa0_mode
bad value - valid selections:
        Twisted-Pair
        Full Duplex, Twisted-Pair <== 10BaseT/Twisted-pair
        AUI <== Thick
        BNC <== Thin
        Fast
        FastFD (Full Duplex)
        Auto-Negotiate
                  
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
Subject: SUMMARY: Ethernet interface speed ?
From: Pascal Robert <probert@xxxxxxxxxx>
Date: Wed, 27 Feb 2002 09:10:18 -0500

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



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