Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Wed, 26 Feb 2003 @ 14:36:30 GMT


     
  <Prev Next>   <<First <Prev Next> Last>>  


Subj:   Re: Sendmail from MP-RAS
 
From:   Christopher Platt

we have mail running on our servers... it has gone postal on us twice in about 2 years... you will have to prune some of the mail log files or you will fill up your file systems if/when goes postal... I would put a check into to make sure that mail does not get "stuck" ... ps -ef | grep mail to make sure the mail is making it through come rain or shine...

#!/bin/ksh
#
# simple mail checker to see if we have mail on any node
#
rallsh -sv 'ps -ef | grep -i mail | grep -v grep | grep -v ugot | grep -v
surrc ' | grep -v byn
if [ "$?" -ne "1" ]
then
echo " You got mail..........! "
echo " You got mail on `uname`  logon and do ps -ef and grep for mail" |
mailx -s "You got mail"  [email protected] [email protected]
else
echo "You have justed checked to see if there is orphaned mail "
echo " there was not any "
exit
fi

Christopher Platt
Teradata Systems Administration



     
  <Prev Next>   <<First <Prev Next> Last>>  
 
 
 
 
 
 
 
 
  
  Top Home Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 15 Jun 2023