Sponsored Content
Operating Systems HP-UX glance => network util variable? Post 302600815 by berre on Wednesday 22nd of February 2012 05:45:42 AM
Old 02-22-2012
glance => network util variable?

Hi,

I'm creating a preventive maintenance script (automated) and I would like to get the cpu, mem, disk & network stats which you get when running glance as an output of a command so I can use it in my script

I made some progress though:

this is the command I use
Code:
glance -aos /advp/home/advpus/OSS/PM/glance.syn -iterations 5 -j 1 >/advp/home/advpus/OSS/PM/glance.op 2> /dev/null

this is the content of /advp/home/advpus/OSS/PM/glance.syn
Code:
print "CPU total:",gbl_cpu_total_util_cum|3|0,"% Mem Consumption:",gbl_mem_util_cum|3|0,"% Disk Util:",gbl_disk_util_peak_cum|3|0,"% Network Util:",?????????|3|0,"%"

Now everything is working fine, I get the values for CPU, memory and disk but the variable I'm missing (?????????) is the one that is used to indicate the network utilistation.

Anybody any idea which one is used?

Cheers
B
Moderator's Comments:
Mod Comment How to use code tags

Last edited by vbe; 02-22-2012 at 10:06 AM..
 

5 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

execute command multithreaded util without programming

Hello all is there any way in unix to execute command in multithreaded way without doing it in java or cpp can one of the scripts handle multithread execution ? i need to test server requests ( corba ) in multithread Thanks (0 Replies)
Discussion started by: umen
0 Replies

2. Red Hat

util-linux upgrade with interruption?

Hi All, I have util-linux upgrade that I need to do on redhat 4 ent. Does this going to interruption with the operation of the OS or application? Or this will be straight forward upgrade that will not make a harm or downtime of the OS. Thank you for any comments you may add. (3 Replies)
Discussion started by: itik
3 Replies

3. UNIX for Dummies Questions & Answers

command line util to convert mm to inches etc?

There must be a command line utility to convert metric -> us, mm to inches etc, but I don't remember seeing it. Any suggestions? Anything in the repositories? Thx. (4 Replies)
Discussion started by: koodawg
4 Replies

4. HP-UX

find memory util statics using sar on HP-UX

I have configured "sar" to collect 10 mins statistics on B.11.31 U ia64 Can any expert help me to find Memory utilization statics like we have in linux # sar -r .... > 12:00:01 AM kbmemfree kbmemused %memused kbbuffers kbcached kbcommit %commit 12:10:01 AM 24772 219552... (1 Reply)
Discussion started by: Shirishlnx
1 Replies

5. Shell Programming and Scripting

Grep util last occurrence

I have file contents /tmp/x/abc.txt /home/bin/backup/sys/a.log I need this output: /tmp/x/ /home/bin/backup/sys/ Can somebody please help me out Please use CODE tags as required by forum rules! (3 Replies)
Discussion started by: jhonnyrip
3 Replies
GLANCE-CACHE-MANAGE(1)						      Glance						    GLANCE-CACHE-MANAGE(1)

NAME
glance-cache-manage - Glance Cache Manager CACHE MANAGEMENT UTILITY
Author glance@lists.launchpad.net Date 2012-01-03 Copyright OpenStack LLC Version 2012.1-dev Manual section 1 Manual group cloud computing SYNOPSIS glance-cache-manage <command> [options] [args] COMMANDS help <command> Output help for one of the commands below list-cached List all images currently cached list-queued List all images currently queued for caching queue-image Queue an image for caching delete-cached-image Purges an image from the cache delete-all-cached-images Removes all images from the cache delete-queued-image Deletes an image from the cache queue delete-all-queued-images Deletes all images from the cache queue clean Removes any stale or invalid image files from the cache OPTIONS --version show program's version number and exit -h, --help show this help message and exit -v, --verbose Print more verbose output -d, --debug Print more verbose output -H ADDRESS, --host=ADDRESS Address of Glance API host. Default: 0.0.0.0 -p PORT, --port=PORT Port the Glance API host listens on. Default: 9292 -A TOKEN, --auth_token=TOKEN Authentication token to use to identify the client to the glance server -f, --force Prevent select actions from requesting user confirmation SEE ALSO o OpenStack Glance BUGS o Glance is sourced in Launchpad so you can view current bugs at OpenStack Glance AUTHOR
OpenStack COPYRIGHT
2010-present, OpenStack, LLC. 2012.1.1 March 14, 2013 GLANCE-CACHE-MANAGE(1)
All times are GMT -4. The time now is 08:07 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy