request system debug-info
構文
request system debug-info <node node-name>
構文(Junos EVOデバイス)
request system debug-info <mode custom | lite | normal> <since duration> <node node-name>
説明
ログなどのデバッグ情報を Junos OS Evolved から収集します。ログは / var/tmp/ ディレクトリに保存されます。デバッグコレクターは、コア、アプリケーショントレース、構成、コミットなどを収集します。また、CLI および CLI-PFE コマンドからの出力も収集します。このコマンドを使用するには、root ユーザーとしてデバイスにログインする必要があります。rootパスワードを入力し、要求が表示されたら確認します。
オプション
node node-name |
(オプション)ノードの識別子。の値 |
mode |
|
since |
ログの期間を指定します。サポートされている形式は、yyyy-mm-dd または #d (例: 2d) または #h (例: 5h) です。既定では、90 日間のログを収集できます。 |
詳細な情報
デバッグ・コレクターは、ジャーナル・ログおよびトレースの収集に最大の時間がかかります。次のコマンドを使用すると request system debug-info
、次のサンプル形式で / var/tmp からすばやくデバッグできます。
-
request system debug-info node re0,fpc0,fpc1,fpc2 since 1h
- マスターREおよびすべてのFPCからのジャーナルおよびトレースログ収集が最小限の通常モード。 -
request system debug-info node re1 since 1h
- バックアップREからのジャーナルおよびトレースログ収集が最小限の通常モード。 -
request system debug-info mode lite node re0,fpc0,fpc1,fpc2 since 1h
- マスターREとすべてのFPCからのジャーナルおよびトレースログ収集を最小限に抑えるLiteモード。 -
request system debug-info mode lite node re1 since 1h
- バックアップREからのジャーナルおよびトレースログ収集が最小限のLiteモード。
debug_collector.logファイルを表示するには:
-
/ var/tmp/ ディレクトリに移動します。
root@host:~# cd /var/tmp root@host:/var/tmp# ls debug_collector_2017-11-20_13_16_45.tar.gz
-
/ var/tmp/ ファイルを解凍します。
root@host:/var/tmp# tar -xf debug_collector_2017-11-20_13_16_45.tar.gz root@host:/var/tmp# ls debug_collector_2017-11-20_13_16_45 debug_collector_2017-11-20_13_16_45.tar.gz
-
/var/ tmp/debug_collector_timestamp ディレクトリに移動します。
root@host:/var/tmp# cd debug_collector_2017-11-20_13_16_45 root@host:/var/tmp/debug_collector_2017-11-20_13_16_45# ls debug_collector.log re0 re1 fpc0
-
ログ ファイルを確認します。
root@host:/var/tmp/debug_collector_2017-11-20_13_16_45# cat debug_collector.log 2017-11-20 13:16:45 INFO: debug_collector.py:704 <module>(): Running debug_collector as user 'root' with super user privileges... 2017-11-20 13:16:45 INFO: debug_collector.py:705 <module>(): You can monitor detailed progress using: 2017-11-20 13:16:45 INFO: debug_collector.py:706 <module>(): tail -f /var/tmp/debug_collector_2017-11-20_13_16_45/debug_collector.log 2017-11-20 13:16:45 INFO: debug_collector.py:323 fetch_root_pswd(): Debug collector needs to login into all nodes in the system as root user 2017-11-20 13:25:31 DEBUG: debug_collector.py:332 fetch_root_pswd(): Passwords matched, proceeding with debug collection... 2017-11-20 13:25:31 INFO: debug_collector.py:225 detect_res(): Detecting REs in the system... 2017-11-20 13:25:31 DEBUG: debug_collector.py:239 detect_res(): Into for 2017-11-20 13:25:31 DEBUG: debug_collector.py:242 detect_res(): Into m1 not None 2017-11-20 13:25:31 DEBUG: debug_collector.py:245 detect_res(): Found RE 're0' in /etc/hosts 2017-11-20 13:25:31 DEBUG: debug_collector.py:248 detect_res(): Into if 1 2017-11-20 13:25:31 DEBUG: debug_collector.py:239 detect_res(): Into for 2017-11-20 13:25:31 DEBUG: debug_collector.py:242 detect_res(): Into m1 not None 2017-11-20 13:25:31 DEBUG: debug_collector.py:245 detect_res(): Found RE 're1' in /etc/hosts 2017-11-20 13:25:31 DEBUG: debug_collector.py:261 detect_res(): Into if 4 2017-11-20 13:25:31 INFO: debug_collector.py:265 detect_res(): This RE is 're0' 2017-11-20 13:25:31 DEBUG: debug_collector.py:266 detect_res(): This RE is 're0' and the other RE is 're1' 2017-11-20 13:25:32 DEBUG: debug_collector.py:269 detect_res(): Other RE 're1' is reachable 2017-11-20 13:25:32 INFO: debug_collector.py:274 detect_res(): List of reachable REs: ['re0', 're1'] 2017-11-20 13:25:32 INFO: debug_collector.py:293 detect_fpcs(): Detecting FPCs in the system, might take upto a couple of minutes... 2017-11-20 13:25:33 DEBUG: debug_collector.py:309 detect_fpcs(): FPC 'fpc0' is reachable 2017-11-20 13:25:36 DEBUG: debug_collector.py:312 detect_fpcs(): FPC 'fpc1' is not reachable 2017-11-20 13:25:39 DEBUG: debug_collector.py:312 detect_fpcs(): FPC 'fpc2' is not reachable 2017-11-20 13:25:40 INFO: debug_collector.py:977 <module>(): User interrupt detected, stopping further debug collection... 2017-11-20 13:25:40 INFO: debug_collector.py:372 create_final_archive(): Creating archive of all logs collected...
必要な権限レベル
ビュー
サンプル出力
システムデバッグ情報の要求
root@host> request system debug-info 2017-11-20 13:16:45 INFO: debug_collector.py:704 <module>(): Running debug_collector as user 'root' with super user privileges... 2017-11-20 13:16:45 INFO: debug_collector.py:705 <module>(): You can monitor detailed progress using: 2017-11-20 13:16:45 INFO: debug_collector.py:706 <module>(): tail -f /var/tmp/debug_collector_2017-11-20_13_16_45/debug_collector.log 2017-11-20 13:16:45 INFO: debug_collector.py:323 fetch_root_pswd(): Debug collector needs to login into all nodes in the system as root user Please enter root password: Please re-enter the password: 2017-11-20 13:25:31 INFO: debug_collector.py:225 detect_res(): Detecting REs in the system... 2017-11-20 13:25:31 INFO: debug_collector.py:265 detect_res(): This RE is 're0' 2017-11-20 13:25:32 INFO: debug_collector.py:274 detect_res(): List of reachable REs: ['re0', 're1'] 2017-11-20 13:25:32 INFO: debug_collector.py:293 detect_fpcs(): Detecting FPCs in the system, might take upto a couple of minutes... ^C2017-11-20 13:25:40 INFO: debug_collector.py:977 <module>(): User interrupt detected, stopping further debug collection... 2017-11-20 13:25:40 INFO: debug_collector.py:372 create_final_archive(): Creating archive of all logs collected... 2017-11-20 13:25:40 INFO: debug_collector.py:380 create_final_archive(): Here it is: /var/tmp/debug_collector_2017-11-20_13_16_45.tar.gz 2017-11-20 13:25:40 INFO: debug_collector.py:389 create_final_archive(): Debug collector run time: 0h 8m 54s 2017-11-20 13:25:40 INFO: debug_collector.py:401 cleanup_and_exit(): Over n out!
リリース情報
Junos OS Evolvedリリース18.3R1で導入されたコマンド。