exec
This command calls and runs a configuration script.
Syntax
exec URL
Parameters
- URL
- Identifies the location of the configuration file.
- When the file is on the appliance, this parameter takes the
directory:///fileformat.Where:- directory
- Identifies a local directory. Generally, the directory is
configorlocal. - file
- Identifies the file in the directory.
- When the file is remote and the transport protocol is HTTP or
HTTPS, this parameter takes one of the following formats.
http://user:password@host/filehttps://user:password@host/file
The host name can be an IP address or, when DNS is enabled, a qualified host name.
- When the file is on the appliance, this parameter takes the
Guidelines
The exec command
enables modularity of configuration scripts. For example, you can
include all service configuration commands in a script called services.cfg and
all certificates configuration commands in the cert.cfg script.
A main configuration script can consist entirely of a series of exec commands.
Example
Run the specified configuration
scripts.
# configure terminal
# exec config:///housekeeping.cfg
# exec config:///interfaces.cfg
# exec config:///crypto.cfg
# exec config:///services.cfg
#