cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2775
Views
20
Helpful
1
Comments
Leon Jaimes
Level 1
Level 1
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.
  1. Use two forward slashes for the target directory path.
  2. Specify the entire path from root, even if sftp normally drops you into the user's home directory.
  3. 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!
1 Comment
Arne Bier
VIP
VIP

Great workaround. I don’t know if I will remember this in 6 months time :-( Yet another quirky thing to note down somewhere. I’d say this deserves opening a TAC case to have a bug filed. It’s not normal syntax. 

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: