diff --git a/grabber.sh b/grabber.sh index ce303f0..c21c0f5 100755 --- a/grabber.sh +++ b/grabber.sh @@ -1,14 +1,37 @@ #!/bin/bash DIR=/opt/grabber -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 +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