Operating System - HP-UX
1828577 Members
2429 Online
109982 Solutions
New Discussion

Re: pv output to .pdf file

 
SOLVED
Go to solution
Dan Copeland
Regular Advisor

pv output to .pdf file

Can you do the subject via command line pv?
-dest filename?

I could use a good pv manual too if anyone has one.

tia,
Frank
10 REPLIES 10
Patrick Wallek
Honored Contributor
Solution

Re: pv output to .pdf file

No, you can't create a perfview chart to a PDF file. You can do pv at the command line.

For the best reference do a 'man pv' at the prompt.

If you invoke pv and bring the GUI up, you should have a pretty good help facility available to you there as well.
harry d brown jr
Honored Contributor

Re: pv output to .pdf file


Startup pv and click on "help"

live free or die
harry
Live Free or Die
Martin Johnson
Honored Contributor

Re: pv output to .pdf file

You can print to a file, but the file will be in postscript format (i.e you need a Postscript capable printer to print it).

You can always export the data and import into a spreadsheet.

HTH
Marty
Wodisch
Honored Contributor

Re: pv output to .pdf file

Hi Frank,

not sitting at a system with PV installed, so this is all imagination...
- configure a virtual postscript printer (virtual = you claim there would be one ;-) as UNIX default printer
- use the PV GUI to use it as the default printer for PV
- modify the "interface" script to generate the PDF from the PS file

Now you could use the "pv" command line to "-print"...

FWIW,
Wodisch
George Morrison
Frequent Advisor

Re: pv output to .pdf file

Frank -

I have successfully converted pv print files to pdf files using ghostscript. I run pv, get the graph that I want to covert, select print to file, click on the Encapselated Post Script button and designate a file name. Then at the command line I run ps2pdf to generate the pdf file. Works great! Now if I could find a way to produce the graphs from the command line, I would be set....

Re: pv output to .pdf file

George ,


you can generate PV graphs from the command line .

I have included snippet from
my web-enabled perfview graph generation program. It's intermixed with HTML, however, you will get an Idea how to do
this. I use ps2gif to convert
postscript to Gifs. However, you
already know the rest ...
George Morrison
Frequent Advisor

Re: pv output to .pdf file

thanks so much for the pv script that you included - it was very helpful. What kinds of things are included in your command files?

Thanks again.

Re: pv output to .pdf file

Here's the sample command file
for displaying global memory and cpu

If you need more information
on the syntax/format ,
there's A guide from HP:
HP Openview Performance Manager: Command line interface.
I believe, you can either look in your /opt/perf/ document directory for a pdf/ps file
or www.openview.hp.com -> Manuals -> Measureware

--------- cut ------------
-met mybox:SCOPE:GLOBAL:GLOBAL:GBL_MEM_UTIL
-met mybox:SCOPE:GLOBAL:GLOBAL:GBL_CPU_TOTAL_UTIL
-gn "Mybox CPU & Memory Report"
--------- cut ------------
MANOJ SRIVASTAVA
Honored Contributor

Re: pv output to .pdf file

Hi Frank


there is a cool script which we use to create HTML o/p for out PV's , the script is from EMC but works fine on regualr disks tooo , I ahve attached the o/p for the same .


Manoj Srivasta
MANOJ SRIVASTAVA
Honored Contributor

Re: pv output to .pdf file

Also here is the script

Manoj Srivastava