rm /tmp/auth.txt.rpt /tmp/auth.txt
DATE=$(date) # Set DATE equal to the output of running the shell command date
HOSTNAME=$(hostname) # Set HOSTNAME equal to the output of the hostname command
echo "" > /tmp/auth.txt.rpt
echo "" >> /tmp/auth.txt.rpt
echo "=======================================================================" >> /tmp/auth.txt.rpt
echo "XXXXXXXXXXXX Authentication Report for:" "$(date)" "$(hostname)" >> /tmp/auth.txt.rpt
echo "=======================================================================" >> /tmp/auth.txt.rpt
/opt/pbis/bin/eventlog-cli -t - localhost > /tmp/auth.txt
echo "" >/tmp/auth.txt.rpt
echo "" >>/tmp/auth.txt.rpt
echo "" >>/tmp/auth.txt.rpt
echo "" >>/tmp/auth.txt.rpt
cat /tmp/auth.txt >> /tmp/auth.txt.rpt
echo "" >>/tmp/auth.txt.rpt
echo "" >>/tmp/auth.txt.rpt
echo "" >>/tmp/auth.txt.rpt
echo "=======================================" >> /tmp/auth.txt.rpt
echo "Report Completed " >>/tmp/auth.txt.rpt" >> /tmp/auth.txt.rpt
echo "=======================================" >> /tmp/auth.txt.rpt
echo "" >>/tmp/auth.txt.rpt
echo "" >>/tmp/auth.txt.rpt
echo "" >>/tmp/auth.txt.rpt
echo "" >>/tmp/auth.txt.rpt
mail -s "LDAP Authentication Report" xxxxx@xxxx.org </tmp/auth.txt.rpt
DATE=$(date) # Set DATE equal to the output of running the shell command date
HOSTNAME=$(hostname) # Set HOSTNAME equal to the output of the hostname command
echo "" > /tmp/auth.txt.rpt
echo "" >> /tmp/auth.txt.rpt
echo "=======================================================================" >> /tmp/auth.txt.rpt
echo "XXXXXXXXXXXX Authentication Report for:" "$(date)" "$(hostname)" >> /tmp/auth.txt.rpt
echo "=======================================================================" >> /tmp/auth.txt.rpt
/opt/pbis/bin/eventlog-cli -t - localhost > /tmp/auth.txt
echo "" >/tmp/auth.txt.rpt
echo "" >>/tmp/auth.txt.rpt
echo "" >>/tmp/auth.txt.rpt
echo "" >>/tmp/auth.txt.rpt
cat /tmp/auth.txt >> /tmp/auth.txt.rpt
echo "" >>/tmp/auth.txt.rpt
echo "" >>/tmp/auth.txt.rpt
echo "" >>/tmp/auth.txt.rpt
echo "=======================================" >> /tmp/auth.txt.rpt
echo "Report Completed " >>/tmp/auth.txt.rpt" >> /tmp/auth.txt.rpt
echo "=======================================" >> /tmp/auth.txt.rpt
echo "" >>/tmp/auth.txt.rpt
echo "" >>/tmp/auth.txt.rpt
echo "" >>/tmp/auth.txt.rpt
echo "" >>/tmp/auth.txt.rpt
mail -s "LDAP Authentication Report" xxxxx@xxxx.org </tmp/auth.txt.rpt