solicitar depuración de sistema-información
Sintaxis
request system debug-info
<node node-name>
Release Information
Comando introducido en Junos OS versión de lanzamiento evolucionado 18.3 R1.
Descripción
Recopilar información de depuración de Junos OS evolucionó, como registros. Los registros se almacenan /var/tmp/debug_collector_timestamp
en el directorio. Necesita conocer la contraseña raíz del dispositivo para usar este comando. Escriba la contraseña de raíz y confírmela cuando se solicite.
Opciones
node node-name—Adicional Identificador del nodo. Si se proporciona un node valor para (por re0ejemplo re1, fpc0,,), este comando recopila registros solo del nodo dado. Si no se proporciona la opción node, la información de registro se recopila en todos los nodos activos.
Información adicional
Para ver el debug_collector.log
archivo:
- Salga al shell y vaya al
/var/tmp/
directorio.root@host:~# cd /var/tmp root@host:/var/tmp# ls all_logs.2719 baseline-config.conf all_logs.2767 debug_collector_2017-11-20_13_16_45.tar.gz
- Descomprima el
/var/tmp/debug_collector_timestamp.tar.gz
archivo.root@host:/var/tmp# tar -xf debug_collector_2017-11-20_13_16_45.tar.gz root@host:/var/tmp# ls all_logs.2719 debug_collector_2017-11-20_13_16_45 all_logs.2767 debug_collector_2017-11-20_13_16_45.tar.gz baseline-config.conf
- Vaya al
/var/tmp/debug_collector_timestamp
directorio.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
- Examine el archivo de registro.
root@host:/var/tmp/debug_collector_2017-11-20_13_16_45# vi 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...
Nivel de privilegio requerido
vista
Lista de ejemplos
solicitar depuración de sistema-informaciónEjemplo
solicitar depuración de sistema-información
user@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!