Check value of load balance dynamically

Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Check value of load balance dynamically
# 8  
Old 06-16-2011
the below command is used to show the 1 second output
prstat -Lc 1 1
nawk ' /^Total/ {print substr($8,1,length($8)-1)}'
nawk command is checking the line which starts with "Total" and it takes the 8th column of that line.

substr function is used to eliminate the comma (,) which is present as the last character
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Script fro file check and load the trail file

Hi, Im going to use shell script for load the data into DB. First i need to read the trail file(csv file has two columns with comma separated ) like file name trail1024(last 4 digitsMMDD). In this trail file 27 entries will have like below,I need to read first csv file name and get the 4... (1 Reply)
Discussion started by: krajasekhar.v
1 Replies

2. Shell Programming and Scripting

Check load and action

Hey everyone can you check this script logic ? it has to restart webservice if found server load is higher than X, also i have put it in crontab to run every one minute #!/bin/bash loadavg=$(uptime | awk -F "." '{ print $1 }' | awk -F ":" '{ print $5 }') if ; then pkill -9 httpd service... (7 Replies)
Discussion started by: nimafire
7 Replies

3. Shell Programming and Scripting

Balance the load of files across queues using shell script

Hi, I need to balance the load to be processed by the system using shell script. The scenario is like below: Suppose there are some files in a directory: -rw-rw-r-- 1 usr usrgrp 456432306 Oct 23 07:53 abc_queue_q1 -rw-rw-r-- 1 usr usrgrp 4123934 Oct 23 07:53... (1 Reply)
Discussion started by: vsachan
1 Replies

4. UNIX for Advanced & Expert Users

Autosys: Check the jil load time

Hi All, I wanted to know what time the box jobs were loaded into a particular Autosys Instance. Is there a autosys command to find out the above? (The timestamp at which a box was loaded) I had loaded my JIL script without outputting it to the log file. (4 Replies)
Discussion started by: grep_me
4 Replies

5. UNIX for Dummies Questions & Answers

mv load balance files

Ok so I have files that are going to land on /apps/, but I need to load balance them so I need to load balance them to four different folders. The three file extensions I get are .mpe .mpd and mpf which will land here... /apps/ I can't move them until the mpf is there it triggers the next... (8 Replies)
Discussion started by: xgringo
8 Replies

6. Linux

Load balance

Hello anybody know how use Load balance in linux? Summer (2 Replies)
Discussion started by: summerpeh
2 Replies

7. Shell Programming and Scripting

Need help in wrting Load Script for a Load-Resume type of load.

hi all need your help. I am wrting a script that will load data into the table. then on another load will append the data into the existing table. Regards Ankit (1 Reply)
Discussion started by: ankitgupta
1 Replies

8. Shell Programming and Scripting

How to read a dynamically changing file and load into Oracle?

I have a tab delimited file which has 27 character fields. The file needs to be loaded into an Oracle table. But the challenge is that everytime the file comes it may or may not have values in all 27 fields. Column Definition of the 27 fields: TYPE: Char (1) NAME: Char (30) CUSTOM_VAL: Char... (8 Replies)
Discussion started by: madhunk
8 Replies

9. UNIX for Dummies Questions & Answers

load Balance

Guys im trying to create a script that will load ballance 3 devices. Unix is still very alien to me having only been in this position for 3 months now. Not to mention the fact that i've been thrown in the deep end. Anyway so far i've managed to make a script that looks at all 4 devices and make a... (1 Reply)
Discussion started by: yorkyboy
1 Replies
Login or Register to Ask a Question
MP_GetProprietaryLoadBalanceOidList(3MPAPI)	   Common Multipath Management Library Functions       MP_GetProprietaryLoadBalanceOidList(3MPAPI)

MP_GetProprietaryLoadBalanceOidList - get a list of object IDs SYNOPSIS
cc [ flag... ] file... -lMPAPI [ library... ] #include <mpapi.h> MP_STATUS MP_GetProprietaryLoadBalanceOidList(MP_OID oid MP_OID_LIST **ppList); PARAMETERS
oid The object ID of the plugin. ppList A pointer to a pointer to an object ID that has type MP_OID_LIST structure. With a successful return, this contains a pointer to an object ID that has type MP_OID_LIST that contains the object IDs of all the proprietary load balance types associated with the specified plugin. DESCRIPTION
The MP_GetProprietaryLoadBalanceOidList() function returns a list of the object IDs of all the proprietary load balance algorithms associ- ated with this plugin. When the caller is finished using the list, it must free the memory used by the list by calling MP_FreeOidList. RETURN VALUES
MP_STATUS_INVALID_OBJECT_TYPE The oid does not specify any valid object type. This is most likely to happen if an uninitialized object ID is passed to the API. MP_STATUS_INVALID_PARAMETER The ppList in null or specifies a memory area to which data cannot be written, or if the oid has a type subfield other than MP_OBJECT_TYPE_PLUGIN. MP_STATUS_OBJECT_NOT_FOUND The oid owner ID or object sequence number is invalid. MP_STATUS_SUCCESS The operation is successful. MP_STATUS_FAILED The plugin for the specified object ID is not found. MP_STATUS_INSUFFICIENT_MEMORY A memory allocation failure occurred. MP_STATUS_UNSUPPORTED The implementation does not support the API. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Standard: ANSI INCITS 412 | | |Multipath Management API | +-----------------------------+-----------------------------+ |MT-Level |Safe | +-----------------------------+-----------------------------+ SEE ALSO
libMPAPI(3LIB), MP_GetProprietaryLoadBalanceProperties(3MPAPI), attributes(5) Multipath Management API Version 1.0 SunOS 5.11 15 Feb 2006 MP_GetProprietaryLoadBalanceOidList(3MPAPI)