The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Operating Systems > SUN Solaris
.
google unix.com



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

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-02-2006
hcclnoodles hcclnoodles is offline
Registered User
  
 

Join Date: Mar 2002
Posts: 272
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
  #2 (permalink)  
Old 10-02-2006
reborg's Avatar
reborg reborg is offline Forum Staff  
Administrator
  
 

Join Date: Mar 2005
Location: Ireland
Posts: 4,245
try 'man ndd'
  #3 (permalink)  
Old 10-02-2006
hcclnoodles hcclnoodles is offline
Registered User
  
 

Join Date: Mar 2002
Posts: 272
thanks reborg ....i checked it and in case anybody else has the same question the answer is



Code:
ndd -get /dev/hme0 link_speed

replacing hme0 with whatever your nics called

cheers
  #4 (permalink)  
Old 10-02-2006
kwachtler kwachtler is offline
Registered User
  
 

Join Date: Sep 2006
Posts: 15
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.
  #5 (permalink)  
Old 10-02-2006
kwachtler kwachtler is offline
Registered User
  
 

Join Date: Sep 2006
Posts: 15
Deleting post.

Last edited by kwachtler; 10-02-2006 at 11:55 AM.. Reason: Deleting post
  #6 (permalink)  
Old 10-02-2006
kwachtler kwachtler is offline
Registered User
  
 

Join Date: Sep 2006
Posts: 15
Deleting post. kw

Last edited by kwachtler; 10-02-2006 at 11:54 AM.. Reason: deleting post. kw
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 02:37 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0