uname -m for the serial number
uname -M for the machine type and model
Articles hints,tips&tricks,howtos and guides related to UNIX System Administration
$cat /dev/null > fileor
$true > file
df -g | egrep -v "Filesystem|proc|tmp" | sed 's/\%//' | awk '$4 >= 90 {print $4 "%\t" $7}'
df -k | sed 1d | awk '$4>90 {print}'This works with Solaris and Linux
df -k | egrep -v "proc|fd|cdrom|mnttab|run|tmp|Filesystem" | sed 's/\%//' | awk '$5 >= 90 {print $5 "%\t" $6}'
dscli -hmc1 hmcip -user user -passwd password chsu -pwroff -dev IBM.2107-75DC710Power On
dscli -hmc1 hmcip -user user -passwd password chsu -pwron -dev IBM.2107-75DC710