Automic Workload Automation

Expand all | Collapse all

'JNR' is not recognized as an internal or external command, operable program or batch file.

  • 1.  'JNR' is not recognized as an internal or external command, operable program or batch file.

    Posted Apr 23, 2018 08:18 AM

    Hi,

     

    we are new to HOSTGROUPS and having trouble with an simple Windows "dir" Job. Runs the job direct on the agent, we dont have any problems. 

     

    we get this Report:

     

    C:\>JNR=1348557403 MNR=0021 PNR=0 IPA= TYP=S TXT=" Job started"
    'JNR' is not recognized as an internal or external command,
    operable program or batch file.
    ATTENTION - UC4:JOBMESSENGER failed
    JOB ended with RETCODE 0
    JOBMSG ended with RETCODE 9009
    JOB will abort with RETCODE from JOBMSG step

     

    Can anyone help? Thanks



  • 2.  Re: 'JNR' is not recognized as an internal or external command, operable program or batch file.

    Posted Jul 30, 2018 07:01 PM

    What is the scope of this issue?  If it is only with a single job object and everything else is running fine, then I'd suggest there is something seriously wrong with how it was built so you should delete it, and start over again.

     

    Here is the same line from one of our executions;

     

    c:\>C:\Automic\v11\Agents\Windows\bin\UCXJWX6M.EXE JNR=0004578545 MNR=0100 PNR=2311 IPA=10.0.1.177 TYP=S TXT="        Job started"



  • 3.  Re: 'JNR' is not recognized as an internal or external command, operable program or batch file.

    Posted Mar 05, 2019 05:18 AM

    What's the solution of this Problem? We have the same problem.

    Thank you for answer



  • 4.  Re: 'JNR' is not recognized as an internal or external command, operable program or batch file.

    Posted Mar 05, 2019 05:33 AM

    Hi

     

    seems to me that someone changed:

     

    A) a general include that calls the job messenger

    B) someone changed the INI file that Variable &UC_JOBMD can not be resolved

     

    You should check if this affects all jobs of an OS type orjust some on onlyone agent...

     

    cheers, Wolfgang



  • 5.  Re: 'JNR' is not recognized as an internal or external command, operable program or batch file.

    Posted Mar 05, 2019 05:55 AM

    Hi

    we have this problem since Automic V12. With Automic V10 it works.

    The option A) and B) are correctly.

    The problem is only with windows jobs.

     

    Thanks



  • 6.  Re: 'JNR' is not recognized as an internal or external command, operable program or batch file.

    Posted Mar 05, 2019 07:21 AM

    If you start the JOB ONCE with test options "Generated JCL" - how does the outputlook?

    The job content would be elpful as well...

     

    cheers, Wolfgang



  • 7.  Re: 'JNR' is not recognized as an internal or external command, operable program or batch file.

    Posted Mar 05, 2019 08:56 AM

    Hi

    the output with JCL

     

    @echo on
    C:\Program Files\Automic_v12\Agents\windows\bin\UCXJWX6M.EXE JNR= MNR=PNR= IPA= TYP=S TXT="        Job started"
    @set retcodemsg=%errorlevel%
    @set retcode=0
    @if NOT %retcodemsg% == 0 GOTO :MSGABORT


    cd\
    pushd D:\GROUP\Filetransfer

     

    C:\Program Files\Automic_v12\Agents\windows\bin\UCXJWX6M.EXE JNR= MNR= PNR= IPA= TYP=E RET=00000000 TXT="        Job ended"
    @set retcodemsg=%errorlevel%
    @set retcode=0
    GOTO JOBENDE
    :RETCODE
    C:\Program Files\Automic_v12\Agents\windows\bin\UCXJWX6M.EXE JNR= MNR= PNR= IPA= TYP=E RET=%retcode% TXT="        Job ended with retcode"
    @set retcodemsg=%errorlevel%
    GOTO JOBENDE
    :ABEND
    C:\Program Files\Automic_v12\Agents\windows\bin\UCXJWX6M.EXE JNR= MNR= PNR= IPA= TYP=E RET=00000100 TXT="        controlled job cancel"
    @set retcodemsg=%errorlevel%
    @set retcode=100
    :JOBENDE
    @if NOT %retcodemsg% == 0 GOTO :MSGABORT
    @exit %retcode%
    :MSGABORT
    @echo ATTENTION - UC4:JOBMESSENGER failed
    @echo JOB ended with RETCODE %retcode%
    @echo JOBMSG ended with RETCODE %retcodemsg%
    @echo JOB will abort with RETCODE from JOBMSG step
    @exit %retcodemsg%

     

    Thanks Debora



  • 8.  Re: 'JNR' is not recognized as an internal or external command, operable program or batch file.

    Posted Mar 05, 2019 11:36 AM

    this does not look like the same problem as the top-post to me?

     

    Could you share the errors you are getting?



  • 9.  Re: 'JNR' is not recognized as an internal or external command, operable program or batch file.

    Posted Mar 06, 2019 03:31 AM


  • 10.  Re: 'JNR' is not recognized as an internal or external command, operable program or batch file.

    Posted Mar 06, 2019 03:34 AM

    great!

     

    cheers Wolfgang



  • 11.  RE: Re: 'JNR' is not recognized as an internal or external command, operable program or batch file.

    Posted Jan 11, 2024 06:04 AM

    We face the same here after upgrading our Evaluation to V21. Is there any chance to see the old Knowledge entry ? Link does not work anymore ...




  • 12.  RE: Re: 'JNR' is not recognized as an internal or external command, operable program or batch file.

    Broadcom Employee
    Posted Jan 12, 2024 03:49 AM

    Hi, 

    the original article deals with the issue of having the agent installed in C:\Program Files

    The space between Program and Files is creating an issue. Which version of the Windows agent are you using?

    As a workaround the article suggest setting UC_EX_JOB_MD in the agents .ini file to something like:

    C:\PROGRA~1\Automic\..........\AgentWin\bin\UCXJWX6M.EXE

    However, that error should not appear, because it is taken care of the space character in the HEADER.WINDOWS object in client 0.

    Please double check whether it contains the following section:

    :IF &UC_WIN_TYP = "BAT"
    :SET &UC_JOBMD   = GET_VAR(UC_EX_JOB_MD)
    :IF STR_FIND(&UC_JOBMD, ' ') GT 0
    :   IF STR_FIND(&UC_JOBMD, '"') EQ 0
    :      SET &UC_JOBMD = '"&UC_JOBMD"'
    :   ENDIF
    :ENDIF

    Regards, Markus




  • 13.  RE: Re: 'JNR' is not recognized as an internal or external command, operable program or batch file.

    Broadcom Employee
    Posted Jan 12, 2024 05:49 AM

    Here is the new link:

    https://knowledge.broadcom.com/external/article?articleNumber=107437