[rancid] do_saveconfig
Per-Olof Olsson
peo at chalmers.se
Tue Oct 12 05:50:07 UTC 2010
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.
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