Sponsored Content
Full Discussion: Use glance as a cron script
Operating Systems HP-UX Use glance as a cron script Post 302975552 by black_fender on Wednesday 15th of June 2016 09:06:49 AM
Old 06-15-2016
Use glance as a cron script

On a HP-UX 11.31 server I try to make a script that can launch glance for x iterations and the output to be stored in a file. I want to be able to launch the script via crontab.

glance manual says that in order to run glance in the background with no terminal screen displays I should use -adviser_only & -iterations options.
I tried this:
Code:
/opt/perf/bin/glance -f /tmp/glance/glance.20160613  iterations 2 advisor_only

Issues:
- the job does not run in background, it displays everything on the terminal
- glance doesn;t stop automatically after 2 iterations.

indeed it sends the output to the /tmp/glance/glance.20160613 file and the file keeps the data after I stop glance.

What am I doing wrong?
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

how to quit from glance

hi, if i am in glance, how do i exit? thanks (2 Replies)
Discussion started by: yls177
2 Replies

2. UNIX for Dummies Questions & Answers

ctrl-z problem in glance

in hpux, when i in glance, i cant press ctrl-z, what could be wrong? thanks (11 Replies)
Discussion started by: yls177
11 Replies

3. Shell Programming and Scripting

Glance Fatal Error

Hi , I a stuck with this problem. I am trying to execute this script1 on SERVER 1 from SERVER 2 using script2 script1 on SERVER 1 #!/usr/bin/ksh /opt/perf/bin/glance -f -adviser_only -iterations 2 -maxpages 2 > /home/user/scripts/glance.op cpuval1=`grep ^CPU... (4 Replies)
Discussion started by: newbie07
4 Replies

4. UNIX for Dummies Questions & Answers

glance quick reference

Hello all, I´m newbie using HP-GLANCEPlus. I readed the help screens provided but, I´m wonder if there are a user manual to use glance, or where can I find some usefull tips to use this tool better. Anybody have some information? Regards. (2 Replies)
Discussion started by: mig28mx
2 Replies

5. HP-UX

Glance

Hi ALL - I need look to output data return from glance command but a don't have any access to HP-UX server. Maybe any HP-UX Admin send this data to my email (Removed.) Thanks for help Pawel (2 Replies)
Discussion started by: pawel_ul
2 Replies

6. UNIX for Dummies Questions & Answers

HP-UX 11.23 ia64 and Glance

I've been searching and cannot seem to find anywhere online a link to a manual for Glance. Does anyone have a link to this? I searched in here already and the links I found on a post from 2002 were dead. And more to the point, do you know if you can use Glance to see Disk I/O per logical... (2 Replies)
Discussion started by: LisaS
2 Replies

7. HP-UX

HP-UX glance

Hi, plz explain about glance, where do i get information on this tool. thanks. (4 Replies)
Discussion started by: venkat_t
4 Replies

8. UNIX for Dummies Questions & Answers

Help with glance and nohup

I am new to shell scripting. Can someone explain me what this piece of code do.. /usr/bin/nohup /opt/perf/bin/glance -aos filename2.syntax -iterations 1 > filename.log (1 Reply)
Discussion started by: vijay_105
1 Replies

9. UNIX for Dummies Questions & Answers

Execution problem with Cron: Script works manually but not w/Cron. Why?

Hello gurus, I am making what I think is a simple db2 call from within a shell script but I am having difficulty producing the desired report when I run the script shown below from a shell script in cron. For example, my script and the crontab file setup is shown below: #!/bin/ksh db2... (3 Replies)
Discussion started by: okonita
3 Replies
GLANCE-SCRUBBER(1)						      Glance							GLANCE-SCRUBBER(1)

NAME
glance-scrubber - Glance Scrubber Service GLANCE SCRUB SERVICE
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-scrubber [options] DESCRIPTION glance-scrubber is an utility that cleans up images that have been deleted. The mechanics of this differ depending on the backend store and pending_deletion options chosen. Multiple glance-scrubbers can be run in a single deployment, but only one of them may be designated as the 'cleanup_scrubber' in the glance-scrubber.conf file. The 'cleanup_scrubber' coordinates other glance-scrubbers by maintaining the master queue of images that need to be removed. The glance-scubber.conf file also specifies important configuration items such as the time between runs ('wakeup_time' in seconds), length of time images can be pending before their deletion ('cleanup_scrubber_time' in seconds) as well as registry connectivity options. glance-scrubber can run as a periodic job or long-running daemon. 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 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 -D, --daemon Run as a long-running process. When not specified (the default) run the scrub operation once and then exits. When specified do not exit and run scrub on wakeup_time interval as specified in the config. --nodaemon The inverse of --daemon. Runs the scrub operation once and then exits. 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-SCRUBBER(1)
All times are GMT -4. The time now is 05:27 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy