<body> <!-- www.mybloglog.com --> <script type='text/javascript' src='http://track3.mybloglog.com/js/jsserv.php?mblID=2008020909412660'></script> <!-- www.mybloglog.com -->

Unix command | Unix administrator

Unix | Linux | Solaris | Hp-Ux | Xen ... what the fsck, is sar. Why not use vmstat. Is prstat better than top? Bash, korn, c shell, sea shell? root passwd shadow, su - ssp. Time to mount the nfs and starts with UNIX hosting, much more easier on Linux hosting.

ndd Command

Thursday, December 20, 2007

1. To get NIC status, note root passwd password is needed

check the which instance of NIC port we are connecting to
# ndd –get /dev/qfe instance

change the NIC instance to port 0
# ndd -set /dev/qfe instance 0

check status
# ndd -get /dev/qfe link_status (0=down 1=up)
# ndd -get /dev/qfe link_mode (0=half duplex 1=full duplex)
# ndd -get /dev/qfe link_speed (0=10Mbps 1=100Mbps)

# ndd -get /dev/ce adv_autoneg_cap (check auto nego 0=false 1=true)
# ndd -set /dev/ce adv_autoneg_cap 1 (set autonego to true)

ndd help / to check option available with ndd command
# ndd –get /dev/qfe \?

Notes
for ce card use /dev/ce
for qfe card use /dev/qfe
for bge card use /dev/bge1 (instance 1, bge2 = instance2)

The configuration network card configuration file is at /kernel/drv/ce.conf if its is configured manually and forced to specific value.
posted by MML, 4:26 AM

0 Comments:

Add a comment