Hello, spacewalk-debug is a very interesting tool to collect the logs from Spacewalk/Satellite for troubleshooting purposes.
Will be very helpful to have the the count(*) output from rhnRepoRegenQueue db table. This patch adds this capability on spacewalk-debug tool. Thank you. mmello -- Marcelo Moreira de Mello RHCA RHCSS RHCVA Senior Technical Support Engineer/GSS gpg id: 2048R/FDB110E5 gpg fingerprint: 3BE7 EF71 4DD7 6812 D309 8F18 BD42 D095 FDB1 10E5
>From 6c37b3676ea9cdd25c56974945c4e8c71767904b Mon Sep 17 00:00:00 2001 From: Marcelo Moreira de Mello <mme...@redhat.com> Date: Thu, 23 Jan 2014 10:47:00 -0500 Subject: [PATCH] BZ#1057196 - Add rhnRepoRegenQueue output on spacewalk-debug --- backend/satellite_tools/spacewalk-debug | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/backend/satellite_tools/spacewalk-debug b/backend/satellite_tools/spacewalk-debug index d918973..3455390 100755 --- a/backend/satellite_tools/spacewalk-debug +++ b/backend/satellite_tools/spacewalk-debug @@ -204,6 +204,11 @@ if [ -f /usr/bin/db-control ] ; then /usr/bin/db-control report > $DIR/db-control-report fi +echo " * querying Taskomatic queued jobs" +if [ -f /usr/bin/spacewalk-sql ]; then + echo "select count(*) from rhnRepoRegenQueue;" | /usr/bin/spacewalk-sql --select-mode - > $DIR/rhnRepoRegenQueue +fi + echo " * get diskspace available" df -h > $DIR/diskinfo -- 1.8.5.3
_______________________________________________ Spacewalk-devel mailing list Spacewalk-devel@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-devel