crashinfo ファイルには、シスコのテクニカル サポート担当者が Cisco IOS イメージの障害(クラッシュ)が原因で起きた問題をデバッグするときに使用する情報が保存されています。明瞭度と整合性の高い重要なクラッシュ情報を迅速かつ確実に収集することが必要です。さらに、この情報の収集とバンドルが、特定のクラッシュの発生に対し関連付けか特定ができるような方法で行われることが必要です。
この情報は個別のファイルに格納されてから、アーカイブされて 1 つのバンドルに圧縮されます。これは、そのクラッシュのスナップショットを 1 つの場所で取得できる利便性を持たせ、分析のためにボックス外に移動できるようにします。このレポートは、スイッチが ROMmon/ブートローダにダウンする前に生成されます。
crashinfo ファイル
デフォルトでは、生成されたシステム レポート ファイルは /crashinfo ディレクトリに格納されます。スペースがなくて crashinfo ファイルのパーティションに格納できない場合、/flash ディレクトリに保存されます。
ファイルは、通常の「dir crashinfo:」コマンドを使用して表示できます。次に crashinfo ディレクトリの出力例を示します。
Switch#dir crashinfo:
Directory of crashinfo:/
46553 drwx 1024 Jun 29 2015 14:52:09 +00:00 ap_crash
12 -rw- 0 Jan 1 1970 00:00:11 +00:00 koops.dat
11 -rw- 0 Mar 22 2013 07:50:30 +00:00 deleted_crash_files
13 -rwx 594269 Mar 22 2013 07:50:30 +00:00 crashinfo_platform_mgr_20130322-075017-UTC
14 -rw- 44 Sep 9 2015 09:28:47 +00:00 last_crashinfo
15 -rw- 355 Sep 9 2015 09:29:31 +00:00 last_systemreport_log
16 -rw- 105753 Mar 22 2013 07:50:47 +00:00 system-report_1_20130322-075017-UTC.gz
17 -rw- 39 Sep 9 2015 09:29:31 +00:00 last_systemreport
18 -rwx 585996 Mar 22 2013 08:01:58 +00:00 crashinfo_platform_mgr_20130322-080144-UTC
19 -rw- 105065 Mar 22 2013 08:02:15 +00:00 system-report_1_20130322-080144-UTC.gz
20 -rwx 3426209 Sep 9 2015 06:49:12 +00:00 crashinfo_iosd_20150909-064754-UTC
21 -rwx 9540376 Sep 9 2015 06:49:13 +00:00 fullcore_iosd_20150909-064754-UTC
22 -rw- 469476 Sep 9 2015 06:49:56 +00:00 system-report_1_20150909-064754-UTC.gz
23 -rwx 3425350 Sep 9 2015 09:28:47 +00:00 crashinfo_iosd_20150909-092728-UTC
24 -rwx 9535535 Sep 9 2015 09:28:47 +00:00 fullcore_iosd_20150909-092728-UTC
25 -rw- 459709 Sep 9 2015 09:29:28 +00:00 system-report_1_20150909-092728-UTC.gz
26 -rw- 0 Sep 22 2015 11:11:33 +00:00 tracelogs.J8C
50601 drwx 10240 Oct 28 2015 22:42:50 +00:00 tracelogs
248354816 bytes total (204800000 bytes free)
システム レポートは、次の形式で crashinfo ディレクトリに配置されます。
system-report_[switch number]_[date]-[timestamp]-UTC.gz
スイッチがクラッシュしたら、システム レポート ファイルをチェックする必要があります。
最後に生成されたシステム レポート ファイルは、crashinfo ディレクトリの下に last_systemreport というファイル名で保存されます。問題のトラブルシューティングを行う際、システム レポートおよび crashinfo ファイルが TAC の役に立ちます。
生成されたシステム レポートは、TFTP や HTTP などいくつかのオプションを使用して、さらにコピーできます。
Switch#copy crashinfo: ?
crashinfo: Copy to crashinfo: file system
flash: Copy to flash: file system
ftp: Copy to ftp: file system
http: Copy to http: file system
https: Copy to https: file system
null: Copy to null: file system
nvram: Copy to nvram: file system
rcp: Copy to rcp: file system
running-config Update (merge with) current system configuration
scp: Copy to scp: file system
startup-config Copy to startup configuration
syslog: Copy to syslog: file system
system: Copy to system: file system
tftp: Copy to tftp: file system
tmpsys: Copy to tmpsys: file system
TFTP サーバにコピーするための一般的な構文は次のとおりです。
Switch#copy crashinfo: tftp:
Source filename [system-report_1_20150909-092728-UTC.gz]?
Address or name of remote host []? 1.1.1.1
Destination filename [system-report_1_20150909-092728-UTC.gz]?
スタックの全メンバからのトレースログは、trace archive コマンドを発行することで取得できます。このコマンドには、時間帯オプションがあります。コマンド構文は次のとおりです。
Switch#request platform software trace archive ?
last Archive trace files of last x days
target Location and name for the archive file
crashinfo: または flash: ディレクトリに格納されている過去 3650 日以内のトレースログが取得できます。
Switch# request platform software trace archive last ?
<1-3650> Number of days (1-3650)
Switch#request platform software trace archive last 3650 days target ?
crashinfo: Archive file name and location
flash: Archive file name and location
(注) |
一度コピーされたら、システム レポートやトレースのアーカイブを flash ディレクトリまたは crashinfo ディレクトリからクリアし、トレースログやその他の目的に使用できる領域を確保することが重要です。
|