Translation

The oldest posts, are written in Italian. If you are interested and you want read the post in English, please use Google Translator. You can find it on the right side. If the translation is wrong, please email me: I'll try to translate for you.

mercoledì, gennaio 13, 2016

bdf: output (ITA/ENG)

*** Prima/Before


Filesystem          kbytes    used   avail %used Mounted on
/dev/vg00/lvol3    1048576  921448  126968   88% /
/dev/vg00/lvol1     511672   58176  402328   13% /stand
/dev/vg00/lvol8    4194304 2762472 1423976   66% /var
/dev/vg00/lvol7    3145728 1854104 1281584   59% /usr
/dev/vg00/lvol14    745472  242984  471103   34% /usr/ecc
/dev/vg00/lvol10    524288  372058  142735   72% /users
/dev/vg46_oracle/lvol_u5
                   10485760 8632784 1838568   82% /u5
/dev/vg46_oracle/lvol_u3
                   6291456 5100904 1181264   81% /u3
/dev/vg46_oracle/lvol_u1
                   16138240 15446500  682275   96% /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/lvol5    4194304 3064512 1121000   73% /opt
/dev/vg00/lvol16   2097152 1048060  983587   52% /nsr.NetWorker.local
/dev/vg00/lvol4    2097152 1028928 1061280   49% /home
/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
                   6291456 5234274  991110   84% /u01
/dev/vx/dsk/dg_cnsdwh/vol_u2cnsdwh
                   19922944 18940800  966856   95% /u2cnsdwh
/dev/vx/dsk/dg_cnsdwh/vol_arch_cnsdwh
                   1048576   18964  965267    2% /arch_cnsdwh
/dev/vx/dsk/dg_cnsdwh/vol_export_cnsdwh
                   7340032 6327173  949616   87% /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
                   35651584 16370192 19132576   46% /u2frtdp_exp
/dev/vx/dsk/dg_frtdp_fs/u2frtdp_arch
                   106954752 22431256 83863368   21% /u2frtdp_arch
/dev/vx/dsk/dg_frtdp_fs/frtd
                   41943040 28735816 12978992   69% /frtd
/dev/vx/dsk/dg_frtdp_fs/frtd_save
                   2097152 1350771  699854   66% /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/vg46_oracle/lvol_u5                             10485760      8632784      1838568        82% /u5
/dev/vg46_oracle/lvol_u3                              6291456      5100904      1181264        81% /u3
/dev/vg46_oracle/lvol_u1                             16138240     15447823       681025        96% /u1
/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/vg46_oracle/lvol_dbtuner                         3129344       279490      2671797         9% /dbtuner
/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_u01                         6291456      5234274       991110        84% /u01
/dev/vx/dsk/dg_cnsdwh/vol_u2cnsdwh                   19922944     18940800       966856        95% /u2cnsdwh
/dev/vx/dsk/dg_cnsdwh/vol_arch_cnsdwh                 1048576        18964       965267         2% /arch_cnsdwh
/dev/vx/dsk/dg_cnsdwh/vol_export_cnsdwh               7340032      6327173       949616        87% /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                  35651584     16370192     19132576        46% /u2frtdp_exp
/dev/vx/dsk/dg_frtdp_fs/u2frtdp_arch                106954752     60979408     45616280        57% /u2frtdp_arch
/dev/vx/dsk/dg_frtdp_fs/frtd                         41943040     28517524     13190654        68% /frtd
/dev/vx/dsk/dg_frtdp_fs/frtd_save                     2097152      1350771       699854        66% /frtd_save



*** 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: