RE: UNIX question

RE: UNIX question

 

  

df -k | awk '{total += $3}; END {print "total megabytes being used is ", total / (1024)}'
df -k | awk '{total += $3}; END {print "total gigabytes being used is ", total /(1024 * 1024)}'


-----Original Message-----
From: BRoussel
[mailto:oracledba-ezmlmshield-x39812392.[Email address protected]
Sent: Thursday, October 27, 2005 3:57 PM
To: LazyDBA Discussion
Subject: UNIX question


Hi DBAs,

It is a unix question, I would like to code a command that will give
me the total of disk space available on the server when I do a 'dfm'
command on the column 'Free MB'.

Filesystem Total MB Used MB
Free MB %Used Mounted
/dev/vx/dsk/oracledg/u24_vol 34518 26593
7863 78% /u24
/dev/vx/dsk/gbgpdda0_oradg/u30_vol 34507 25411 9025
74% /u30
/dev/vx/dsk/oracledg/u26_vol 34518 25164
9280 74% /u26
/dev/vx/dsk/oracledg/u40_vol 17259 12290
4891 72% /u40
/dev/vx/dsk/gbgpdda0_oradg/u31_vol 34507 24661 9768
72% /u31
/dev/vx/dsk/oracledg/u25_vol 34515 24396
10039 71% /u25
/dev/vx/dsk/oracledg/u34_vol 34515 23432
10909 69% /u34

Thanks,

Bruno



--------
website: http://www.LazyDBA.com
Please don't reply to RTFM questions
Oracle documentation is here: http://tahiti.oracle.com
To unsubscribe: see http://www.lazydba.com/unsubscribe.html
To subscribe: see http://www.lazydba.com
By using this list you agree to these terms:http://www.lazydba.com/legal.html

Oracle LazyDBA home page