IBM Sterling Transformation Extender

Sterling Transformation Extender

Come for answers, stay for best practices. All we're missing is you.


#Sterling
#Supplychain
 View Only
  • 1.  Turn off traces - dtx.ini MapAdapterTraceOff

    Posted 07/02/08 01:30 PM

    Originally posted by: rarw


    Hi,

    We are not getting the response we anticipated from the dtx.ini MapAdapterTraceOff setting when set to off (1). In the map run command we have used the -T option for the FTP adapter (please see code example below).

    From the verbiage in the dtx.ini file describing the functionality of the MapAdapterTraceOff setting, I interpret that an FTP adapter trace will not be output if the MapAdapterTraceOff is set to 1 (off).

    Verbiage from dtx.ini file:
    ;The following if 1 (on) will turn off all adapter tracing for all watches
    ;regardless of any adapter trace command within an adapter command line.
    ;If 0 or commented (off) ;it will default to what's in an adapter command line.
    ;This can be changed on a per watch basis within the management console.
    MapAdapterTraceOff=0

    We are running command server (8.1.0.2(38)) on Solaris 10.

    My primary question is how to toggle off the traces, and which traces can be toggled off? Is is just adapter traces and not map traces?

    Code example for run command and ftp adapter trace:
    =VALID(RUN("MAR374.mmc","-IF1 %FILE_INPUT_X%" + FILE_NAME Field:In1 +
    " -OAFTP1 '-T %LOG%MAR374.mtr %FTP_LOGIN_X%%DCH02X%"+ FROMDATETIME(CURRENTDATETIME( ),"{CCYYMMDD}{HH24MMSS}" ) + RIGHT("00" +NUMBERTOTEXT(INDEXIN),2) + ";type=ASCII'" +
    " -OF2 %FILE_ARCH_W%" + FILE_NAME Field:In1 + ".arch"),
    FAIL ("Failure on RUN (" + TEXT (LASTERRORCODE ( ) ) + "):" + LASTERRORMSG ( ) ) )

    Thanks in advance for your time and help,
    Becky
    #IBM-Websphere-Transformation-Extender
    #DataExchange
    #IBMSterlingTransformationExtender


  • 2.  Re: Turn off traces - dtx.ini MapAdapterTraceOff

    Posted 07/03/08 03:57 AM

    Originally posted by: paul.brett


    You say "We are running Command Server 8.1.0.2(38)"

    ...and the setting to which you refer is in the Launcher section of the dtx.ini file. Therefore I think it only affects maps under the control of the Launcher (Event Server) and not the Command Server.

    To you questions:

    "how to toggle off the traces"

    Remove the -T from the RUN() command in the -OAFTP1 section. This seems obvious, but perhaps I am missing your point.

    and

    "which traces can be toggled off? Is is just adapter traces and not map traces?
    "

    The setting you mention only affects Adapter Traces, but as I said before, only those under Launcher control.

    Paul.
    #IBM-Websphere-Transformation-Extender
    #IBMSterlingTransformationExtender
    #DataExchange


  • 3.  Re: Turn off traces - dtx.ini MapAdapterTraceOff

    Posted 07/03/08 01:07 PM

    Originally posted by: rarw


    Thanks for the information Paul. I did not see that MapAdapterTraceOff was only in reference to Launcher and not Command Server.

    What I am looking for is an easy way to turn off/on traces per environment/server while running under the command server. Toggling off the traces via the dtx.ini would be an easy way to achieve this capability, but it sounds like the architecture for command server was not designed as such.

    Please correct me if I am wrong, but the ftp adapter traces that we have set with the -T option in the run commands do not appear to cause too much of a slow down, and do not consume much storage space. Thus, we plan to run production maps with the ftp traces set in the run command ((-T) map_trace_file_name.mtr).

    Since it sounds like there is no easy way to toggle off/on the map process traces in the dtx.ini file with respect to command server, the map process trace settings for our maps are turned off since they cause a significant slow down in processing time and can be too many gigs in size.

    Thus, in order to analyze a production problem, we must run the map in a lower environment. If the dtx.ini file offered the capability to turn process traces on/off for command server, then we could turn them on for a lower environment and run the problem file immediately and get a trace. But, unfortunately, it sounds like it is not so easy.

    Since this capability is not available, we must make a copy of the map from the version control file system, edit the map settings to put traces on, configure the .msd to deploy from a different folder, deploy it to a lower environment server, and then run the map. Needless to say, doing all of this at 2 AM, under the gun, is not a desirable situation and having a toggle would be a great feature!

    Thanks for your help,
    Becky
    #IBM-Websphere-Transformation-Extender
    #DataExchange
    #IBMSterlingTransformationExtender


  • 4.  Re: Turn off traces - dtx.ini MapAdapterTraceOff

    Posted 07/07/08 03:12 PM

    Originally posted by: SystemAdmin


    One trick to accomplish what you want is to place all log & trace options into the resource registry as resource variables. Then on your test systems the logs and/or trace files will be generated but won't be on your production or QA systems.

    
    <Resource>
    <Name>trace_options</Name>
    <Value encrypt= "OFF" Server= "LocalServer">-T+</Value>
    <Value encrypt= "OFF" Server= "QA"></Value>
    <Value encrypt= "OFF" Server= "Prod"></Value>
    </Resource>


    In your adapter settings, you then just reference %trace_options%.

    Jim Divoky
    EC Solutions, Inc.
    330-606-6826
    #DataExchange
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender


  • 5.  Re: Turn off traces - dtx.ini MapAdapterTraceOff

    Posted 07/08/08 01:26 PM

    Originally posted by: rarw


    Thank you Jim, I appreciate you sharing your trick! Although this solution will be more work than a toggle, it is the type of solution I was looking for.

    Regards,
    Becky
    #IBMSterlingTransformationExtender
    #DataExchange
    #IBM-Websphere-Transformation-Extender


  • 6.  Re: Turn off traces - dtx.ini MapAdapterTraceOff

    Posted 07/08/08 06:40 PM

    Originally posted by: SystemAdmin


    Depending on how your systems were designed, you may be able to use global search replace in the Integration Flow Designer to insert the resource variable, trace_options, into the Event Server Settings of your system components. Unfortunately, it's not trivial to retrofit card settings within the maps as each map must be modified individually.
    #DataExchange
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender