cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
989
Views
0
Helpful
1
Replies

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

dpetitpierre
Level 1
Level 1

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

1 Reply 1

dpetitpierre
Level 1
Level 1

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

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: