write mem if running-config and startup-config are different?
heas at shrubbery.net
Mon May 16 21:00:00 UTC 2005
Mon, May 16, 2005 at 05:05:48PM +0200, Arnold Nipper:
> On 16.05.2005 16:30 Matt Wilson wrote
> >We would like to catch and remedy situations where we have altered a
> >switch's running-config, but then forget to write mem (weeks later,
> >the switch reboots due to power outage, and suddenly vlans aren't
> >working, etc).
> >Is anyone using rancid to notice that running-config and
> >startup-config are different, and if so, issue a write mem command?
> >(or something else to address such an issue?) Would you be willing
> >to share what you've done?
> Why don't you run "write memory" every time you pick up the config?
or periodically, somethign like
for r in `cat */router.db | egrep -i '(cisco|cat5)' | cut -f1 -d: `; do
clogin -c 'write mem' $r
More information about the Rancid-discuss