Leaflet

8-82
思科 ASA 系列命令参考,A H 命令
8 client-access-rule crl enforcenextupdate 命令
coredump enable
思科 TAC 可能要求您启用核心转储功能来故障排除 ASA 的应用或系统崩溃。
注意 确保您存档了核心转储文件,因为后续核心转储可能导致删除以前的核心转储来适应当前的核心
转储。核心转储文件位于已配置的文件系统中(例如,“disk0:/coredumpfsys”或
disk1:/coredumpfsys”),并可从 ASA 中删除。
要启用核心转储,请执行下列操作:
1. 确保处于 /root 目录中。要验证目录所处控制台的位置,请输入 pwd 命令。
2. 如果需要,通过输入 cd disk0:/cd disk1:/ cd flash:/ 命令更改目录。
3. 输入 coredump enable 命令。
当使用 coredump 命令对 ASA 的崩溃故障排除时,崩溃后可能不保存核心转储文件。当已启用核
心转储功能并创建了带有预分配磁盘空间的核心转储文件系统时,可能出现此情况。对已分配大
RAM ASA 繁忙工作数周后出现崩溃进行故障排除时,通常出现这种情况。
show coredump 命令输出中,将显示与以下类似的内容:
Coredump Aborted as the complete coredump could not be written to flash
Filesystem full on 'disk0', current coredump size <size> bytes too big for allocated
filesystem
要解决此问题,您需要有足够大的核心转储文件系统卡,可包含所有内存并为核心转储文件系统
分配相应的空间。
示例 这些示例中的每个感叹号 (!) 表示已写入 1 MB 的核心转储文件系统。
以下示例使用默认值和 disk0: 创建核心转储文件系统。
hostname(config)# coredump enable
Warning: Enabling coredump on an ASA5505 platform will delay the reload of the system in
the event of software forced reload.The exact time depends on the size of the coredump
generated.
Proceed with coredump filesystem allocation of 60 MB on 'disk0:' (Note this may take a
while) [confirm]
Making coredump file system
image!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
以下示例展示如何通过在 disk1: 上创建一个 120 MB 的核心转储文件系统指定文件系统和大小:
hostname(config)# coredump enable filesystem disk1: size 120
WARNING: Enabling coredump on an ASA5540 platform will delay
the reload of the system in the event of software forced reload.
The exact time depends on the size of the coredump generated.
Proceed with coredump filesystem allocation of 120 MB
on 'disk1:' (Note this may take a while) ?[confirm]
Making coredump file system image
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
以下示例展示如何将核心转储文件系统的大小从 120 MB 调整到 100 MB
注意 不保留 120 MB 核心转储文件系统的内容,因此,请确保在执行此操作前存储以前的核心转储。
hostname(config)# coredump enable filesystem disk1: size 100
WARNING: Enabling coredump on an ASA5540 platform will delay
the reload of the system in the event of software forced reload.