Automic Workload Automation

  • 1.  &UC_JOBMD CMD not working

    Posted May 17, 2018 10:47 AM

    Hi,

     

    We are trying to encrypt password in our job.

     

    After encryption, we are using below statement to call &UC_JOBMD CMD

     

    :SET &pw# = GET_LOGIN(LOGIN.OBJ,"*",STORE,PASSWORD)

     

    &UC_JOBMD CMD="&DRM_Serv_EXE# /op=E /u=&user# /pw=&pw# /url=&DRM_Serv_URL# /log="&LOG#" /xtype=E /xname=&EXPORT# /cver=&CVER# /pver=&PVER# /objectaccess=&EXPORT_Group#"

     

    This is failing job as it is not connecting to DRM server.  Same statement works when not using GET_LOGIN/&UC_JOBMD CMD.

     

    Could let me know if anything is missing in the above statement.



  • 2.  Re: &UC_JOBMD CMD not working

    Posted May 17, 2018 11:51 AM

    Hi

     

    which AE version do you use?

     

    does the GET_LOGIN command work correct?

    ..means, if you do a Print rigth after :SET &pw#..... does it show the encrypted PW?

     

    does appear an error message in the job?

     

    cheers, Wolfgang



  • 3.  Re: &UC_JOBMD CMD not working

    Posted May 17, 2018 12:26 PM

    Hi Wolfang,

     

    Our AE version is 11.1.0

     

    and GET_LOGIN works correct as I am able to see the encrypted password and echo the original password as well using &UC_JOBMD CMD="echo set db_password=&pw#"



  • 4.  Re: &UC_JOBMD CMD not working

    Posted May 17, 2018 02:37 PM

    There used to be a bug in GET_LOGIN().  The first two characters of &pw# are supposed to be "--".  If they aren't, then you are battling this old bug and I'll explain how we worked around it.



  • 5.  Re: &UC_JOBMD CMD not working

    Posted May 17, 2018 04:16 PM

    Hi Peter,

     

    We have first 2 characters of encrypted password as "--".

     

    Thanks



  • 6.  Re: &UC_JOBMD CMD not working

    Posted May 17, 2018 05:08 PM

    What does it show when you do a right-click -> "Open Generated Job" on it in the activities window? It should show the whole command with generated values. pwd should still show as encrypted value but can at least make sure it is placed correctly and the whole syntax is correct



  • 7.  Re: &UC_JOBMD CMD not working

    Posted May 17, 2018 10:55 PM

    Hello

     

    When I see report,I see command with generated values...along with --pw .But the command is not hitting Drm server.Wondering if it is to do with "".