Showing posts with label aix sendmail queue full. Show all posts
Showing posts with label aix sendmail queue full. Show all posts

Friday, April 18, 2008

AIX sendmail queue full

To flush queue
#sendmail -q -v
-or-
1. Stop the sendmail daemon.
2. Move the entire queue directory by entering:
#cd /var/spool
#mv mqueue omqueue
3. Restart the sendmail daemon.
4. Process the old mail queue by entering:
#sendmail -oQ/var/spool/omqueue -q
The -oQ flag specifies an alternate queue directory. The -q flag specifies to
run every job in the queue. To get a report about the progress of the
operation, use the -v flag. This operation can take a long time.
5. Remove the log files and the temporary directory when the queue is empty by
entering:
#rm /var/spool/omqueue/*
#rmdir /var/spool/omqueue

UNIX: How to print column nicely using printf

[user@hostfwnms1-oam tmp]# cat b.sh printf "%-26s %-19s %-8s %-8s %-s %-s\n" HOSTNAME IP PING SNMPWALK 0-ok 1-fail for i in `cat n...