252 IBM Content Manager OnDemand Guide
Example 11-4   Capturing failed logon attempts (AIX)
# $1 - OnDemand Instance Name
# $2 - Time Stamp
# $3 - Log Identifier
# $4 - Userid
# $5 - Account
# $6 - Severity
# $7 - Message Number
# $8 - Message Text
#
case $7 in
    31) echo $4 $8 >> /home/archive/`date +"%d-%m-%Y"`failedlogon.log;;
    *) echo $@ > /dev/null;;
esac
exit 0
For the exit sample that is provided in Example 11-4, we also provided a small sample of what 
the output of this exit might look like (Example 11-5). For example, you can see in the output 
that several unsuccessful attempts were made from the same machine and different user IDs 
were used for each attempt. In this example, by adding parameter 2 ($2) to the output and 
resorting the file, we can further establish the times of these attempts. 
Example 11-5   Sample exit output
ADMIN Failed login: GB55102K3.myServer.ibm.com 9.9.9.9
MARTIN Failed login: GB55102K3.myServer.ibm.com 9.9.9.9
FRED Failed login: GB55102K3.myServer.ibm.com 9.9.9.9
USER1 Failed login: GB55102K3.myServer.ibm.com 9.9.9.9
USER2 Failed login: GB55102K3.myServer.ibm.com 9.9.9.9
Notifying another system when a load completes (AIX)
This sample is used in a production environment where the number of load jobs that are sent 
to Content Manager OnDemand must be controlled so that the next load job is sent only when 
the previous load job completed successfully. We use this exit in this example because a 
limited amount of disk space is available in the location on the Content Manager OnDemand 
server where the load files are received from the remote machine. And, the load files are 
large. 
Example 11-6 shows how the exit collects virtually all of the available information when it 
receives message number 87 (a successful load). This information is then used as the input 
for another script, which notifies the remote machine that the load is complete and the next 
report file can be sent. 
Example 11-6   Controlling load jobs (AIX)
# $1 - OnDemand Instance Name
# $2 - Time Stamp
# $3 - Log Identifier
# $4 - Userid
# $5 - Account
# $6 - Severity
# $7 - Message Number
# $8 - Message Text
#