Richard Bruno
navigation
Home
admin









Obtenir des informations sur le système
October 19th, 2016

Table des matières



- Divers
- 32 bits ou 64 bits ?
- Quelle est ma distrib ?
- Quel noyau
- Quel processeur ?
- Combien de processeurs ?
- Mon système est il chargé ?
- Du swap ?
- Quelle langue ?
- Divers



32 bits ou 64 bits ?



Avec uname

$ uname -a
Linux monsysteme 3.1.0-1-amd64 #1 SMP Tue Jan 10 05:01:58 UTC 2012 x86_64 GNU/Linux



Avec python

root@alfa:~# python
Python 2.6.6 (r266:84292, Dec 27 2010, 00:02:40)
[GCC 4.4.5] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import platform
>>> print platform.architecture()
('32bit', 'ELF')


Source : http://forum.hardware.fr/hfr/Programmation/Shell-Batch/comment-savoir-bits-sujet_96093_1.htm

Rappel :

i386 : architecture x86 32 bits (386)
i586 : architecture x86 32 bits ( Pentium, Pentium MMX ou compatible AMD Duron )
i686 : architecture x86 32 bits ( Pentium 2, 3 et 4 ou compatible AMD )
x86_64 : architecture x86 64 bits ( AMD 64, Intel Core Duo )

Does amd64 only for AMD 64-bit CPUs?

A: No. "AMD64" is the name chosen by AMD for their 64-bit extension to the Intel x86 instruction set. Before release, it was called "x86-64" or "x86_64", and some distributions still use these names. Intel refers to its AMD64 implementation as "Intel64" previously named "EM64T". The architecture is AMD64-compatible and Debian AMD64 will run on AMD and Intel processors with 64-bit support. Because of the technology paternity, Debian uses the name "AMD64".

Source : https://wiki.debian.org/DebianAMD64Faq


Quelle est ma distrib ?



lsb_release -a


Note : lsb = linux standard base

Quelle version ?
Exemple :

$ cat /etc/debian_version
wheezy/sid



$ uname -a
Linux monsysteme 3.1.0-1-amd64 #1 SMP Tue Jan 10 05:01:58 UTC 2012 x86_64 GNU/Linux



Note : sid = Unstable
Source : http://www.debian.org/doc/manuals/debian-faq/ch-choosing.fr.html

Quel noyau



$ uname -a
Linux cri-brri 2.6.32-44-generic #98-Ubuntu SMP Mon Sep 24 17:32:45 UTC 2012 i686 GNU/Linux
$ cat /proc/version
Linux version 2.6.32-44-generic (buildd@akateko) (gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5.1) ) #98-Ubuntu SMP Mon Sep 24 17:32:45 UTC 2012



Quel processeur ?


cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Core(TM)2 CPU T7200 @ 2.00GHz

Combien de processeurs ?



Pour connaitre le nombre de processurs physiques d'un serveur, tapez la commande suivante:

$ cat /proc/cpuinfo | grep "physical id"
physical id : 0
physical id : 1
physical id : 0
physical id : 1



=> 2 processeurs (0 et 1)
Source : http://www.nixblog.org/post/2009/11/16/Nombre-de-processeurs-physiques-sur-serveur-Red-Hat-Linux

Mon système est il chargé ?



La commande procinfo permet d'afficher la charge du système (globale et
par utilisateur), la charge réseau, l'occupation mémoire, etc...
Utilisation :

apt-get install procinfo
procinfo
Memory: Total Used Free Buffers
RAM: 1990424 1875564 114860 175788
Swap: 2803300 658812 2144488

Bootup: Tue Jan 24 10:08:57 2012 Load average: 0.82 0.84 0.63 2/639 6886

user : 00:00:00.05 inf% page in : 580250137
nice : 00:00:00.04 inf% page out: 179610259
system: 00:00:00.07 inf% page act: 54154495
IOwait: 00:00:00.05 inf% page dea: 19286645
hw irq: 00:00:00.00 -nan% page flt: 276397898
sw irq: 00:00:00.00 -nan% swap in : 1000855
idle : 00:00:01.77 inf% swap out: 937786
uptime: 1m 1w 3d 05:30:14.04 context : 39883561047

irq 0: 11921 timer irq 20: 46085 ehci_hcd:usb2, uh
irq 1: 22770 i8042 irq 21: 1781163 uhci_hcd:usb4, uh
irq 4: 2 irq 22: 1025431 ehci_hcd:usb1, uh
irq 6: 3 floppy irq 24: 564239034 hpet2
irq 8: 1 rtc0 irq 25: 729910616 hpet3
irq 9: 0 acpi irq 30: 85853515 ahci
irq 12: 2312080 i8042 irq 31: 1297825939 eth0
irq 17: 23 irq 32: 30658701 i915

sda 17506270r 10958881w

eth0 TX 2.64GiB RX 3.77GiB vboxnet0 TX 0.00B RX 0.00B
lo TX 456.66MiB RX 456.66MiB



Note : On peut demander, comme avec top, un rafraichissement régulier des infos.


Du swap ?



y a t'il du swap sur ma machine ?

# swapon -s
Filename Type Size Used Priority
/dev/dm-0 partition 20479992 0 -1



Est il utilisé ?

# free
total used free shared buffers cached
Mem: 12191452 460504 11730948 0 25328 124888
-/+ buffers/cache: 310288 11881164
Swap: 20479992 0 20479992



Quelle langue ?



# locale
LANG=en_US.utf-8
LC_CTYPE="en_US.utf-8"
LC_NUMERIC="en_US.utf-8"
LC_TIME="en_US.utf-8"
LC_COLLATE="en_US.utf-8"
LC_MONETARY="en_US.utf-8"
LC_MESSAGES="en_US.utf-8"
LC_PAPER="en_US.utf-8"
LC_NAME="en_US.utf-8"
LC_ADDRESS="en_US.utf-8"
LC_TELEPHONE="en_US.utf-8"
LC_MEASUREMENT="en_US.utf-8"
LC_IDENTIFICATION="en_US.utf-8"
LC_ALL=en_US.utf-8



Divers



lshw


lscpu


lsblk


lsusb


lspci


lsscsi


hdparm


dmidecode



Dernières modifs
Systemd (October 24th, 2020)
TP - rsyslogd (June 20th, 2017)
Gestion de la memoire (June 20th, 2017)
Ansible (November 10th, 2016)
Fichiers et systèmes de fichiers (November 8th, 2016)
X (October 20th, 2016)
Obtenir des informations sur le système (October 19th, 2016)

Contact
Pour m'envoyer un mail,
Pour me laisser un commentaire :
richard.brunooo
chez
gmail.com


powered by kure, modified by Bruno