IBM Support

PI73009: EXECUTING run_agent.cmd ON WINDOWS FAILS IF IT IS EXECUTED FROM OUTSIDE THE AGENT BIN DIRECTORY

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as fixed if next.

Error description

  • The "agent.cmd is not recognized as an internal or external
    command" issue will happen if the cmd window's current working
    directory is not server/bin.  The fix for this is to modify the
    files
    run_agent.cmd, start_agent.cmd and stop_agent.cmd and add the
    following line right after "setlocal":
    
    cd %~dp0
    
    
    %0 is to get the cmd file's path
    ~dp is a modifier to expand both the drive letter and the path
    for %0
    
    Also script output to be returned to UCB is handled differently
    whether the CMD process is ran as a standard user or as an
    Administrator, and causes cases where blank output will be
    returned in the command trace output.  This is due to the way
    Windows 10 spawns a new elevated (with admin rights) CMD process
    yielding output vs previous
    Windows' versions where it would return in the main CMD window.
    

Local fix

  • APAR to be created; do not use shell steps
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * Windows-based agent machines                                 *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * The "agent.cmd is not recognized as an internal or external  *
    * command" issue will happen if the cmd window's current       *
    * working                                                      *
    * directory is not server/bin.                                 *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * The fix for this is to modify the files                      *
    * run_agent.cmd, start_agent.cmd and stop_agent.cmd and add    *
    * the following line right after "setlocal":                   *
    *                                                              *
    * cd %~dp0                                                     *
    ****************************************************************
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    PI73009

  • Reported component name

    URBANCODE BUILD

  • Reported component ID

    5725P5700

  • Reported release

    612

  • Status

    CLOSED FIN

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2016-11-30

  • Closed date

    2017-01-03

  • Last modified date

    2017-01-03

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

Applicable component levels

  • R612 PSN

       UP

  • R612 PSY

       UP

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SS8NMD","label":"IBM UrbanCode Build"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"612","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
19 October 2021