Sponsored Content
Top Forums Shell Programming and Scripting Help on shell script conditional execution when CPU Idle > 60% Post 302406297 by jim mcnamara on Monday 22nd of March 2010 01:26:57 PM
Old 03-22-2010
What OS do you have? Some of the format of command output can vary by system.
Plus some systems have commands that give cpu utilization.
 

10 More Discussions You Might Find Interesting

1. Solaris

CPU idle

hi when should we consider that CPU is loaded? When it is 100% idle or 0%idle?? tx (4 Replies)
Discussion started by: melanie_pfefer
4 Replies

2. HP-UX

sar output gives 98% idle CPU

Dear All, Our HPUX 8 GB 8CPU database server is behaving abnormally for the last 4+ weeks. I have generated a sar output and it is here- 11:46:52 %usr %sys %wio %idle 11:46:53 1 1 6 92 11:46:54 0 1 0 99 11:46:55 0 1 0... (3 Replies)
Discussion started by: Ashrunil
3 Replies

3. UNIX for Dummies Questions & Answers

CPU 0% idle - how do I find what was running?

Hi, I checking yesterday's SAR logs for one of our servers and it was showing that utilisation was down to 0% for 10 minutes at 2am. We're unaware of any jobs running at this time so need to find out which process caused this spike. Is there anything built into SAR (or does anything else exist)... (11 Replies)
Discussion started by: dlam
11 Replies

4. Shell Programming and Scripting

unix script for conditional execution

Below is my shell script. I am trying to execute two different BTEQ scripts depending on the day of the week. So on a saturday I will execute a certain BTEQ script and on other weekdays I will run the other script. #!/bin/ksh dt=`date +"%a"` if then bteq > final_output <<- EOF .run... (3 Replies)
Discussion started by: Mihirjani
3 Replies

5. Shell Programming and Scripting

How to get the information about cpu idle from top command?

I am using Ubuntu 9.04. I want to write a shell script to get the information about cpu idle from top command at the real time when i call it, compare cpu idle with 20 (20%), if cpu idle > 20 exit 1, vice versa exit 0. Anybody can help me to resolve it ? Thanks alot. (7 Replies)
Discussion started by: huyquocnguyen
7 Replies

6. Solaris

top is showing 0% cpu Idle

What should we do if we show a 0% cpu idl on top? (5 Replies)
Discussion started by: Pouchie1
5 Replies

7. Solaris

Why CPU idle 0 process nohub lose

Hello Solaris 8 when CPU idle 0 . why nohub process lose ? Thank (1 Reply)
Discussion started by: ppmanja
1 Replies

8. UNIX for Advanced & Expert Users

idle% cpu and run queue

Hi Everybody, Can anybody explain how CPU idle% is about 50%, but runq-sz more than 1? sar from Solaris 10: 00:00:05 %usr %sys %wio %idle 17:00:08 27 12 0 61 17:20:05 40 15 0 45 17:40:05 27 12 0 61 18:00:05 23... (2 Replies)
Discussion started by: sant
2 Replies

9. Shell Programming and Scripting

Conditional Execution of a Script.

I have a unix shell script Test.sh more Test.sh echo "Calling dbquery1.sh...." ./dbquery1.sh echo "Calling dbquery2.sh...." ./dbquery2.sh more dbquery1.sh sqlplus -s user1/password1@DB_SID @/tmp/storedprocedures/Hello.rcp I run Test.sh However, I do not want dbquery2.sh to be... (3 Replies)
Discussion started by: mohtashims
3 Replies

10. UNIX for Dummies Questions & Answers

Idle Process Exhausting CPU

I noticed when having some trouble with code I was testing that the CPU was becoming exhausted and I would have to reboot. After rebooting a couple times I decided to check for other problems before trying my code again. That's when I noticed that the CPU with the idle process was through the roof:... (5 Replies)
Discussion started by: Azrael
5 Replies
ppu(5)								File Formats Manual							    ppu(5)

NAME
ppu - Pay per use software for HP-UX DESCRIPTION
Pay per use (PPU) is a program under which customers pay only for computing capacity that they use. The PPU software provides services for metering resource utilization on supported HP systems. Depending on the type of contract a PPU system is under, utilization can be either of the actual percentage utilization of each core, or a count of the number of active cores in the system. The PPU software communicates with a utility meter to report utilization data. The utility meter in turn transmits the utilization data to HP for proper billing. PPU systems must be configured to use a utility meter. Utility meter configuration is accomplished using the command (see ppuconfig(1M)). The data that is sent to HP is aggregated and sent to billing; it is also posted on the Utility Pricing Solutions portal for viewing at http://www.hp.com/go/payperuse. PPU can be run in an HP Integrity Virtual Machines environment (HPVM). In this case, the usage information for billing purposes is still the overall usage for the VM Host. However, you can examine the usage report at the portal to see a detailed breakdown of the usage for each virtual machine (also called a "guest"). In an HPVM environment, PPU needs to be installed and configured only on the VM Host, not on the guests. The command will report an error if invoked on a VM guest. For more information see the Pay per use User's Guide located at /usr/share/doc/PayPerUseUserGuide.pdf. SEE ALSO
ppud(1M), ppuconfig(1M) ppu(5)
All times are GMT -4. The time now is 10:17 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy