exec

This command calls and runs a configuration script.

Syntax

exec URL

Parameters

URL
Identifies the location of the configuration file.
  • When local, this parameter takes the directory:///file format.
    Where:
    directory
    Identifies a local directory. Generally, the directory is config or local.
    file
    Identifies the file in the directory.
  • When remote and the transport protocol is HTTP or HTTPS, this parameter takes one of the following formats.
    • http://user:password@host/file
    • https://user:password@host/file

    The hostname can be an IP address or, when DNS is enabled, a qualified hostname.

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
#