Automic Workload Automation

 View Only
  • 1.  Mapped Drive on Agent Server Not Visible

    Posted Aug 12, 2021 01:33 PM
    Automic version 12.3

    I have a request to create an Automic RAFTP process that moves files from a file server to Google Drive.  I mapped the Google drive as G on my agent server.

    When I test the job by changing directory, it can go to D and back to C but it does not go to G.  I have given the G drive full control to everyone.  I also added administrators with full control.

    Executing command: cd g:\ on Local File System
    com.uc4.ftpjob.DataTransferException: directory g:\ does not exist

    What do I need to do to allow Automic to see the mapped drive?

    Thanks
    Tim

    ------------------------------
    Developer
    State of Colorado
    ------------------------------


  • 2.  RE: Mapped Drive on Agent Server Not Visible

    Posted Aug 12, 2021 02:57 PM
    I been successful with the DOS net use command to map a drive and reference by drive letter.

    I.e.

    NET USE H: &Archive#

    https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-r2-and-2012/gg651155(v=ws.11)


  • 3.  RE: Mapped Drive on Agent Server Not Visible

    Posted Aug 12, 2021 05:32 PM
    Hi Tim,

    I looked at the doc in the link but I am still not sure how to use this information in a job.

    I went to the pre_process and did :Set &Drive# = '\\oitautmdt01\' 

    Then in the RAFTP job, I did a freeform command NETUSE G:&Drive#

    Got this error, "Executing command: NETUSE G:\\oitautmdt01\ on Local File System stat is not supported for local file system"
    After reading the documentation for Free Form commands, they all seem to be SFTP commands, not Windows commands so I may be in the wrong place.

    Can you provide more detail on where you use the NETUSE command in a jobs?

    Thanks

    ------------------------------
    Developer
    State of Colorado
    ------------------------------



  • 4.  RE: Mapped Drive on Agent Server Not Visible

    Posted Aug 13, 2021 07:01 AM
    NET USE is two words.  We have a similar setup working and it also has a space between the drive letter and the UNC path.  Ours is mapping to another server\drive.


    "net use g: \\servername\g$"


  • 5.  RE: Mapped Drive on Agent Server Not Visible

    Posted Aug 13, 2021 04:50 AM
    We never got round this issue so we had to create a 2 step process.

    1. FTP the file to a local file on the FTP Host/Agent
    2 Copy the file to the final destination



    ------------------------------
    Mick Moses
    Software Configuration Analyst
    Lowell Financial Services
    UK
    ------------------------------



  • 6.  RE: Mapped Drive on Agent Server Not Visible

    Posted Aug 13, 2021 07:41 AM
    Edited by Frank Muffke Aug 13, 2021 07:44 AM
    Hi

    using network drives in WIN via UC4 is a bit complicated thing because OS agents do not load the complete environment and RA FTP agent uses only existing drives.

    So it might work, if the 
    * user who starts the RA FTP agent is able to map the networt drive
    * the network drive is visible when the RA FTP agent starts

    In practice most companies split it up (as already discussed) in 2 parts, the network drive part and the FTP part.

    Hint for the OS part:  the user who starts the OS agent and the user in LOGIN object (preferably the same user) must be able to see the network drive.

    In general if you have issues or different users, for a win job its recommended to map the network drive as non-persistent, do your copy commands and afterwards delete the network drive.

    btw. you could try workin with unc path definitions, at least for OS jobs it should work well.

    I personally would not rely on mapped network drives over different OS jobs or OS job and RA FTP jobs.

    cheers, Wolfgang

    ------------------------------
    Support Info:
    if you are using one of the latest version of UC4 / AWA / One Automation please get in contact with Support to open a ticket.
    Otherwise update/upgrade your system and check if the problem still exists.
    ------------------------------



  • 7.  RE: Mapped Drive on Agent Server Not Visible

    Broadcom Employee
    Posted Aug 13, 2021 09:56 AM
    Just for the records:

    In order to change the drive (and the directory) by using the CD command in Windows the switch /D must be used e.g.
    cd /D g:\myFolder

    See also
    cd /?

    Displays the name of or changes the current directory.

    CHDIR [/D] [drive:][path]
    CHDIR [..]
    CD [/D] [drive:][path]
    CD [..]

    .. Specifies that you want to change to the parent directory.

    Type CD drive: to display the current directory in the specified drive.
    Type CD without parameters to display the current drive and directory.

    Use the /D switch to change current drive in addition to changing current
    directory for a drive.