fbpx
Wikipedia

Ksar (Unix sar grapher)

Ksar is a BSD-licensed Java-based application that creates graphs of all parameters from data collected by Unix sar utilities. Usually, Unix sar is part of Unix' Sysstat package, and runs sa1, sa2, and sadc through cron to created data files in /var/log/sa/saNN. Characteristics include:

  • Images can be zoomed by dragging the mouse on an image to pinpoint problems
  • Results can be exported to PDF or JPEG format
Ksar
Stable release
5.2.3 / 30 May 2017; 6 years ago (2017-05-30)
Repositorygithub.com/vlsi/ksar
Operating systemcross-platform
Available injava

Syntax and options edit

Below is the list of CLI options supported by Ksar. Ksar's -help option will list all supported options of the applicable Ksar version.

$ java -jar kSar.jar -help kSar version: 5.0.6 Usage:  -version: show kSar version number -help: show this help -[[input (computing)|input]] <arg>: [[Argument (computer programming)|argument]] must be either ssh://user@host/command or cmd://command or file://path/to/file or just /path/to/file -graph <graph list>: space separated list of graph to be output -showCPUstacked: will make the [[CPU]] used graph as stacked -showMEMstacked: will make the memory graph as stacked ([[Linux]] only) -cpuFixedAxis: will graph CPU used with fixed axis from 0% to 100% -showIntrListstacked : will make the Interrupt List graph as stacked -showTrigger: will show trigger on graph (disabled by [[Default (computer science)|default]]) -noEmptyDisk: will not export disk with no data -tile: will tile [[Window (computing)|window]] -userPrefs: will use the userPrefs for outputting graphs (last export of this host) -showOnlygraphName: will only print graph name available for that data (to be use for -graph) -addHTML: will create an [[HTML]] page with [[PNG]]/[[JPG]] image -outputPDF <pdf file> : output the pdf report to the pdf file -outputPNG <base filename> : output the graphs to PNG file using argument as base filename -outputJPG <base filename> : output the graphs to JPG file using argument as base filename -outputCSV <CSV file> : output the [[CSV]] file -width <size> : make JPG/PNG with specified width size (default: 800) -height <size> : make JPG/PNG with specified height size (default: 600) -startdate <date> : will graph the range beginning at that time -enddate <date> : will graph the range until that date -solarisPagesize <pagesize in B>: will set [[solaris]] pagesize -[[Wizard (computing)|wizard]]: open with unified [[login]] popup -replaceShortcut <xml file>: replace all [[shortcut (computing)|shortcuts]] with those in the [[.xml]] file -addShortcut <xml file>: add shortcut from the xml file -startup: open window marked for opening at [[booting|startup]] 

Generating SAR Text Files for Ksar Use edit

  • To begin gathering sysstat history information for use of the sar command, systat should be configured to run through cron (preferably every minute). More instructions are available on the systat web site.
  • Generating sar text file with all system resources information
     DT="10"  LC_ALL=C sar -A -f /var/log/sa/sa$DT > /tmp/sar-$(hostname)-$DT.txt  ls -l /tmp/sar-$(hostname)-$DT.txt 
  • Generating only disk information from a sar data file
    (Note that sar will collect disk information only if sadc is running with -d option thru cron)
     DT="10"  LC_ALL=C sar -d -p -f /var/log/sa/sa$DT > /tmp/sar-$(hostname)-$DT.txt  ls -l /tmp/sar-$(hostname)-$DT.txt 
  • Generating a text file for multiple days
     DT="12 13 14"  >/tmp/sar-$(hostname)-multiple.txt  for i in $DT; do  LC_ALL=C sar -A -f /var/log/sa/sa$i >> /tmp/sar-$(hostname)-multiple.txt  done  ls -l /tmp/sar-$(hostname)-multiple.txt 

For getting all the days in the default folder, you can replace the hardcoded DT variable with:

 DT=$(ls /var/log/sa/sa[0-9][0-9] | sed 's_/var/log/sa/sa_ _g' | xargs) 

See also edit

External links edit

  • How to use ksar - cyberciti article
  • Sourceforge Ksar Project Page

ksar, unix, grapher, this, article, multiple, issues, please, help, improve, discuss, these, issues, talk, page, learn, when, remove, these, template, messages, this, article, technical, most, readers, understand, please, help, improve, make, understandable, e. This article has multiple issues Please help improve it or discuss these issues on the talk page Learn how and when to remove these template messages This article may be too technical for most readers to understand Please help improve it to make it understandable to non experts without removing the technical details July 2018 Learn how and when to remove this message The topic of this article may not meet Wikipedia s notability guidelines for products and services Please help to demonstrate the notability of the topic by citing reliable secondary sources that are independent of the topic and provide significant coverage of it beyond a mere trivial mention If notability cannot be shown the article is likely to be merged redirected or deleted Find sources Ksar Unix sar grapher news newspapers books scholar JSTOR January 2014 Learn how and when to remove this message Learn how and when to remove this message Ksar is a BSD licensed Java based application that creates graphs of all parameters from data collected by Unix sar utilities Usually Unix sar is part of Unix Sysstat package and runs sa1 sa2 and sadc through cron to created data files in var log sa saNN Characteristics include Images can be zoomed by dragging the mouse on an image to pinpoint problems Results can be exported to PDF or JPEG formatKsarStable release5 2 3 30 May 2017 6 years ago 2017 05 30 Repositorygithub wbr com wbr vlsi wbr ksarOperating systemcross platformAvailable injava Contents 1 Syntax and options 2 Generating SAR Text Files for Ksar Use 3 See also 4 External linksSyntax and options editBelow is the list of CLI options supported by Ksar Ksar s help option will list all supported options of the applicable Ksar version java jar kSar jar help kSar version 5 0 6 Usage version show kSar version number help show this help input computing input lt arg gt Argument computer programming argument must be either ssh user host command or cmd command or file path to file or just path to file graph lt graph list gt space separated list of graph to be output showCPUstacked will make the CPU used graph as stacked showMEMstacked will make the memory graph as stacked Linux only cpuFixedAxis will graph CPU used with fixed axis from 0 to 100 showIntrListstacked will make the Interrupt List graph as stacked showTrigger will show trigger on graph disabled by Default computer science default noEmptyDisk will not export disk with no data tile will tile Window computing window userPrefs will use the userPrefs for outputting graphs last export of this host showOnlygraphName will only print graph name available for that data to be use for graph addHTML will create an HTML page with PNG JPG image outputPDF lt pdf file gt output the pdf report to the pdf file outputPNG lt base filename gt output the graphs to PNG file using argument as base filename outputJPG lt base filename gt output the graphs to JPG file using argument as base filename outputCSV lt CSV file gt output the CSV file width lt size gt make JPG PNG with specified width size default 800 height lt size gt make JPG PNG with specified height size default 600 startdate lt date gt will graph the range beginning at that time enddate lt date gt will graph the range until that date solarisPagesize lt pagesize in B gt will set solaris pagesize Wizard computing wizard open with unified login popup replaceShortcut lt xml file gt replace all shortcut computing shortcuts with those in the xml file addShortcut lt xml file gt add shortcut from the xml file startup open window marked for opening at booting startup Generating SAR Text Files for Ksar Use editTo begin gathering sysstat history information for use of the sar command systat should be configured to run through cron preferably every minute More instructions are available on the systat web site Generating sar text file with all system resources information DT 10 LC ALL C sar A f var log sa sa DT gt tmp sar hostname DT txt ls l tmp sar hostname DT txt Generating only disk information from a sar data file Note that sar will collect disk information only if sadc is running with d option thru cron DT 10 LC ALL C sar d p f var log sa sa DT gt tmp sar hostname DT txt ls l tmp sar hostname DT txt Generating a text file for multiple days DT 12 13 14 gt tmp sar hostname multiple txt for i in DT do LC ALL C sar A f var log sa sa i gt gt tmp sar hostname multiple txt done ls l tmp sar hostname multiple txt For getting all the days in the default folder you can replace the hardcoded DT variable with DT ls var log sa sa 0 9 0 9 sed s var log sa sa g xargs See also editSar Unix External links editHow to use ksar cyberciti article Sourceforge Ksar Project Page Retrieved from https en wikipedia org w index php title Ksar Unix sar grapher amp oldid 1185963658, wikipedia, wiki, book, books, library,

article

, read, download, free, free download, mp3, video, mp4, 3gp, jpg, jpeg, gif, png, picture, music, song, movie, book, game, games.