Solaris Detecting Link failure

  • Follow


Hello all,

We are using a solaris machine with 5 interfaces. We want to detect
the physical link failure on any interface but even if I pull out the
cable my "ifconfig -a" always show "UP" and "RUNNING" but my
/var/adm/messages shows that the respective interface is down. Is
there is a way to detect this physical link down through any commands
?

Thanks in Advance.
0
Reply somu 4/1/2005 3:58:02 PM

Somu.l wrote:
> Hello all,
> 
> We are using a solaris machine with 5 interfaces. We want to detect
> the physical link failure on any interface but even if I pull out the
> cable my "ifconfig -a" always show "UP" and "RUNNING" but my
> /var/adm/messages shows that the respective interface is down. Is
> there is a way to detect this physical link down through any commands
> ?

For an hme:
# ndd -get /dev/hme link_status

Should be similar syntax for other Ethernet drivers.

------------------------------------------------------------------------
David Lawver, UW-Madison DoIT/POST            dmlawver@facstaff.wisc.edu
"Paranoia can reduce security." --Nick Maclaren

0
Reply David 4/1/2005 9:38:22 PM


Somu.l <somu.laxman@gmail.com> wrote:
> We are using a solaris machine with 5 interfaces. We want to detect
> the physical link failure on any interface but even if I pull out the
> cable my "ifconfig -a" always show "UP" and "RUNNING" but my
> /var/adm/messages shows that the respective interface is down. Is
> there is a way to detect this physical link down through any commands

hme0 is up :
$ kstat hme:0::link_up
module: hme                             instance: 0
name:   hme0                            class:    net
        link_up                         1

hme1 is down :
$ kstat hme:1::link_up
module: hme                             instance: 1
name:   hme1                            class:    net
        link_up                         0

Parsable output for all hme interfaces :
$ kstat -p hme:::link_up
hme:0:hme0:link_up      1
hme:1:hme1:link_up      0

etc...

  Scott.
0
Reply Scott 4/2/2005 3:16:10 AM

2 Replies
233 Views

(page loaded in 0.092 seconds)

Similiar Articles:













7/11/2012 10:11:05 AM


Reply: