Skip to main content
  • Place orders quickly and easily
  • View orders and track your shipping status
  • Create and access a list of your products
Some article numbers may have changed. If this isn't what you're looking for, try searching all articles. Search articles

How to use System Activity Report, 'sar', to View Performance Information on SUSE Linux Enterprise Server (SLES) 11

Summary: How to use System Activity Report, 'sar', to view performance information on SUSE Linux Enterprise Server (SLES)

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Symptoms

 


Article Summary: This article provides information on how to use System Activity Report, 'sar', to view performance information on SUSE Linux Enterprise Server (SLES) 11.


 

Table of Contents:

1. Installation
2. Configure logging
3. Usage of the 'sar' command


 

1. Installation

  • Ensure you are logged in as 'root'
  • 'sar' is apart of the 'sysstat' package
  • # yast2 -i sysstat
  • Create a symlink for the cron job :
    • # ln -s /etc/sysstat/sysstat.cron /etc/cron.d/sysstat.cron
  • Restart cron service :
  • # rccron restart

 

Back to Table of Contents


 

2. Configure logging

  • Edit '/etc/sysstat/sysstat' with your favorite editor
  • Find the line that starts with 'HISTORY='
  • The value represents the number of days to retain log files
  • The default is sixty days and you can change it to meet your needs
  • Log files will be stored in the '/var/log/sa' directory

 

Back to Top


 

3. Usage of the 'sar' command

NOTE : It will take at least 10 minutes for the cron job to be executed to gather data so that this command can be utilized
  • Display the current day's :
    • CPU statistics

:

  • # sar
  • To specify a CPU, for example CPU 3 :
    • # sar -P 3
  • Queue length and average statistics :
    • # sar -q
  •  RAM statistics :
  • # sar -r
  • # sar -R
  • # sar -b
  • # sar -c
  • # sar -B
  • # sar -d
  • # sar -n NAME
  • Replace NAME with one of the following :
    • ALL – This displays all of the above information
    • DEV – Displays network devices vital statistics
    • EDEV – Display network device failure statistics
    • EICMP – Displays ICMPv4 network errors
    • EIP – Displays IPv4 network errors
    • EIP6 – Displays IPv6 network errors
    • ETCP – Displays TCPv4 network errors
    • ICMP – Displays ICMPv4 network traffic
    • ICMP6 – Displays ICMPv6 network traffic
    • IP – Displays IPv4 network traffic
    • IP6 – Displays IPv6 network traffic
    • NFS – Displays NFS client activities
    • NFSD – Displays NFS server activities
    • SOCK – Displays sockets in use for IPv4
    • SOCK6 – Displays sockets in use for IPv6
    • TCP – Displays TCPv4 network traffic
    • UDP – Displays UDPv4 network traffic
    • UDP6 - Displays UDPv6 network traffic
  • Swap space utilization :
  • Disk statistics :
  • Process creation statistics :
  • Paging statistics :
  • Block device statistics :
  • Network statistics :
  • Inode statistics :
    • # sar -v
  • Swapping statistics :
  • # sar -W
  • # sar -w
  • System switching statistics :
  • Real time information can be displayed as well by adding interval and integer arguments :
    • Example : Display CPU statistics every five seconds a total of ten times
    • # sar 5 10
  • By default the 'sar' command display's the current day's statistics, but you can change that by use the switches -s for start and -e for end
  • Example : # sar -s 12:00:00 -e 16:00:00
  • This will display the CPU statistics for today between noon and 4PM

 

Back to Top


 

Cause

.

Resolution

Ask the community on the "Enterprise Operating Systems" forums

Affected Products

SUSE Linux Enterprise Server 11
Article Properties
Article Number: 000137717
Article Type: Solution
Last Modified: 14 Aug 2024
Version:  5
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.