Leaflet
8-74
思科 ASA 系列命令参考,A 至 H 命令
第 8 章 client-access-rule 至 crl enforcenextupdate 命令
copy
copy
要复制文件到 ASA 闪存中或从中复制文件,请在特权 EXEC 模式下使用 copy 命令。
copy [/noconfirm] [/pcap] [/noverify] {url | running-config | startup-config}
{running-config | startup-config | url}
语法说明 /noconfirm
(可选)复制文件而不提示确认。
/pcap
(可选)指定 capture 命令的原始数据包捕获转储。
/noverify
(可选)复制开发密钥签名的映像时使用跳过签名验证。
running-config
指定存储在系统内存中的运行配置。
startup-config
指定存储在闪存中的启动配置。单模式的启动配置或多情景模式中系统的启
动配置均为闪存中的隐藏文件。在情景中,config-url 命令指定启动配置的位
置。例如,如果为 config-url 命令指定 HTTP 服务器,然后输入 copy
startup-config running-config 命令,ASA 使用管理情景接口从 HTTP 服务器
复制启动配置。
url
指定要在本地和远程位置之间复制的源或目标文件。(您无法从远程服务器
复制到另一个远程服务器。)在情景中,您可以使用情景接口将运行或启动
配置复制到 TFTP 或 FTP 服务器,但无法从服务器复制到运行的或启动配
置。有关其他选项,请参阅 startup-config 关键字。从 TFTP 服务器下载到运
行情景配置,请使用 configure net 命令。使用此命令的以下 URL 语法:
• cache:/[[path/]filename] - 指示文件系统中的缓存。
• capture:/[[context_name/]buffer_name] - 指示捕获缓冲区中的输出。
• disk0:/[[path/]filename] or flash:/[[path/]filename] - flash 和 disk0 指示 内部
闪存。可使用任一选项。
• disk1:/[[path/]filename] - 指示外部内存。
• smb:/[[path/]filename] - 指示 UNIX 服务器本地文件系统。使用 LAN 管理
器及类似的网络系统中的 Server Message Block(服务器消息块)文件系
统协议包装数据并与其他系统交换信息。
• ftp://[[user[:password]@]server[:port]/[path/]filename[;type=xx]] - type 可
以是这些关键字的其中一个:ap(ASCII 被动模式)、an(ASCII 正常模
式)、ip(默认 - 二进制被动模式)、in(二进制正常模式)。
• http[s]://[[user[:password]@]server[:port]/[path/]filename]
• scp://[[user[:password]@]server[/path]/filename[;int=interface_name]] -
;int=interface 选项绕过路由查找,并始终使用指定的接口连接到安全复制
(SCP) 服务器。
• system:/[[path/]filename] - 表示系统内存。
• tftp://[[user[:password]@]server[:port]/[path/]filename[;int=interface_name]]
路径名不能包含空格。如果路径名有空格,在 tftp-server 命令中而非
copy tftp 命令中设置路径。;int= interface 选项绕过路由查找,并始终使
用指定的接口连接到 TFTP 服务器。










