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
OSSAUDIO(3)						   BSD Library Functions Manual 					       OSSAUDIO(3)

NAME
ossaudio -- OSS audio emulation LIBRARY
OSS Audio Emulation Library (libossaudio, -lossaudio) SYNOPSIS
#include <soundcard.h> DESCRIPTION
The ossaudio library provides an emulation of the OSS (Linux) audio interface. Use the native interface for new programs and the emulation library only for porting programs. Mixer Control Map The following table summarizes the mappings from native interface device names to OSS mixer controls. Native Device Name OSS Mixer Control *.mic SOUND_MIXER_MIC *.line SOUND_MIXER_LINE *.cd SOUND_MIXER_CD *.dac SOUND_MIXER_PCM *.aux SOUND_MIXER_LINE1 *.record SOUND_MIXER_IMIX *.master SOUND_MIXER_VOLUME *.treble SOUND_MIXER_TREBLE *.bass SOUND_MIXER_BASS *.speaker SOUND_MIXER_SPEAKER *.output SOUND_MIXER_OGAIN *.input SOUND_MIXER_IGAIN *.fmsynth SOUND_MIXER_SYNTH *.midi SOUND_MIXER_SYNTH SEE ALSO
audio(4), midi(4) HISTORY
The ossaudio library first appeared in NetBSD 1.3. BUGS
The emulation uses a #define for ioctl() so some obscure programs can fail to compile. The emulation is incomplete. The emulation only covers ioctl(), there are other differences as well. E.g., on a write that would block in non-blocking mode Linux returns EINTR whereas NetBSD 1.3 returns EAGAIN. BSD
February 3, 2009 BSD
All times are GMT -4. The time now is 12:19 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy