Re: Auomating IOS/Config Backup

From: Alexei Monastyrnyi (alexeim@orcsoftware.com)
Date: Thu Aug 30 2007 - 15:42:42 ART


Sorry if jumping in too late.

You could just enable rcmd/rsh on IOS boxes and place a cron job on a
Unix box going through your Cisco devices with

/usr/bin/rsh routerN.yourdomain.com "sh run" > routerN.cfg

HTH,
A.

Mohammad Saeed wrote:
> Narbik, Derby and Bob,
>
> I appreciate very much all of your responses and I will try this Kron
> process in my home lab. Actually I need to suggest this to be used on
> big networks having 2000+ devices....
>
> Again Thank you very much for your time and kind support :):):)
>
> Regards,
>
> Mohammad Zahed Saeed
>
> On 8/30/07, Bob Nelson <nelsnjr@cox.net> wrote:
>
>> I came across this in a post a while back. I have not tried it, but the
>> commands appear to work in my dynamips test router.
>>
>> To get an IOS device to upload it's configuration periodically to an
>> external (T)FTP server try this
>>
>> ip tftp source-interface loopback 0
>> file prompt quiet
>> !
>> kron policy-list backup
>> cli copy running-config tftp://10.20.30.40
>> !
>> kron occurrence daily-backup at 30:0:0 recurring
>> policy-list backup
>>
>> The beauty of this example is that you can use it on platforms that don't
>> support Embedded Event Manager (which has a very similar cron functionality)
>> as the kron commands were introduced in 12.2T and 12.3 IOS releases.
>>
>> Note: You have to use the file prompt quiet configuration command as the
>> commands executed by kron cannot supply any user input
>>
>> If you want to use FTP instead, you would add the following commands for
>> authentication and change the method to ftp
>> ip ftp username ftp_username
>> ip ftp password ftp_password
>>
>> HTH
>>
>> Bob
>> ----- Original Message -----
>> From: "Narbik Kocharians" <narbikk@gmail.com>
>> To: "Mohammad Saeed" <mzsaeed@gmail.com>
>> Cc: "Cisco certification" <ccielab@groupstudy.com>
>> Sent: Wednesday, August 29, 2007 10:42 PM
>> Subject: Re: Auomating IOS/Config Backup
>>
>>
>>
>>> I have not tried what you are trying to do, but have you tried playing
>>> with Kron?
>>>
>>> On 8/29/07, Mohammad Saeed <mzsaeed@gmail.com> wrote:
>>>
>>>> Hello Group,
>>>>
>>>> Can any one point me to the document/link or tell me if there is any
>>>> way that we can configure router/switch to upload its running/startup
>>>> config and IOS in the flash to a particular TFTP server automatically
>>>> at some particular time like say for example end of month every
>>>> month????
>>>>
>>>> Any help is highly appreciated.
>>>>
>>>> Regards,
>>>>
>>>> Mohammad Zahed Saeed
>>>>
>>>> _______________________________________________________________________
>>>> Subscription information may be found at:
>>>> http://www.groupstudy.com/list/CCIELab.html
>>>>
>>>>
>>>
>>> --
>>> Narbik Kocharians
>>> CCIE# 12410 (R&S, SP, Security)
>>> CCSI# 30832
>>> www.Net-WorkBooks.com
>>>
>>> _______________________________________________________________________
>>> Subscription information may be found at:
>>> http://www.groupstudy.com/list/CCIELab.html
>>>
>
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html



This archive was generated by hypermail 2.1.4 : Sat Sep 01 2007 - 11:32:13 ART