Hello,
I wanted to post this because it is an issue that took me a while to figure out and I have seen similar threads, but not anything that came up easily in search. I periodically forget how I solved this, so posting it for all of you and future me.
My goal was to copy reports that were saved to the local Default repository to a sftp target on a Linux server.
In the
Cisco Identity Services Engine CLI Reference Guide, Release 2.6 - Chapter: Cisco ISE CLI Commands in EXEC Mode > copy section, it gives the following syntax:
sftp:[[//location]/directory]/filename
The above syntax would not return any error, so it looked like it completed, but there would be no file. What I found were three key points.
- Use two forward slashes for the target directory path.
- Specify the entire path from root, even if sftp normally drops you into the user's home directory.
- Don't specify the file name in the target path.
The result looks like this:
copy disk:/defaultrepo/somereport.csv sftp://mysftpserver//home//mysftpuserhome//repo//
Hope this helps someone else.
Cheers!