Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
elearning:workbooks:centos:8:junior:l117 [2021/12/29 10:30] – admin | elearning:workbooks:centos:8:junior:l117 [2023/12/25 11:16] (Version actuelle) – admin | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
~~PDF: | ~~PDF: | ||
- | Version : **2021.01** | + | Version : **2023.01** |
Dernière mise-à-jour : ~~LASTMOD~~ | Dernière mise-à-jour : ~~LASTMOD~~ | ||
======LCF511 - Gestion des Paramètres du matériel et les Ressources====== | ======LCF511 - Gestion des Paramètres du matériel et les Ressources====== | ||
+ | |||
+ | < | ||
+ | [root@centos8 ~]# sed -i ' | ||
+ | [root@centos8 ~]# sed -i ' | ||
+ | </ | ||
=====Contenu du Module===== | =====Contenu du Module===== | ||
Ligne 12: | Ligne 17: | ||
* Contenu du Module | * Contenu du Module | ||
* Présentation des Fichiers Spéciaux | * Présentation des Fichiers Spéciaux | ||
- | * LAB #1 - Commandes | + | * LAB #1 - Découvrir le Matériel |
* 1.1 - La Commande lspci | * 1.1 - La Commande lspci | ||
* 1.2 - La Commande lsusb | * 1.2 - La Commande lsusb | ||
- | * 1.3 - La Commande dmidecode | + | * 1.3 - La Commande lsblk |
+ | * 1.4 - La Commande lsscsi | ||
+ | * 1.5 - La Commande lscpu | ||
+ | * 1.6 - La Commande lshw | ||
+ | * 1.7 - La Commande dmidecode | ||
+ | * 1.8 - La Commande smartctl | ||
+ | * 1.9 - Les Commandes accton et dump-acct | ||
+ | * 1.10 - La Commande lastcomm | ||
+ | * 1.11 - La Commande sa | ||
+ | * 1.12 - La Commande ac | ||
* LAB #2 - La Commande sysctl | * LAB #2 - La Commande sysctl | ||
* 2.1 - Répertoire /proc | * 2.1 - Répertoire /proc | ||
Ligne 130: | Ligne 144: | ||
* le **mineur** identifie le périphérique ou une particularité du périphérique telle une partition d'un disque. | * le **mineur** identifie le périphérique ou une particularité du périphérique telle une partition d'un disque. | ||
- | =====LAB #1 - Commandes===== | + | =====LAB #1 - Découvrir le Matériel===== |
====1.1 - La Commande lspci==== | ====1.1 - La Commande lspci==== | ||
Ligne 277: | Ligne 291: | ||
</ | </ | ||
- | ====1.3 - La Commande dmidecode==== | + | ====1.3 |
+ | |||
+ | Cette commande vous rensigne sur les partitions des disques : | ||
+ | |||
+ | < | ||
+ | [root@centos8 ~]# lsblk | ||
+ | NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT | ||
+ | sda | ||
+ | ├─sda1 | ||
+ | └─sda2 | ||
+ | ├─cl_centos8-root 253:0 0 27.8G 0 lvm / | ||
+ | └─cl_centos8-swap 253:1 0 3.2G 0 lvm [SWAP] | ||
+ | sdb | ||
+ | sdc | ||
+ | └─sdc1 | ||
+ | sdd | ||
+ | sr0 11:0 1 1024M 0 rom | ||
+ | |||
+ | [root@centos8 ~]# lsblk -l | ||
+ | NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT | ||
+ | sda | ||
+ | sda1 8:1 0 1G 0 part /boot | ||
+ | sda2 8:2 0 | ||
+ | sdb | ||
+ | sdc | ||
+ | sdc1 8:33 | ||
+ | sdd | ||
+ | sr0 11:0 1 1024M 0 rom | ||
+ | cl_centos8-root 253:0 0 27.8G 0 lvm / | ||
+ | cl_centos8-swap 253:1 0 3.2G 0 lvm [SWAP] | ||
+ | </ | ||
+ | |||
+ | ===Options de la commande=== | ||
+ | |||
+ | Les options de cette commande sont : | ||
+ | |||
+ | < | ||
+ | [root@centos8 ~]# lsblk --help | ||
+ | |||
+ | Usage: | ||
+ | lsblk [options] [< | ||
+ | |||
+ | List information about block devices. | ||
+ | |||
+ | Options: | ||
+ | -a, --all print all devices | ||
+ | -b, --bytes | ||
+ | -d, --nodeps | ||
+ | -D, --discard | ||
+ | -z, --zoned | ||
+ | -e, --exclude < | ||
+ | -f, --fs | ||
+ | -i, --ascii | ||
+ | -I, --include < | ||
+ | -J, --json | ||
+ | -l, --list | ||
+ | -T, --tree | ||
+ | -m, --perms | ||
+ | -n, --noheadings | ||
+ | -o, --output < | ||
+ | -O, --output-all | ||
+ | -p, --paths | ||
+ | -P, --pairs | ||
+ | -r, --raw use raw output format | ||
+ | -s, --inverse | ||
+ | -S, --scsi | ||
+ | -t, --topology | ||
+ | -x, --sort < | ||
+ | |||
+ | -h, --help | ||
+ | -V, --version | ||
+ | |||
+ | Available output columns: | ||
+ | NAME device name | ||
+ | | ||
+ | | ||
+ | FSTYPE | ||
+ | MOUNTPOINT | ||
+ | | ||
+ | UUID filesystem UUID | ||
+ | PARTTYPE | ||
+ | | ||
+ | PARTUUID | ||
+ | | ||
+ | RA read-ahead of the device | ||
+ | RO read-only device | ||
+ | RM removable device | ||
+ | | ||
+ | | ||
+ | SERIAL | ||
+ | SIZE size of the device | ||
+ | | ||
+ | | ||
+ | | ||
+ | MODE device node permissions | ||
+ | | ||
+ | MIN-IO | ||
+ | OPT-IO | ||
+ | | ||
+ | | ||
+ | ROTA rotational device | ||
+ | | ||
+ | | ||
+ | TYPE device type | ||
+ | DISC-ALN | ||
+ | | ||
+ | DISC-MAX | ||
+ | | ||
+ | | ||
+ | | ||
+ | RAND adds randomness | ||
+ | PKNAME | ||
+ | HCTL Host: | ||
+ | TRAN device transport type | ||
+ | SUBSYSTEMS | ||
+ | | ||
+ | VENDOR | ||
+ | | ||
+ | |||
+ | For more details see lsblk(8). | ||
+ | </ | ||
+ | |||
+ | ====1.4 - La Commande lsscsi==== | ||
+ | |||
+ | Cette commmande vous renseigne sur les périphériques SCSI et NVMe : | ||
+ | |||
+ | < | ||
+ | [root@centos8 ~]# lsscsi | ||
+ | [1: | ||
+ | [2: | ||
+ | [3: | ||
+ | [4: | ||
+ | [5: | ||
+ | </ | ||
+ | |||
+ | ===Options de la commande=== | ||
+ | |||
+ | Les options de cette commande sont : | ||
+ | |||
+ | < | ||
+ | [root@centos8 ~]# man lsscsi | ||
+ | [root@centos8 ~]# lsscsi --help | ||
+ | Usage: lsscsi | ||
+ | [--help] [--hosts] [--kname] [--list] [--long] [--long-unit] | ||
+ | [--lunhex] [--no-nvme] [--pdt] [--protection] [--prot-mode] | ||
+ | [--scsi_id] [--size] [--sz-lbs] [--sysfsroot=PATH] [--transport] | ||
+ | [--unit] [--verbose] [--version] [--wwn] | ||
+ | where: | ||
+ | --brief|-b | ||
+ | --classic|-c | ||
+ | --controllers|-C | ||
+ | like SCSI hosts | ||
+ | --device|-d | ||
+ | --generic|-g | ||
+ | --help|-h | ||
+ | --hosts|-H | ||
+ | --kname|-k | ||
+ | --list|-L | ||
+ | attribute=value per line | ||
+ | --long|-l | ||
+ | --long-unit|-U | ||
+ | ' | ||
+ | --lunhex|-x | ||
+ | use twice to get full 16 digit hexadecimal LUN | ||
+ | --no-nvme|-N | ||
+ | --pdt|-D | ||
+ | --protection|-p | ||
+ | --protmode|-P | ||
+ | --scsi_id|-i | ||
+ | --size|-s | ||
+ | twice for power of two (e.g. 2.7 GiB), | ||
+ | thrice for number of blocks)) | ||
+ | --sysfsroot=PATH|-y PATH set sysfs mount point to PATH (def: /sys) | ||
+ | --sz-lbs|-S | ||
+ | adds comma followed by logical block size in bytes | ||
+ | --transport|-t | ||
+ | given, for initiator | ||
+ | --unit|-u | ||
+ | --verbose|-v | ||
+ | --version|-V | ||
+ | --wwn|-w | ||
+ | < | ||
+ | < | ||
+ | <' | ||
+ | |||
+ | List SCSI devices or hosts, followed by NVMe namespaces or controllers. | ||
+ | Many storage devices (e.g. SATA disks and USB attached storage) use SCSI | ||
+ | command sets and hence are also listed by this utility. Hyphenated long | ||
+ | options can also take underscore (and vice versa). | ||
+ | </ | ||
+ | |||
+ | ====1.5 - La Commande lscpu==== | ||
+ | |||
+ | Cett commande vous renseigne sur l' | ||
+ | |||
+ | < | ||
+ | [root@centos8 ~]# lscpu | ||
+ | Architecture: | ||
+ | CPU op-mode(s): | ||
+ | Byte Order: | ||
+ | CPU(s): | ||
+ | On-line CPU(s) list: 0-7 | ||
+ | Thread(s) per core: 1 | ||
+ | Core(s) per socket: | ||
+ | Socket(s): | ||
+ | NUMA node(s): | ||
+ | Vendor ID: | ||
+ | BIOS Vendor ID: QEMU | ||
+ | CPU family: | ||
+ | Model: | ||
+ | Model name: Intel(R) Xeon(R) CPU E3-1270 v6 @ 3.80GHz | ||
+ | BIOS Model name: | ||
+ | Stepping: | ||
+ | CPU MHz: | ||
+ | BogoMIPS: | ||
+ | Virtualization: | ||
+ | Hypervisor vendor: | ||
+ | Virtualization type: full | ||
+ | L1d cache: | ||
+ | L1i cache: | ||
+ | L2 cache: | ||
+ | L3 cache: | ||
+ | NUMA node0 CPU(s): | ||
+ | Flags: | ||
+ | </ | ||
+ | |||
+ | ===Options de la commande=== | ||
+ | |||
+ | Les options de cette commande sont : | ||
+ | |||
+ | < | ||
+ | [root@centos8 ~]# lscpu --help | ||
+ | |||
+ | Usage: | ||
+ | lscpu [options] | ||
+ | |||
+ | Display information about the CPU architecture. | ||
+ | |||
+ | Options: | ||
+ | -a, --all print both online and offline CPUs (default for -e) | ||
+ | -b, --online | ||
+ | -c, --offline | ||
+ | -J, --json | ||
+ | -e, --extended[=< | ||
+ | -p, --parse[=< | ||
+ | -s, --sysroot < | ||
+ | -x, --hex print hexadecimal masks rather than lists of CPUs | ||
+ | -y, --physical | ||
+ | |||
+ | -h, --help | ||
+ | -V, --version | ||
+ | |||
+ | Available output columns: | ||
+ | | ||
+ | CORE logical core number | ||
+ | SOCKET | ||
+ | | ||
+ | NODE logical NUMA node number | ||
+ | BOOK logical book number | ||
+ | DRAWER | ||
+ | | ||
+ | POLARIZATION | ||
+ | | ||
+ | CONFIGURED | ||
+ | ONLINE | ||
+ | MAXMHZ | ||
+ | MINMHZ | ||
+ | |||
+ | For more details see lscpu(1). | ||
+ | </ | ||
+ | |||
+ | ====1.6 - La Command lshw==== | ||
+ | |||
+ | Cette commande vous renseigne sur le matériel selon la **classe** de celui-ci. Commencez par visualiser les périphériques et leurs classes répectives : | ||
+ | |||
+ | < | ||
+ | [root@centos8 ~]# lshw -businfo | ||
+ | Bus info Device | ||
+ | ==================================================== | ||
+ | system | ||
+ | bus Motherboard | ||
+ | memory | ||
+ | cpu@0 | ||
+ | cpu@1 | ||
+ | memory | ||
+ | memory | ||
+ | pci@0000: | ||
+ | pci@0000: | ||
+ | input PnP device PNP0303 | ||
+ | input PnP device PNP0f13 | ||
+ | storage | ||
+ | system | ||
+ | pci@0000: | ||
+ | scsi@1: | ||
+ | pci@0000: | ||
+ | usb@1 | ||
+ | usb@1: | ||
+ | pci@0000: | ||
+ | pci@0000: | ||
+ | pci@0000: | ||
+ | virtio@0 | ||
+ | pci@0000: | ||
+ | scsi@2: | ||
+ | scsi@2: | ||
+ | scsi@2: | ||
+ | scsi@3: | ||
+ | scsi@4: | ||
+ | scsi@4: | ||
+ | scsi@5: | ||
+ | pci@0000: | ||
+ | virtio@1 | ||
+ | pci@0000: | ||
+ | virtio@2 | ||
+ | pci@0000: | ||
+ | pci@0000: | ||
+ | input0 | ||
+ | input1 | ||
+ | input3 | ||
+ | input4 | ||
+ | input6 | ||
+ | </ | ||
+ | |||
+ | Consultez maintenant le matériel de la classe **system** : | ||
+ | |||
+ | < | ||
+ | [root@centos8 ~]# lshw -c system | ||
+ | centos8.ittraining.loc | ||
+ | description: | ||
+ | product: Standard PC (i440FX + PIIX, 1996) | ||
+ | vendor: QEMU | ||
+ | version: pc-i440fx-7.0 | ||
+ | width: 64 bits | ||
+ | capabilities: | ||
+ | configuration: | ||
+ | *-pnp00: | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | </ | ||
+ | |||
+ | Consultez maintenant le matériel des autres classes principales : | ||
+ | |||
+ | < | ||
+ | [root@centos8 ~]# lshw -c memory | ||
+ | *-firmware | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | date: 04/ | ||
+ | size: 96KiB | ||
+ | *-memory | ||
+ | | ||
+ | | ||
+ | size: 16GiB | ||
+ | | ||
+ | | ||
+ | | ||
+ | description: | ||
+ | vendor: QEMU | ||
+ | physical id: 0 | ||
+ | slot: DIMM 0 | ||
+ | |||
+ | [root@centos8 ~]# lshw -c video | ||
+ | *-display | ||
+ | | ||
+ | | ||
+ | | ||
+ | bus info: pci@0000: | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | |||
+ | |||
+ | [root@centos8 ~]# lshw -c storage | ||
+ | *-pnp00: | ||
+ | | ||
+ | | ||
+ | | ||
+ | *-ide | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | bus info: pci@0000: | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | *-sata | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | bus info: pci@0000: | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | |||
+ | |||
+ | [root@centos8 ~]# lshw -c disk | ||
+ | *-cdrom | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | bus info: scsi@1: | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | *-disk:0 | ||
+ | | ||
+ | | ||
+ | | ||
+ | bus info: scsi@2: | ||
+ | | ||
+ | | ||
+ | | ||
+ | size: 32GiB (34GB) | ||
+ | | ||
+ | | ||
+ | *-disk:1 | ||
+ | | ||
+ | | ||
+ | | ||
+ | bus info: scsi@3: | ||
+ | | ||
+ | | ||
+ | | ||
+ | size: 4GiB (4294MB) | ||
+ | | ||
+ | *-disk:2 | ||
+ | | ||
+ | | ||
+ | | ||
+ | bus info: scsi@4: | ||
+ | | ||
+ | | ||
+ | | ||
+ | size: 64GiB (68GB) | ||
+ | | ||
+ | | ||
+ | *-disk:3 | ||
+ | | ||
+ | | ||
+ | | ||
+ | bus info: scsi@5: | ||
+ | | ||
+ | | ||
+ | | ||
+ | size: 32GiB (34GB) | ||
+ | | ||
+ | |||
+ | |||
+ | [root@centos8 ~]# lshw -c volume | ||
+ | *-volume: | ||
+ | | ||
+ | | ||
+ | | ||
+ | bus info: scsi@2: | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | size: 1GiB | ||
+ | | ||
+ | | ||
+ | | ||
+ | *-volume: | ||
+ | | ||
+ | | ||
+ | bus info: scsi@2: | ||
+ | | ||
+ | | ||
+ | size: 30GiB | ||
+ | | ||
+ | | ||
+ | *-volume | ||
+ | | ||
+ | | ||
+ | | ||
+ | bus info: scsi@4: | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | size: 63GiB | ||
+ | | ||
+ | | ||
+ | | ||
+ | |||
+ | [root@centos8 ~]# lshw -c network | ||
+ | *-network: | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | bus info: pci@0000: | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | description: | ||
+ | physical id: 0 | ||
+ | bus info: virtio@1 | ||
+ | logical name: ens18 | ||
+ | serial: 5e: | ||
+ | capabilities: | ||
+ | configuration: | ||
+ | *-network: | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | bus info: pci@0000: | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | description: | ||
+ | physical id: 0 | ||
+ | bus info: virtio@2 | ||
+ | logical name: ens19 | ||
+ | serial: ea: | ||
+ | capabilities: | ||
+ | configuration: | ||
+ | </ | ||
+ | |||
+ | ===Options de la commande=== | ||
+ | |||
+ | Les options de cette commande sont : | ||
+ | |||
+ | < | ||
+ | [root@centos8 ~]# lshw -h | ||
+ | Hardware Lister (lshw) - B.02.19.2 | ||
+ | usage: lshw [-format] [-options ...] | ||
+ | lshw -version | ||
+ | |||
+ | -version | ||
+ | |||
+ | format can be | ||
+ | -html | ||
+ | -xml output hardware tree as XML | ||
+ | -json | ||
+ | -short | ||
+ | -businfo | ||
+ | |||
+ | options can be | ||
+ | -dump filename | ||
+ | -class CLASS only show a certain class of hardware | ||
+ | -C CLASS same as ' | ||
+ | -c CLASS same as ' | ||
+ | -disable TEST | ||
+ | -enable TEST enable a test (like pci, isapnp, cpuid, etc. ) | ||
+ | -quiet | ||
+ | -sanitize | ||
+ | -numeric | ||
+ | -notime | ||
+ | </ | ||
+ | |||
+ | ====1.7 | ||
La commande **dmidecode** lit la table **DMI** (//Desktop Management Interface// | La commande **dmidecode** lit la table **DMI** (//Desktop Management Interface// | ||
Ligne 458: | Ligne 1055: | ||
| | ||
-V, --version | -V, --version | ||
+ | </ | ||
+ | |||
+ | ====1.8 - La Commande smartctl==== | ||
+ | |||
+ | **smartctl** contrôle le système SMART (Self-Monitoring, | ||
+ | |||
+ | < | ||
+ | [root@centos8 ~]# smartctl --smart=on --saveauto=on --offlineauto=on /dev/sdb | ||
+ | |||
+ | [root@centos8 ~]# smartctl -a /dev/sdb | ||
+ | smartctl 7.1 2020-04-05 r5049 [x86_64-linux-4.18.0-305.7.1.el8_4.x86_64] (local build) | ||
+ | Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org | ||
+ | |||
+ | === START OF INFORMATION SECTION === | ||
+ | Device Model: | ||
+ | Serial Number: | ||
+ | Firmware Version: 2.5+ | ||
+ | User Capacity: | ||
+ | Sector Size: 512 bytes logical/ | ||
+ | Device is: Not in smartctl database [for details use: -P showall] | ||
+ | ATA Version is: | ||
+ | Local Time is: Sun Nov 13 09:12:18 2022 CET | ||
+ | SMART support is: Available - device has SMART capability. | ||
+ | SMART support is: Enabled | ||
+ | |||
+ | === START OF READ SMART DATA SECTION === | ||
+ | SMART overall-health self-assessment test result: PASSED | ||
+ | |||
+ | General SMART Values: | ||
+ | Offline data collection status: | ||
+ | was completed without error. | ||
+ | Auto Offline Data Collection: Disabled. | ||
+ | Self-test execution status: | ||
+ | without error or no self-test has ever | ||
+ | been run. | ||
+ | Total time to complete Offline | ||
+ | data collection: | ||
+ | Offline data collection | ||
+ | capabilities: | ||
+ | No Auto Offline data collection support. | ||
+ | Suspend Offline collection upon new | ||
+ | command. | ||
+ | Offline surface scan supported. | ||
+ | Self-test supported. | ||
+ | No Conveyance Self-test supported. | ||
+ | No Selective Self-test supported. | ||
+ | SMART capabilities: | ||
+ | power-saving mode. | ||
+ | Supports SMART auto save timer. | ||
+ | Error logging capability: | ||
+ | No General Purpose Logging support. | ||
+ | Short self-test routine | ||
+ | recommended polling time: ( 2) minutes. | ||
+ | Extended self-test routine | ||
+ | recommended polling time: ( 54) minutes. | ||
+ | |||
+ | SMART Attributes Data Structure revision number: 1 | ||
+ | Vendor Specific SMART Attributes with Thresholds: | ||
+ | ID# ATTRIBUTE_NAME | ||
+ | 1 Raw_Read_Error_Rate | ||
+ | 3 Spin_Up_Time | ||
+ | 4 Start_Stop_Count | ||
+ | 5 Reallocated_Sector_Ct | ||
+ | 9 Power_On_Hours | ||
+ | 12 Power_Cycle_Count | ||
+ | 190 Airflow_Temperature_Cel 0x0003 | ||
+ | |||
+ | SMART Error Log Version: 1 | ||
+ | No Errors Logged | ||
+ | |||
+ | SMART Self-test log structure revision number 1 | ||
+ | No self-tests have been logged. | ||
+ | |||
+ | Selective Self-tests/ | ||
+ | </ | ||
+ | |||
+ | ===Options de la commande=== | ||
+ | |||
+ | Les options de cette commande sont : | ||
+ | |||
+ | < | ||
+ | [root@centos8 ~]# smartctl --help | ||
+ | smartctl 7.1 2020-04-05 r5049 [x86_64-linux-4.18.0-305.7.1.el8_4.x86_64] (local build) | ||
+ | Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org | ||
+ | |||
+ | Usage: smartctl [options] device | ||
+ | |||
+ | ============================================ SHOW INFORMATION OPTIONS ===== | ||
+ | |||
+ | -h, --help, --usage | ||
+ | | ||
+ | |||
+ | -V, --version, --copyright, | ||
+ | Print license, copyright, and version information and exit | ||
+ | |||
+ | -i, --info | ||
+ | Show identity information for device | ||
+ | |||
+ | --identify[=[w][nvb]] | ||
+ | Show words and bits from IDENTIFY DEVICE data (ATA) | ||
+ | |||
+ | -g NAME, --get=NAME | ||
+ | Get device setting: all, aam, apm, dsn, lookahead, security, | ||
+ | wcache, rcache, wcreorder, wcache-sct | ||
+ | |||
+ | -a, --all | ||
+ | Show all SMART information for device | ||
+ | |||
+ | -x, --xall | ||
+ | Show all information for device | ||
+ | |||
+ | --scan | ||
+ | Scan for devices | ||
+ | |||
+ | --scan-open | ||
+ | Scan for devices and try to open each device | ||
+ | |||
+ | ================================== SMARTCTL RUN-TIME BEHAVIOR OPTIONS ===== | ||
+ | |||
+ | -j, --json[=[cgiosuv]] | ||
+ | Print output in JSON format | ||
+ | |||
+ | -q TYPE, --quietmode=TYPE | ||
+ | Set smartctl quiet mode to one of: errorsonly, silent, noserial | ||
+ | |||
+ | -d TYPE, --device=TYPE | ||
+ | | ||
+ | ata, scsi[+TYPE], | ||
+ | |||
+ | -T TYPE, --tolerance=TYPE | ||
+ | | ||
+ | |||
+ | -b TYPE, --badsum=TYPE | ||
+ | Set action on bad checksum to one of: warn, exit, ignore | ||
+ | |||
+ | -r TYPE, --report=TYPE | ||
+ | | ||
+ | |||
+ | -n MODE[, | ||
+ | No check if: never, sleep, standby, idle (see man page) | ||
+ | |||
+ | ============================== DEVICE FEATURE ENABLE/ | ||
+ | |||
+ | -s VALUE, --smart=VALUE | ||
+ | Enable/ | ||
+ | |||
+ | -o VALUE, --offlineauto=VALUE | ||
+ | Enable/ | ||
+ | |||
+ | -S VALUE, --saveauto=VALUE | ||
+ | Enable/ | ||
+ | |||
+ | -s NAME[, | ||
+ | Enable/ | ||
+ | dsn, | ||
+ | standby, | ||
+ | wcreorder, | ||
+ | |||
+ | ======================================= READ AND DISPLAY DATA OPTIONS ===== | ||
+ | |||
+ | -H, --health | ||
+ | Show device SMART health status | ||
+ | |||
+ | -c, --capabilities | ||
+ | Show device SMART capabilities | ||
+ | |||
+ | -A, --attributes | ||
+ | Show device SMART vendor-specific Attributes and values | ||
+ | |||
+ | -f FORMAT, --format=FORMAT | ||
+ | Set output format for attributes: old, brief, hex[, | ||
+ | |||
+ | -l TYPE, --log=TYPE | ||
+ | Show device log. TYPE: error, selftest, selective, directory[, | ||
+ | xerror[, | ||
+ | sasphy[, | ||
+ | scttempint, | ||
+ | gplog, | ||
+ | |||
+ | -v N,OPTION , --vendorattribute=N, | ||
+ | Set display OPTION for vendor Attribute N (see man page) | ||
+ | |||
+ | -F TYPE, --firmwarebug=TYPE | ||
+ | Use firmware bug workaround: | ||
+ | none, nologdir, samsung, samsung2, samsung3, xerrorlba, swapid | ||
+ | |||
+ | -P TYPE, --presets=TYPE | ||
+ | Drive-specific presets: use, ignore, show, showall | ||
+ | |||
+ | -B [+]FILE, --drivedb=[+]FILE | ||
+ | Read and replace [add] drive database from FILE | ||
+ | [default is +/ | ||
+ | and then / | ||
+ | |||
+ | ============================================ DEVICE SELF-TEST OPTIONS ===== | ||
+ | |||
+ | -t TEST, --test=TEST | ||
+ | Run test. TEST: offline, short, long, conveyance, force, vendor,N, | ||
+ | select,M-N, pending,N, afterselect, | ||
+ | |||
+ | -C, --captive | ||
+ | Do test in captive mode (along with -t) | ||
+ | |||
+ | -X, --abort | ||
+ | Abort any non-captive test on device | ||
+ | |||
+ | =================================================== SMARTCTL EXAMPLES ===== | ||
+ | |||
+ | smartctl --all / | ||
+ | |||
+ | smartctl --smart=on --offlineauto=on --saveauto=on /dev/sda | ||
+ | (Enables SMART on first disk) | ||
+ | |||
+ | smartctl --test=long / | ||
+ | |||
+ | smartctl --attributes --log=selftest --quietmode=errorsonly /dev/sda | ||
+ | (Prints Self-Test & Attribute errors) | ||
+ | smartctl --all --device=3ware, | ||
+ | smartctl --all --device=3ware, | ||
+ | smartctl --all --device=3ware, | ||
+ | smartctl --all --device=3ware, | ||
+ | (Prints all SMART info for 3rd ATA disk on 3ware RAID controller) | ||
+ | smartctl --all --device=hpt, | ||
+ | (Prints all SMART info for the SATA disk attached to the 3rd PMPort | ||
+ | of the 1st channel on the 1st HighPoint RAID controller) | ||
+ | smartctl --all --device=areca, | ||
+ | (Prints all SMART info for 3rd ATA disk of the 1st enclosure | ||
+ | on Areca RAID controller) | ||
+ | </ | ||
+ | |||
+ | ====1.9 - Les Commandes accton et dump-acct==== | ||
+ | |||
+ | Cette commande permet d' | ||
+ | |||
+ | < | ||
+ | [root@centos8 ~]# accton on | ||
+ | Turning on process accounting, file set to the default '/ | ||
+ | [root@centos8 ~]# systemctl status psacct | ||
+ | ● psacct.service - Kernel process accounting | ||
+ | | ||
+ | | ||
+ | ...skipping... | ||
+ | ● psacct.service - Kernel process accounting | ||
+ | | ||
+ | | ||
+ | |||
+ | [root@centos8 ~]# systemctl enable psacct | ||
+ | Created symlink / | ||
+ | |||
+ | [root@centos8 ~]# systemctl start psacct | ||
+ | |||
+ | [root@centos8 ~]# systemctl status psacct | ||
+ | ● psacct.service - Kernel process accounting | ||
+ | | ||
+ | | ||
+ | Process: 39765 ExecStart=/ | ||
+ | Process: 39763 ExecStartPre=/ | ||
+ | Main PID: 39765 (code=exited, | ||
+ | |||
+ | Nov 13 09:35:16 centos8.ittraining.loc systemd[1]: Starting Kernel process accounting> | ||
+ | Nov 13 09:35:16 centos8.ittraining.loc accton[39765]: | ||
+ | Nov 13 09:35:16 centos8.ittraining.loc systemd[1]: Started Kernel process accounting. | ||
+ | </ | ||
+ | |||
+ | Par contre le fichier **/ | ||
+ | |||
+ | < | ||
+ | [root@centos8 ~]# cat / | ||
+ | #pcKaccton pcEusleep%$pcu, | ||
+ | </ | ||
+ | |||
+ | La commande **dump-acct** permet de voir son contenu mais pas de l' | ||
+ | |||
+ | < | ||
+ | [root@centos8 ~]# dump-acct / | ||
+ | accton | ||
+ | sleep | ||
+ | awk | ||
+ | ksmtuned | ||
+ | pgrep | ||
+ | ksmtuned | ||
+ | ksmtuned | ||
+ | awk | ||
+ | ksmtuned | ||
+ | less |v3| | ||
+ | systemctl | ||
+ | sleep | ||
+ | awk | ||
+ | ksmtuned | ||
+ | pgrep | ||
+ | ksmtuned | ||
+ | ksmtuned | ||
+ | awk | ||
+ | ksmtuned | ||
+ | rpc-pipefs-gene |v3| | ||
+ | nfs-server-gene |v3| | ||
+ | systemd-cryptse |v3| | ||
+ | systemd-system- |v3| | ||
+ | systemd-hiberna |v3| | ||
+ | ... | ||
+ | </ | ||
+ | |||
+ | ===Options de la commande=== | ||
+ | |||
+ | Les options de cette commande sont : | ||
+ | |||
+ | < | ||
+ | [root@centos8 ~]# dump-acct --help | ||
+ | Usage: dump-acct [-hrR] [-n < | ||
+ | [--num < | ||
+ | [--format < | ||
+ | [--ahz < | ||
+ | |||
+ | The system' | ||
+ | </ | ||
+ | |||
+ | ====1.10 - La Commande lastcomm==== | ||
+ | |||
+ | Cette commande vous renseigne sur l' | ||
+ | |||
+ | < | ||
+ | [root@centos8 ~]# lastcomm | ||
+ | bash F root | ||
+ | gdbus X root | ||
+ | ksmtuned | ||
+ | awk root | ||
+ | kworker/ | ||
+ | ksmtuned | ||
+ | ksmtuned | ||
+ | pgrep root | ||
+ | ksmtuned | ||
+ | awk root | ||
+ | sleep root | ||
+ | kworker/ | ||
+ | kworker/ | ||
+ | kworker/ | ||
+ | dump-acct | ||
+ | ksmtuned | ||
+ | awk root | ||
+ | ksmtuned | ||
+ | ksmtuned | ||
+ | pgrep root | ||
+ | ksmtuned | ||
+ | awk root | ||
+ | sleep root | ||
+ | dump-acct | ||
+ | man root | ||
+ | less | ||
+ | kworker/ | ||
+ | ksmtuned | ||
+ | awk root | ||
+ | ksmtuned | ||
+ | ksmtuned | ||
+ | pgrep root | ||
+ | ksmtuned | ||
+ | awk root | ||
+ | sleep root | ||
+ | man | ||
+ | nroff root | ||
+ | groff root | ||
+ | grotty | ||
+ | troff root | ||
+ | nroff | ||
+ | locale | ||
+ | tbl root | ||
+ | preconv | ||
+ | man | ||
+ | man | ||
+ | man | ||
+ | man | ||
+ | man | ||
+ | man | ||
+ | man | ||
+ | ksmtuned | ||
+ | awk root | ||
+ | ksmtuned | ||
+ | ksmtuned | ||
+ | pgrep root | ||
+ | ksmtuned | ||
+ | awk root | ||
+ | sleep root | ||
+ | dump-acct | ||
+ | kworker/ | ||
+ | ksmtuned | ||
+ | awk root | ||
+ | ksmtuned | ||
+ | ksmtuned | ||
+ | pgrep root | ||
+ | ksmtuned | ||
+ | awk root | ||
+ | sleep root | ||
+ | cat root | ||
+ | ksmtuned | ||
+ | awk root | ||
+ | ksmtuned | ||
+ | ksmtuned | ||
+ | pgrep root | ||
+ | ksmtuned | ||
+ | awk root | ||
+ | sleep root | ||
+ | kworker/ | ||
+ | systemctl | ||
+ | less | ||
+ | systemd-cgroups | ||
+ | systemd-cgroups | ||
+ | systemctl | ||
+ | systemd-tty-ask | ||
+ | accton | ||
+ | accton | ||
+ | accton-create | ||
+ | systemctl | ||
+ | (sd-executor) | ||
+ | systemd-gpt-aut | ||
+ | systemd-getty-g | ||
+ | systemd-veritys | ||
+ | systemd-sysv-ge | ||
+ | systemd-debug-g | ||
+ | selinux-autorel | ||
+ | grep | ||
+ | ostree-system-g | ||
+ | systemd-rc-loca | ||
+ | anaconda-genera | ||
+ | lvm2-activation | ||
+ | kdump-dep-gener | ||
+ | selinuxenabled | ||
+ | lvmconfig | ||
+ | grep | ||
+ | readlink | ||
+ | systemd-fstab-g | ||
+ | systemd-hiberna | ||
+ | systemd-system- | ||
+ | systemd-cryptse | ||
+ | nfs-server-gene | ||
+ | rpc-pipefs-gene | ||
+ | ksmtuned | ||
+ | awk root | ||
+ | ksmtuned | ||
+ | ksmtuned | ||
+ | pgrep root | ||
+ | ksmtuned | ||
+ | awk root | ||
+ | sleep root | ||
+ | systemctl | ||
+ | less | ||
+ | ksmtuned | ||
+ | awk root | ||
+ | ksmtuned | ||
+ | ksmtuned | ||
+ | pgrep root | ||
+ | ksmtuned | ||
+ | awk root | ||
+ | sleep root | ||
+ | accton | ||
+ | |||
+ | [root@centos8 ~]# lastcomm grep | ||
+ | grep | ||
+ | grep | ||
+ | grep | ||
+ | grep | ||
+ | </ | ||
+ | |||
+ | ===Options de la commande=== | ||
+ | |||
+ | Les options de cette commande sont : | ||
+ | |||
+ | < | ||
+ | [root@centos8 ~]# lastcomm --help | ||
+ | Usage: lastcomm [-hpV] [-f file] [command] ... [user] ... [terminal] ... | ||
+ | | ||
+ | | ||
+ | | ||
+ | |||
+ | The system' | ||
+ | </ | ||
+ | |||
+ | ====1.11 - La Commande sa==== | ||
+ | |||
+ | Cette commande vous renseigne sur les statistiques sur les processus lancés et leurs ressources systèmes: | ||
+ | |||
+ | < | ||
+ | [root@centos8 ~]# sa -u | egrep " | ||
+ | root 0.00 cpu 1090k mem 0 io accton | ||
+ | root 0.00 cpu 1827k mem 0 io sleep | ||
+ | root 0.00 cpu 6378k mem 0 io awk | ||
+ | root 0.00 cpu 6658k mem 0 io ksmtuned | ||
+ | root 0.00 cpu 11276k mem 0 io pgrep | ||
+ | root 0.00 cpu 6658k mem 0 io ksmtuned | ||
+ | root 0.00 cpu 6528k mem 0 io ksmtuned | ||
+ | root 0.00 cpu 6344k mem 0 io awk | ||
+ | root 0.00 cpu 6658k mem 0 io ksmtuned | ||
+ | root 0.00 cpu 2426k mem 0 io less | ||
+ | root 0.00 cpu 23376k mem 0 io systemctl | ||
+ | root 0.00 cpu 1827k mem 0 io sleep | ||
+ | root 0.00 cpu 6378k mem 0 io awk | ||
+ | root 0.00 cpu 6658k mem 0 io ksmtuned | ||
+ | root 0.00 cpu 11276k mem 0 io pgrep | ||
+ | root 0.00 cpu 6658k mem 0 io ksmtuned | ||
+ | root 0.00 cpu 6528k mem 0 io ksmtuned | ||
+ | root 0.00 cpu 6344k mem 0 io awk | ||
+ | root 0.00 cpu 6658k mem 0 io ksmtuned | ||
+ | root 0.00 cpu 9688k mem 0 io rpc-pipefs-gene | ||
+ | root 0.00 cpu 9720k mem 0 io nfs-server-gene | ||
+ | root 0.00 cpu 22592k mem 0 io systemd-cryptse | ||
+ | root 0.00 cpu 22592k mem 0 io systemd-system- | ||
+ | root 0.00 cpu 22592k mem 0 io systemd-hiberna | ||
+ | root 0.00 cpu 22592k mem 0 io systemd-fstab-g | ||
+ | root 0.00 cpu 1098k mem 0 io readlink | ||
+ | root 0.00 cpu 2302k mem 0 io grep | ||
+ | root 0.00 cpu 16260k mem 0 io lvmconfig | ||
+ | root 0.00 cpu 3350k mem 0 io selinuxenabled | ||
+ | root 0.00 cpu 5862k mem 0 io kdump-dep-gener | ||
+ | root 0.00 cpu 8406k mem 0 io lvm2-activation | ||
+ | root 0.00 cpu 5764k mem 0 io anaconda-genera | ||
+ | root 0.00 cpu 22592k mem 0 io systemd-rc-loca | ||
+ | root 0.01 cpu 38192k mem 0 io ostree-system-g | ||
+ | root 0.00 cpu 2302k mem 0 io grep | ||
+ | root 0.00 cpu 5764k mem 0 io selinux-autorel | ||
+ | root 0.00 cpu 22592k mem 0 io systemd-debug-g | ||
+ | root 0.00 cpu 22592k mem 0 io systemd-sysv-ge | ||
+ | root 0.00 cpu 22592k mem 0 io systemd-veritys | ||
+ | root 0.00 cpu 22592k mem 0 io systemd-getty-g | ||
+ | root 0.00 cpu 22592k mem 0 io systemd-gpt-aut | ||
+ | root 0.00 cpu 63728k mem 0 io (sd-executor) | ||
+ | root 0.00 cpu 23632k mem 0 io systemctl | ||
+ | root 0.00 cpu 6496k mem 0 io accton-create | ||
+ | root 0.00 cpu 0k mem 0 io accton | ||
+ | root 0.00 cpu 1090k mem 0 io accton | ||
+ | root 0.00 cpu 22592k mem 0 io systemd-tty-ask | ||
+ | root 0.00 cpu 23376k mem 0 io systemctl | ||
+ | root 0.00 cpu 22592k mem 0 io systemd-cgroups | ||
+ | root 0.00 cpu 22592k mem 0 io systemd-cgroups | ||
+ | root 0.00 cpu 2426k mem 0 io less | ||
+ | root 0.00 cpu 23376k mem 0 io systemctl | ||
+ | root 0.00 cpu 0k mem 0 io kworker/ | ||
+ | root 0.00 cpu 1827k mem 0 io sleep | ||
+ | root 0.00 cpu 6378k mem 0 io awk | ||
+ | root 0.00 cpu 6658k mem 0 io ksmtuned | ||
+ | root 0.00 cpu 11276k mem 0 io pgrep | ||
+ | root 0.00 cpu 6658k mem 0 io ksmtuned | ||
+ | root 0.00 cpu 6528k mem 0 io ksmtuned | ||
+ | root 0.00 cpu 6344k mem 0 io awk | ||
+ | root 0.00 cpu 6658k mem 0 io ksmtuned | ||
+ | root 0.00 cpu 1828k mem 0 io cat | ||
+ | root 0.00 cpu 1827k mem 0 io sleep | ||
+ | root 0.00 cpu 6378k mem 0 io awk | ||
+ | root 0.00 cpu 6658k mem 0 io ksmtuned | ||
+ | root 0.00 cpu 11276k mem 0 io pgrep | ||
+ | root 0.00 cpu 6658k mem 0 io ksmtuned | ||
+ | root 0.00 cpu 6528k mem 0 io ksmtuned | ||
+ | root 0.00 cpu 6344k mem 0 io awk | ||
+ | root 0.00 cpu 6658k mem 0 io ksmtuned | ||
+ | root 0.00 cpu 0k mem 0 io kworker/ | ||
+ | root 0.00 cpu 1994k mem 0 io dump-acct | ||
+ | root 0.00 cpu 1827k mem 0 io sleep | ||
+ | root 0.00 cpu 6378k mem 0 io awk | ||
+ | root 0.00 cpu 6658k mem 0 io ksmtuned | ||
+ | root 0.00 cpu 11276k mem 0 io pgrep | ||
+ | root 0.00 cpu 6658k mem 0 io ksmtuned | ||
+ | root 0.00 cpu 6528k mem 0 io ksmtuned | ||
+ | root 0.00 cpu 6344k mem 0 io awk | ||
+ | root 0.00 cpu 6658k mem 0 io ksmtuned | ||
+ | root 0.00 cpu 4582k mem 0 io man * | ||
+ | root 0.00 cpu 4804k mem 0 io man * | ||
+ | root 0.00 cpu 4804k mem 0 io man * | ||
+ | root 0.00 cpu 4804k mem 0 io man * | ||
+ | root 0.00 cpu 4804k mem 0 io man * | ||
+ | root 0.00 cpu 4804k mem 0 io man * | ||
+ | root 0.00 cpu 4844k mem 0 io man * | ||
+ | root 0.00 cpu 4186k mem 0 io preconv | ||
+ | root 0.00 cpu 3476k mem 0 io tbl | ||
+ | root 0.00 cpu 1831k mem 0 io locale | ||
+ | root 0.00 cpu 3182k mem 0 io nroff * | ||
+ | root 0.00 cpu 4186k mem 0 io troff | ||
+ | root 0.00 cpu 3674k mem 0 io grotty | ||
+ | root 0.00 cpu 3496k mem 0 io groff | ||
+ | root 0.00 cpu 3182k mem 0 io nroff | ||
+ | root 0.00 cpu 4804k mem 0 io man * | ||
+ | root 0.00 cpu 1827k mem 0 io sleep | ||
+ | root 0.00 cpu 6378k mem 0 io awk | ||
+ | root 0.00 cpu 6658k mem 0 io ksmtuned | ||
+ | root 0.00 cpu 11276k mem 0 io pgrep | ||
+ | root 0.00 cpu 6658k mem 0 io ksmtuned | ||
+ | root 0.00 cpu 6528k mem 0 io ksmtuned | ||
+ | root 0.00 cpu 6344k mem 0 io awk | ||
+ | root 0.00 cpu 6658k mem 0 io ksmtuned | ||
+ | root 0.00 cpu 0k mem 0 io kworker/ | ||
+ | root 0.00 cpu 2426k mem 0 io less | ||
+ | root 0.01 cpu 4770k mem 0 io man | ||
+ | root 0.00 cpu 1994k mem 0 io dump-acct | ||
+ | root 0.00 cpu 1827k mem 0 io sleep | ||
+ | root 0.00 cpu 6378k mem 0 io awk | ||
+ | root 0.00 cpu 6658k mem 0 io ksmtuned | ||
+ | root 0.00 cpu 11276k mem 0 io pgrep | ||
+ | root 0.00 cpu 6658k mem 0 io ksmtuned | ||
+ | root 0.00 cpu 6528k mem 0 io ksmtuned | ||
+ | root 0.00 cpu 6344k mem 0 io awk | ||
+ | root 0.00 cpu 6658k mem 0 io ksmtuned | ||
+ | root 0.00 cpu 2094k mem 0 io dump-acct | ||
+ | root 0.00 cpu 0k mem 0 io kworker/ | ||
+ | root 0.00 cpu 0k mem 0 io kworker/ | ||
+ | root 0.00 cpu 0k mem 0 io kworker/ | ||
+ | root 0.00 cpu 1827k mem 0 io sleep | ||
+ | root 0.00 cpu 6378k mem 0 io awk | ||
+ | root 0.00 cpu 6658k mem 0 io ksmtuned | ||
+ | root 0.00 cpu 11276k mem 0 io pgrep | ||
+ | root 0.00 cpu 6658k mem 0 io ksmtuned | ||
+ | root 0.00 cpu 6528k mem 0 io ksmtuned | ||
+ | root 0.00 cpu 0k mem 0 io kworker/ | ||
+ | root 0.00 cpu 6344k mem 0 io awk | ||
+ | root 0.00 cpu 6658k mem 0 io ksmtuned | ||
+ | root 0.00 cpu 93648k mem 0 io gdbus | ||
+ | root 0.00 cpu 6888k mem 0 io bash * | ||
+ | root 0.00 cpu 5410k mem 0 io lastcomm | ||
+ | root 0.00 cpu 1827k mem 0 io sleep | ||
+ | root 0.00 cpu 6378k mem 0 io awk | ||
+ | root 0.00 cpu 6658k mem 0 io ksmtuned | ||
+ | root 0.00 cpu 11276k mem 0 io pgrep | ||
+ | root 0.00 cpu 6658k mem 0 io ksmtuned | ||
+ | root 0.00 cpu 6528k mem 0 io ksmtuned | ||
+ | root 0.00 cpu 6344k mem 0 io awk | ||
+ | root 0.00 cpu 6658k mem 0 io ksmtuned | ||
+ | root 0.00 cpu 4570k mem 0 io man * | ||
+ | root 0.00 cpu 4804k mem 0 io man * | ||
+ | root 0.00 cpu 4804k mem 0 io man * | ||
+ | root 0.00 cpu 4804k mem 0 io man * | ||
+ | root 0.00 cpu 4804k mem 0 io man * | ||
+ | root 0.00 cpu 4804k mem 0 io man * | ||
+ | root 0.00 cpu 4844k mem 0 io man * | ||
+ | root 0.00 cpu 4186k mem 0 io preconv | ||
+ | root 0.00 cpu 3476k mem 0 io tbl | ||
+ | root 0.00 cpu 1831k mem 0 io locale | ||
+ | root 0.00 cpu 3182k mem 0 io nroff * | ||
+ | root 0.00 cpu 4186k mem 0 io troff | ||
+ | root 0.00 cpu 3706k mem 0 io grotty | ||
+ | root 0.00 cpu 3496k mem 0 io groff | ||
+ | root 0.00 cpu 3182k mem 0 io nroff | ||
+ | root 0.00 cpu 4804k mem 0 io man * | ||
+ | root 0.00 cpu 1827k mem 0 io sleep | ||
+ | root 0.00 cpu 6378k mem 0 io awk | ||
+ | root 0.00 cpu 6658k mem 0 io ksmtuned | ||
+ | root 0.00 cpu 11276k mem 0 io pgrep | ||
+ | root 0.00 cpu 6658k mem 0 io ksmtuned | ||
+ | root 0.00 cpu 6528k mem 0 io ksmtuned | ||
+ | root 0.00 cpu 6344k mem 0 io awk | ||
+ | root 0.00 cpu 6658k mem 0 io ksmtuned | ||
+ | root 0.00 cpu 2426k mem 0 io less | ||
+ | root 0.00 cpu 4770k mem 0 io man | ||
+ | root 0.00 cpu 4604k mem 0 io man * | ||
+ | root 0.00 cpu 4760k mem 0 io man * | ||
+ | root 0.00 cpu 4804k mem 0 io man * | ||
+ | root 0.00 cpu 4804k mem 0 io man * | ||
+ | root 0.00 cpu 4804k mem 0 io man * | ||
+ | root 0.00 cpu 4804k mem 0 io man * | ||
+ | root 0.00 cpu 4804k mem 0 io man * | ||
+ | root 0.00 cpu 4844k mem 0 io man * | ||
+ | root 0.00 cpu 4186k mem 0 io preconv | ||
+ | root 0.00 cpu 3476k mem 0 io tbl | ||
+ | root 0.00 cpu 1831k mem 0 io locale | ||
+ | root 0.00 cpu 3182k mem 0 io nroff * | ||
+ | root 0.00 cpu 4186k mem 0 io troff | ||
+ | root 0.00 cpu 3700k mem 0 io grotty | ||
+ | root 0.00 cpu 3496k mem 0 io groff | ||
+ | root 0.00 cpu 3182k mem 0 io nroff | ||
+ | root 0.00 cpu 4804k mem 0 io man * | ||
+ | root 0.00 cpu 1827k mem 0 io sleep | ||
+ | root 0.00 cpu 6378k mem 0 io awk | ||
+ | root 0.00 cpu 6658k mem 0 io ksmtuned | ||
+ | root 0.00 cpu 11276k mem 0 io pgrep | ||
+ | root 0.00 cpu 6658k mem 0 io ksmtuned | ||
+ | root 0.00 cpu 6528k mem 0 io ksmtuned | ||
+ | root 0.00 cpu 6344k mem 0 io awk | ||
+ | root 0.00 cpu 6658k mem 0 io ksmtuned | ||
+ | root 0.00 cpu 1827k mem 0 io sleep | ||
+ | root 0.00 cpu 6378k mem 0 io awk | ||
+ | root 0.00 cpu 6658k mem 0 io ksmtuned | ||
+ | root 0.00 cpu 11276k mem 0 io pgrep | ||
+ | root 0.00 cpu 6658k mem 0 io ksmtuned | ||
+ | root 0.00 cpu 6528k mem 0 io ksmtuned | ||
+ | root 0.00 cpu 6344k mem 0 io awk | ||
+ | root 0.00 cpu 6658k mem 0 io ksmtuned | ||
+ | root 0.00 cpu 0k mem 0 io kworker/ | ||
+ | root 0.00 cpu 2426k mem 0 io less | ||
+ | root 0.00 cpu 4770k mem 0 io man | ||
+ | root 0.00 cpu 5312k mem 0 io sa | ||
+ | root 0.00 cpu 3034k mem 0 io grep | ||
+ | root 0.00 cpu 5312k mem 0 io sa | ||
+ | root 0.00 cpu 1827k mem 0 io sleep | ||
+ | root 0.00 cpu 6378k mem 0 io awk | ||
+ | root 0.00 cpu 6658k mem 0 io ksmtuned | ||
+ | root 0.00 cpu 11276k mem 0 io pgrep | ||
+ | root 0.00 cpu 6658k mem 0 io ksmtuned | ||
+ | root 0.00 cpu 6528k mem 0 io ksmtuned | ||
+ | root 0.00 cpu 6344k mem 0 io awk | ||
+ | root 0.00 cpu 6658k mem 0 io ksmtuned | ||
+ | root 0.00 cpu 0k mem 0 io kworker/ | ||
+ | </ | ||
+ | |||
+ | ===Options de la commande=== | ||
+ | |||
+ | Les options de cette commande sont : | ||
+ | |||
+ | < | ||
+ | [root@centos8 ~]# sa --help | ||
+ | |||
+ | Usage: sa [ options ] [ file ] | ||
+ | | ||
+ | options: [-abcdfiljkmnprstuDKP] [-v < | ||
+ | [--other-acct-file < | ||
+ | [--print-seconds] [--dont-read-summary-files] [--debug] | ||
+ | | ||
+ | | ||
+ | [--list-all-names] [--not-interactive] [--threshold < | ||
+ | | ||
+ | | ||
+ | | ||
+ | |||
+ | The system' | ||
+ | |||
+ | raw process accounting data: / | ||
+ | summary by command name: / | ||
+ | summary by username: / | ||
+ | </ | ||
+ | |||
+ | ====1.12 - La Commande ac==== | ||
+ | |||
+ | Cette commande vous renseigne sur les statistiques des temps de connexion des utilisateurs : | ||
+ | |||
+ | < | ||
+ | [root@centos8 ~]# ac -p | ||
+ | trainee | ||
+ | total 247.51 | ||
+ | |||
+ | [root@centos8 ~]# ac -d | ||
+ | Jun 16 total 6.41 | ||
+ | Jun 17 total 12.09 | ||
+ | Jul 19 total 6.94 | ||
+ | Jul 20 total 38.95 | ||
+ | Sep 2 total 0.03 | ||
+ | Sep 3 total 0.01 | ||
+ | Sep 5 total 11.01 | ||
+ | Oct 9 total 0.92 | ||
+ | Oct 11 total 4.17 | ||
+ | Oct 12 total 5.45 | ||
+ | Nov 7 total 19.40 | ||
+ | Nov 8 total 54.12 | ||
+ | Nov 9 total 67.32 | ||
+ | Nov 10 total 8.48 | ||
+ | Nov 11 total 3.01 | ||
+ | Today | ||
+ | </ | ||
+ | |||
+ | ===Options de la commande=== | ||
+ | |||
+ | Les options de cette commande sont : | ||
+ | |||
+ | < | ||
+ | [root@centos8 ~]# ac --help | ||
+ | |||
+ | Usage: ac [OPTION] ... | ||
+ | |||
+ | OPTIONS: | ||
+ | -d, --daily-totals | ||
+ | -p, --individual-totals | ||
+ | -f, --file < | ||
+ | --complain | ||
+ | --reboots | ||
+ | --supplants | ||
+ | --timewarps | ||
+ | --compatibility | ||
+ | -a, --all-days | ||
+ | --tw-leniency < | ||
+ | --tw-suspicious < | ||
+ | --print-year | ||
+ | --print-zeros | ||
+ | --debug | ||
+ | -V, --version | ||
+ | -h, --help | ||
+ | |||
+ | The system' | ||
</ | </ | ||
Ligne 1305: | Ligne 2681: | ||
Au-dessous de la première ligne indiquant la version du noyau du système et son nom d' | Au-dessous de la première ligne indiquant la version du noyau du système et son nom d' | ||
- | * Pourcentage de temps passé en mode utilisateur (exécutant des applications, | + | * **%user** - Pourcentage de temps passé en mode utilisateur (exécutant des applications, |
- | * Pourcentage de temps passé en mode utilisateur (pour les processus qui ont modifié leur priorité de programmation à l'aide de la commande nice) | + | * **%nice** - Pourcentage de temps passé en mode utilisateur (pour les processus qui ont modifié leur priorité de programmation à l'aide de la commande nice) |
- | * Pourcentage de temps passé en mode noyau | + | * **%system** - Pourcentage de temps passé en mode noyau |
- | * Pourcentage de temps passé en inactivité | + | * **%steal** - Pourcentage du temps passé par des CPU virtuels en attendant que l' |
+ | * **%iowait** - Pourcentage du temps passé à attendre les entrées et les sorties des disques. | ||
+ | * **%idle** - Pourcentage de temps passé en inactivité | ||
Notez la valeur de **%iowait**. Dans le cas où ce pourcentage est trop élévé, ceci indique que le processeur passe son temps à attendre les entrées et les sorties de disque. | Notez la valeur de **%iowait**. Dans le cas où ce pourcentage est trop élévé, ceci indique que le processeur passe son temps à attendre les entrées et les sorties de disque. | ||
Ligne 1314: | Ligne 2692: | ||
Au-dessous du rapport d' | Au-dessous du rapport d' | ||
- | * La spécification du périphérique, apparaissant sous la forme dev< | + | * La spécification du périphérique. |
* Le nombre de transferts (ou opérations d'E/S) par seconde. | * Le nombre de transferts (ou opérations d'E/S) par seconde. | ||
- | * Le nombre de blocs de 512 octets | + | * Le nombre de blocs de KB lus par seconde. |
- | * Le nombre de blocs de 512 octets | + | * Le nombre de blocs de KB écrits par seconde. |
- | * Le nombre total de blocs de 512 octets | + | * Le nombre total de KB lus. |
- | * Le nombre total de blocs de 512 octets | + | * Le nombre total de KB écrits. |
| | ||
- | Dernèrement, pour voir les statistiques étendues des disques, utilisez la commande suivante : | + | Dernièrement, pour voir les statistiques étendues des disques, utilisez la commande suivante : |
< | < | ||
Ligne 3021: | Ligne 4399: | ||
----- | ----- | ||
- | < | + | Copyright © 2023 Hugh Norris. |
- | <div align=" | + | |
- | Copyright © 2021 Hugh Norris. | + | |
- | </ | + |