📄 tracesrv.script
字号:
.***************************************************************************.* Software Testing Automation Framework (STAF).* (C) Copyright IBM Corp. 2004.*.* This software is licensed under the Common Public License (CPL) V1.0..****************************************************************************.*************************-START-OF-PROLOG-****************************.*.* File Name : TraceSrv SCRIPT.* Descriptive Name : Software Test Automation Framework Trace Service.*.* Detail:.*.* This file describes the STAF Trace Service..*.**************************-END-OF-PROLOG-*****************************:i1.trace service:ih1.services:i2.trace service:h2 id=tracesrv.Trace Service:h3.Description:p.The TRACE service is one of the internal STAF services. It provides the followingtrace commands.:ul compact.:li.ENABLE - Allows you to specify trace points and STAF service(s) to be enabled for tracing.:li.DISABLE - Allows you to specify trace points and STAF service(s) to be disabled for tracing.:li.LIST - Returns the current settings for the trace service:li.PURGE - Allows you to remove tracing information for services that are not registered:li.SET - Allows you to set the destination for the tracinginformation or the default tracing state for new services. :li.&help.:eul.:p.The purpose of the Trace service is to allow you to control the trace messagesrecorded for STAF services. For example, if you are experiencing a problem with aSTAF service or a request to a STAF service, you can specify various STAF tracepoints and/or STAF service(s) to be enabled for tracing to record additional tracemessages which can help you resolve the problem.:note.If you enable one or more of the "service" tracepoints (e.g. ServiceRequest,ServiceResult, ServiceError, ServiceAccessDenied, or RemoteRequests), these tracemessages will only be reported for the services you have enabled for tracing.:h4.Format of Trace Messages :p.The format of each trace message is the following:xmp.<Timestamp>;<Thread>;<Trace Point>;<Message>:exmp.:p.where&colon.:p.:xph.<Timestamp>:exph. is the date/time of the message.:p.:xph.<Thread>:exph. is the thread on which the message originated.:p.:xph.<Trace Point>:exph. is the hexadecimal representation of the message'strace point. See table :hdref refid=tracepointref. for a list of trace points.:p.:xph.<Message>:exph. is the actual trace message. &maskPrivate.:h4.Examples of Trace Messages:p.Here's an example of a :xph.ServiceManagement:exph. trace message::xmp.20050811-16&colon.20&colon.50;1;00000010;Service HELP: Initializing:exmp.:p.Here's an example of a :xph.Warning:exph. trace message::xmp.20050811-10&colon.10&colon.50;4836;00000400;STAFConnectionManager&colon.&colon.makeConnection - Attempt #1 of 2 (Delay 41 milliseconds), RC: 16, Result: STAFConnectionProviderConnect: Timed out connecting to endpoint: select() timeout: 22, Endpoint: client1:exmp.:p.Here's an example of :xph.ServiceRequest:exph. and :xph.ServiceResult:exph. trace messages::xmp.20050811-10&colon.33&colon.54;4836;00000001;PROCESS Service Request - Client: local://local, Handle: 30, Process: STAF/Client, Request: start command date returnstdout wait20050811-10&colon.33&colon.54;4836;00000002;PROCESS Service Result (0) - Client: local://local, Handle: 30, Process: STAF/Client, Request: start command date returnstdout wait, Result: { Return Code: 0 Key : <None> Files : [ { Return Code: 0 Data : Thu Aug 11 10:33:54 CDT 2005 } ]}:exmp.:ih1.tracing:h3 id=tracepointref.Trace Points Reference:p.The following are the valid trace points along with their hexadecimal representationand their descriptions.The hexadecimal representation of a trace point is logged in each trace message.Trace points are not case sensitive.:i2.hexadecimal trace points:table id = trchex headhi = 3 frame = box split = yes cols = '* * 6*' align = 'c l l'.:tcap.Trace point hexadecimal representation.*-----------------------------:thd.:c.Hex:c.Trace point:c.Description:ethd..*-----------------------------:row.:c.00000001:c.:xph.ServiceRequest:exph.:c.The trace point which causes a trace message to be generated for everyincoming service request before it is processed by the service..*-----------------------------:row.:c.00000002:c.:xph.ServiceResult:exph.:c.The trace point which causes a trace message to be generated for everyincoming service request after it is processed by the service.Note that the trace message will include the return code and result for theservice request. This tracepoint overrides the :xph.ServiceComplete:exph.,:xph.ServiceError:exph. and :xph.ServiceAccessDenied:exph. tracepoints..*-----------------------------:row.:c.00000004:c.:xph.ServiceError:exph.:c.The trace point which causes a trace message tobe generated for every incoming service request which results in a non-zeroerror code. Note that the trace message will include the return code andresult for the service request.This tracepoint overrides the :xph.ServiceAccessDenied:exph. tracepoint..*-----------------------------:row.:c.00000008:c.:xph.ServiceAccessDenied:exph.:c.The trace point which causes a tracemessage to be generated for every incoming service request which results in an"Insufficient Trust Level" (aka "Access Denied") error code..*-----------------------------:row.:c.00000010:c.:xph.ServiceManagement:exph.:c.The trace point which causes a trace message to be generated forservice management operations such as service initialization and termination..*-----------------------------:row.:c.00000020:c.:xph.RemoteRequests:exph.:c.The trace point which enables trace message to be generated forrequests destined for other machines..*-----------------------------:row.:c.00000100:c.:xph.Error:exph.:c.The trace point which causes a trace message to be generated for errorconditions that STAF detects, such as broken communication connections andfatal STAF Service errors. The :xph.Error:exph. trace point is turned onby default..*-----------------------------:row.:c.00000200:c.:xph.Registration:exph.:c.The trace point which causes a trace message to be generated forevery registration or unregistration done by a process..*-----------------------------:row.:c.00000400:c.:xph.Warning:exph.:c.The trace point which causes a trace message to be generated forwarning conditions that STAF detects..*-----------------------------:row.:c.00000800:c.:xph.Info:exph.:c.The trace point which causes a trace message to be generated forinformation conditions that STAF detects..*-----------------------------:row.:c.00001000:c.:xph.Deprecated:exph.:c.The trace point which causes a trace message to be generated fordeprecated options that STAF detects.A deprecated option is not recommended for use, generally due to improvements,and a replacement option is usually given. Deprecated options may be removed infuture implementations. The :xph.Deprecated:exph. trace point is turned on by default..*-----------------------------:row.:c.00002000:c.:xph.Debug:exph.:c.The trace point which causes a trace message to be generated fordebug conditions that STAF detects..*-----------------------------:row.:c.00004000:c.:xph.ServiceComplete:exph.:c.The trace point which causes a trace message to be generated for everyincoming service request after it is processed by the service.Note that the trace message will include the return code and result lengthfor the service request, but not the result data. This tracepoint overrides the :xph.ServiceError:exph. and:xph.ServiceAccessDenied:exph. tracepoints..*-----------------------------:etable..*.*---------------------------------------------------------------------.*:ih1.service commands:ih2.ENABLE:i3.TRACE service:ih1.tracing:i2.trace service:h3 id=tracesrvEnable.Enable:p.ENABLE allows you to enable trace points and STAF services for tracing.See table :hdref refid=tracepointref. for a list of valid trace points.:note.You can enable services that aren't currently registered and they will begintracing when they are registered with STAF.:h4.Syntax:xmp.ENABLE ALL [ TRACEPOINTS | SERVICES ]ENABLE TRACEPOINTS <Trace point list> | SERVICES <Service list>ENABLE TRACEPOINT <Trace point> [ TRACEPOINT <Trace point> ]...ENABLE SERVICE <Service> [ SERVICE <Service> ]...:exmp.:p.:xph.ALL:exph. indicates to enable tracing for all trace points and/or services:p.:xph.TRACEPOINTS:exph. indicates a list of trace points to be enabled for tracing.The trace points in the list should be separated by spaces. &varres.:p.:xph.SERVICES:exph. indicates a list of services to be enabled for tracing.The services in the list should be separated by spaces. &varres.:p.:xph.TRACEPOINT:exph. indicates which trace point should be enabled for tracing. &varres.:p.:xph.SERVICE:exph. indicates which service should be enabled for tracing. &varres.:h4.Security:p.&seclvl. 5.:h4.Return Codes:p.All return codes from ENABLE are documented in :hdref refid=retcode..:h4.Results:p.For :xph.ENABLE:exph. the result buffer will be empty if there are no errors:h4.Examples:ul.:li.:hp2.Goal&colon.:ehp2. Enable the service request, service result, and service management trace points:p.:hp2.Syntax&colon.:ehp2. :xph.ENABLE TRACEPOINTS "ServiceRequest ServiceResult ServiceManagement":exph.:li.:hp2.Goal&colon.:ehp2. Enable the error and warning trace points:p.:hp2.Syntax&colon.:ehp2. :xph.ENABLE TRACEPOINTS "Error Warning":exph.:li.:hp2.Goal&colon.:ehp2. Enable all trace points:p.:hp2.Syntax&colon.:ehp2. :xph.ENABLE ALL TRACEPOINTS:exph.:li.:hp2.Goal&colon.:ehp2. Enable tracing for remote requests:p.:hp2.Syntax&colon.:ehp2. :xph.ENABLE TRACEPOINT RemoteRequests:exph.:li.:hp2.Goal&colon.:ehp2. Enable tracing only for the PROCESS and QUEUE services:p.:hp2.Syntax&colon.:ehp2. :xph.ENABLE SERVICES "PROCESS QUEUE":exph.:li.:hp2.Goal&colon.:ehp2. Enable tracing for all services:p.:hp2.Syntax&colon.:ehp2. :xph.ENABLE ALL SERVICES:exph.:li.:hp2.Goal&colon.:ehp2. Enable tracing for all services and tracepoints:p.:hp2.Syntax&colon.:ehp2. :xph.ENABLE ALL:exph.:li.:hp2.Goal&colon.:ehp2. Enable tracing for the VAR service:p.:hp2.Syntax&colon.:ehp2. :xph.ENABLE SERVICE VAR:exph.:li.:hp2.Goal&colon.:ehp2. Enable tracing for the SERVICE service:p.:hp2.Syntax&colon.:ehp2. :xph.ENABLE SERVICE &colon.7&colon.SERVICE:exph.:eul..*.*---------------------------------------------------------------------.*:ih1.service commands:ih2.DISABLE:i3.TRACE service:ih1.tracing:i2.trace service:h3 id=tracesrvDisable.Disable:p.DISABLE allows you to disable trace points and STAF services for tracing.See table :hdref refid=tracepointref. for a list of valid trace points.:h4.Syntax:xmp.DISABLE ALL [ TRACEPOINTS | SERVICES ]DISABLE TRACEPOINTS <Trace point list> | SERVICES <Service list>DISABLE TRACEPOINT <Trace point> [ TRACEPOINT <Trace point> ]...DISABLE SERVICE <Service> [ SERVICE <Service> ]...:exmp.:p.:xph.ALL:exph. indicates to disable tracing for all trace points and/or services:p.:xph.TRACEPOINTS:exph. indicates a list of trace points to be disabled for tracing.The trace points in the list should be separated by spaces. &varres.:p.:xph.SERVICES:exph. indicates a list of services to be disabled for tracing.The services in the list should be separated by spaces. &varres.:p.:xph.TRACEPOINT:exph. indicates which trace point should be disabled for tracing. &varres.:p.:xph.SERVICE:exph. indicates which service should be disabled for tracing. &varres.:h4.Security:p.&seclvl. 5.:h4.Return Codes:p.All return codes from DISABLE are documented in :hdref refid=retcode..:h4.Results:p.For :xph.DISABLE:exph. the result buffer will be empty if there are no errors
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -