[Git][qa/jenkins.debian.net][master] jdn: refactoring, add new script jdn-host-summary

Holger Levsen (@holger) gitlab at salsa.debian.org
Fri Jan 16 00:44:22 GMT 2026



Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net


Commits:
65c9920c by Holger Levsen at 2026-01-16T01:44:08+01:00
jdn: refactoring, add new script jdn-host-summary

Signed-off-by: Holger Levsen <holger at layer-acht.org>

- - - - -


2 changed files:

- bin/djm
- + hosts/common/usr/local/bin/jdn-host-summary


Changes:

=====================================
bin/djm
=====================================
@@ -466,7 +466,7 @@ for i in $(seq 1 $SLEEP | xargs echo) ; do
 	sleep 1
 done
 echo " now trying ssh to $NODE"
-while ! ssh $NODE 'echo ; df -h | grep -E "(^/dev/|/srv/workspace)" | grep -v /srv/workspace/ ; echo ; echo "number of cores : $(grep -c ^processor /proc/cpuinfo)" ; cat /proc/cpuinfo | grep -E "^(model name|cpu MHz)" | sort -u ; echo ; uptime ; echo ; echo press enter, $SHORTNODE is back after $ACTION ; read a || true' ; do
+while ! ssh $NODE '/usr/local/bin/jdn-host-summary ; echo press enter, $SHORTNODE is back after $ACTION ; read a || true' ; do
 	for i in $(seq 1 30 | xargs echo) ; do
 		echo -n "."
 		sleep 1


=====================================
hosts/common/usr/local/bin/jdn-host-summary
=====================================
@@ -0,0 +1,32 @@
+#!/bin/bash
+# vim: set noexpandtab:
+
+#
+# jdn-host-summary - give some basic info about this jenkins.debian.net / reproducible.debian.net host
+#
+# Copyright 2026 Holger Levsen <holger at layer-acht.org>
+# released under the GPLv2
+#
+
+set -e
+set -o pipefail		# see eg http://petereisentraut.blogspot.com/2010/11/pipefail.html
+
+#
+# storage
+#
+echo
+df -h | grep -E "(^/dev/|/srv/workspace)" | grep -v /srv/workspace/
+
+#
+# cpu
+#
+echo
+echo "number of cores : $(grep -c ^processor /proc/cpuinfo)" 
+cat /proc/cpuinfo | grep -E "^(model name|cpu MHz)" | sort -u 
+
+#
+# uptime, the end
+#
+echo
+uptime
+echo



View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/65c9920c9d89945ae70b9e92d401fa1f7b351180

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/65c9920c9d89945ae70b9e92d401fa1f7b351180
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/qa-jenkins-scm/attachments/20260116/2a8c9e30/attachment-0001.htm>


More information about the Qa-jenkins-scm mailing list