SUMMARY (no sumary) how to discover the hardware pluged on to my sun machines

From: W.L.Alsemgeest (W.L.Alsemgeest@tpgpost.nl)
Date: Wed May 14 2003 - 07:36:05 EDT


Original question (see bottom):

I resieved three anwsers:

1)
You could check out the output of "prtpicl -v" to see what you can find
there !?
But prtpicl is not on my solaris 8 system

2)
maybe you can use some scripts of SunExplorer (SUNWexplo) and put some html
around
SUNWexplo dit not provide me with the requested info.

3)
Harald also wanted this info.

If still someone can give me a awnser, I will summary again.
For so far I can not say anything more than:
A T3 is present on this system, but i can't tell what kind of disk there are
in the T3 (or T5 or d1, or whatever)

Greetings,
Wim Alsemgeest

> Hi admins,
>
> I am writing a script that is making a Server Instalation Document of all
of
> the machines.
> Finding the harddisk's is not a problem.
> If a A1000 is connected is will also find it by performing:
>
> retval=$(echo | format | grep -c A1000 )
> if [[ ${retval} -gt 0 ]] ; then
> echo "<P>"
> echo "Er is een A1000 aangetroffen <BR><BR>"
> echo "val=\$(/usr/sbin/osa/healthck -a | grep cl | awk -F: '{print
$1}')
> <BR>"
> echo "for i in $( echo ${val} ) ; do /usr/sbin/osa/drivutil -i \${i} ;
> done<BR><BR>"
> echo "<PRE>"
> val=$(/usr/sbin/osa/healthck -a | grep cl | awk -F: '{print $1}')
> for i in $( echo ${val} )
> do
> /usr/sbin/osa/drivutil -i ${i}
> done
> echo "</PRE>"
> echo "</P>"
> fi
>
> This gives as output:
>
> Drive Information for cl201_002
> Location Capacity Status Vendor Product Firmware
> Serial
> (MB) ID Version
> Number
> [1,0] 17274 Optimal SEAGATE ST318203LSUN18G 034A
> LR72435100
> [2,0] 17274 Replaced SEAGATE ST318404LSUN18G 4203
> 3BT1GE6M00
> [1,1] 17274 Replaced SEAGATE ST318203LSUN18G 034A
> LRJ1334800
> [2,1] 17274 Optimal SEAGATE ST318203LSUN18G 034A
> LR79456900
> drivutil succeeded!
>
> So I know when a A1000 is connected and what type of disk's are used.
>
> Now I have a system with a RAID cabinet connected. With :
>
> retval=$(echo | format | grep -c RAID )
> if [[ ${retval} -gt 0 ]] ; then
> echo "<B>Er is een RAID Device aangetroffen </B><BR><BR>"
> echo " echo | format | grep RAID \n"
> echo "<PRE>"
> echo | format | grep RAID | tr "<" "(" | tr ">" ")"
> if [[ -f /opt/SUNWhwrdg/dptutil ]] ; then
> echo "\n/opt/SUNWhwrdg/dptutil -I | grep -v \"Must specify\" \n\n"
> /opt/SUNWhwrdg/dptutil -I | grep -v "Must specify"
> echo "\n\n/opt/SUNWhwrdg/dptutil -L all \n\n"
> /opt/SUNWhwrdg/dptutil -L all
> fi
> echo "</PRE>"
> fi
>
>
> i get the following output:
>
> Er is een RAID Device aangetroffen
>
> echo | format | grep RAID
>
> 4. c2t0d0 (DPT-RAID-10-SM02 cyl 34547 alt 2 hd 32 sec 128)
> /opt/SUNWhwrdg/dptutil -I | grep -v "Must specify"
> Inquiry Data
> --------------------------------------------------------------------------
-
> Manufacturer: DPT
> Model: PM3755U2B
> Rev: SM02
> Type: HBA
> /opt/SUNWhwrdg/dptutil -L all
> Address Type Manufacturer/Model Capacity Status
> --------------------------------------------------------------------------
-
> c2t0d0 Disk Drive (DASD) FUJITSU MAJ3182M SUN18G 17274MB Optimal
> c2t1d0 Disk Drive (DASD) FUJITSU MAJ3182M SUN18G 17274MB Optimal
> c2t2d0 Disk Drive (DASD) FUJITSU MAJ3182M SUN18G 17274MB Optimal
> c2t3d0 Disk Drive (DASD) FUJITSU MAJ3182M SUN18G 17274MB Optimal
> d0b2t0d0 Disk Drive (DASD) FUJITSU MAJ3182M SUN18G 17274MB Optimal
> d0b2t1d0 Disk Drive (DASD) FUJITSU MAJ3182M SUN18G 17274MB Optimal
> d0b2t2d0 Disk Drive (DASD) FUJITSU MAJ3182M SUN18G 17274MB Optimal
> d0b2t3d0 Disk Drive (DASD) FUJITSU MAJ3182M SUN18G 17274MB Optimal
> # b0 b1 b2 Controller Cache FW NVRAM Serial Status
> --------------------------------------------------------------------------
-
> d0 c1 c2 -- DPT PM3755U2B 64MB SM02 SUN V1.5 12-022888 Optimal
> Address Type Manufacturer/Model Capacity Status
> --------------------------------------------------------------------------
-
> c2t0d0 RAID 0 (Striped) DPT RAID-10 69098MB Optimal
> c2t0d0 RAID 1 (Mirrored) DPT RAID-1 17274MB Optimal
> c2t0d0 Disk Drive (DASD) FUJITSU MAJ3182M SUN18G 17274MB Optimal
> c2t1d0 Disk Drive (DASD) FUJITSU MAJ3182M SUN18G 17274MB Optimal
> c2t2d0 RAID 1 (Mirrored) DPT RAID-1 17274MB Optimal
> c2t2d0 Disk Drive (DASD) FUJITSU MAJ3182M SUN18G 17274MB Optimal
> c2t3d0 Disk Drive (DASD) FUJITSU MAJ3182M SUN18G 17274MB Optimal
> d0b2t0d0 RAID 1 (Mirrored) DPT RAID-1 17274MB Optimal
> d0b2t0d0 Disk Drive (DASD) FUJITSU MAJ3182M SUN18G 17274MB Optimal
> d0b2t1d0 Disk Drive (DASD) FUJITSU MAJ3182M SUN18G 17274MB Optimal
> d0b2t2d0 RAID 1 (Mirrored) DPT RAID-1 17274MB Optimal
> d0b2t2d0 Disk Drive (DASD) FUJITSU MAJ3182M SUN18G 17274MB Optimal
> d0b2t3d0 Disk Drive (DASD) FUJITSU MAJ3182M SUN18G 17274MB Optimal
> Address Max Speed Actual Speed Width
> --------------------------------------------------------------------------
-
> c2t0d0 40 MHz 20 MHz wide
> c2t1d0 40 MHz 20 MHz wide
> c2t2d0 40 MHz 20 MHz wide
> c2t3d0 40 MHz 20 MHz wide
> d0b2t0d0 40 MHz 20 MHz wide
> d0b2t1d0 40 MHz 20 MHz wide
> d0b2t2d0 40 MHz 20 MHz wide
> d0b2t3d0 40 MHz 20 MHz wide
>
>
>
> QUESTION?
>
> How do I know, without going to the hardware, what type of hardware this
is.
> Is it a T3????
> How can i discover the connected hardware?
>
> Greetings,
> Wim Alsemgeest The Netherlands

a

Wim Alsemgeest
Unix Specialist iPlanet

Phone +31 70 45 22 961
Fax +31 70 45 22 810

E-mail w.l.alsemgeest@tpgpost.nl
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:26:24 EDT