Menu

#5 select specific graph in command line.

open
nobody
None
5
2015-01-28
2012-06-21
Anonymous
No

Hi,
I'm trying to select graph using command line for example:
java -jar /opt/kSar/kSar.jar -input 'file://server.sar15' -graph CPU all Load -outputPDF server.pdf
but i don't get output file and no error is shown.

I've the same problem if I select only one graph:
java -jar /opt/kSar/kSar.jar -input 'file://server.sar15' -graph Load -outputPDF server.pdf

Do you have some example for use this option?

Thank You.
Andrea

Discussion

  • Anonymous

    Anonymous - 2012-06-21
    • summary: select scecific graph in commnad line. --> select specific graph in command line.

    For CPU-all the syntax is "-graph all-cpu"

     

    Last edit: Anonymous 2014-02-07
  • jaggura

    jaggura - 2013-05-06

    $graph_list="LinuxprocSar LinuxcswchSar LinuxintrSar LinuxswapSar
    LinuxioSar LinuxloadSar LinuxpageSar LinuxsockSar LinuxkbmemSar
    LinuxkbswpSar Li
    nuxkbmiscSar LinuxpgpSar LinuxnfsSar LinuxnfsdSar";

    /usr/bin/java -jar /data/kSar/kSar-5.0.3.jar -input
    /data/sar/autoyast/sar05.clean -cpuFixedAxis -showCPUstacked -graph
    'LinuxprocSar LinuxcswchSar LinuxintrSar LinuxswapSar LinuxioSar
    LinuxloadSar LinuxpageSar LinuxsockSar LinuxkbmemSar LinuxkbswpSar
    LinuxkbmiscSar LinuxpgpSar LinuxnfsSar LinuxnfsdSar' -outputPNG
    /data/apache2/htdocs/kSar_graphs/daily/autoyast/autoyast

     
  • Jose Legido

    Jose Legido - 2013-10-10

    How can I list all the possible graph?
    For exemple, all-cpu or 1-cpu, .... is not in this list
    It's possible to display the graph name for the command line in the graphs?
    Thanks!

     

    Last edit: Jose Legido 2013-10-10
    • hawran diskuse

      hawran diskuse - 2013-10-21

      I'm not sure it's possible to get a list of graphs from the cmdline. I've just generated all graphs from kSar GUI and used names of the generated files then ...

       

Log in to post a comment.