Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

KSTAT - link_up and Network Connectivity

Status
Not open for further replies.

Stinney

IS-IT--Management
Nov 29, 2004
2,029
US
So if I use the command kstat -p :::link_up it reports:

ce:0:ce0:link_up 1
eri:0:eri0:link_up 1

I understand that 1 means the link is up and 0 is down. What is this actually reporting on. Is this the status of the NIC card itself, or the network connection to the NIC? So if I were to pull out the network cable on ce0 would it report at 0 down?

I'm looking for a command or tool that would show me the status of the NIC, errors or issues that the NIC might be bad.

We keep dropping our connection between this system and a data feed from another system. Our networking group sees no issues on the network anywhere. We've confirmed that the switch ports are hard coded to 100 Full as we need them to be and that switch ports show no errors.

So I'm also looking to somehow determine where the data/link is getting dropped.

Maybe running a traceroute periodically in a crontab?

- Stinney

Favorite all too common vendor responses: "We've never seen this issue before." AND "No one's ever wanted to use it like that before.
 
If the line status dropped or renegotiated, I believe it will spit up in /var/adm/messages as a link drop. You network guys should also be able to tell you if the last time the link status dropped.

BTW, if you are using TCP the outage (generally) of a link drop should not affect the data stream, although I can remember some flakier Sun systems in which moving a cable required a reboot.
 
Stinney,
You could try ifconfig for details of network connections:
ifconfig –a

ndd shows llink status, link mode and link speed :

ndd -get /dev/hme link_status
0 is down, 1 is link up

ndd -get /dev/hme link_mode
0=half duplex, 1=full duplex

ndd -get /dev/hme link_speed
0 = 10 Mb, 1 = 100 Mb

Hope it helps.
Mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top