Looking for some sample script [message #203062] |
Mon, 13 November 2006 14:46 |
roopla
Messages: 52 Registered: May 2006
|
Member |
|
|
I am looking for some sample unix script to check available/used space on all DB mount points periodically. I would appreciate If anybody has it
Thanks
|
|
|
|
|
Re: Looking for some sample script [message #203080 is a reply to message #203066] |
Mon, 13 November 2006 16:28 |
roopla
Messages: 52 Registered: May 2006
|
Member |
|
|
Thanks Mahesh
I am trying to display output of df -h command in a format of fixed length of each field of each record. I am using awk to display each field, but I am not able to align properly if there is any big string appears on filesystem field
Please see the following output: See first 3 records are fine, but last two records are not aligned properly due to large string under filesystem. How can fix it in awk using fixed length column width
Filesystem size used avail capacity Mounted on
/dev1/td/dsk1/d1 19G 3.7G 15G 20% /
/tproc 0K 0K 0K 0% /tproc
/dev/md1/dsk1/d4 14G 2.4G 12G 17% /t1t23u27
/dev1/tvx/tdask/oracle1g/oraclevg 30G 2.6G 27G 10% /ttrso9017/u01
|
|
|
|
|