07-30-2007 12:10 PM
Hi all,
I have been using automatic archive configurations with TFTP and it works great. However, I'd like to switch to SCP as the file transfer mechanism to improve security on the router and for the file server. I have a test router configured with:
archive
path scp://user:pwd@host/file
time-period 5
This should automatically archive every five minutes with the specified username and password. However, it does not automatically archive, but I can manually archive by typing archive config. I visually watch the router successfully log in to the SCP server and put the file in the correct directory. Is SCP not supported for automatic archive or am I missing something?
thanks,
Solved! Go to Solution.
08-01-2007 07:44 AM
Hmmm, interesting. You might try "no archive" then re-enable archiving again. If that doesn't work, a reload would be in order.
07-30-2007 12:59 PM
It's working for me. What version of IOS are you running? What is the output of show archive?
07-30-2007 01:41 PM
Here is the show archive:
sho archive
The next archive file will be named scp://user:pwd@host/rtr01-11
Archive # Name
1 scp://user:pwd@host/rtr01-1
2 scp://user:pwd@host/rtr012
3 scp://user:pwd@host/rtr01-3
4 scp://user:pwd@host/rtr01-4
5 scp://user:pwd@host/rtr01-5
6 scp://user:pwd@host/rtr01-6
7 scp://user:pwd@host/rtr01-7
8 scp://user:pwd@host/rtr01-8
9 scp://user:pwd@host/rtr01-9
10 scp://user:pwd@host/rtr01-10 <- Most Recent
flash:c2800nm-ipvoicek9-mz.124-11.XJ.bin
All of the above SCP archives were performed manually.
Here is my configuration:
archive
path scp://user:pwd@host/rtr01
time-period 5
thanks,
07-30-2007 01:45 PM
Hi again,
Is is what the output looks like when I perform archive manually:
rtr01#archive config
Writing rtr01-11
****USAGE WARNING****
This is a private computer system. This computer system, including all
related equipment, networks, and network devices (specifically including
Internet access) are provided only for authorized use. This computer system
may be monitored for all lawful purposes, including to ensure that its use
is authorized, for management of the system, to facilitate protection against
unauthorized access, and to verify security procedures, survivability, and
operational security. Monitoring includes active attacks by authorized entities
to test or verify the security of this system. During monitoring, information
may be examined, recorded, copied and used for authorized purposes. All
information, including personal information, placed or sent over this system
may be monitored.
Use of this computer system, authorized or unauthorized, constitutes consent
to monitoring of this system. Unauthorized use may subject you to criminal
prosecution. Evidence of unauthorized use collected during monitoring may be
used for administrative, criminal, or other adverse action. Use of this system
constitutes consent to monitoring for these purposes.
!
rtr01#
The file is written in the correct archive directory.
thanks,
08-01-2007 07:14 AM
I have some more information. The router appears to be not reset its timing of archive. For example, if I originally put 1440 minutes and then change it to 5 minutes. The router does not begin archiving at 5 minutes until after the 1440 time limit. Is there a way to manually reset the archive countdown?
08-01-2007 07:44 AM
Hmmm, interesting. You might try "no archive" then re-enable archiving again. If that doesn't work, a reload would be in order.
08-01-2007 08:47 AM
thanks! I have tried it on the 3560G platform with c3560-ipbasek9-mz.122-25.SEE3.bin IOS. I experienced the same problem with SCP. Doing a no archive and adding the archive information does appear to work. I'll continue testing today.
01-06-2011 10:55 PM
Why when using the "path scp://user:password@host", the password length is limited to 15 characters? I'm able to use password in the length of 25 characters when running "copy run scp:" from commandline.
01-07-2011 08:37 AM
I tested this on 15.1, and I looked through the code, and the password limit appears to be 31 characters. Please start a new thread for your issue and include the specifics about your device and config.
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