User Tools

Site Tools


tsm_trace

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
tsm_trace [2013/01/14 13:30] michaeltsm_trace [2021/04/24 07:40] (current) – external edit 127.0.0.1
Line 27: Line 27:
   PVR MMS ADDMSG   PVR MMS ADDMSG
      
-  ===== Script zum Beenden eines Traces nach Auftreten einer Meldung im Log =====+===== Script zum Beenden eines Traces nach Auftreten einer Meldung im Log =====
      
-  Here is a sample script, COND_END_TRACE,  to end tracing on Tivoli      +Here is a sample script, COND_END_TRACE,  to end tracing on Tivoli      
 Storage Manager server and storageagent TEST-STA after message ANR8779E  Storage Manager server and storageagent TEST-STA after message ANR8779E 
 has been written into the activitylog, the script also contains an       has been written into the activitylog, the script also contains an      
 administrative schedule to run the script::                              administrative schedule to run the script::                             
-                                                                         +                                                                                                                                              
-select * from actlog where originator='SERVER' -                         +
-       and msgno=8779 and -                                              +
-       date_time >=current_timestamp -5 minutes                          +
-if (RC_NOTFOUND) goto reschedule                                         +
-del schedule cond_end_trace t=a                                          +
-trace flush                                                              +
-trace end                                                                +
-(TEST-STA) trace flush                                                   +
-(TEST-STA) trace end                                                     +
-issue message I '+++++++ tracing ended ++++++++'                         +
-exit                                                                     +
-reschedule:                                                              +
-delete schedule cond_end_trace t=a                                       +
-define schedule cond_end_trace t=a -                                     +
-    cmd="run cond_end_trace" -                                           +
-    active=yes starttime=NOW+0:05 perunit=onetime                        +
-                                                                        +
 And for those who want to cut and paste the "define script" command,     And for those who want to cut and paste the "define script" command,    
 here we go:                                                              here we go:                                                             
-Please be aware that each line starts with either DEFINE or UPDATE       +Please be aware that each line starts with either DEFINE or UPDATE SCRIPT, perhaps your browser is fornatting it differently - so please check before running the script :-)                                      
-SCRIPT, perhaps your browser is fornatting it differently - so please    + 
-check before running the script :-)                                      +   DEFINE SCRIPT COND_END_TRACE "select * from actlog where originator='SERVER' and msgno=8779 and date_time >=current_timestamp -5 minutes" LINE=1 DESC="Sample Script"                                     
-DEFINE SCRIPT COND_END_TRACE "select * from actlog where                 +   UPDATE SCRIPT COND_END_TRACE "if (RC_NOTFOUND) goto reschedule" LINE=2   
-originator='SERVER' and msgno=8779 and date_time >=current_timestamp -5  +   UPDATE SCRIPT COND_END_TRACE "del schedule cond_end_trace t=a" LINE=3    
-minutes" LINE=1 DESC="Sample Script"                                     +   UPDATE SCRIPT COND_END_TRACE "trace flush" LINE=4                        
-UPDATE SCRIPT COND_END_TRACE "if (RC_NOTFOUND) goto reschedule" LINE=2   +   UPDATE SCRIPT COND_END_TRACE "trace end" LINE=5                          
-UPDATE SCRIPT COND_END_TRACE "del schedule cond_end_trace t=a" LINE=3    +   UPDATE SCRIPT COND_END_TRACE "(TEST-STA) trace flush" LINE=6             
-UPDATE SCRIPT COND_END_TRACE "trace flush" LINE=4                        +   UPDATE SCRIPT COND_END_TRACE "(TEST-STA) trace end" LINE=7               
-UPDATE SCRIPT COND_END_TRACE "trace end" LINE=5                          +   UPDATE SCRIPT COND_END_TRACE "issue message I '+++++++ tracing ended ++++++++'" LINE=8                                                        
-UPDATE SCRIPT COND_END_TRACE "(TEST-STA) trace flush" LINE=6             +   UPDATE SCRIPT COND_END_TRACE "exit" LINE=9                               
-UPDATE SCRIPT COND_END_TRACE "(TEST-STA) trace end" LINE=7               +   UPDATE SCRIPT COND_END_TRACE "reschedule:" LINE=10                       
-UPDATE SCRIPT COND_END_TRACE "issue message I '+++++++ tracing ended     +   UPDATE SCRIPT COND_END_TRACE "delete schedule cond_end_trace t=a" LINE=11                                                                  
-++++++++'" LINE=8                                                        +   UPDATE SCRIPT COND_END_TRACE "define schedule cond_end_trace t=a cmd='run cond_end_trace' active=yes starttime=NOW+0:05 perunit=onetime" LINE=12                                                       
-UPDATE SCRIPT COND_END_TRACE "exit" LINE=9                               +
-UPDATE SCRIPT COND_END_TRACE "reschedule:" LINE=10                       +
-UPDATE SCRIPT COND_END_TRACE "delete schedule cond_end_trace t=a"        +
-LINE=11                                                                  +
-UPDATE SCRIPT COND_END_TRACE "define schedule cond_end_trace t=a         +
-cmd='run cond_end_trace' active=yes starttime=NOW+0:05 perunit=onetime"  +
-LINE=12                                                       +
  
tsm_trace.1358170200.txt.gz · Last modified: 2021/04/24 07:38 (external edit)