Automic Workload Automation

Expand all | Collapse all

Check file availability in different servers

  • 1.  Check file availability in different servers

    Posted Apr 03, 2017 10:14 AM
    Hi 
    We want to trig a SAP job after verifying the file availability ,for this we are using pre-condition (check file) in AE workflow.
    I have installed in Windows agent in AE interface and installed service manager in server (where we receive files) but still my job is waiting for the file even the file is presented in the given locaion.
    Can you please help to solve my problem


  • 2.  Check file availability in different servers

    Posted Apr 03, 2017 01:29 PM
    Thats a bit difficult with no more info - just have a look in the Workflow's and JOB's Report - is here stated any error message?


  • 3.  Check file availability in different servers

    Posted Apr 04, 2017 12:57 AM
    Thanks for your reply 
    I have installed service manager in server the log is like below 
    process UC4 winX64 agent ID 12828 ended
    U0022022 Process 'UC4 winX64' ended, exit code=66'."


  • 4.  Check file availability in different servers

    Posted Apr 04, 2017 06:10 AM
    "but still my job is waiting for the file even the file is presented in the given locaion."
    and
    U0022022 Process 'UC4 winX64' ended, exit code=66'."

    I would say your Agent ist not running, so the AE is not able to check if the file is existent or not, so this would be an explanation why its not proceeding....

    For your service Manager issue this could help:
    https://community.automic.com/discussion/5189/anyone-run-into-this-issue-before





  • 5.  Check file availability in different servers

    Posted Apr 04, 2017 07:31 AM

    Hi 
    I have removed the Servicemanager logs and and re installed the service ,manager. now ,i'm getting the below message in the log

    20170404/132134.561 - U00022005 ... with command line  'C:\Automic\ServiceManager\bin\..\..\AutomationEngine\bin\UCsrvwp.exe C:\Automic\ServiceManager\bin\..\..\AutomationEngine\bin\ucsrv.ini -svc%port%'.
    20170404/132134.561 - U00022006 ... and start directory  'C:\Automic\ServiceManager\bin\..\..\AutomationEngine\bin'.
    20170404/132134.561 - U00022008 Could not start process 'UC4 WP1'. Error Code '267'.
    20170404/132134.561 - The directory name is invalid.



  • 6.  Check file availability in different servers

    Posted Apr 04, 2017 09:09 AM
    Then SMGR does not find your AE binaries - pls check the path in the SMD file or (recommended) via SMGR dialog


  • 7.  Check file availability in different servers

    Posted Apr 04, 2017 09:22 AM

    I have placed the required fies which are recommended via SMGR and tried to re-install ,Please find the below log now.

     U00022012 Process 'UC4 WP5/UC4 WP-Server - Termination in progress' (ID '10612') ended.
    20170404/142121.155 - U00022022 Process 'UC4 WP5/UC4 WP-Server - Termination in progress' ended, exit code='60'.
    20170404/142126.156 - U00022004 Starting process 'UC4 WP6' ...
    20170404/142126.156 - U00022005 ... with command line  'C:\Automic\ServiceManager\bin\..\..\AutomationEngine\bin\UCsrvwp.exe C:\Automic\ServiceManager\bin\..\..\AutomationEngine\bin\ucsrv.ini -svc%port%'.
    20170404/142126.156 - U00022006 ... and start directory  'C:\Automic\ServiceManager\bin\..\..\AutomationEngine\bin'.
    20170404/142126.156 - U00022007 Process 'UC4 WP6' (ID '14848') successfully started.
    20170404/142126.187 -          Window: Hnd=090700a4, Title='UC4 WP-Server'
    20170404/142126.734 - U00022012 Process 'UC4 WP6/UC4 WP-Server - Termination in progress' (ID '14848') ended.
    20170404/142126.734 - U00022022 Process 'UC4 WP6/UC4 WP-Server - Termination in progress' ended, exit code='60'.
    20170404/142130.734 - U00022004 Starting process 'UC4 JWP1' ...
    20170404/142130.734 - U00022005 ... with command line  'C:\Program Files\Java\jdk1.8.0_101\bin\java -Xrs -Xmx512M -jar ucsrvjp.jar -IC:\Automic\ServiceManager\bin\..\..\AutomationEngine\bin\ucsrv.ini -svc%port%'.
    20170404/142130.734 - U00022006 ... and start directory  'C:\Automic\ServiceManager\bin\..\..\AutomationEngine\bin'.
    20170404/142130.734 - U00022008 Could not start process 'UC4 JWP1'. Error Code '2'.
    20170404/142130.734 - The system cannot find the file specified.
    20170404/142135.736 - U00022004 Starting process 'UC4 JWP2' ...
    20170404/142135.736 - U00022005 ... with command line  'C:\Program Files\Java\jdk1.8.0_101\bin\java -Xrs -Xmx512M -jar ucsrvjp.jar -IC:\Automic\ServiceManager\bin\..\..\AutomationEngine\bin\ucsrv.ini -svc%port%'.
    20170404/142135.736 - U00022006 ... and start directory  'C:\Automic\ServiceManager\bin\..\..\AutomationEngine\bin'.
    20170404/142135.736 - U00022008 Could not start process 'UC4 JWP2'. Error Code '2'.
    20170404/142135.736 - The system cannot find the file specified.
    20170404/142140.736 - U00022004 Starting process 'UC4 JWP3' ...
    20170404/142140.736 - U00022005 ... with command line  'C:\Program Files\Java\jdk1.8.0_101\bin\java -Xrs -Xmx512M -jar ucsrvjp.jar -IC:\Automic\ServiceManager\bin\..\..\AutomationEngine\bin\ucsrv.ini -svc%port%'.
    20170404/142140.736 - U00022006 ... and start directory  'C:\Automic\ServiceManager\bin\..\..\AutomationEngine\bin'.
    20170404/142140.736 - U00022008 Could not start process 'UC4 JWP3'. Error Code '2'.
    20170404/142140.736 - The system cannot find the file specified.
    20170404/142145.753 - U00022004 Starting process 'UC4 JWP4' ...
    20170404/142145.753 - U00022005 ... with command line  'C:\Program Files\Java\jdk1.8.0_101\bin\java -Xrs -Xmx512M -jar ucsrvjp.jar -IC:\Automic\ServiceManager\bin\..\..\AutomationEngine\bin\ucsrv.ini -svc%port%'.
    20170404/142145.753 - U00022006 ... and start directory  'C:\Automic\ServiceManager\bin\..\..\AutomationEngine\bin'.
    20170404/142145.753 - U00022008 Could not start process 'UC4 JWP4'. Error Code '2'.
    20170404/142145.753 - The system cannot find the file specified.
    20170404/142150.753 - U00022004 Starting process 'UC4 CP1' ...
    20170404/142150.753 - U00022005 ... with command line  'C:\Automic\ServiceManager\bin\..\..\AutomationEngine\bin\UCsrvcp.exe C:\Automic\ServiceManager\bin\..\..\AutomationEngine\bin\ucsrv.ini -svc%port%'.
    20170404/142150.753 - U00022006 ... and start directory  'C:\Automic\ServiceManager\bin\..\..\AutomationEngine\bin'.
    20170404/142150.909 - U00022007 Process 'UC4 CP1' (ID '7232') successfully started.
    20170404/142150.940 -          Window: Hnd=084200ca, Title='UC4 CP-Server'
    20170404/142151.081 - U00022012 Process 'UC4 CP1/UC4 CP-Server - Termination in progress' (ID '7232') ended.
    20170404/142151.081 - U00022022 Process 'UC4 CP1/UC4 CP-Server - Termination in progress' ended, exit code='61'.
    20170404/142156.100 - U00022004 Starting process 'UC4 CP2' ...
    20170404/142156.100 - U00022005 ... with command line  'C:\Automic\ServiceManager\bin\..\..\AutomationEngine\bin\UCsrvcp.exe C:\Automic\ServiceManager\bin\..\..\AutomationEngine\bin\ucsrv.ini -svc%port%'.
    20170404/142156.100 - U00022006 ... and start directory  'C:\Automic\ServiceManager\bin\..\..\AutomationEngine\bin'.
    20170404/142156.100 - U00022007 Process 'UC4 CP2' (ID '14420') successfully started.
    20170404/142156.131 -          Window: Hnd=084500ca, Title='UC4 CP-Server'
    20170404/142156.272 - U00022012 Process 'UC4 CP2/UC4 CP-Server - Termination in progress' (ID '14420') ended.
    20170404/142156.272 - U00022022 Process 'UC4 CP2/UC4 CP-Server - Termination in progress' ended, exit code='61'.
    20170404/142201.272 - U00022004 Starting process 'UC4 AE_PROD_WIN01' ...
    20170404/142201.272 - U00022005 ... with command line  'C:\Automic\ServiceManager\bin\..\..\Agents\Windows\bin\UCXJWX6.exe'.
    20170404/142201.272 - U00022006 ... and start directory  'C:\Automic\ServiceManager\bin\..\..\Agents\Windows\bin'.
    20170404/142201.272 - U00022007 Process 'UC4 AE_PROD_WIN01' (ID '13700') successfully started.
    20170404/142201.647 -          Window: Hnd=084600ca, Title='UC4 Agent [AE_PROD_WIN01]'
    20170404/142205.663 - U00022004 Starting process 'UC4 AE_PROD_WS01' ...
    20170404/142205.663 - U00022005 ... with command line  'C:\Program Files\Java\jdk1.8.0_101\bin\java -jar -Xrs -Xmx2048M ucxjcitx.jar'.
    20170404/142205.663 - U00022006 ... and start directory  'C:\Automic\Agents\rapidautomation\bin'.
    20170404/142205.663 - U00022008 Could not start process 'UC4 AE_PROD_WS01'. Error Code '267'.
    20170404/142205.663 - The directory name is invalid.
    20170404/142210.663 - U00022004 Starting process 'UC4 AE_PROD_SQL' ...
    20170404/142210.663 - U00022005 ... with command line  'java -jar -Xmx256M C:\Automic\ServiceManager\bin\..\..\Agents\sql\bin\ucxjsqlx.jar'.
    20170404/142210.663 - U00022006 ... and start directory  'C:\Automic\ServiceManager\bin\..\..\Agents\sql\bin'.
    20170404/142210.663 - U00022008 Could not start process 'UC4 AE_PROD_SQL'. Error Code '2'.
    20170404/142210.663 - The system cannot find the file specified.
    20170404/142215.663 - U00022004 Starting process 'UC4 AE_PROD_SQLSERVICE' ...
    20170404/142215.663 - U00022005 ... with command line  'java -jar -Xmx256M C:\Automic\ServiceManager\bin\..\..\Agents\sqlservice\bin\ucxjsqlx.jar -service -iC:\Automic\ServiceManager\bin\..\..\AutomationEngine\bin\ucsrv.ini'.
    20170404/142215.663 - U00022006 ... and start directory  'C:\Automic\ServiceManager\bin\..\..\Agents\sqlservice\bin'.
    20170404/142215.663 - U00022008 Could not start process 'UC4 AE_PROD_SQLSERVICE'. Error Code '2'.
    20170404/142215.663 - The system cannot find the file specified.



  • 8.  Check file availability in different servers

    Posted Apr 04, 2017 10:10 AM
    "I have placed the required fies which are recommended via SMGR and tried to re-install"

    There is no need to re-install anything.

    Its just to (re-)define the path to your Agent binary and working dir
    And now to some WPs and CPs.....

    here are some screenshots what I am talking about:

    uzpky9hmxrwm.jpgmz357xv1kdud.jpghttps://us.v-cdn.net/5019921/uploads/editor/jz/mz357xv1kdud.jpg" width="592">

    you can use the template and just adapt the path definitions to the CP and WP and Agent binaries within Service Manager Dialog.




  • 9.  Check file availability in different servers

    Posted Apr 04, 2017 10:26 AM

    b8f40dju4fa7.pnghttps://us.v-cdn.net/5019921/uploads/editor/nc/b8f40dju4fa7.png" width="624">Plase find the attched screen shot.if we are using 3 servers then do we need to install 3 windows to verify files in single server .

    If we created windows agent then do I need to create in service manager dialog?Please help me




  • 10.  Check file availability in different servers

    Posted Apr 04, 2017 02:49 PM
    "if we are using 3 servers then do we need to install 3 windows to verify files in single server ."
    - sorry, no Idea what you are talking about....

    "If we created windows agent then do I need to create in service manager dialog?"
    - If you installed a WIN Agent you can start it by doubleclicking on the EXE or via Windows Services.
    SMGR Installation is optional - but easier to handle, cause you can start/stop agents via Ui or SMGR Dialog.

    Usually per WIN Server you hava a SMGR instance and one (or more) Agents (WIN, SQL, SAP, RA.., ......)

    I would recommend attending the basisc training & admin training from automic.


  • 11.  Check file availability in different servers

    Posted Apr 05, 2017 01:35 AM
    Ok,We have installed AE services and agents in 1 server and we will receive files to another server(2) so now windows agent need to verify the files on server 2.for this I have installed SMGR in server 2,whle installing this i'm getting the logs which I have attached in the previous comment.
    I think now have explained my problem:(


  • 12.  Check file availability in different servers

    Posted Apr 05, 2017 02:54 AM
    ah now I think I understood - Agent + SMGR are on Server A and you need to check if the file is located on server B - correct?

    in this case you have 2 possibilities (probably 3):

    1) install a seperate agent (and optional SMGR) on Server B
    2) share the path on server B and use an UNC path for checking if the file exists
    3) store the file on Server A instaed of Server B