cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2102
Views
5
Helpful
6
Replies

Auto Configuration Backup

naresh_myaka
Level 1
Level 1

Hi All,

Do anyone of you know whether we can schedule the configuration backup of cisco network devices.

Is there any 3nd party software through which I can schedule and take auto backup of configuration.

I have L3/L2 switch and routers, all of cisco.

Regards,

Naresh

6 Replies 6

glen.grant
VIP Alumni
VIP Alumni

Ciscoworks will do that , also other tools like from Kiwi will do stuff like that probably for a cheaper price than ciscoworks.

amit-singh
Level 8
Level 8

Naresh,

This has been a question of dilema from a long time that whether you can do that or not. Many people uses diffrent softwares to do that line Cisco works 2000. Concord, Kiwi etc..... But why you all need that when Cisco has a fetaure set on their routers and even on L3 switches. Not sure about the L2 switches though. Thanks to Cisco for making it simpler as this feature will definitely help a lot of Network Admins like Us.

Here is what you need to do :

For example, let's say you want to automatically back up your router's running configuration (in RAM) to the startup configuration (in NVRAM) every Monday night at 10 P.M. You might want to make sure that the system is preserving router changes, even if the router losses power--and even if someone forgets to save his or her changes.

The new IOS command scheduler makes this a relatively easy task. Here's how you can use kron to accomplish this.

First, create a kron policy list.

Essentially, this policy list serves as your "script," which lists what you want the router to run at a scheduled time.

Here's an example:

Router(config)# kron policy-list backup

Router(config-kron-policy)# cli write

Router(config-kron-policy)# exit

Next, create a kron occurrence, in which you tell the router when and how often you want to run this policy list (i.e., group of commands).

Here's an example:

Router(config)# kron occurrence backup at 22:00 Mon recurring

Router(config-kron-occurrence)# policy-list backup

This code sets up your backup job to run every Monday night at 10 P.M. (22:00 in military time).

Finally, verify that you've entered everything correctly by using the show command.

Router# show kron schedule

Kron Occurrence Schedule

backup inactive, will run again in 2 days 22:03:46 at 22:00 on Mon

Router# show running-configuration

(truncated)

kron occurrence backup at 22:00 Mon recurring

policy-list backup

!

kron policy-list backup

cli write

(truncated)

You might be wondering why I used the write command instead of the copy running-configuration startup-configuration commands. While the copy run start command is interactive, the write command is not. In other words, write doesn't prompt to verify what you want to do. It's important to remember that the Cisco IOS Command Scheduler doesn't allow any interactive commands.

HTH,

-amit singh

hi!! Amit

can we export router configuration backup in server using some scripts?.

TIA

raghvendra

!

kron occurrence postmyconfig at 15:03 Fri recurring

policy-list postmyconfig

!

kron policy-list postmyconfig

cli show run | redirect tftp://192.168.5.93/router_c3640

!

c3640_bb001#show kron schedule

Kron Occurrence Schedule

postmyconfig inactive, will run again in 0 days 00:00:11 at 15:03 on Fri

c3640_bb001#debug kron all

.Nov 25 15:03:28.727 GMT+2: Major 1, Minor 0

.Nov 25 15:03:28.727 GMT+2: Timer Event postmyconfig

.Nov 25 15:03:28.727 GMT+2: Kron delay for next postmyconfig 86400000

.Nov 25 15:03:28.727 GMT+2: Call parse_cmd 'show run | redirect tftp://192.168.5.93/router_c3640'

.Nov 25 15:03:29.871 GMT+2: Kron CLI return 0

'

**CLI 'show run | redirect tftp://192.168.5.93/router_c3640':

!'

.Nov 25 15:03:29.871 GMT+2: Major 4, Minor 7

.Nov 25 15:03:29.871 GMT+2: Respond to end of CLI Process

http://www.cisco.com/en/US/products/sw/iosswrel/ps5187/products_feature_guide09186a00801b0695.html#wp1043717

Regards,

Cumhur

Hi,

Can you please help me with the command to get output for multiple show commands in a single text file like show vlan brief, show interface trunk, show ip eigrp neighbor and so on. Thanks.

Hi

If you are using putty software you could use its settings to save the config that you want into a text file.

Hope it is useful

:-)




>> Marcar como útil o contestado, si la respuesta resolvió la duda, esto ayuda a futuras consultas de otros miembros de la comunidad. <<

Review Cisco Networking for a $25 gift card