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.
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.
