03-17-2006
145,
1
Join Date: Mar 2006
Last Activity: 26 January 2009, 11:26 AM EST
Posts: 145
Thanks Given: 0
Thanked 1 Time in 1 Post
sar will show you CPU, memory utilization, and disk I/O
(man sar)
$ df -k
will show you free blocks and percentage of mounted filesystems
for non-root users.
If you need to find out unallocated blocks of disks
(or if you also need to find out raw device allocations)
you would have to inspect the disks' vtocs,
which involves a bit of block arithmetics on your behalf
(best to be put in a script)
For instance you could have a glance at what your disks' vtocs look like
(but beware if you have alternate paths not to count twice)
by e.g.
# echo|format|sed 's,.*\(c[0-9]*t[0-9]*d[0-9]*\).*,/dev/rdsk/\1s2,'|grep dsk|xargs prtvtoc|more
Note, the 2nd slice of BSD like disk labels (Solaris inherited from BSD because it was an offspring) refers to the whole disk (man prtvtoc)
Last edited by RTM; 03-17-2006 at 11:53 AM..
Reason: Remove opinion of HPUX versus Solaris - see rule 8