Operating System - HP-UX
1830899 Members
2800 Online
110017 Solutions
New Discussion

Performance Monitor Testing Script

 
SOLVED
Go to solution
Brent W. Moll
Advisor

Performance Monitor Testing Script

Does anyone have a script which will max out CPU to 100% then can be stopped?

We are testing out a product called Tivoli, which the company wants to use for system monitoring, and I want to run this on a test server to generate alarms in Tivoli.

Thank you :)
5 REPLIES 5
Christian Gebhardt
Honored Contributor

Re: Performance Monitor Testing Script

Hi
what Monitor in Tivoli do you use?
You can define several trigger values to create events in tivoli so why not sending events at cpu utilization of 0%?

Chris
S.K. Chan
Honored Contributor

Re: Performance Monitor Testing Script

Monitoring tool like Tivoli should have the flexibility of setting the threshold value for the parameter it is monitoring, just like HP's own suite of Openview applications. I don't see why you need to bring the CPU utilization up to 100% to test this.
James R. Ferguson
Acclaimed Contributor
Solution

Re: Performance Monitor Testing Script

Hi:

You can run one or more of something like this:

#!/usr/bin/sh
while true
do
let I=I+1
done

A Control_C will kill the script.

Regards!

...JRF...
Brent W. Moll
Advisor

Re: Performance Monitor Testing Script

Thank you all for your assistance :)

Regards

Brent
James Murtagh
Honored Contributor

Re: Performance Monitor Testing Script

Hi Brent,

Find out you CPU clock speed :

# echo itick_per_tick/D|adb -k /stand/vmunix /dev/kmem
itick_per_tick:
itick_per_tick: 2360000

Then write a short C script that does no IO and set the loop ~= CPU ticks :

main()
{
int i;
int j = 0;

for(i=0;i<=236000000;i++)
j =+ i;
}

This should do the trick and will finish after a few seconds.

Cheers,

James.