Sponsored Content
Full Discussion: Use glance as a cron script
Operating Systems HP-UX Use glance as a cron script Post 302975556 by black_fender on Wednesday 15th of June 2016 10:48:12 AM
Old 06-15-2016
Quote:
Originally Posted by Peasant

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 05:29 AM..
 

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
psiclean(1)															       psiclean(1)

NAME
psiclean - delete files in the PSI temporary directories DESCRIPTION
The psiclean command finds a job name by scanning the input file for a keyword assignment of the form DEFAULT:FILES:DEFAULT:NAME = string It then goes through all of the machine's temporary directories and deletes all files of the form string.*. In previous versions of psi- clean , temporary directories were assumed to be of the form /tmp[0-9]/$user In this version of psiclean , we get the names of the temporary directories from the user input file by looking for volume paths of the form DEFAULT:FILES:DEFAULT:VOLUMEi = string It is essential that users see to the removal of their scratch files as soon as their job completes, because temporary directories are usu- ally a shared resource and there is not necessarily an automatic way for files to be deleted from these areas. Thus, the last command run after a job has finished should be the psiclean command. The user must take care to follow certain conventions when choosing filenames. Any files which are to be kept after a job completes should not be kept in the default temporary directories. The FILES input must be used to specify other locations for the specific files which are to be kept. psiclean will ignore files which are specifically listed by number (e.g., PSIF_CHKPT ) in the FILES section. Files which are not needed after the run should use the default path given in the input file. Otherwise, these files will remain on the system and will impede other jobs. EXAMPLE
Suppose the PSI temporary directories contained the following subdirectories and files: /tmp1/cpuhog: -rw-r--r-- 1 cpuhog 14492 Jun 11 16:48 dicubane.30 -rw-r--r-- 1 cpuhog 187320 Jun 8 17:20 diketene.34 -rw-r--r-- 1 cpuhog 16384 Jun 7 19:17 o4big.30 -rw-r--r-- 1 cpuhog 16384 Jun 7 19:17 o4.30 -rw-r--r-- 1 cpuhog 974848 Jun 7 18:41 o4.34 /tmp2/cpuhog: -rw-r--r-- 1 cpuhog 14492 Jun 11 16:48 dicubane.30 -rw-r--r-- 1 cpuhog 187320 Jun 8 17:20 diketene.34 -rw-r--r-- 1 cpuhog 10904 Jun 7 18:50 o4big.30 -rw-r--r-- 1 cpuhog 10904 Jun 7 18:50 o4.30 -rw-r--r-- 1 cpuhog 973752 Jun 7 18:41 o4.34 /tmp3/cpuhog: -rw-r--r-- 1 cpuhog 14492 Jun 11 16:48 dicubane.30 -rw-r--r-- 1 cpuhog 187320 Jun 8 17:20 diketene.34 -rw-r--r-- 1 cpuhog 8192 Jun 7 19:17 o4big.30 -rw-r--r-- 1 cpuhog 8192 Jun 7 19:17 o4.30 -rw-r--r-- 1 cpuhog 966656 Jun 7 18:41 o4.34 Let's also say that the user cpuhog is in a directory which contains an input file which has the following line in it: DEFAULT:FILES:DEFAULT:NAME = "o4" If the user cpuhog now executes the psiclean command, then the o4 files in the temporary directories would be deleted, leaving the follow- ing files: /tmp1/cpuhog: -rw-r--r-- 1 cpuhog 14492 Jun 11 16:48 dicubane.30 -rw-r--r-- 1 cpuhog 187320 Jun 8 17:20 diketene.34 -rw-r--r-- 1 cpuhog 16384 Jun 7 19:17 o4big.30 /tmp2/cpuhog: -rw-r--r-- 1 cpuhog 14492 Jun 11 16:48 dicubane.30 -rw-r--r-- 1 cpuhog 187320 Jun 8 17:20 diketene.34 -rw-r--r-- 1 cpuhog 10904 Jun 7 18:50 o4big.30 /tmp3/cpuhog: -rw-r--r-- 1 cpuhog 14492 Jun 11 16:48 dicubane.30 -rw-r--r-- 1 cpuhog 187320 Jun 8 17:20 diketene.34 -rw-r--r-- 1 cpuhog 8192 Jun 7 19:17 o4big.30 AUTHOR
C. David Sherrill <sherrill@alum.mit.edu> Psi Version 3.0 29 July, 1999 psiclean(1)
All times are GMT -4. The time now is 04:47 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy