mardi 6 décembre 2011

SYSTEM - Suivi Mémoire AIX -Process Oracle par version

#!/bin/bash
export TotMem=$(bootinfo -r)
ps uax | awk 'BEGIN { totv8=0; totv9=0; total=0; }  \
                    END { PctV9=totv9/ENVIRON["TotMem"]*100; \
                    PctV8=totv8/ENVIRON["TotMem"]*100; \
                    print "Total=" total, "Oracle9=" totv9 " (Soit " PctV9 "%)  Oracle8=" totv8 " (Soit " PctV8 "%)" } \
                    /ora92/ { totv9+=$6; } \
                    /ora81/ { totv8+=$6; } \
                    { total+=$6; }'

Aucun commentaire:

Enregistrer un commentaire