These are commands/settings i usually use for Admin duties. Pasted here for book-keeping, hopefully will be usefull for others.
smartctl -a /dev/sda
/dev/sdb -a -o on -S on -s (S/../.././02|L/../../6/03) -m coral-admin-list@lehigh.edu
strings -a /proc/22392/environ |less
for i in `seq 2 15`; do ssh polyp$i 'hostname;free -h'; done
ps aux | grep 'criteria' | awk {'print $2'} | xargs kill -9
Show stats:
/usr/local/maui/bin/showstats -n
Show server/queue settings:
qmgr -c 'p s'
See Jobs logs:
tracejob $PID
typeset -RZ3 i; for i in {1..38}; do ssh "grid$i" "hostname; find /folder/of/installs/* -type d -ctime +7 -maxdepth 0 | xargs rm -rf "& ; done
0 7 * * 6
find ./ -type f -exec stat --format '%Y :%y %n' "{}" \; | sort -nr | cut -d: -f2- | head
for i in `seq 2 15`; do ssh polyp$i 'sed -i "s/polyp1/$HOSTNAME/g" /etc/exim4/exim4.conf.template';done
LogLevel alert rewrite:trace3
iptables -A INPUT -s $IP -j DROP
export EDITOR=emacs