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 [2012/04/18 09:43] michaeltsm_trace [2021/04/24 07:40] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ====== Trace ====== ====== Trace ======
 +
 +  kctune atdd_trace_level=1  3 default
 +  kctune atdd_direct_trace=1 0 default
 +
 +
 +
 +  label libvol TS3500-03-3592JB3 search=bulk labelsource=barcode checkin=scr overwrite=yes waitt=0
  
  
Line 19: Line 26:
  
   PVR MMS ADDMSG   PVR MMS ADDMSG
 +  
 +===== Script zum Beenden eines Traces nach Auftreten einer Meldung im Log =====
 +  
 +Here is a sample script, COND_END_TRACE,  to end tracing on Tivoli      
 +Storage Manager server and storageagent TEST-STA after message ANR8779E 
 +has been written into the activitylog, the script also contains an      
 +administrative schedule to run the script::                             
 +                                                                                                                                              
 +And for those who want to cut and paste the "define script" command,    
 +here we go:                                                             
 +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 :-)                                     
 +
 +   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"                                    
 +   UPDATE SCRIPT COND_END_TRACE "if (RC_NOTFOUND) goto reschedule" LINE=2  
 +   UPDATE SCRIPT COND_END_TRACE "del schedule cond_end_trace t=a" LINE=3   
 +   UPDATE SCRIPT COND_END_TRACE "trace flush" LINE=4                       
 +   UPDATE SCRIPT COND_END_TRACE "trace end" LINE=5                         
 +   UPDATE SCRIPT COND_END_TRACE "(TEST-STA) trace flush" LINE=6            
 +   UPDATE SCRIPT COND_END_TRACE "(TEST-STA) trace end" LINE=7              
 +   UPDATE SCRIPT COND_END_TRACE "issue message I '+++++++ tracing ended ++++++++'" LINE=8                                                       
 +   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.1334742199.txt.gz · Last modified: 2021/04/24 07:38 (external edit)