ADSM-L

Search Activity Log

1999-11-24 13:20:48
Subject: Search Activity Log
From: John Schuch <John.Schuch AT ADVOCATEHEALTH DOT COM>
Date: Wed, 24 Nov 1999 12:20:48 -0600
   I have an ADSM AIX 3.1.1.3 server.  I have coded scripts to
   perform various searches of the activity log to determine when
   processes complete and whether they are successful or not. The
   scripts I have written have been working quite well.

   I have recently installed another ADSM AIX server running
   level 3.1.2.1.  I have ported my scripts over to this new ADSM
   Server and I am having a problem searching the activity log.
   It seems that every command I issue on this server is logged
   to the ADSM activity log.

   More specifically I am searching the activity log, looping
   every 5 minutes, for a particular text string to determine if
   expire inventory has completed successfully.  The problem I
   have is that the command I issue to search the activity log is
   itself logged to the activity log in the form of an ANR2017I
   message.  The search therefore finds what it is looking for
   before the expire inventory process has completed.


   The command I am issuing for the search is:

   dsmadmc -id=admin -pa=xxxxx q act begintime=09:30
   search=\"ANR098*I Process 200 for EXPIRE INVENTORY running in
   the BACKGROUND*completion state*SUCCESS\"


   The search of the activity log therefore finds:

   ANR2017I Administrator ADMIN issued command: QUERY ACTLOG
    begintime=09:30 search="ANR098*I Process 200 for EXPIRE
    INVENTORY running in the BACKGROUND *completion
    state*SUCCESS"


   Any ideas on how I can prevent my search string from getting
   logged to the activity log in the form of an ANR2017I message,
   or any other work around would be greatly appreciated.
<Prev in Thread] Current Thread [Next in Thread>