Como identificar um boot legítimo de uma falha

edjcav
Site Admin
Mensagens: 54
Registrado em: 26 Jan 2021 20:41

Como identificar um boot legítimo de uma falha

Mensagem por edjcav »

Comando last -x

Código: Selecionar todos

# last -Fxn2 shutdown reboot
Boot legítimo: É seguido de uma linha de reboot e outra de shutdown, exemplo:

Código: Selecionar todos

# last -Fxn2 shutdown reboot
reboot   system boot  2.6.32-573.7.1.e Sun Apr 10 11:34:55 2022 - Fri Jun 10 17:01:12 2022 (61+05:26)
shutdown system down  2.6.32-573.7.1.e Sun Apr 10 11:22:32 2022 - Sun Apr 10 11:34:55 2022  (00:12)
Boot por falha: ele possui apenas a linha de reboot, sem a linha de shutdown logo abaixo:

Código: Selecionar todos

# last -Fxn2 shutdown reboot
reboot   system boot  2.6.32-573.7.1.e Fri Jun 10 15:31:30 2022 - Fri Jun 10 17:00:40 2022  (01:29)
reboot   system boot  2.6.32-573.7.1.e Sun Apr 10 11:34:55 2022 - Fri Jun 10 17:00:40 2022 (61+05:25)
Fonte: https://access.redhat.com/articles/2642741
Responder