summaryrefslogtreecommitdiffstats
path: root/abs/mv-core/hobbit-client/client/bin/hobbitclient-osf1.sh
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2008-11-09 02:35:27 (GMT)
committerJames Meyer <james.meyer@operamail.com>2008-11-09 02:35:27 (GMT)
commitabc83d46637ebc63479ec745f05ae392f404f04e (patch)
tree49bab12f11126552a0dcaaeea5c36acf5697fa00 /abs/mv-core/hobbit-client/client/bin/hobbitclient-osf1.sh
parentd250b09f45562edf2be94fa330e312dccc0832d8 (diff)
downloadlinhes_pkgbuild-abc83d46637ebc63479ec745f05ae392f404f04e.zip
linhes_pkgbuild-abc83d46637ebc63479ec745f05ae392f404f04e.tar.gz
linhes_pkgbuild-abc83d46637ebc63479ec745f05ae392f404f04e.tar.bz2
hobbit client
Diffstat (limited to 'abs/mv-core/hobbit-client/client/bin/hobbitclient-osf1.sh')
-rwxr-xr-xabs/mv-core/hobbit-client/client/bin/hobbitclient-osf1.sh60
1 files changed, 60 insertions, 0 deletions
diff --git a/abs/mv-core/hobbit-client/client/bin/hobbitclient-osf1.sh b/abs/mv-core/hobbit-client/client/bin/hobbitclient-osf1.sh
new file mode 100755
index 0000000..6750152
--- /dev/null
+++ b/abs/mv-core/hobbit-client/client/bin/hobbitclient-osf1.sh
@@ -0,0 +1,60 @@
+#!/bin/sh
+#----------------------------------------------------------------------------#
+# OSF1 client for Hobbit #
+# #
+# Copyright (C) 2005-2006 Henrik Storner <henrik@hswn.dk> #
+# #
+# This program is released under the GNU General Public License (GPL), #
+# version 2. See the file "COPYING" for details. #
+# #
+#----------------------------------------------------------------------------#
+#
+# $Id: hobbitclient-osf1.sh,v 1.13 2006/07/05 05:52:22 henrik Rel $
+
+echo "[date]"
+date
+echo "[uname]"
+uname -a
+echo "[uptime]"
+uptime
+echo "[who]"
+who
+echo "[memory]"
+vmstat -P
+echo "[swap]"
+swapon -s
+echo "[df]"
+df -t noprocfs | sed -e '/^[^ ][^ ]*$/{
+N
+s/[ ]*\n[ ]*/ /
+}'
+echo "[mount]"
+mount
+echo "[ifconfig]"
+ifconfig -a
+echo "[route]"
+cat /etc/routes
+echo "[netstat]"
+netstat -s
+echo "[ports]"
+netstat -an|grep "^tcp"
+echo "[ps]"
+ps -ef
+
+# $TOP must be set, the install utility should do that for us if it exists.
+if test "$TOP" != ""
+then
+ if test -x "$TOP"
+ then
+ echo "[top]"
+ $TOP -b -n 1
+ fi
+fi
+
+# vmstat
+nohup sh -c "vmstat 300 2 1>$BBTMP/hobbit_vmstat.$MACHINEDOTS.$$ 2>&1; mv $BBTMP/hobbit_vmstat.$MACHINEDOTS.$$ $BBTMP/hobbit_vmstat.$MACHINEDOTS" </dev/null >/dev/null 2>&1 &
+sleep 5
+if test -f $BBTMP/hobbit_vmstat.$MACHINEDOTS; then echo "[vmstat]"; cat $BBTMP/hobbit_vmstat.$MACHINEDOTS; rm -f $BBTMP/hobbit_vmstat.$MACHINEDOTS; fi
+
+exit
+