[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Another tweak for hobbitclient-linux.sh



Hi Henrik

I think it may be useful to display under the 'info' column which Hobbit client version is running on a host, something like this :

Hostname:    hades
OS:    Gentoo Base System version 1.6.14
         Linux hades 2.6.14.2 i686
IP:    10.50.80.10
Hobbit client : Hobbit version 4.2-beta-20060605


Attached is a small patch against the latest snapshot. I've tried to modify web/hobbitsvc-info.c but failed...


--

Frédéric Mangeant

Steria EDC Sophia-Antipolis


--- hobbitclient-linux.sh.old	2006-06-08 15:34:38.000000000 +0200
+++ hobbitclient-linux.sh	2006-06-08 15:35:54.000000000 +0200
@@ -29,6 +29,8 @@
 elif [ -f /etc/SuSE-release ]; then
 	grep ^SuSE /etc/SuSE-release
 fi
+echo "[hobbitversion]"
+$HOBBITCLIENTHOME/bin/bb --version
 echo "[uptime]"
 uptime
 echo "[who]"