DX Application Performance Management

Expand all | Collapse all

Use LoadRunner scripts to generate CEM Business Transactions

  • 1.  Use LoadRunner scripts to generate CEM Business Transactions

    Posted Jan 02, 2015 06:59 PM

    Hi Hiko\All,

     

    I am following the above steps for VuGen trace file, but getting an eror while connecting to CEM Server. BElow is the eror I am getting. Also my URL is Https for accessing CEM\Introscope. But in Script recorder its says - "Http POST" and no https, which I think is not allowing me to connect.

     

    Sending recording file to #############.net:8444...

    HTTP POST http://##############.net:8443/wily/cem/tess/TimEventCollecto

    r/RecordingSession

    Returned error code 503.

     

    Please suggest.



  • 2.  Re: Use LoadRunner scripts to generate CEM Business Transactions

    Broadcom Employee
    Posted Jan 02, 2015 07:04 PM

    What version of APM are you using, and have you followed the directions in the Transaction Guide for your version?



  • 3.  Re: Use LoadRunner scripts to generate CEM Business Transactions

    Posted Jan 02, 2015 07:16 PM

    Currently I am using 9.1.6 version only for which I am trying to do so.

    Also I don't see much difference between version 9.5 and 9.1 documentation except LoadRunner version.

     

    Please suggest.

     

    Regards,

    Vaibhav



  • 4.  Re: Use LoadRunner scripts to generate CEM Business Transactions

    Broadcom Employee
    Posted Jan 02, 2015 07:18 PM

    Is the version of LR supported?

     

    Can you open a socket connection from the PC to CEM?



  • 5.  Re: Use LoadRunner scripts to generate CEM Business Transactions

    Posted Jan 02, 2015 07:24 PM

    Inititally I was too thinking it might be the case that my current LR version is 11.

    But seeing the error, it seems that it is an issue of my sript recorder and CEM connection.

     

    Not sure about the socket connection, but yes I am able to access WebView as well as workstation from this machine where my script recorder is residing.

     

    Regards,

    Vaibhav



  • 6.  Re: Use LoadRunner scripts to generate CEM Business Transactions

    Posted Jan 02, 2015 07:25 PM

    Can you Please let me know how to put HTTPS POST thing in script recorder for server connection. ?

     

    Regards,

    Vaibhav



  • 7.  Re: Use LoadRunner scripts to generate CEM Business Transactions

    Broadcom Employee
    Posted Jan 02, 2015 07:26 PM

    Can you show us your commandline options you're using?



  • 8.  Re: Use LoadRunner scripts to generate CEM Business Transactions

    Broadcom Employee
    Posted Jan 02, 2015 07:27 PM

    Is your MOM configured to use secured sockets?



  • 9.  Re: Use LoadRunner scripts to generate CEM Business Transactions

    Posted Jan 03, 2015 12:18 AM

    Hiko,

    I will confirm and let you know. !

     

    Regards,

    Vaibhav



  • 10.  Re: Use LoadRunner scripts to generate CEM Business Transactions

    Broadcom Employee
    Posted Jan 05, 2015 07:48 AM

    Dear Vaibhav:

    You can also try a pcap of the same transaction and sees what happen. Have you ever successfully imported scripts before?

     

    Thanks

    Hall German

    APM Tech Support



  • 11.  Re: Use LoadRunner scripts to generate CEM Business Transactions

    Posted Jan 22, 2015 06:23 AM

    Hi Hiko and Hall,

    Thanks for your patience.

     

    Actually I was looking for the details at the MOM side. Regarding

    • Socket Connect: Default Socket factory as well as other connection settings have been used. Below are the port settings at MOM side. Please suggest if needs correction. My CEM console URL is "https://.....:8444"

    # The enabled communication channels.

    introscope.enterprisemanager.enabled.channels=channel1

     

    # Use this to enable both the default channel and secure channel.

    #introscope.enterprisemanager.enabled.channels=channel1,channel2

     

    # The default communication channel.

    introscope.enterprisemanager.serversocketfactory.channel1=com.wily.isengard.postofficehub.link.net.server.DefaultServerSocketFactory

    introscope.enterprisemanager.port.channel1=5001

     

    # The secure (SSL) communication channel.

    introscope.enterprisemanager.serversocketfactory.channel2=com.wily.isengard.postofficehub.link.net.server.SSLServerSocketFactory

    introscope.enterprisemanager.port.channel2=5443

     

    • Input file:UI am taking trace file of LoadRunner with Extended Log's enabled. But I think currently it is a communication problem with the CEM.


    • Comman-Line Options:

         ...\ScriptRecorderInstall\wily\cem\scriptrecorder\bin>scriptrecorder.exe -file Directory\TraceFile.txt -server MOM_IP:8443
                 where my CEM console URL is  - https://MOM_IP:8443 and TraceFile.txt is LoadRunner log file with logs extended.(as mentioned in many documents)

     

    • Response I am getting is below where

     

    CA Script Recorder v4.5.0.000

    Copyright (c) 2009 CA. All rights reserved.

    INFO: File Directory\TraceFile.txt: is not a packet capture file.

     

    131 components written to Directory\TraceFile.txt.recording.xml

    Sending recording file to MOM_IP:5443...

    HTTP POST http://MOM_IP:5443/wily/cem/tess/TimEventCollector/RecordingSession

    Returned error code 503.

    ************************************************

    [ getting below output when using URL for CEM console in place of MOM_IP in command line input.

    Sending recording file to [CEM_CONSOLE_URL]...

    **ERROR: HttpPostFile() caused an exception.

    HTTP POST http://https://CEM_CONSOLE_URL_WITH_PORT/wily/cem/tess/TimEventCollector/RecordingSession

    Returned error code 404.

    ]

     

     

    And yes, I have never tried importing files befor this. Please help, what should I try to get it done.

    Apreciate your help.

     

    Regards,

    Vaibhav



  • 12.  Re: Use LoadRunner scripts to generate CEM Business Transactions

    Broadcom Employee
    Posted Jan 22, 2015 08:10 AM

    Dear Vaibhav:

     

    This sounds like a port or permissions issue. MOM log in debug and a pcap of the communication from browser to MOM could be helpful

     

    Thanks

    Hallett (Hal) German



  • 13.  Re: Use LoadRunner scripts to generate CEM Business Transactions

    Posted Jan 23, 2015 11:44 AM

    Thanks for your response Hallet.

     

    Actually this activity I am trying to do is at enterprise level, where setting MOM logs at Debug level will not be feasible from my end.

     

    But can you please help me by knowing that what all settings are required for communicationg\exporting files to MOM from my machine ? Like which proprty defines which port will be used... etc,,,

     

    Because I am able to ping the MOM server.

     

    Regards,

    Vaibhav



  • 14.  Re: Use LoadRunner scripts to generate CEM Business Transactions

    Broadcom Employee
    Posted Jan 23, 2015 12:23 PM

    Dear Vaibhav:

     

    You already switched the port number as outlined here

     

    http://www.ca.com/us/support/ca-support-online/product-content/knowledgebase-articles/tec615512.aspx

     

    Hiko may be a better person for MOM communications

     

    Thanks

    Hal German



  • 15.  Re: Use LoadRunner scripts to generate CEM Business Transactions

    Posted Feb 08, 2015 02:10 PM

    Hi Hallet,

     

    Don't know how, but above command line worked for me. I am getting - "Sending files to........ OK"

     

    But now I am not able to see this under "Recording Sessions" tab. I have used VuGen extendable logs (in .txt format) for a transaction. Plz help.

     

    Regards,

    Vaibhav



  • 16.  Re: Use LoadRunner scripts to generate CEM Business Transactions

    Broadcom Employee
    Posted Feb 09, 2015 08:55 AM

    Dear Vaibhav:

        This was a problem in earlier releases. This was the fix:

    These are the steps:
    1.    Connect to the DB using pgadmin or Oracle equivalent
    2.    Browse to Databases> dbname>Schemas>Public>Tables
    3.    Right click on the table ts_recording_sessions and click View Data

    4. When you look at the rows, you should find one or more rows that are causing problems.

    5.    The culprit session row will look little different, with following
    values :
    a.    Version_info=0 or blank
    b.    Ts_start_time = null/grayed out
    c.    Ts_stop_time = null/grayed out

    6.    To fix this, you need to edit these values.
    Version_info=2
    Ts_start_time= copy from existing session or pass a valid date Ts_stop_time= copy from existing session or pass a valid date

     

    If this does not resolve it, please review the logs (ideally in VERBOSE/DEBUG) at the time you accessed the tab and open a support case if needed. Also check for EEM/LDAP permissions issues.

     

    Thanks

    Hal German

    APM Support



  • 17.  Re: Use LoadRunner scripts to generate CEM Business Transactions

    Broadcom Employee
    Posted May 11, 2015 02:06 AM

    Hi Vaibhav,

    In a later case we confirmed that the EM secured port 8444 cannot be used for the script recorder. TEC1297765 is a recent KB article based on that:

     

    Script recorder unable to process HP LoadRunner VUGen trace files with the MOM or (TIM Collection Service EM) using secure web server port 8444.

     

    Regards,

    Lynn



  • 18.  Re: Use LoadRunner scripts to generate CEM Business Transactions

    Posted May 11, 2015 07:03 AM

    Hi Lynn,

     

    thanks for your help & support. I think this TEC has been created based on our support ticket only . [just guessing looking at the resolution date]

    But there is one more thing we need to mention in case of clustered environment.


    Actually in case of clustered Wily implementation, we have to enable port 8081 not only at MOM but also at CEM hosting Collector jetty config file.

    Otherwise we would be getting sessions under recording tab, but content would not be dispalyed under that session.


    Sharing this info which might be useful for users with clustered Wily environment.


    Thanks all for your help and inputs.


    Regards,

    Vaibhav





  • 19.  Re: Use LoadRunner scripts to generate CEM Business Transactions

    Broadcom Employee
    Posted May 11, 2015 06:55 PM

    Hi Vaibhav,

    Thanks a lot for that added information.

    We actually have a case open right now with those symptoms so even more beneficial

     

    Regards,

     

    Lynn



  • 20.  Re: Use LoadRunner scripts to generate CEM Business Transactions

    Broadcom Employee
    Posted May 12, 2015 02:22 AM

    Vaibhav,

    In my 9.6 cluster testing I also found the same symptoms of an empty recording session created when running the script recorder against the MOM with these errors created by script recorder and in MOM logs respectively

    ++++

    Sending recording file to 127.0.0.1:8081...

    HTTP POST http://127.0.0.1:18081/wily/cem/tess/TimEventCollector/RecordingSession

    Returned error code 500.

    ++++

     

    ++++

    [DEBUG] [btpool1-9] [Manager.com.timestock.tess.services.collectors.CemDataCollector] request from 127.0.0.1 to URL http://127.0.0.1:8081/wily/cem/tess/TimEventCollector/RecordingSession

    ...

    [ERROR] [btpool1-9] [Manager.com.timestock.tess.services.collectors.CemDataCollector] unexpected exception processing HTTP request

    java.lang.NullPointerException

    at com.timestock.tess.data.objects.RecordingSession.getSetOfNonSoftDeletedRecordingComponent(RecordingSession.java:265)

    at com.timestock.tess.data.objects.RecordingSession.getMainComponents(RecordingSession.java:159)

    at com.timestock.tess.services.managers.RecordingManager.assignRecordingComponentTypes(RecordingManager.java:268)

    ...

    ++++

     

    Using the the script recorder directly against the Collector assigned to TIM Collection Service is successful (assuming the unsecured port is enabled and used)

    Is that also what you found?

    Thanks

    Lynn

    P.S.

    I also have added some comments to the relevant 9.7 wiki section for the Transaction Definition Guide:

    https://wiki.ca.com/display/APMDEVOPS97/Command+line+instructions?focusedCommentId=223841875&#comment-223841875



  • 21.  Re: Use LoadRunner scripts to generate CEM Business Transactions

    Broadcom Employee
    Posted May 12, 2015 08:28 AM

    It is possible to import in a recording without an identifying transaction. So, the recording is there but there is nothing to change or promote.



  • 22.  Re: Use LoadRunner scripts to generate CEM Business Transactions

    Posted May 13, 2015 12:36 AM

    Correct Lynn.

     

    Action1:Importing transaction without any changes to http://MOM:8444

    Result:Script importing Successfull but nothing found under Recording Session Tab.

     

    Action2:Enabled port 8081 for MOM and then sending to http://MOM:8081

    Result:Session under recording session is visible, but nothing to display (no content for that session)

     

    Action3:Enabled port 8081 at CEM Collector and sending to http://CEM_Collector:8081

    Result:Session as well as content both are available for promoting it.

     

    These were steps I followed and am able to get the required result.

     

    Hi Hallett_German,

    Can you please elaborate what does that mean - "It is possible to import in a recording without an identifying transaction. So, the recording is there but there is nothing to change or promote." you are trying to say ?
    Actually as if now I have not faced any such issue or scenario uptil now.

    Please suggest.

     

    Regards,

    Vaibhav



  • 23.  Re: Use LoadRunner scripts to generate CEM Business Transactions

    Broadcom Employee
    Posted May 13, 2015 12:59 AM

    Vaibhav,

    Thanks for confirmation. I am in the process of updating that new KB for the cluster requirement

    Regards,

    Lynn



  • 24.  Re: Use LoadRunner scripts to generate CEM Business Transactions

    Broadcom Employee
    Posted May 13, 2015 06:37 AM

    Dear Vaibhav:

     

    Somewhere I have such a file from a customer and saw this a few years back. If there are a bunch of URLs and there is no identifying transaction, then the behavior in the pas was to successfully promote and the recording can be seen on the record sessions list. So the components were brought over but cannot be seen, changed, or promoted.

    To resolve I would try the following

    - Try a new script with one URL and send over to MOM-TESS

    - Set one url in recording as identifying. This is not recommended unless you have a backup of the database and know the correct update to perform

     

    The odds of this happening are very low. I think I have only seen two cases in ten years. So I would not worry about it occurring

    Thanks

    Hal German

    APM Support

    ============================

     

    Can you please elaborate what does that mean - "It is possible to import in a recording without an identifying transaction. So, the recording is there but there is nothing to change or promote." you are trying to say ?
    Actually as if now I have not faced any such issue or scenario uptil now.

    Please suggest.



  • 25.  Re: Use LoadRunner scripts to generate CEM Business Transactions

    Posted May 13, 2015 07:06 AM

    Ohh... okies

    Luckily I am not facing this issue as if now

     

    Thanks for sharing this.

     

    Regards,

    Vaibhav