[rancid] do_saveconfig

john heasley heas at shrubbery.net
Tue Oct 12 05:56:25 UTC 2010


Tue, Oct 12, 2010 at 07:50:07AM +0200, Per-Olof Olsson:
> john heasley wrote:
>> Sat, Sep 18, 2010 at 10:20:09PM -1000, Richard Zheng:
>>> Hi,
>>>
>>> I'd like to save config when config is different, e.g. run 'wr mem' on
>>> cisco. There is a flag do_saveconfig on clogin. I changed it to 1, nothing
>>> happens.
>>>
>>> Is it possible to set it somewhere else?
>>
>> it only works for a few of the platforms that prompt to save the config,
>> such as force10, cisco css, hp procurve, etc.  ios does not prompt.
>> _______________________________________________
>> Rancid-discuss mailing list
>> Rancid-discuss at shrubbery.net
>> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
>
>
> Not working for newer hp procurve!
> You have to "logout" from manager level to get save config prompt.

that is not sufficient.  logout does not work in previous s/w, so it must
try one then the other.

> Rancid 2.3.5.
> diff -c hlogin.in.ORG hlogin.in
>
> ***************
> *** 563,569 ****
>         }
>       }
>       log_user 1
> !     send -h "exit\r"
>       expect {
>         "Do you want to save current configuration"     {
>                                                   if {$do_saveconfig} {
> --- 563,569 ----
>         }
>       }
>       log_user 1
> !     send -h "logout\r"
>       expect {
>         "Do you want to save current configuration"     {
>                                                   if {$do_saveconfig} {
>
>
>
> /Peo
> ----------------------------------------------------------
> Per-Olof Olsson               Email: peo at chalmers.se
> Chalmers tekniska h?gskola    IT-service
> H?rsalsv?gen 5                412 96 G?teborg
> Tel: 031/772 6738  Fax: 031/772 8660
> ----------------------------------------------------------


More information about the Rancid-discuss mailing list