1753779 Members
7888 Online
108799 Solutions
New Discussion юеВ

Re: I/O Slot usage

 
Lolupee
Regular Advisor

I/O Slot usage

is there a simple way of knowing which I/O slot is not used in those old servers e.g N-Class, L Class. or in general Servers that are not Cell based.

Equivalent of rad -q command.
4 REPLIES 4
RAC_1
Honored Contributor

Re: I/O Slot usage

The closest I can think of is ioscan -fun (usable devices)
There is no substitute to HARDWORK
Ninad_1
Honored Contributor

Re: I/O Slot usage

Check if this works for you fine.

ioscan -fn | grep "/[0-9][^.]*" | egrep -v 'disk|processor|memory|^target|tape|sctl|rmt|fcparray|fcpmux|fcpdev' > ioscan.out
Now from this iosca.out file see the entries for ba [local bus adapters] which are not followed by any cards entires.
e.g.
ba 12 1/8 lba CLAIMED BUS_NEXUS Local PCI Bus Adapter (782)
ba 13 1/10 lba CLAIMED BUS_NEXUS Local PCI Bus Adapter (782)
fc 3 1/10/0/0 td CLAIMED INTERFACE HP Tachyon TL/TS Fibre Channel Mass Storage Adapter

Here the slot 1/8 is vacant, whereas there is a HBA card in 1/10.

Hope this helps,
Ninad
Lolupee
Regular Advisor

Re: I/O Slot usage

Ninad,
Though this is not what I actually want, I still believe it would be better than nothing.

Thanks.

Lolu
Alzhy
Honored Contributor

Re: I/O Slot usage

IF you are running 11.11 (aka 11i), try the following script (save as say get_pci.ksh and make executable and run as root):

#!/bin/ksh
#
# Reports a server's/nPars PCI Map
#
ioscan -kf >/var/tmp/IOSCAN
IOFILE=/var/tmp/IOSCAN

print "PCI Slot Population Report"
echo "------- ------- --------------------------------------------------"
print "PCI HWPATH Card Description"
echo "------- ------- --------------------------------------------------"

rad -q|awk 'NR>3 {print $1,$2,$7}'|while read slot hwp occ;do
if [ $occ = "Yes" ];then
STR=$(grep " $hwp" $IOFILE|head -1)
set $STR
shift 6
while [ $# -ne 0 ];do
DESCR="$DESCR $1"
shift
done
print $slot $hwp $DESCR
DESCR=""
else
print $slot $hwp EMPTY
fi
done
Hakuna Matata.