head 1.1; access; symbols; locks; strict; comment @# @; 1.1 date 97.11.26.14.43.53; author alexis; state Exp; branches; next ; desc @@ 1.1 log @Initial revision @ text @#!/bin/sh PROGNAME=`basename $0` VERSION='Mon Feb 6 07:36:57 GMT 1995' ############################################################ # # # Program to tell you some info about the system. The # # sort of information is that that you ideally want to # # receive on a daily basis. This is written by John # # Sweeting with some very minor modifications by Alexis # # Huxley. # # # ############################################################ if [ "X$1" = X-V ]; then echo "$PROGNAME version $VERSION" exit 0 fi # # $Header: sysinfo,v 1.2 94/09/06 09:52:12 johns Exp $ # # Description: Display system info/status/misc logfiles etc # # Usage: Call from root crontab # if [ -f /usr/adm/sulog ]; then echo echo SU Log echo # grep `date '+%m/%d'` /usr/adm/sulog mv /usr/local/admin/log/sulog /usr/local/admin/log/OLDsulog cp /usr/adm/sulog /usr/local/admin/log/sulog diff /usr/local/admin/log/OLDsulog /usr/local/admin/log/sulog | tail +2 rm /usr/local/admin/log/OLDsulog fi if [ -x /etc/last ]; then echo echo Logins echo # /etc/last -R | grep "`date '+%a %b %d'`" mv /usr/local/admin/log/last /usr/local/admin/log/OLDlast /etc/last > /usr/local/admin/log/last diff /usr/local/admin/log/OLDlast /usr/local/admin/log/last | tail +2 rm /usr/local/admin/log/OLDlast fi if [ -f /etc/dumpdates ]; then echo echo BACKUP Logfile: echo cat /etc/dumpdates fi if [ -f /usr/sam/log/br_log ] ; then echo echo BACKUP Logfile: echo # Commented out bit is John Sweeting's original to report on # SAM automatic fbackups. This has been replaced by more flexible # script that - at the moment - does much the same thing. Anyway # the replacement code tells about the last backup. Alexis 6/2/95 # tail -4 /usr/sam/log/br_log zcat `ls -1rt /usr/local/admin/log/dailybackup.*.log.Z | tail -1l` | tail -10l fi if [ -x /usr/bin/bdf ]; then echo echo Disk Usage - Disk Partitions: echo /usr/bin/bdf fi if [ -x /bin/du -a -d /home ]; then echo echo Disk Usage - User Accounts: echo /bin/du -s /home/* | sort -n -r fi # Can't be bothered with this at the moment if [ -x /etc/~quot ]; then echo echo Disk Usage - by User ID: echo #/usr/etc/quot -a /etc/quot -a fi if [ -f /var/spool/uucp/LOGFILE ]; then echo UUCP Logfile: echo cat /var/spool/uucp/LOGFILE echo fi # That's all folks @