tsm_trace
This is an old revision of the document!
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
trace disable * trace begin <Path>trace.out trace enable pvr mms
wait
trace flush trace end
Flags for tracing tcp/ip problems:
LC: ICREST ICVOLHST PVR MMS NA LM: PVR MMS NA
Flags for tape drive problems:
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.1358331355.txt.gz · Last modified: 2021/04/24 07:38 (external edit)
