From: Khalid Benhayoune (benhayoune_k@YAHOO.FR)
Date: Thu Jan 16 2003 - 11:07:20 EST
Hi all,
I use finally the following script to estimate the amount of real memory used, I need to know your feedbacks about it :
#!/bin/ksh
typeset -i totmem=0
for a in `awk -F: '{print $1}' /etc/passwd`;do
totmem=$totmem+`svmon -U $a -n|head -n 4|tail -n 1|awk '{print $4}'`
done
echo "Total memory used at "`date +"%d/%m/%Y %H:%M:%S"`" is : "$totmem
exit 0
Thank you in advance.
K.Benhayoune
System engineer/DBA
Phone : 212-63-61-70-97
Address : Rue 76, n° 14, Bd Oum Rabia, EL OULFA - CASABLANCA
---------------------------------
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Testez le nouveau Yahoo! Mail
This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:16:29 EDT