The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > 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
Network Solaris mass1123 SUN Solaris 2 05-31-2006 09:47 PM
Getting solaris on my network xtremepancakez SUN Solaris 1 04-30-2006 07:53 PM
Getting a solaris x86 box on my network. possuman72 SUN Solaris 1 07-17-2005 12:28 PM
putting a solaris box on my network possuman72 SUN Solaris 15 06-24-2005 07:05 PM
About Sun Solaris Network q30 UNIX for Advanced & Expert Users 2 12-02-2002 05:57 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 07-29-2004
Registered User
 

Join Date: Sep 2003
Location: Arlington, VA
Posts: 160
network on solaris

Withouth being physically at the server, is there a way to tell if the network cable is unplugged?
Reply With Quote
Forum Sponsor
  #2  
Old 07-29-2004
RTM's Avatar
RTM RTM is offline
Hog Hunter
 
Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
It might matter on the version of the OS, but the ndd command should work.

This line sets the device to look at to hme0
# ndd set /dev/hme instance 0

This line gets the status of the line. If it returns 0 it is down - if it returns 1 it is up.
# ndd get /dev/hme link_status


Also, if there is no cable plugged in, your system should be pushing a bunch of Link Down - cable problem? messages out to either console or /var/adm/messages.

Last edited by RTM; 07-29-2004 at 08:02 AM.
Reply With Quote
  #3  
Old 07-29-2004
Registered User
 

Join Date: Sep 2003
Location: Arlington, VA
Posts: 160
well not sure which device to use here is ifconfig -a

ifconfig -a
lo0: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
qfe0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet xxx.xxx.xxx.xxx netmask fffffe00 broadcast xxx.xxx.xxx.xxx
ether x:x:xx:xx:xx:xx

when i run

ndd set /dev/qfe instance 0
couldn't push module 'set', No such device or address
Reply With Quote
  #4  
Old 07-29-2004
RTM's Avatar
RTM RTM is offline
Hog Hunter
 
Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
You have to be root - that messags shows up if you are not root.
Reply With Quote
  #5  
Old 07-29-2004
Registered User
 

Join Date: Sep 2003
Location: Arlington, VA
Posts: 160
this worked

ndd -get /dev/qfe link_status
0


zero means down, does this mean my network cable is unplugged or can i start the qfe card?
Reply With Quote
  #6  
Old 07-29-2004
RTM's Avatar
RTM RTM is offline
Hog Hunter
 
Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
qfe0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4>

From what you put before, your qfe0 is up. There isn't much more you could do on the server. If you aren't getting the error messages I posted earlier, then you probably have a cable plugged in. It may be a bad port on the other side.
Reply With Quote
  #7  
Old 07-29-2004
Registered User
 

Join Date: Sep 2003
Location: Arlington, VA
Posts: 160
thanks buddy, i having operations check the link light, thanks!
Reply With Quote
Google The UNIX and Linux Forums
Reply

Tags
solaris

Thread Tools
Display Modes




All times are GMT -7. The time now is 10:17 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0