glance adviser suppress newline in print command


 
Thread Tools Search this Thread
Operating Systems HP-UX glance adviser suppress newline in print command
# 1  
Old 12-29-2011
glance adviser suppress newline in print command

Hi,
I have a glance adviser, the highlights below. The problem that i have is that every time glance finds process name "abc" it write the memory region data in a new line. My question is if i have a way to print without newline?

The output line for process abc looks something like this:
Date,Proc name,PID,CPU Util,Proc MEM RES,RES DATA,RES SHM
12/29/2011,abc,25331,0.0
3730.00,1707.27

if GBL_INTERVAL == GBL_INTERVAL_CUM then { //Printing header
PRINT "Date,Proc name,PID,CPU Util,Proc MEM RES, RES DATA,RES SHM "
}
PROCESS LOOP{
IF(PROC_PROC_NAME == "abc" OR
(PROC_CPU_TOTAL_UTIL > 3 ) THEN {
PRINT GBL_STATDATE, ",",
PROC_PROC_NAME, ",",
PROC_PROC_ID, ",",
PROC_CPU_TOTAL_UTIL, ",",
(PROC_MEM_RES/1024 + 0 )|20|2
}//end if
IF PROC_PROC_NAME == "abc" THEN {
x=0
PROC_REGION LOOP {
IF x == 0 THEN {
PRINT (PROC_REGION_RES_DATA/1024 + 0 )|20|2, ",",
(PROC_REGION_RES_SHMEM/1024 + 0 )|20|2
}//end if x==0
x=1
}//end region loop
}//end if PROC_PROC_NAME == "abc"
}//end process loop
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to suppress error in following command?

I have a file containing data in multiple columns. The colums are seperated by pipe (|). I need to extract information as below: myfile_20130929_781;10;100.00 where myfile.txt is the file name. 10 is the number of records in the file starting with 120 and 100.00 is the sum of 26th field of... (16 Replies)
Discussion started by: angshuman
16 Replies

2. UNIX for Dummies Questions & Answers

Print a newline after first match in line

Hi everyone I have a file where CP occurs both within each line and at the very end: dwer 17 knsdask= * CP hwla 17 h'wopie un CP I would like to separate the line on the first CP to get: dwer 17 knsdask= * CP hwla 17 h'wopie un CP What I have so far is: awk '{for (x=1; x<NF; x++) ... (5 Replies)
Discussion started by: meet77
5 Replies

3. Shell Programming and Scripting

How to print in newline through script?

For Example, echo `date` > test.txt echo $hostname>> SuccessLogin.txt; echo '\n'login is successful>> SuccessLogin.txt echo $hostname>> FailureLogin.txt; echo '\n'login is failure>> failureLogin.txt now i want to print the O/P in newline for every host i logged into, then i have to... (4 Replies)
Discussion started by: lravip123
4 Replies

4. HP-UX

oracle processes with SOCKT in glance command....reason?

Hi Friends, I could see following oracle process in the glance command. i see nothing running in the database although. I tried google it but no success. Another team ,which needs all the processes on the server is complaining. Can someone help me what exactly are these sessions/ how to ... (1 Reply)
Discussion started by: kunwar
1 Replies

5. HP-UX

Glance command Usage

Hello We have used Glance command to check Cpu Uage , bit new to Glance command , HP-UXdev # glance B3692A GlancePlus C.03.71.00 18:21:16 nedunix2 9000/800 Current Avg High -------------------------------------------------------------------------------- CPU Util S SN NU | 43% 59%... (1 Reply)
Discussion started by: lukas_pise
1 Replies

6. Shell Programming and Scripting

how to suppress list number from history command output

i run history command and I want to eliminate the list number. So far this perl script works as long as the list is a exact 3 character long. cat dd | perl -pe 's,\d{3},,' 70 export JAVA_HOME=. 81 export JAVA_HOME=. 82 export JAVA_HOME=`pwd` export JAVA_HOME=`pwd` ... (1 Reply)
Discussion started by: soemac
1 Replies

7. Solaris

I want a command in solaris equivalent to glance in HP-UX

Hi, C an someone help me out in getting the command to get system statistics like CPU, DISK and I/O utilization in a single command instead of mpstat,vmstat and iostat. When i give sar, getting the following error, bash-3.00# sar sar: can't open /var/adm/sa/sa15 No such... (6 Replies)
Discussion started by: grrajeish
6 Replies
Login or Register to Ask a Question
GLANCE-CONTROL(1)						      Glance							 GLANCE-CONTROL(1)

NAME
glance-control - Glance Daemon Control Helper GLANCE DAEMON START
/STOP/RELOAD HELPER SYNOPSIS glance-control [options] <SERVER> <COMMAND> [CONFPATH] Where <SERVER> is one of: all, api, registry, scrubber And command is one of: start, stop, shutdown, restart, reload, force-reload And CONFPATH is the optional configuration file to use. OPTIONS --version show program's version number and exit -h, --help show this help message and exit --config-file=PATH Path to a config file to use. Multiple config files can be specified, with values in later files taking precedence. The default files used are: [] -d, --debug Print debugging output --nodebug Do not print debugging output -v, --verbose Print more verbose output --noverbose Do not print more verbose output --log-config=PATH If this option is specified, the logging configuration file specified is used and overrides any other logging options specified. Please see the Python logging module documentation for details on logging configuration files. --log-format=FORMAT A logging.Formatter log message format string which may use any of the available logging.LogRecord attributes. Default: none --log-date-format=DATE_FORMAT Format string for %(asctime)s in log records. Default: none --log-file=PATH (Optional) Name of log file to output to. If not set, logging will go to stdout. --log-dir=LOG_DIR (Optional) The directory to keep log files in (will be prepended to --logfile) --use-syslog Use syslog for logging. --nouse-syslog Do not use syslog for logging. --syslog-log-facility=SYSLOG_LOG_FACILITY syslog facility to receive log lines --pid-file=PATH File to use as pid file. Default: /var/run/glance/$server.pid 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-CONTROL(1)