diff options
Diffstat (limited to 'abs/mv-core/hobbit-client/client/bin/hobbitclient-freebsd.sh')
-rwxr-xr-x | abs/mv-core/hobbit-client/client/bin/hobbitclient-freebsd.sh | 65 |
1 files changed, 0 insertions, 65 deletions
diff --git a/abs/mv-core/hobbit-client/client/bin/hobbitclient-freebsd.sh b/abs/mv-core/hobbit-client/client/bin/hobbitclient-freebsd.sh deleted file mode 100755 index bc30c5a..0000000 --- a/abs/mv-core/hobbit-client/client/bin/hobbitclient-freebsd.sh +++ /dev/null @@ -1,65 +0,0 @@ -#!/bin/sh -# -#----------------------------------------------------------------------------# -# FreeBSD 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-freebsd.sh,v 1.17 2006/07/05 05:52:22 henrik Rel $ - -echo "[date]" -date -echo "[uname]" -uname -a -echo "[uptime]" -uptime -echo "[who]" -who -echo "[df]" -# The sed stuff is to make sure lines are not split into two. -df -H -tnonfs,nullfs,cd9660,procfs,devfs,linprocfs | sed -e '/^[^ ][^ ]*$/{ -N -s/[ ]*\n[ ]*/ / -}' -echo "[mount]" -mount -echo "[meminfo]" -$BBHOME/bin/freebsd-meminfo -echo "[swapinfo]" -swapinfo -k -echo "[ifconfig]" -ifconfig -a -echo "[route]" -netstat -rn -echo "[ifstat]" -netstat -i -b -n | egrep -v "^lo|<Link" -echo "[netstat]" -netstat -s -echo "[ports]" -(netstat -na -f inet; netstat -na -f inet6) | grep "^tcp" -echo "[ps]" -# Dont use "args". "command" works also in FreeBSD 4.x. -ps -ax -ww -o pid,ppid,user,start,state,pri,pcpu,cputime,pmem,rss,vsz,command - -# $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 -n 20 - 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 - |