AutoSys Workload Automation

 View Only
  • 1.  AutoSys: scp jobs in Windows servers

    Posted Oct 28, 2020 06:28 PM
    Hi,

    We have an AutoSys 11.3.6 SP8.

    I am running an scp job define like this.

    insert_job: cab_prd_scp_test_cab_to_win_server_scp job_type: SCP
    machine: linux_server
    owner: win_user@domain
    permission:
    date_conditions: 0
    alarm_if_fail: 0
    alarm_if_terminated: 0
    scp_transfer_direction: UPLOAD
    scp_server_name: win_server
    scp_server_port: 22
    scp_remote_dir: "c:\\temp"
    scp_remote_name: "scp.destination.txt"
    scp_local_name: "/tmp/scp.source.txt"
    scp_target_os: Windows
    scp_protocol: SFTP
    scp_local_user: autosys
    run_external: 0
    scp_delete_sourcefile: 0
    scp_delete_sourcedir: 0
    scp_create_targetdir: 0
    scp_transfer_mode: ASCII

    Failed to authenticate to host 'win_server' with user 'win_user'.

    User win_user@domain can rdp to win_server and I can telnet from linux_server to win_server

    Do you know what can be checked to find out the problem?

    thanks
    José


  • 2.  RE: AutoSys: scp jobs in Windows servers

    Broadcom Employee
    Posted Oct 29, 2020 02:33 AM
    Just to be sure, have you created user@host / password via autosys_secure?

    https://techdocs.broadcom.com/us/en/ca-enterprise-software/intelligent-automation/autosys-workload-automation/12-0/reference/ae-commands/manage-security/autosys-secure-command-define-security-settings.html

    Example:

    autosys_secure -a -u testuser@machine1 -p testuserpass


    ------------------------------
    Enterprise Solutions Architect
    Broadcom
    ------------------------------



  • 3.  RE: AutoSys: scp jobs in Windows servers

    Posted Nov 03, 2020 05:31 AM
    Hi Priyesh,

    thanks for your answer.

    I should have specified it. Yes I added the user and password in autosys_secure. 
    I also logged manually to ensure the ID/password are correct.

    Best regards.
    José


  • 4.  RE: AutoSys: scp jobs in Windows servers

    Broadcom Employee
    Posted Oct 30, 2020 10:30 AM
    I noticed that you are trying to scp to a windows server.  Older versions of windows didn't have support for a SSH server, however newer versions of Windows have support for a SSH server service but you must enable and manually configure it or use a third-party SSH server.


  • 5.  RE: AutoSys: scp jobs in Windows servers

    Posted Nov 03, 2020 05:34 AM
    Thanks Richard,

    I did not that. It is good info.

    Anyway telnet to port 22 works fine so I assume the ssh server on the windows server is working fine.

    Best regards.
    José


  • 6.  RE: AutoSys: scp jobs in Windows servers

    Broadcom Employee
    Posted Nov 03, 2020 08:23 PM
    A TCP/IP connection has multiple parts.  Telnet to a port only checks the connect() portion.  There can still be problem with the send() or receive() of data.  The only way to check is to run a sftp client from the agent machine to the target machine.  I have seen at other customer sites where send() and receives() are blocked but connect() is not blocked.


  • 7.  RE: AutoSys: scp jobs in Windows servers

    Broadcom Employee
    Posted Nov 03, 2020 09:38 PM
    One other thing.  Can you turn on the trace.  Set the following in the agentparm.txt

    ftp.scp.debug.enable=true

    restart the agent

    duplicate the problem

    zip the agent logs and attach to this discussion thread.