#4 Run ksar from script

open
nobody
5
2015-08-11
2010-11-18
Rudi Respen
No

Hi,

can I run ksar from a script so without any user interaction? I run kSar.tar on linux, but want to use it to genereate daily graphics without any interaction.
Could you please provide a example of the commandline?

thanks,

Rudi Respen

Discussion

  • jaggura

    jaggura - 2013-05-06

    I run this nightly via a script.

    $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

     
  • byter

    byter - 2015-08-11

    It is not working at my end:
    LC_ALL=C; sar -A -f /var/log/sysstat/201508/sa11 > /home/lnunez/Escritorio/sar-all.log; /home/lnunez/Escritorio/kSar-5.1.0-beta4/jdk1.8.0_51/bin/java -jar /home/lnunez/Escritorio/kSar-5.1.0-beta4/kSar-5.1.0.jar -input /home/lnunez/Escritorio/sar-all.log -cpuFixedAxis -showCPUstacked -graph 'LinuxprocSar LinuxcswchSar LinuxintrSar LinuxswapSar LinuxioSar LinuxloadSar LinuxpageSar LinuxsockSar LinuxkbmemSar LinuxkbswpSar LinuxkbmiscSar LinuxpgpSar LinuxnfsSar LinuxnfsdSar' -outputPNG /home/lnunez/Escritorio/images/; ls -la /home/lnunez/Escritorio/images/

    Even is not being closed the gui after executed the previous one command.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks