request system debug-info
Sintaxe
request system debug-info <node node-name>
Sintaxe (dispositivos Junos EVO)
request system debug-info <mode custom | lite | normal> <since duration> <node node-name>
Descrição
Colete informações de depuração do Junos OS Evolved, como logs. Os logs são armazenados no /var/tmp/ directory. O coletor de debug coleta núcleos, vestígios de aplicativos, configurações, confirmações e assim por diante. Ele também coleta saídas dos comandos CLI e CLI-PFE. Você precisa fazer login no dispositivo como usuário raiz para usar este comando. Digite a senha raiz e confirme-a quando solicitada.
Opções
node node-name |
(Opcional) Identificador do nó. Se um valor para |
mode |
|
since |
Especifica a duração do log. O formato suportado é yyy-mm-dd ou #d (ex: 2d) ou #h (ex: 5h). Por padrão, você pode coletar os logs por uma duração de 90 dias. |
Informações adicionais
O coletor de depurações leva o máximo de tempo enquanto coleta logs e vestígios de diários. Você pode usar o request system debug-info
comando para coleta rápida de depuração de /var/tmp no formato de amostra a seguir:
-
request system debug-info node re0,fpc0,fpc1,fpc2 since 1h
— Modo normal com coleta mínima de logs de diário e rastreamento do master RE e de todos os FPCs. -
request system debug-info node re1 since 1h
— Modo normal, com coleta mínima de logs de diário e rastreamento a partir de RE de backup. -
request system debug-info mode lite node re0,fpc0,fpc1,fpc2 since 1h
— Modo Lite com coleção mínima de logs de diário e rastreamento do master RE e de todos os FPCs. -
request system debug-info mode lite node re1 since 1h
— modo Lite com o mínimo de coleta de logs de diário e rastreamento a partir de RE de backup.
Para ver o arquivo de debug_collector.log :
-
Vá para o /var/tmp/ diretório.
root@host:~# cd /var/tmp root@host:/var/tmp# ls debug_collector_2017-11-20_13_16_45.tar.gz
-
Descomprimir o /var/tmp/ arquivo.
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
-
Vá para o diretório /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
-
Veja o arquivo de log.
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...
Nível de privilégio exigido
Ver
Saída de amostra
solicitar informações de depuração do sistema
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!
Informações de versão
Comando introduzido no Junos OS Evolved Release 18.3R1.