SUMARY-2 how to discover the hardware pluged on to my sun machines

From: W.L.Alsemgeest (W.L.Alsemgeest@tpgpost.nl)
Date: Fri May 16 2003 - 09:18:13 EDT


Dear Admins,

Here is the summary about how to know what ammount and type of disk's are
connected to your solaris box:

Perform a ' echo | format '
In this output you can see things as
# /usr/bin/echo | /usr/sbin/format
Searching for disks...done

AVAILABLE DISK SELECTIONS:
       0. c0t0d0 <SUN18G cyl 7506 alt 2 hd 19 sec 248>
          /sbus@2,0/SUNW,socal@d,10000/sf@0,0/ssd@w2100002037d82425,0
       1. c0t1d0 <SUN18G cyl 7506 alt 2 hd 19 sec 248>
          /sbus@2,0/SUNW,socal@d,10000/sf@0,0/ssd@w2100002037bda39a,0
       2. c1t1d0 <drive not available: formatting>
          /sbus@2,0/SUNW,socal@d,10000/sf@1,0/ssd@w50020f2300005395,0
       3. c1t1d1 <drive not available: formatting>
          /sbus@2,0/SUNW,socal@d,10000/sf@1,0/ssd@w50020f2300005395,1
       4. c5t4d0 <SUN18G cyl 7506 alt 2 hd 19 sec 248>
          /sbus@6,0/SUNW,socal@d,10000/sf@0,0/ssd@w2100002037d85ec3,0
       5. c5t5d0 <SUN18G cyl 7506 alt 2 hd 19 sec 248>
          /sbus@6,0/SUNW,socal@d,10000/sf@0,0/ssd@w2100002037bd93e3,0
       6. c6t2d0 <SUN-T300-0116 cyl 34530 alt 2 hd 72 sec 128>
          /sbus@6,0/SUNW,socal@d,10000/sf@1,0/ssd@w50020f2300000bfe,0
       7. c6t2d1 <SUN-T300-0116 cyl 34530 alt 2 hd 72 sec 128>
          /sbus@6,0/SUNW,socal@d,10000/sf@1,0/ssd@w50020f2300000bfe,1
Specify disk (enter its number): Specify disk (enter its number):

Lind 6. and 7. tel us that there is a T3 conncted to hour box.
Now perform a telnet to this device and perform a 'fru list'

If the output of ' echo | format ' is like
AVAILABLE DISK SELECTIONS:
       0. c0t0d0 <SUN18G cyl 7506 alt 2 hd 19 sec 248>
          /pci@1f,4000/scsi@3/sd@0,0
       1. c0t1d0 <SUN18G cyl 7506 alt 2 hd 19 sec 248>
          /pci@1f,4000/scsi@3/sd@1,0
       2. c1t0d0 <Symbios-StorEDGEA1000-0301 cyl 25849 alt 2 hd 64 sec 64>
          /pseudo/rdnexus@1/rdriver@0,0
Specify disk (enter its number): Specify disk (enter its number):

Than line 2 tell's us that there is a A1000 connected.
Now you can perform
val=$(/usr/sbin/osa/healthck -a | grep cl | awk -F: '{print $1}')
/usr/sbin/osa/drivutil -i $val

In the other cases:
A s1 is just u scsi disk and can be seen as a scsi disk with ' echo | format
'

boot -r was no option. The system must be on line 7 x 24 hours
iostat -E (or nE) give's the total of disk space of the disk in the T3 and
not the type of disk's and there size.
cfg2html (script downloadable freshmeat.net gave less information about the
disk than my script ang gave a lot of info I did not needed
explorer output gave the same info as iostat -nE and 'echo | format'

Thanks all for your help.

Greetings,
Wim Alsemgeest

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:25 EDT