01-20-2021 09:20 AM - edited 01-20-2021 12:44 PM
Hi Community
Does anyone have a clue how to get SFTP working on configuring Archive feature please? It works perfectly with TFTP but am struggling to get it to work with SFTP. We are using a NAS server that supports SFTP, the server seems to be ok.
Switch1#path ?
flash1: Write archive on flash1: file system
flash: Write archive on flash: file system
ftp: Write archive on ftp: file system
http: Write archive on http: file system
https: Write archive on https: file system
rcp: Write archive on rcp: file system
scp: Write archive on scp: file system
sftp: Write archive on sftp: file system
tftp: Write archive on tftp: file system
log config
logging enable
hidekeys
path sftp://admin:xxxxxxxxxx@10.1.x.x//Backup/Cisco-Switch-Backup/switch1-2/$h-
write-memory
time-period 10080
Logs
Jan 20 16:45:19.891: SFTP ifs_open: failed to parse URL
Jan 20 16:45:19.891: SFTP ifs_open: failed to parse URL
CMD: 'do wr' 17:45:23 BST Wed Jan 20 2021
CMD: 'wr' 17:45:23 BST Wed Jan 20 2021
Jan 20 16:45:24.474: SFTP ifs_open: Invalid Path Contains wildcard characters
Jan 20 16:45:27.151: %SYS-5-CONFIG_I: Configured from console by xxxxxxx on vty1 (10.x.x.99)
CMD: 'show archive ' 17:45:30 BST Wed Jan 20 2021
Any ideas of what I might be doing wrong would be greatly appreciated.
Thanks
01-22-2021 07:24 AM
I suggest a test without the "$h-" at the end (specify a fixed name)
maybe this variable is not evaluated when executing the command-line, but sent unchanged to the remote host
01-22-2021 08:17 AM
Hi
Have tried all those, but still get SFTP ifs_open: Invalid Path Contains wildcard characters
path sftp://adxxxx:xxxxxxxxxsssssssss*n5E@10.x.x.x1//Backups/Cisco-Switch-Backup/config.txt
thanks for the response
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide