diff --git a/fetch-modules b/fetch-modules new file mode 100755 index 0000000..78d5ed9 --- /dev/null +++ b/fetch-modules @@ -0,0 +1,16 @@ +#!/bin/bash + +set -o errexit + +user=root + +. hosts.sh + +rm -rf modules +mkdir -p modules + +for host in ${hosts_all[@]}; do + echo $host + ssh root@$host lsmod | sort > modules/$host + echo +done diff --git a/fetch-packages b/fetch-packages new file mode 100755 index 0000000..8c1f895 --- /dev/null +++ b/fetch-packages @@ -0,0 +1,16 @@ +#!/bin/bash + +set -o errexit + +user=root + +. hosts.sh + +rm -rf packages +mkdir -p packages + +for host in ${hosts_all[@]}; do + echo $host + ssh root@$host pacman -Qqe > packages/$host + echo +done diff --git a/fetch-units b/fetch-units new file mode 100755 index 0000000..1608907 --- /dev/null +++ b/fetch-units @@ -0,0 +1,16 @@ +#!/bin/bash + +set -o errexit + +user=root + +. hosts.sh + +rm -rf units +mkdir -p units + +for host in ${hosts_all[@]}; do + echo $host + ssh root@$host systemctl list-unit-files --state=enabled --state=disabled --state=masked | sort > units/$host + echo +done