#!/bin/sh #----------------------------------------------------------------------------# # Irix client for Hobbit # # # # Copyright (C) 2005-2006 Henrik Storner # # # # This program is released under the GNU General Public License (GPL), # # version 2. See the file "COPYING" for details. # # # #----------------------------------------------------------------------------# # # $Id: hobbitclient-irix.sh,v 1.5 2006/07/05 05:52:22 henrik Rel $ echo "[date]" date echo "[uname]" uname -a echo "[uptime]" uptime echo "[who]" who echo "[df]" df -Plk echo "[mount]" mount echo "[swap]" swap -ln echo "[ifconfig]" ifconfig -a echo "[route]" netstat -rn echo "[netstat]" netstat -s echo "[ports]" netstat -na -f inet -P tcp | tail +3 netstat -na -f inet6 -P tcp | tail +5 echo "[ifstat]" netstat -i -n | egrep -v "^lo|$BBTMP/hobbit_sar.$MACHINEDOTS.$$ 2>&1; mv $BBTMP/hobbit_sar.$MACHINEDOTS.$$ $BBTMP/hobbit_sar.$MACHINEDOTS" /dev/null 2>&1 & sleep 5 if test -f $BBTMP/hobbit_sar.$MACHINEDOTS; then echo "[sar]"; cat $BBTMP/hobbit_sar.$MACHINEDOTS; rm -f $BBTMP/hobbit_sar.$MACHINEDOTS; fi exit