Sponsored Content
Top Forums Shell Programming and Scripting Help on shell script conditional execution when CPU Idle > 60% Post 302406299 by pancona99 on Monday 22nd of March 2010 01:33:06 PM
Old 03-22-2010
SunOS 5.9 Generic_122300-33 sun4u sparc SUNW,Netra-T12
 

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
scds_hasp_check(3HA)					 Sun Cluster HA and Data Services				      scds_hasp_check(3HA)

NAME
scds_hasp_check - get status information about SUNW.HAStoragePlus resources that are used by a resource SYNOPSIS
cc [flags...] -I /usr/cluster/include file -L /usr/cluster/lib -l dsdev #include <rgm/libdsdev.h> scha_err_t scds_hasp_check(scds_handle_t handle, scds_hasp_status_t *hasp_status DESCRIPTION
The scds_hasp_check() function retrieves status information about SUNW.HAStoragePlus(5) resources that are used by a resource. This infor- mation is obtained from the state, online or otherwise, of all SUNW.HAStoragePlus resources on which the resource depends. This state is obtained by using the Resource_dependencies or Resource_dependencies_weak system properties that are defined for the resource. Resource type implementations can use scds_hasp_check() in VALIDATE and MONITOR_CHECK method callback implementations to determine whether checks that are specific to any file systems that are managed by SUNW.HAStoragePlus resources should be carried out. When the function succeeds, a status code is stored in hasp_status. This code can be one of the following values: SCDS_HASP_NO_RESOURCE Indicates that the resource does not depend on a SUNW.HAStoragePlus resource. SCDS_HASP_ERR_CONFIG Indicates that at least one of the SUNW.HAStoragePlus resources on which the resource depends is located in a different resource group. SCDS_HASP_NOT_ONLINE Indicates that a SUNW.HAStoragePlus resource on which the resource depends is not online on any potential primary node or zone. SCDS_HASP_ONLINE_NOT_LOCAL Indicates that at least one SUNW.HAStoragePlus resource on which the resource depends is online, but on another node or zone from which this function is called. SCDS_HASP_ONLINE_LOCAL Indicates that all SUNW.HAStoragePlus resources on which the resource depends are online on the node or zone from which this function is called. Note - The preceding status codes have precedence over each other in the order in which they appear. For example, if a SUNW.HAStoragePlus resource is not online and another SUNW.HAStoragePlus resource is online on a different node or zone, the status code is set to SCDS_HASP_NOT_ONLINE rather than SCDS_HASP_ONLINE_NOT_LOCAL. The scds_hasp_check() function ignores all SUNW.HAStoragePlus resources for which the FilesystemMountPoints or Zpools property is set to an empty list, the default. PARAMETERS
The following parameters are supported: handle Handle that is returned from scds_initialize(3HA). hasp_status Status of SUNW.HAStoragePlus resources that are used by the resource. RETURN VALUES
SCHA_ERR_NOERR The function succeeded. This value also indicates that the status code that is stored in hasp_status is valid. SCHA_ERR_INTERNAL The function failed. The value that is stored in hasp_status is undefined. Ignore this undefined value. See the scha_calls(3HA) man page for a description of other error codes. FILES
/usr/cluster/include/rgm/libdsdev.h Include file /usr/cluster/lib/libdsdev.so Library ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWscdev | +-----------------------------+-----------------------------+ |Interface Stability |Evolving | +-----------------------------+-----------------------------+ SEE ALSO
scds_initialize(3HA), scha_calls(3HA), attributes(5), SUNW.HAStoragePlus(5) Sun Cluster 3.2 7 Sep 2007 scds_hasp_check(3HA)
All times are GMT -4. The time now is 09:14 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy