38 lines
1003 B
Bash
Executable File
38 lines
1003 B
Bash
Executable File
#!/bin/bash
|
|
DIR=/opt/grabber
|
|
|
|
echo "======================" |tee -a /dev/stderr
|
|
echo " Script Grabber " |tee -a /dev/stderr
|
|
echo "=================="|tee -a /dev/stderr
|
|
|
|
echo "--------------" |tee -a /dev/stderr
|
|
echo "les périphériques USB" |tee -a /dev/stderr
|
|
echo "---------------------" |tee -a /dev/stderr
|
|
echo "résultat commande lsusb :" |tee -a /dev/stderr
|
|
lsusb 1>$DIR/lsusb.cmd
|
|
|
|
echo "------------------"
|
|
echo "le processeur"
|
|
echo "---------------------"
|
|
echo "résultat commande lscpu :"
|
|
lscpu 1>$DIR/lscpu.cmd
|
|
|
|
echo "--------------"
|
|
echo "la RAM"
|
|
echo "--------------"
|
|
echo "résultat commande lsmem"
|
|
lsmem 1>$DIR/lsmem.cmd
|
|
|
|
|
|
#cat /etc/passwd > $DIR/passwd.file
|
|
#cat /etc/group > $DIR/group.file
|
|
#lspci -nn > $DIR/lspci.cmd
|
|
#lsusb > $DIR/lsusb.cmd
|
|
#apt list --installed > $DIR/apt.cmd
|
|
#systemd-analyze > $DIR/systemd-analyze.cmd
|
|
#systemd-analyze blame | head -n 10 > $DIR/systemd-blame.cmd
|
|
#lscpu > $DIR/lscpu.cmd
|
|
#lshw-gtk > $DIR/lshw-gtk.cmd
|
|
#inxi > $DIR/inxi.cmd
|
|
#lsmem > $DIR/lsmem.cmd
|