![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems . |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| sftp - permission setting check | jansat | Shell Programming and Scripting | 3 | 05-22-2008 10:02 PM |
| MTU setting - solaris 9 how to check?? | frustrated1 | SUN Solaris | 4 | 03-09-2008 03:14 AM |
| How to check Virtual NIC card speed on solaris | pray44u | SUN Solaris | 3 | 07-06-2006 09:14 PM |
| rhel 3 duplex setting | BG_JrAdmin | Red Hat | 2 | 06-04-2006 03:25 PM |
| how to check if sound card exists? | champion | UNIX for Dummies Questions & Answers | 1 | 11-11-2002 11:39 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Check Duplex setting of intrerface card ?
Hi there, On solaris 8, hat is the command to show the duplex and speed of the attached network cards ??
Alos , if its not what I want ....what command can i use to reconfigure it cheers |
|
||||
|
Here is a script to report interface status. It requires the name of the driver as a command line argument (qfe, hme, ce, ...) and reports on all instances of that driver.
HTML Code:
#!/bin/ksh
# set -x
#----------------------------------------------------
# ifstat.ksh
#
# Probe all instances of the named ethernet driver
# 25-Jul-05 ken wachtler
#----------------------------------------------------
Myname=`basename $0`
if [[ $# -lt 1 ]] ; then
echo "Usage: $Myname <driver_name>"
echo "Example: $Myname ce"
exit 1
fi
Drv=$1
case $Drv in
qfe) Link_speed=ifspeed ;; # bits/s
*) Link_speed=link_speed ;; # mega-bit/s
esac
kstat -m $Drv | egrep "instance|link_duplex|${Link_speed}|link_up|trunk_mode"
Last edited by kwachtler; 10-02-2006 at 11:52 AM.. Reason: Fixed missing 'kstat' line in script. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|