on 12-17-2011 6:20 AM
Dear Experts
I am using SAP Ecc6 ehp4 DB2 on HP-UX.
I have a requirement to calculate Maximum load on RAM CPU and other resources on Peak hours . when the maximum user will be connected, kindly guide me to full fill my requirement.
Thanks
Sadiq
I think OS06/ST06/OS07N or topas (AIX) like command at OS level can help.
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Deepak
Thanks for the reply
i created a script using VI Editor.
vi cpuram.sh
and written the line
#!/bin/bash
#This script is writen for the RAM And CPU utiligation check
while 1
do
for host in $(cat hostlist)
do
ssh username@$ "top -n 4">> outfile.$2.error_log
done
sleep 600
done
When i am executing its giving error.
./cpuram.sh
interpreter "/bin/bash" not found
file link resolves to "/usr/bin/bash"
sh: ./cpuram.sh: not found.
Please check and guide.
Thanks
Sadiq
> Thanks For the reply Can you please guide to check which shell is installed in my server.
> and how can i replace it.
login as <sid>adm and execute
echo $SHELL
I suggest you get a Unix guy to you to help you in adapting the scripts according to your needs.
Or simply use ST06 and see at which time of the day the max. memory and the max. cpu were used.
Markus
> Thanks Again. st06 is given for a hours and % of users my requirement is No of users and exact time.
And what do you do then with and information like
10:36:15 pm - 106 users - 14,748 GB RAM - CPU Load 3,8
What does this information tell you? on another day with other transactions this can be different. Usefull is usually only the max/peak usage which can be seen in ST06.
> For the root user
> # echo $SHELL
> /sbin/sh
The HP-UX bourne shell is very limited, I suggest you replace /bin/bash with /bin/ksh (Korn Shell).
Any further questions about how to write scripts should be addressed in a different channel since they are not really SAP related.
Markus
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.