aboutsummaryrefslogtreecommitdiffstats
path: root/collect.d/system
blob: 28437312ff4b43e607901dcf5b04de3c8b13e359 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/usr/local/bin

set -e

mkdir system && cd system

if type dmidecode >/dev/null; then
    dmidecode   > dmidecode
fi

if type lspci >/dev/null; then
    lspci       > lspci
    lspci -n    > lspci-n
fi

uname -smr  > uname-smr
uname -n    > hostname
ifconfig -a > ifconfig-a