cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

Cisco Community Designated VIP Class of 2020

1941
Views
0
Helpful
3
Replies
Highlighted
Contributor

archive feature on router and tftp

Hi everybody.

I am trying to learn how " archive" feature works.

R1----------------------------tftp

In above set up:

R1 --- 199.199.199.1

tftp----199.199.199.10

I am able  to copy running-config to tftp as shown below:

R1#copy running-config tftp

Address or name of remote host []? 199.199.199.10

Destination filename [r1-confg]?

!!

811 bytes copied in 15.008 secs (54 bytes/sec

=========================================

Next  I add following config  to R1:

R1(config)#archive

R1(config-archive)#path tftp:199.199.199.10 ?

  <cr>

R1(config-archive)#path tftp:199.199.199.10

R1(config-archive)#time-period ?

  <1-525600>  Number of minutes to wait between archive creation

R1(config-archive)#time-period 1

R1(config-archive)#end

Based on the above config,R1 will copy its startup-config to tftp every minute. However, R1 is keeping generating this message:

R1#

%Error opening tftp:///199.199.199.10-1 (Invalid IP address or hostname)

When i use the command "  copy running-config tftp " on R1, everything things works fine. R1 is able to copy running config to tftp . But when i  used the archive feature, R1 generates a message as shown above. 

What did i do wrong ?

thanks and have a great weekend.

Everyone's tags (4)
1 ACCEPTED SOLUTION

Accepted Solutions
Hall of Fame Expert

Re: archive feature on router and tftp

Hello Sarah,

a // is required after tftp: and before the TFTP server IP address in the path command because it is an URL

see

http://www.cisco.com/en/US/docs/ios-xml/ios/fundamentals/command/monitor_event-trace_through_Q.html#GUID-ED751541-E00C-4B40-9261-D6722B6CE7B8

The following example show how to create the configuration archive, save  the running configuration to the archive, and display the files in the  archive:

configure terminal 
!
archive 
 path tftp://10.48.71.226/router-cfg
 exit
exit
!

Hope to help

Giuseppe

View solution in original post

3 REPLIES 3
Hall of Fame Expert

Re: archive feature on router and tftp

Hello Sarah,

a // is required after tftp: and before the TFTP server IP address in the path command because it is an URL

see

http://www.cisco.com/en/US/docs/ios-xml/ios/fundamentals/command/monitor_event-trace_through_Q.html#GUID-ED751541-E00C-4B40-9261-D6722B6CE7B8

The following example show how to create the configuration archive, save  the running configuration to the archive, and display the files in the  archive:

configure terminal 
!
archive 
 path tftp://10.48.71.226/router-cfg
 exit
exit
!

Hope to help

Giuseppe

View solution in original post

archive feature on router and tftp

I need some more explanation on  following commands

Router(config-archive)# ?
Archive configuration commands:
  default            Set a command to its defaults
  exit               Exit from archive configuration mode
  log                Logging commands
  maximum            Maximum number of backup copies
  no                 Negate a command or set its defaults
  path               Path for backups
  rollback           Rollback parameters
  time-period        Period of time in minutes to automatically archive
the running-config
  write-memory       Enable automatic backup generation during
write memory
Router(config-archive)#
and also i am enable archive features.. It weas adding the temestamp after every file name..
for  eg i schedule back for 10 minutes. in name of router-cfg,   automatic back up first file was router-cfgDec-20-13.31-12.267 what is this. How it was assuming the name with timestamp.. I need to do like router-cfg 1,2,3 so and so on.. Kindly help with explaing the each commands.. and also if there any automatic restoration tool was available ?
Beginner

Re: archive feature on router and tftp

path tftp://<ip address>/$h$t.txt

This should do it

 

CreatePlease to create content
Content for Community-Ad