Script created in BSM not appearing in BPM

Hello All

APM 9.30
BPM 9.30.471

We had created new script using vuGen to monitor an web based application and added the script in script repository in BSM. We further created End User Monitor in BSM and launched the script in BPM. However we see the script is not running in BPM.

We further checked in BPM and in BPM also we are not seeing the script been listed.

Please provide your help to fix this issue.

Parents
  • please check out in the BPM logs if you see any errors

    you can find it under %programData%\HP\BPM\workspace

    You can stop BPM delete workspace and restart it just to see if this is a temp problem or not.

  • In BPM Workspace, I see following error under details section

    440 - Failed to register

    Please clarify what does it mean and how to solve it.

  • Hi

    I created new vuGen script using IE and uploaded it to BSM and launched it from BPM.

    From /opt/HP/BPM/workspace/agent1/Site1/ops__________5e490adcdf3f8d571d97c29a879e93a5_1/WebHttpHtml1/21_1/output.txt, I am seeing following lines,

    Action.c(1036): web_url("logout.24.gif_2") was successful, 13610 body bytes, 171 header bytes   [MsgId: MMSG-26386]
    Ending action Action.
    Ending iteration 1.
    Ending Vuser...
    Starting action vuser_end.
    Ending action vuser_end
    Vuser Terminated.

    which I assume the script was executed successfully.

    In /opt/HP/BPM/workspace/agent1/Site1/ops__________5e490adcdf3f8d571d97c29a879e93a5_1/WebHttpHtml1/21_1/res/output.txt, I am seeing following error

    Action.c(4): Error -27724: Step download timeout (120 seconds) has expired      [MsgId: MERR-27724]

    How to solve this.

  • so Step download timeout (120 seconds) has expired meaning your URL was nto accesible form the BPM machine.

    You can just put this URL in the BPM machine browser  and check it is happen there.

    This is a simple timeout message not a script issue.

  • Noam

    Does it mean I need to open FW ports from BPM Server to the URL requested in the script.

  • Hi

    Yes I am able to access the URL from my BPM server.

    If I look at output.txt, I am seeing following,

    Vuser Terminated.

    If I look at /opt/HP/BPM/workspace/logs/bpm_all.log, I am seeing following errors,

    WARN  [BpmTaskRunner-17] [GeneralScriptTaskExecutor] The script output file: WebHttpHtml1_*.json.cp was not created. Setting the exit code to: 6

    ERROR [SamplesHandlerThread (Site1)] [ScriptMetadata] transactions metadata is missing in metadata file: /opt/HP/BPM/workspace/agent1/Site1/data/trans_t/1491109049001_643/1491109049000_1_21_WebHttpHtml1/WebHttpHtml1.metadata samples will not be sent for this script run.

    What does it mean and how to solve it.

     

  • It can be due to many reasons but in your case I think you did not wrap the script with a transactions (start transaction and end transaction), hence the script exist with status  6 (script error) since it does not have a transaciton to report this error.

    send me the script to review.

  • Noam

    Attached.

    Not able to attach the file as .usr or .zip, hence attached in image format.

  • I could not see [Transactions] section.

    can you just copy the text of the USR?

    withtout [ransaction] section you wil not see any report

    It is hard to determin such problem just by images.

  • Noam

    Please find the script

    [General]
    Type=Multi
    DefaultCfg=default.cfg
    ParameterFile=
    GlobalParameterFile=
    NewFunctionHeader=1
    RunType=cci
    ActionLogicExt=action_logic
    LastActiveAction=Action
    MajorVersion=12
    MinorVersion=53
    ActiveTypes=QTWeb
    GenerateTypes=QTWeb
    AdditionalTypes=QTWeb
    DevelopTool=Vugen
    LastModifyVer=12.53.0.1203
    ParamLeftBrace={
    ParamRightBrace=}
    ScriptLanguage=C
    LastCodeGenerationVer=12.53.0.1203
    DisableRegenerate=0
    Description=
    ScriptLocale=en-US
    [Actions]
    vuser_init=vuser_init.c
    Action=Action.c
    vuser_end=vuser_end.c
    [RunLogicFiles]
    Default Profile=default.usp
    [VuserProfiles]
    Profiles=Default Profile
    [CfgFiles]
    Default Profile=default.cfg
    [ExtraFiles]
    globals.h=
    [Modified Actions]
    vuser_init=0
    Action=1
    vuser_end=0
    [Recorded Actions]
    vuser_init=0
    Action=1
    vuser_end=0
    [Replayed Actions]
    vuser_init=1
    Action=1
    vuser_end=1
    [Interpreters]
    vuser_init=cci
    Action=cci
    vuser_end=cci
    [TransactionsOrder]
    Order=
    [StateManagement]
    LastReplayStatus=1
    [ActiveReplay]
    LastReplayedRunName=result1
    ActiveRunName=result1

  • Noam

    I created new script and put start transaction in init section and put end transaction in end section of the script.

    Imported the script to APM and ran it in BPM and this time it finished fine.

    While creating End User monitor in APM in License type I am seeing following,

    BPM Target
    Transaction single location
    APM 360 with SLM
    Transaction unlimited location.

    Can you please elaborate which one to choose when.

    Also even the script has finished running, I am not able to see data for the script in APM.

Reply
  • Noam

    I created new script and put start transaction in init section and put end transaction in end section of the script.

    Imported the script to APM and ran it in BPM and this time it finished fine.

    While creating End User monitor in APM in License type I am seeing following,

    BPM Target
    Transaction single location
    APM 360 with SLM
    Transaction unlimited location.

    Can you please elaborate which one to choose when.

    Also even the script has finished running, I am not able to see data for the script in APM.

Children
No Data