ACE: cmd exec error with "copy startup-config running-config"

Unanswered Question
Aug 19th, 2008

Hello,

On the ACE console, as administrator when I do a

Lisa-ACE/Admin# copy startup-config running-config

I get lots of error messages like this:

`access-list PEOPLEFARM1NATACL line 10 extended permit ip host 10.13.2.4 any `

*** Context 0: cmd exec error ***

--

`script file 1 LDAP_PROBE`

*** Context 0: cmd exec error ***

--

etc.

It is the same if the configuration is copied from a remote machine with

copy sftp://10.13.4.10/home/user/ace/running-config.new running-config

- How can I avoid that?

I came across this problem because I would like to edit a file with the configuration and replace the current config with the one in the file.

Thanks in advance for your hints!

Best regards,

Dominique

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
dpetitpierre Wed, 08/20/2008 - 13:37

I noticed that all the errors are related to configuration commands that, in configuration mode, would cause a "duplicate" or "already exist" error (e.g commands such as "access-list", "script file" or "match" lines in a class-map).

So I reread the manual for "copy startup-config running-config"

(http://www.cisco.com/en/US/docs/interfaces_modules/services_modules/ace/v3.00_A2/command/reference/execmds.html#wp1998421)

and noticed that it says

"Merges contents of the startup configuration file into the running configuration file."

OK, this explains that (although a proper merge would not complain about duplicates); but I don't see much use for a merge from startup-config

(e.g. it cannot restore a previous state which is what I would like to do).

Although the manual for "copy sftp/.... running-config"

(http://www.cisco.com/en/US/docs/interfaces_modules/services_modules/ace/v3.00_A2/command/reference/execmds.html#wp1994833)

states "Specifies to replace the running-configuration file that currently resides on the ACE in RAM (volatile memory)."

it looks like that the behaviour is also a merge.

So,

- What is the trick to edit a full configuration file on your workstation and load it to the ACE in the running configuration?

- Is there a "replace running-config" option or command?

I assume that copying to the startup config then rebooting the ACE would work, but I'd like to avoid that. Also putting lots of "no ..." statements in the proper order would be cumbersome and prone to errors; I'd rather have the system infer the dependencies among

the statements and do it for me.

Thanks in advance for your comments!

Dominique

Actions

This Discussion