Unix/Linux Go Back    


HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V.

Use glance as a cron script

HP-UX


Closed    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 06-15-2016
black_fender black_fender is offline
Registered User
 
Join Date: Oct 2011
Last Activity: 16 June 2016, 4:29 AM EDT
Location: Bucharest
Posts: 81
Thanks: 22
Thanked 5 Times in 5 Posts
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?
Sponsored Links
    #2  
Old Unix and Linux 06-15-2016
Peasant's Unix or Linux Image
Peasant Peasant is offline Forum Advisor  
Registered User
 
Join Date: Mar 2011
Last Activity: 22 June 2017, 9:51 PM EDT
Posts: 1,055
Thanks: 29
Thanked 305 Times in 268 Posts
For metrics in past i use this :
How to perform a First Pass Performance Analysis using Measureware extract command - Wiki-UX.info

As for your problems, are you sure you inputed -iterations -adviser_only,
I see no dash in your current command and looks like advisor_only should be adviser_only

Hope that helps
Best regards
Peasant.
Sponsored Links
    #3  
Old Unix and Linux 06-15-2016
black_fender black_fender is offline
Registered User
 
Join Date: Oct 2011
Last Activity: 16 June 2016, 4:29 AM EDT
Location: Bucharest
Posts: 81
Thanks: 22
Thanked 5 Times in 5 Posts
Quote:
Originally Posted by Peasant View Post

As for your problems, are you sure you inputed -iterations -adviser_only,
I see no dash in your current command and looks like advisor_only should be adviser_only

Hope that helps
Best regards
Peasant.
thanks for the reply. I used this syntax also and got these results:


Code:
dexter:~# /opt/perf/bin/glance -f /tmp/glance/glance.20160613  -iterations 2 -adviser_only
MI: Wed Jun 15 16:36:48 2016
WARNING: dlsym: Unknown symbol lvml_get_vginfo_ext. LVM library should be updated.
MI: Wed Jun 15 16:36:48 2016
WARNING: lvml_get_vginfo failed for VG /dev/vg_mdData3: Error 3.
MI: Wed Jun 15 16:36:48 2016
.........
....... couple of warning messages ........
..........
MI: Wed Jun 15 16:36:48 2016
WARNING: lvml_get_vginfo failed for VG /dev/vg_sasbu4: Error 3.
dexter:~#
dexter:~# cat /tmp/glance/glance.20160613
dexter:~#

so the /tmp/glance/glance.20160613 is empty

Last edited by black_fender; 06-16-2016 at 04:29 AM..
Sponsored Links
Closed

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Execution problem with Cron: Script works manually but not w/Cron. Why? okonita UNIX for Dummies Questions & Answers 3 04-15-2015 04:55 PM
Help with glance and nohup vijay_105 UNIX for Dummies Questions & Answers 1 05-22-2013 02:15 AM
HP-UX glance venkat_t HP-UX 4 01-17-2008 04:55 AM
Glance pawel_ul HP-UX 2 08-23-2007 02:58 AM
how to quit from glance yls177 UNIX for Dummies Questions & Answers 2 09-23-2002 07:42 PM



All times are GMT -4. The time now is 04:44 AM.