Filesystem
kbytes used avail %used
Mounted on
/dev/vg00/lvol3
1048576 921448 126968 88% /
/dev/vg00/lvol1
511672 58176 402328 13% /stand
/dev/vg00/lvol14
745472 242984 471103 34% /usr/ecc
/dev/vg00/lvol10
524288 372058 142735 72% /users
/dev/vg46_oracle/lvol_u5
/dev/vg46_oracle/lvol_u3
/dev/vg46_oracle/lvol_u1
/dev/vg00/lvol6
1048576 35776 1012800 3% /tmp
/dev/vg00/lvol9
3145728 33631 2925204 1% /sdump
/dev/vg00/lvol11
1048576 97898 891612 10% /perf_data
/dev/vg00/lvol12
524288 472488 48579 91% /fs_patrol
/dev/vg46_oracle/lvol_dbtuner
3129344 279490
2671797 9% /dbtuner
/dev/vg00/lvol13
204800 104707 93918 53% /ctmagent
/dev/vx/dsk/rootdg/stagingvol
512000
5898 474541 1% /staging_area
/dev/vx/dsk/dg_cnsdwh/vol_u01
/dev/vx/dsk/dg_cnsdwh/vol_u2cnsdwh
/dev/vx/dsk/dg_cnsdwh/vol_arch_cnsdwh
1048576
18964 965267 2% /arch_cnsdwh
/dev/vx/dsk/dg_cnsdwh/vol_export_cnsdwh
/dev/vx/dsk/dg_cnsdwh/vol_app_cnsdwh
512000
3104 477095 1% /app_cnsdwh
/dev/vx/dsk/dg_frtdp_fs/u2frtdp
409600
203627 193148 51% /u2frtdp
/dev/vx/dsk/dg_frtdp_fs/u2frtdp_exp
/dev/vx/dsk/dg_frtdp_fs/u2frtdp_arch
/dev/vx/dsk/dg_frtdp_fs/frtd
/dev/vx/dsk/dg_frtdp_fs/frtd_save
*** Dopo/After
Filesystem mbytes used (mb) avail (mb) %used Mounted on
==============================
======== =========
========== ======== =================
/dev/vg00/lvol3
1024 899.719
124.125 88% /
/dev/vg00/lvol1
499.68 56.8125
392.898 13% /stand
/dev/vg00/lvol8
4096 2698.48
1389.87 66% /var
/dev/vg00/lvol7
3072
1810.7
1251.5 59% /usr
/dev/vg00/lvol14
728
213.344
482.511 31% /usr/ecc
/dev/vg00/lvol10
512 364.597 138.209
73% /users
/dev/vg00/lvol6
1024
35.0625
988.938 3% /tmp
/dev/vg00/lvol9
3072 32.8428
2856.64 1% /sdump
/dev/vg00/lvol11
1024 113.595
853.848 12% /perf_data
/dev/vg00/lvol5
4096 2992.69
1094.73 73% /opt
/dev/vg00/lvol16
2048 1025.58
958.575 52% /nsr.NetWorker.local
/dev/vg00/lvol4
2048 1002.22
1038.98 49% /home
/dev/vg00/lvol12
512
461.414
47.4404 91% /fs_patrol
/dev/vg00/lvol13
200 102.253
91.7168 53% /ctmagent
/dev/vx/dsk/rootdg/stagingvol
512000 1310
478842 0% /staging_area
/dev/vx/dsk/dg_cnsdwh/vol_arch_cnsdwh
1048576
18964 965267
2% /arch_cnsdwh
/dev/vx/dsk/dg_cnsdwh/vol_app_cnsdwh
512000
3104
477095 1% /app_cnsdwh
/dev/vx/dsk/dg_frtdp_fs/u2frtdp
409600 203627
193148 51% /u2frtdp
*** Codice (può essere messo all'interno del ".profile" dell'utente oracle come funzione e lanciarla in sostituzione del bdf originale)
*** Code (you can put it inside".profile" of oracle user like a function and run it instead of original before command)
bdf |awk ' BEGIN {{printf "%-50s %10s
%12s %12s %10s %-20s\n", "Filesystem", "mbytes",
"used (mb)", "avail (mb)", "%used", "Mounted
on" }
{printf "%-50s %10s %12s %12s %10s %-20s\n",
"==============================", "========",
"=========", "==========" , "========",
"=================" }}
{ if ( ($1 !~ /^[0-9]/) &&
(NR > 1) && (length($2)!=0))
{printf
"%-50s %10s %12s %12s %10s %-20s\n", $1, $2/1024, $3/1024,
$4/1024, $5, $6 }
else if ( ($1 !~ /^[0-9]/)
&& (NR > 1) )
{printf
"%-51s", $1}
else if ( NR > 1 )
{printf "%10s %12s %12s %10s
%-20s\n", $1, $2, $3, $4, $5 }
}'
Nessun commento:
Posta un commento