Solaris Hardware

Scan for new devices	devfsadm
List all HW	cfgadm -val
List all disks	iostat -En
Total physical memory	prtconf grep Memory
Openboot version	prtconf -V
Processor info	psrinfo -v
Dump device	dumpadm
Swap devices	swap -l
Swap usage	swap -s

Add hardware

touch /reconfigure

reboot

Howto: Find Faulty Hardware

From the service processor

As admin:

sc> showfaults -v

As root:

-> show faulty

From console/ssh

View all faulty components:

# fmadm faulty

View detail, take UUID from above command:

# fmadm faulty -v -u {UUID}

Howto: Find/Recover Bad Sectors

Unmount the disk (if it is the root disk boot into single-user or off a CD)

# format {Select the disk}
format> analyze
analyze> read

Once complete use the blocks identified above (does not work on all controllers or disks)

format> repair
Enter absolute block number of defect: 100
Ready to repair defect, continue? y
Repairing block 100 ...ok.
format> q

Howto: fix prtdiag hangs

# svcadm -v disable svc:/system/picl:default

Wait for about a minute …

# svcadm -v enable svc:/system/picl:default

Howto: Scrub disks for decommission

Determine how many disks are connected to the system using the format command. It is not necessary to scrub the SAN drives, only the local drives. So from the the format command output make note of the local disk with the highest number.

Use the highest local disk number above as the DISK parameter N in the script below. Create and run the following script to scrub the local disks.

DISKS=N
while [ $DISKS -ge 0
do
echo disk>>/tmp/scrub
echo $DISKS>>/tmp/scrub
echo defect>>/tmp/scrub
echo primary>>/tmp/scrub
echo quit>>/tmp/scrub
echo analyze>>/tmp/scrub
echo purge>>/tmp/scrub
echo quit>>/tmp/scrub
echo defect>>/tmp/scrub
echo both>>/tmp/scrub
echo quit>>/tmp/scrub
echo analyze>>/tmp/scrub
echo purge>>/tmp/scrub
echo quit>>/tmp/scrub
(( DISKS -+ 1 ))
done
format -f /tmp/scrub

ILOM/ALOM

Backup config Login to ILOM CLI as root user

-> cd /SP/config
-> set passphrase={passphrase}
-> set dump_uri=scp://user:passwd@ipaddr/path_to/save_file

Restore config Login to ILOM CLI as root user

-> cd /SP/config
-> set passphrase={passphrase}
-> set load_uri=scp://user:passwd@ipaddr/path_to/save_file

Setting IP address for first time Connect via serial connection, login as root user

-> cd /SP/network
-> set pendingipdiscovery=static
-> set pendingipaddress=ip_address
-> set pendingipnetmask=ip_netmask
-> set prendingipgateway=ip_gateway
-> set commitpending=true