script grabber

This commit is contained in:
Tenzing Kandang 2025-10-31 16:55:52 +01:00
parent d0a1b543c9
commit 87e7d468cb
2 changed files with 26 additions and 5 deletions

12
grabber.service Normal file
View File

@ -0,0 +1,12 @@
[Unit]
Description=grabber:report conf
[Service]
Type=oneshot
ExecStart=/opt/grabber.sh
RemainAfterExit=false
StandardOutput=append:/var/log/grabber.log
StandardError=append:/var/log/grabber-error.log
[Install]
WantedBy=default.target

View File

@ -1,5 +1,14 @@
cat /etc/passwd > passwd.file #!/bin/bash
cat /etc/group > group.file DIR=/opt/grabber
lspci -nn > lspci.cmd
lsusb > lsusb.cmd cat /etc/passwd > $DIR/passwd.file
sudo apt list --installed > apt.cmd 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