Solaris 10 Ethernet & Serial Board Details
On Solaris 10 x86 Machine with update 2 OS Version
Is there any command or way to get Hardware Details like
Ethernet Board & Serial Board, I used prtconf -V | grep -i nge
to get Network details but i could not find any way to get External Ethernet Board vendor or ethernet board name
Similar is the case with Serial Board
Please update if any one has details on this issue
Moreover update 2 OS version doesnt have prtdiag support
# 2
Thanks for Quick reply
I tested the same binary but it doesnt give me complete information as prtdiag used to give, Please find the below written script to check ethernet information
can any one help me to achieve same as this
::::::::::::Script:::::::::
TESTSTATUS=0
searchString="(network-pci108e,abba)|(network-pci100b,35)"
nbslotstr=`/usr/platform/`uname -m`/sbin/prtdiag | /bin/egrep $searchString | /bin/awk '{print $4}' | wc -l`
nbslot=`expr $nbslotstr`
if [ $nbslot -eq 0 ]
then
TESTSTATUS=2
Err "Extra Ethernet board is not installed."
else
if [ $nbslot -eq 1 ]
then
searchEthernetstr=`/usr/platform/`uname -m`/sbin/prtdiag | /bin/grep network-pci108e,abba | /bin/awk '{print $4}' | wc -l`
searchAltEthernetstr=`/usr/platform/`uname -m`/sbin/prtdiag | /bin/grep network-pci100b,35 | /bin/awk '{print $4}' | wc -l`
searchEthernet=`expr $searchEthernetstr`
searchAltEthernet=`expr $searchAltEthernetstr`
if [ $searchEthernetstr -eq 1 ]
then
EthernetBoardName=X3150A
EthernetBridge=network-pci108e,abba
EthernetSlot=0
fi
if [$searchAltEthernetstr -eq 1 ]
then
EthernetBoardName=X4150A-2
EthernetBridge=network-pci100b,35
EthernetSlot=0
fi
else
EthernetBoardName=X2222A
fi
fi
Actually we use 2 ethernet cards and we detect on which ethernet card and slot our system is correct and using this script we check the same thing
Please help me out in completion