Récupérer des informations du systéme
Bonjour à tous.
Je me permet de refaire un topic sur cette question car j'avais réussi à résoudre mon ancien probléme mais j'ai besoin de nouvelles information que je n'arrive pas à récupérer.
Voilà mon programme à l'heure actuelle :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135
| #!/bin/bash
echo "====================================================================="
echo "=========================== PROCESSEURS ============================="
echo "====================================================================="
echo -n "Nombre de processeurs : "
cat /proc/cpuinfo | grep -c "model name"
echo ""
echo " Description : "
lshw -C cpu |grep "product"| cut -c16-
echo ""
echo " Type de processeur :"
uname -m
echo ""
echo " Taille :"
lshw -C cpu |grep "size"| cut -c13-
echo ""
echo " Capacité :"
lshw -C cpu |grep "capacity"| cut -c17-
echo ""
echo " Longueur :"
lshw -C cpu |grep "width"
echo ""
echo "====================================================================="
echo "===================================Audio============================="
echo "====================================================================="
echo ""
echo " Description :"
lshw -C multimedia | head -n4
echo ""
echo " Longueur :"
lshw -C multimedia |grep "width"| cut -c7-
echo ""
echo "====================================================================="
echo "======================= CARTE MERE / CHIPSET ========================"
echo "====================================================================="
lspci -v | grep "Host bridge" | cut -c22-
echo ""
lspci -v | grep "Subsystem" | head -n 1 | cut -c13-
echo ""
echo "Numéro de série :"
lshw |grep "serial"| head -n1
echo ""
echo "========================================="
echo "==================ECRAN=================="
echo "========================================="
echo ""
echo " Caracteristiques generale ecran"
echo ""
get-edid 2>null | parse-edid 2>null > conf_ecran.txt
cat conf_ecran.txt | grep "Identifier"
cat conf_ecran.txt | grep "Vendor"
cat conf_ecran.txt | grep "Mode"
cat conf_ecran.txt | grep "DotClock"
cat conf_ecran.txt | grep "HTimings"
cat conf_ecran.txt | grep "VTimings"
echo ""
xrandr |head -n4
echo ""
echo "====================================================================="
echo "=============================== RAM ================================="
echo "====================================================================="
echo ""
echo " Info de la mémoire :"
free |grep "total"| cut -c11-
free |grep "Mem"| cut -c10-
echo ""
echo " Répartition : "
lshw -short |grep "memory"| cut -c37-
echo ""
echo "====================================================================="
echo "==============================Reseau================================="
echo "====================================================================="
echo ""
echo "= Ethernet ="
echo ""
lspci | grep Ethernet | cut -c30-
echo ""
echo " Vitesse :"
lshw -class network | grep "size" | cut -c13-
echo " Capcité :"
lshw -class network | grep "capacity"| cut -c17-
echo ""
echo "= Modem ="
echo ""
lspci | grep Modem | cut -c16-
echo ""
echo "= Autre (Wifi) ="
echo ""
lspci | grep Network | cut -c29-
echo ""
echo "====================================================================="
echo "=================================Video==============================="
echo "====================================================================="
echo " Description : "
lshw -C display | head -n4
echo ""
echo " Taille : "
lshw -C display | grep "size"|head -n1| cut -c7-
echo ""
echo " Longueur : "
lshw -C display | grep "width"|head -n1| cut -c7-
echo ""
echo "====================================================================="
echo "=========================== DISQUES DURS ============================"
echo "====================================================================="
echo "===== IDE ====="
dmesg | grep hd[a-z] | grep "DISK drive"
echo ""
echo "===== SATA ====="
dmesg | grep sd[a-z] | grep "DISK drive"
echo ""
echo "TAILLE DES DISQUES DUR : " & fdisk -l | grep "Disk /dev/"
echo ""
echo "Performance du disque dur :"
hdparm -t /dev/hda
echo ""
echo "====================================================================="
echo "============================= LECTEURS =============================="
echo "====================================================================="
echo "===== IDE ====="
dmesg | grep hd[a-z] | grep "ATAPI"
echo ""
echo "===== SATA ====="
dmesg | grep sd[a-z] | grep "ATAPI"
echo ""
echo "====================================================================="
echo "================================= USB================================"
echo "====================================================================="
echo ""
lspci -vv |grep "USB"| cut -c8-
echo ""
echo " UHCI : USB 1.0 ou 1.1 et EHCI : USB 2.0"
echo "" |
Ma question est comment puis-je récupérais les informations suivante :
-Modele de la carte mère;
-Le socket du cpu;
-Le nombre de barette présente dans l'unité centrale;
-Détecté s'il y a un lecteur de disquette;
-La marque et le modele du hdd;
-La vitesse du WIFI;
-S'il y a un FIREWIRE.
J'éspére que vous pourrez m'aider.
Merci d'avance pour vos réponse