Monday, 29 September 2014

Checking duplex setting in solaris 8 and 9

For checking duplex setting in solaris 8 and 9

ifconfig -a" shows you the names of the interfaces, eg ge0.
to get the mode and speed you need the following commands:

ndd -set /dev/ge instance 0
ndd -get /dev/ge link_mode
ndd -get /dev/ge link_speed

if you want to check a qfe3 Interface just run

ndd -set /dev/eri instance 3
ndd -get /dev/eri link_mode
ndd -get /dev/eri link_speed


# ndd -get /dev/hme link_mode
Interpretation:
0 -- half-duplex
1 -- full-duplex

# ndd -get /dev/hme link_speed
Interpretation:
0 -- 10 Mbit
1 -- 100 Mbit
1000 -- 1 Gbit

Interpretation:
link_up - 0 down, 1 up
link_speed - speed in Mbit/s
link_duplex - 1 half duplex, 2 full duplex, 0 down

or

we can use direct this command in solaris 8 and 9
$ netstat -k ce | egrep 'link_speed|link_status|link_duplex'

***********************************************************
USE THIS COMMAND FOR CHECKING:-
ndd  /dev/bge0 \?

EX:-
Inter face qfe0

ndd -set /dev/qfe instance 0
ndd -set /dev/qfe adv_1000fdx_cap 0
ndd -set /dev/qfe adv_100fdx_cap 1
ndd -set /dev/qfe adv_100hdx_cap 0
ndd -set /dev/qfe adv_autoneg_cap 0

No comments:

Post a Comment