PowerEdge: Come utilizzare System Activity Report, "sar", per visualizzare informazioni sulle prestazioni su SUSE Linux Enterprise Server (SLES)
Summary: Come utilizzare System Activity Report (sar) per visualizzare informazioni sulle prestazioni di 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.
Instructions
Riepilogo dell'articolo: Questo articolo fornisce informazioni su come utilizzare System Activity Report, 'sar', per visualizzare le informazioni sulle prestazioni di SUSE Linux Enterprise Server (SLES).
Sommario:
1. Installazione
numero arabo. Configurazione della registrazione
3. Uso del comando 'sar'
1. Installazione
- Assicurarsi di aver eseguito l'accesso come utente 'root'.
- '
sar» fa parte del «sysstat' pacchetto# yast2 -i sysstat
- Creare un collegamento simbolico per il cron job:
# ln -s /etc/sysstat/sysstat.cron /etc/cron.d/sysstat.cron
- Riavviare il servizio Cron:
# rccron restart
Torna alla tabella dei contenuti
2. Configurare la registrazione:
- Modificare
'/etc/sysstat/sysstat' con il tuo editor preferito - Trova la riga che inizia con 'HISTORY='
- Il valore rappresenta il numero di giorni di conservazione dei file di registro
- L'impostazione predefinita è sessanta giorni ed è possibile modificarla in base alle proprie esigenze
- I file di registro vengono archiviati nel file '
/var/log/sa' Elenco
3. Uso del comando 'sar'
NOTA: L'esecuzione del cron job richiede almeno 10 minuti per raccogliere i dati in modo da poter utilizzare questo comando.
- Visualizzare i valori del giorno corrente:
- Statistiche della CPU
# sar- Per specificare una CPU, ad esempio CPU 3:
# sar -P 3
- Lunghezza della coda e statistiche medie:
# sar -q
- Statistiche RAM:
# sar -r# sar -R
- Statistiche di rete:
# sar -n NAME
- Sostituire
NAMEcon una delle seguenti condizioni:ALL – This displays all of the above informationDEV – Displays network devices vital statisticsEDEV – Display network device failure statisticsEICMP – Displays ICMPv4 network errorsEIP – Displays IPv4 network errorsEIP6 – Displays IPv6 network errorsETCP – Displays TCPv4 network errorsICMP – Displays ICMPv4 network trafficICMP6 – Displays ICMPv6 network trafficIP – Displays IPv4 network trafficIP6 – Displays IPv6 network trafficNFS – Displays NFS client activitiesNFSD – Displays NFS server activitiesSOCK – Displays sockets in use for IPv4SOCK6 – Displays sockets in use for IPv6TCP – Displays TCPv4 network trafficUDP – Displays UDPv4 network trafficUDP6 - Displays UDPv6 network traffic
- Utilizzo dello spazio di swap:
# sar -S
- Statistiche del disco:
# sar -b
- Statistiche di paging:
# sar -B
- Statistiche dei dispositivi a blocchi:
# sar -d
- Statistiche inode:
# sar -v
- Statistiche di swapping:
# sar -W# sar -w
- Statistiche di cambio del sistema:
- Le informazioni in tempo reale possono essere visualizzate anche aggiungendo argomenti interval e integer:
- Esempio: Visualizza le statistiche della CPU ogni cinque secondi per un totale di dieci volte
# sar 5 10
- Per impostazione predefinita, il comando 'sar' visualizza le statistiche del giorno corrente, ma è possibile modificarle utilizzando gli interruttori -s per l'inizio e -e per la fine
- Esempio:
# sar -s 12:00:00 -e 16:00:00 - Vengono visualizzate le statistiche della CPU per oggi tra mezzogiorno e le 16:00
Additional Information
Rivolgersi alla community sui forum "Enterprise Operating Systems".
Affected Products
SUSE Linux Enterprise Server 11, SUSE Linux Enterprise Server 12, SUSE Linux Enterprise Server 15Products
PowerEdge XR2, PowerEdge C6420, PowerEdge C6520, PowerEdge C6525, PowerEdge C6615, PowerEdge C6620, PowerEdge FC640, PowerEdge M640, PowerEdge M640 (for PE VRTX), PowerEdge MX740C, PowerEdge MX750c, PowerEdge MX760c, PowerEdge MX840C, PowerEdge R240
, PowerEdge R250, PowerEdge R260, PowerEdge R340, PowerEdge R350, PowerEdge R360, PowerEdge R440, PowerEdge R450, PowerEdge R540, PowerEdge R550, PowerEdge R640, PowerEdge R6415, PowerEdge R650, PowerEdge R650xs, PowerEdge R6515, PowerEdge R6525, PowerEdge R660, PowerEdge R660xs, PowerEdge R6615, PowerEdge R6625, PowerEdge R740, PowerEdge R740XD, PowerEdge R740XD2, PowerEdge R7415, PowerEdge R7425, PowerEdge R750, PowerEdge R750XA, PowerEdge R750xs, PowerEdge R7515, PowerEdge R7525, PowerEdge R760, PowerEdge R760XA, PowerEdge R760xd2, PowerEdge R760xs, PowerEdge R7615, PowerEdge R7625, PowerEdge R840, PowerEdge R860, PowerEdge R940, PowerEdge R940xa, PowerEdge R960, PowerEdge T140, PowerEdge T150, PowerEdge T160, PowerEdge T340, PowerEdge T350, PowerEdge T360, PowerEdge T440, PowerEdge T550, PowerEdge T560, PowerEdge T640, PowerEdge XE2420, PowerEdge XE7420, PowerEdge XE7440, PowerEdge XE8545, PowerEdge XE8640, PowerEdge XE9640, PowerEdge XE9680, PowerEdge XR11, PowerEdge XR12, PowerEdge XR4510c, PowerEdge XR4520c
...
Article Properties
Article Number: 000137717
Article Type: How To
Last Modified: 10 Dec 2024
Version: 6
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.