はじめに
このドキュメントでは、4Gワイドエリアネットワーク(WAN)モジュールの診断モニタ(DM)ログを収集する手順について説明します。 また、DMロギング情報を確認するためのさまざまなコマンドについて説明し、一部のトリガーに基づいてDMログをイネーブルおよびディセーブルにするEmbedded Event Manager(EEM)スクリプトを提供します。
前提条件
要 件
次の項目に関する知識があることが推奨されます。
- LTEテクノロジー
- CiscoルータでのLTEテクノロジーの設定
使用するコンポーネント
このドキュメントの情報は、次のソフトウェアとハードウェアのバージョンに基づいています。
- Cisco 4G固定ルータ
- デュアルSIM機能をサポートするモジュール
このドキュメントの情報は、特定のラボ環境にあるデバイスに基づいて作成されたものです。このドキュメントで使用するすべてのデバイスは、クリアな(デフォルト)設定で作業を開始しています。対象のネットワークが実稼働中である場合には、どのようなコマンドについても、その潜在的な影響について確実に理解しておく必要があります。
設定
DMログ収集の設定と確認
DMログは、RFインターフェイスを介したモデムとネットワーク間のデータトランザクションをキャプチャするために使用され、4Gデータ接続またはパフォーマンスの問題のトラブルシューティングに役立ちます。
DMログ収集を開始するには、次のコマンドを設定する必要があります。
router#conf t
router(config)#controller cellular 0
router(config-controller)#lte modem dm-log rotation
router(config-controller)#lte modem dm-log filesize 20
router(config-controller)#lte modem dm-log size 60
router(config-controller)#lte modem dm-log filter flash:XYZ.sqf <<<< Optional
router(config-controller)#lte modem dm-log enable
注:dm-log rotationコマンドを実行すると、デフォルトサイズ20 MBのファイルが複数作成されます。このコマンドが有効でない場合、20 MBのファイルが3つ作成された後、DMログのキャプチャは停止します。その後、手動でDMロギングを再起動する必要があります。
DMログ収集を無効にするには、次のコマンドを設定する必要があります。
router#conf t
router(config)#controller cellular 0
router(config-controller)#no lte modem dm-log enable
一定時間が経過すると、DMログが無効になる場合があります。この機能は、IOS 15.4(3) M1以降のルータで使用できます。これは、次のコマンドを使用して実行できます。
router#conf t
router(config)#controller cellular 0
router(config-controller)#lte modem dm-log autostop timer <time in minutes>
DMログを自動停止するには、Cellulatインターフェイスのリセット時に次のコマンドを使用できます。
router#conf t
router(config)#controller cellular 0
router(config-controller)#lte modem dm-log autostop link-down
DMログ情報を確認するには、次のコマンドを使用できます。
router#show cellular 0 logs dm-log
Integrated DM logging is on
output path = flash: <<<< destination file where logs are captured
filter = generic
maximum log size = 83886080
maximum file size = 2097152
log rotation = enabled
DMログは、次のコマンドで示すように、ルータのフラッシュでキャプチャされます。また、次のコマンドを使用して表示することもできます。
router#show flash | inc dm
8 115417 Aug 12 2016 10:20:12 +00:00 dmlog20160812-102012slot0.bin
DMログを有効または無効にするEEMスクリプト
EEMスクリプトを使用して、一部のトリガーに基づいてDMログをキャプチャできます。必要に応じてログをキャプチャし、必要な情報をキャプチャした後でログをオフにするEEMスクリプトを設定できます。
例:
track 819 interface cellular 0 line-protocol
!
event manager applet LTE-Capture authorization bypass
event track 819 state down maxrun 8400
action 90 cli command “enable”
action 91 cli command "config t"
action 92 cli command "controller cellular 0"
action 93 cli command "lte modem dm-log enable"
action 94 cli command "end"
action 102 cli command “show cellular 0 all | append flash: test”
action 103 cli command “show ip mobile router | append flash:test”
action 104 cli command “show controller cellular 0 | append flash:test”
action 105 cli command “show dialer | append flash:test”
action 106 cli command “show interface cellular 0 | append flash:test”
action 112 syslog message “Captured Outputs”
action 113 wait 100
action 114 cli command “show log | append flash:test”
action 115 cli command “enable”
action 116 cli command “conf t”
action 117 cli command “controller cellular 0”
action 118 cli command “no lte modem dm-log enable”
action 119 syslog msg “DM-logging disabled”
action 120 cli command “end”
確認
現在、この設定に使用できる確認手順はありません。
トラブルシュート
現在、この設定に関する特定のトラブルシューティング情報はありません。
関連情報