사용자 추적 예

통합 노드 또는 서버의 추적을 제어하기 위해 사용자 추적을 시작하고 중지하고 재설정할 수 있습니다. 사용자 추적을 제어하려면 명령어 mqsichangetrace , IBM® App Connect Enterprise 웹 사용자 인터페이스 또는 관리용 REST API를 사용하십시오.

시작하기 전에

통합 서버 추적을 시작하기 전에 통합 서버가 실행 중이어야 합니다.

태스크 정보

사용자 추적을 사용하여 통합 서버의 활동을 추적할 수 있습니다. 사용자 추적은 일반 텍스트로 작성되며 읽기 전에 형식화하지 않아도 됩니다.

통합 서버의 사용자 추적을 시작하려면 다음 방법 중 하나를 사용하십시오.
  • IBM App Connect Enterprise 웹 사용자 인터페이스에서 통합 서버의 최상위 수준으로 이동한 다음, 페이지 오른쪽 상단 모서리에 있는 메뉴에서 ‘사용자 추적 시작’을 선택합니다.
  • mqsichangetrace 명령을 사용하십시오.
  • IBM App Connect Enterprise 에서 제공하는 REST API를 사용하십시오.
통합 서버의 사용자 추적을 중지하려면 다음 방법 중 하나를 사용하십시오.
  • IBM App Connect Enterprise 웹 사용자 인터페이스에서 통합 서버의 최상위 수준으로 이동한 다음, 페이지 우측 상단의 메뉴에서 ‘사용자 추적 중지’를 선택합니다.
  • mqsichangetrace 명령을 사용하십시오.
  • IBM App Connect Enterprise 에서 제공하는 REST API를 사용하십시오.
사용자 추적 로그 파일에 이미 기록된 모든 추적 데이터가 지워지도록 통합 서버의 사용자 추적을 재설정하려면 다음 방법 중 하나를 사용하십시오.
  • IBM App Connect Enterprise 웹 사용자 인터페이스에서 통합 서버의 최상위 수준으로 이동한 다음, 페이지 오른쪽 상단 모서리에 있는 메뉴에서 ‘사용자 추적 재설정’을 선택합니다.
  • mqsichangetrace 명령을 사용하십시오.
  • IBM App Connect Enterprise 에서 제공하는 REST API를 사용하십시오.

추적 로그:

독립 통합 서버의 경우 추적 로그가 workpath/config/common/log에 기록됩니다. 여기서 workpathIntegrationServer 명령에 지정된 통합 서버의 작업 디렉토리입니다.

통합 노드에 의해 관리되는 통합 서버의 경우 추적 로그는 MQSI_WORKPATH/Common/log/integration_node_name.integration_server_name.userTrace.0.txt에 기록됩니다.

다음 예제 사용자 추적은 데이터 처리를 시작하는Mapping 노드 및 Mapping 노드에 전달되는 HTTPInput 노드가 수신한 메시지를 표시합니다.
2018-04-27 09:55:37.845248    12276  UserTrace   BIP3122I: Message received and propagated to 'out' 
terminal of HTTP input node 'Transformation_Map.HTTP Input'.
2018-04-27 09:55:37.845608    12276  UserTrace   BIP3904I: Invoking the evaluate() method of node 
(class=ComIbmMSLMappingNode, name=FCMComposite_1_3, label=Map).  About to pass a message to the 
evaluate() method of  the specified node.  No user action required.
2018-04-27 09:55:37.850016    12276  UserTrace   BIP3964I: The Mapping node 'Map' in message flow 
'Transformation_Map' is about to process the mapping routine '{default}:Transformation_Map'.  The Mapping 
node is about to process the named mapping routine.  Check the following messages to see the progression of 
the mapping process.
2018-04-27 09:55:37.851412    12276  UserTrace   BIP11306I: A Parser of type 'WSPROPERTYPARSER' has 
been created at address '0x248db510'. 
2018-04-27 09:55:37.851752    12276  UserTrace   BIP6060I: Node 'Transformation_Map.HTTP Input' used 
parser type 'Properties' to process a portion of the incoming message of length '0' bytes beginning at offset '0'.
2018-04-27 09:55:37.958100    12276  UserTrace   BIP4142I: Evaluating cniElementSetName. Changing value 
from 'Root' to 'LocalEnvironment'.  Element 'Name' has been changed to 'LocalEnvironment'.  No user action 
required. 
2018-04-27 09:55:37.980888    12276  UserTrace   BIP3963I: The Mapping node is performing a deep copy of 
the input tree element 'MbElement( type: 1000000 name: Properties )' into the output tree.  The Mapping node 
is copying the named input tree element, and all its descendents, into the output tree.  Check the following 
messages to see the progression of the mapping process.
2018-04-27 09:55:37.981508    12276  UserTrace   BIP4145I: Exiting function cniAddBefore with result: 
CCI_SUCCESS(0).  About to exit the specified the function with the specified result.  No user action required.
2018-04-27 09:55:37.984728    12276  UserTrace   BIP3960I: The Mapping node is adding a new element with 
name 'SaleEnvelopeA' into the output tree.  The Mapping node is adding a new element to the output tree, as 
defined in the transform that is being processed.  If this element is assigned a value, then this assignment will be 
reported in an additional message.  Check the following messages to see the progression of the mapping process.
2018-04-27 09:55:37.984864    12276  UserTrace   BIP11306I: A Parser of type 'XMLNSC' has been created at 
address '0x32c2490'.
2018-04-27 09:55:37.984932    12276  UserTrace   BIP4144I: Entered function 
cniCreateElementAsLastChild(TRUE, TRUE, N/A, N/A, N/A, N/A, N/A, N/A, N/A, N/A, N/A).  Entered the 
specified function with the specified parameters.  No user action required.
2018-04-27 09:55:37.984972    12276  UserTrace   BIP4145I: Exiting function cniCreateElementAsLastChild 
with result: CCI_SUCCESS(0).  About to exit the specified the function with the specified result.  No user action 
required.