Cisco – ASA in multiple context: save config

ciscocisco-asafirewall

I have an ASA running 9.0(1) with four security contexts. When we modify a context, our standard procedure is to do a "write mem" inside that context. But sometimes we have to modify all the contexts in the same change window. Can we just do a "write mem" from the system context and save all the context configs at once?

Best Answer

You can do a write mem all:

Saving All Context Configurations at the Same Time

To save all context configurations at the same time, as well as the system configuration, enter the following command in the system execution space:

Command Purpose write memory all [/noconfirm] Example: hostname# write memory all /noconfirm Saves the running configuration to the startup configuration for all contexts and the system configuration.

If you do not enter the /noconfirm keyword, you see the following prompt:

Are you sure [Y/N]: After you enter Y, the ASA saves the system configuration and each context. Context startup configurations can reside on external servers. In this case, the ASA saves the configuration back to the server you identified in the context URL, except for an HTTP or HTTPS URL, which do not let you save the configuration to the server.

http://www.cisco.com/en/US/docs/security/asa/asa90/configuration/guide/intro_start.html