From 2bc3eb4857dc1987cfc573b2036f5f77e5b686eb Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Sat, 8 Jul 2023 01:10:26 -0400 Subject: [PATCH] add information fetch scripts --- fetch-modules | 16 ++++++++++++++++ fetch-packages | 16 ++++++++++++++++ fetch-units | 16 ++++++++++++++++ 3 files changed, 48 insertions(+) create mode 100755 fetch-modules create mode 100755 fetch-packages create mode 100755 fetch-units 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