Free Form Command 'ls -l' returns different results for 'SFTP' and 'FTP'.

book

Article ID: 84747

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine AUTOMIC WORKLOAD AUTOMATION

Issue/Introduction

Error Message :
N/A

When executing the Free Form Command 'ls -l' and defining 'FTP' in the connection object, the path of the file is returned in the report. 
But, if you use 'SFTP' in the connection object, only the file's name is returned in the report without the path. 

Examples:

FTP
2018-04-06 15:47:49             host name = FTP.Automic.com, remote user identification  = support
2018-04-06 15:47:49             connecting on port : 21
2018-04-06 15:47:49             Executing command: ls -l /12345/*tar.gz on CONN.FTPAGENT.FTP.AUTOMIC.COM.2
2018-04-06 15:47:49             -rw-r--r--   1 [email protected] domain users 2891018000 Apr  4 02:03 /12345/xxxxx-complete-node1.tar.gz
2018-04-06 15:47:49             -rw-r--r--   1 [email protected] domain users 3849015596 Apr  4 02:15 /12345/xxxxx-complete-node2.tar.gz


SFTP
2018-04-06 14:52:05             host name = FTP.Automic.com, remote user identification  = support
2018-04-06 14:52:05             connecting on port : 22
2018-04-06 14:52:06             sftp channel opened
2018-04-06 14:52:06             Executing command: ls -l /srv/ftp/account/12345/*tar.gz on CONN.FTPAGENT.FTP.AUTOMIC.COM.2
2018-04-06 14:52:06             -rw-r--r--    1 [email protected] domain users 222349680 Mar 28 00:27 xxxxx-node1-20180327-trace.tar.gz
2018-04-06 14:52:06             -rw-r--r--    1 [email protected] domain users 2891018000 Apr  4 04:03 xxxxx-complete-node1.tar.gz
2018-04-06 14:52:11             Disconnecting from FTP.Automic.com port 22


Expected Behavior:
Both types, FTP and SFTP should return the same results.

Cause

Cause type:
By design
Root Cause: Returned results are determined by the FTP/SFTP server being used.

Environment

Release: AOMVMW99000-4.0-Automic-Operations Manager-VMware vCenter Agent
Component:

Resolution

The result returned is determined by the FTP/SFTP server and not the RA FTP software.

Fix Status: No Fix

Additional Information

Workaround :
N/A