Sar (System Activity Report) is the performance data collector on all unix systems. If it works pretty well to collect data, displaying the result lets a bitter taste; forget any colorfull graphs, its output is only tabs of pure ascii text. However, sar's weakness is also his strength; text is easy to parse and Unix have plenty of powerfull tools to do so. My aim today is to parse the output of sar and to load it into MySQL. Why MySQL? Simply because it's a powerfull free database, and querying MySQL with Excel is easy. The idea is simple: sar > XML > LOAD XML command > MySQL database Step 1 - choosing the output of sar On Solaris, sar -A provides all the results; actually, it is equivalent to successively issue these commands: sar -u (CPU utilization) sar -d (activity for each block device) sar -q (average queue length while occupied) sar -b (buffer activities) sar -w (system swapping and switching activity) sar -c (system calls) sar -a (file access system ro...
Parce que j'aime bien la musique. Parce que je trouve bien les instruments. Parce qu'il y a beaucoup de boutons. Et que j'aimerais bien jouer du piano.