tsm_trace
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| tsm_trace [2013/01/14 13:30] – michael | tsm_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 ===== |
| | | ||
| - | | + | Here is a sample script, COND_END_TRACE, |
| 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, | has been written into the activitylog, | ||
| administrative schedule to run the script:: | administrative schedule to run the script:: | ||
| - | + | | |
| - | select * from actlog where originator=' | + | |
| - | and msgno=8779 and - | + | |
| - | | + | |
| - | 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 ' | + | |
| - | exit | + | |
| - | reschedule: | + | |
| - | delete schedule cond_end_trace t=a | + | |
| - | define schedule cond_end_trace t=a - | + | |
| - | cmd=" | + | |
| - | active=yes starttime=NOW+0: | + | |
| - | | + | |
| And for those who want to cut and paste the " | And for those who want to cut and paste the " | ||
| 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 " |
| - | DEFINE SCRIPT COND_END_TRACE " | + | |
| - | originator=' | + | |
| - | minutes" | + | |
| - | UPDATE SCRIPT COND_END_TRACE "if (RC_NOTFOUND) goto reschedule" | + | |
| - | 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 " | + | |
| - | UPDATE SCRIPT COND_END_TRACE " | + | |
| - | UPDATE SCRIPT COND_END_TRACE "issue message I ' | + | |
| - | ++++++++'" | + | |
| - | UPDATE SCRIPT COND_END_TRACE " | + | |
| - | UPDATE SCRIPT COND_END_TRACE " | + | |
| - | UPDATE SCRIPT COND_END_TRACE " | + | |
| - | LINE=11 | + | |
| - | UPDATE SCRIPT COND_END_TRACE " | + | |
| - | cmd=' | + | |
| - | LINE=12 | + | |
tsm_trace.1358170200.txt.gz · Last modified: 2021/04/24 07:38 (external edit)
