Ethernet Switching
Highlighted
Ethernet Switching

indentify EX reboot reason

‎04-17-2014 06:19 AM

Dear community.

 

Simple question:

I have an EX switch which rebooted several times by itself during the last days.

 

In which logfile do I find any information like

- timestamp of each reboot

- some information about the reason, error codes, watchdog, power cycle, etc.

 

RSI? Where?

var/log? In which file?

Anywhere else?

I did not find the right file so far.

 

Thanks for your help

best regards

Alex

 

7 REPLIES 7
Highlighted
Ethernet Switching

Re: indentify EX reboot reason

‎04-18-2014 02:10 AM

Hello

 

Below commands should provide details of last reboot and reason:

 

1. show system uptime

 

 

Spoiler

 

E.g:

root> run show system uptime

--------------------------------------------------------------------------
Current time: 2014-04-18 09:12:26 UTC
System booted: 2014-04-16 10:51:17 UTC (1d 22:21 ago) <<<<<

 

 

 

2. show chassis routing-engine

 

Spoiler
Routing Engine status:
  Slot 0:
    Current state                  Master
    Election priority              Master (default)
    DRAM                      1023 MB
    Memory utilization          32 percent
    CPU utilization:
      User                       0 percent
      Background                 0 percent
      Kernel                     6 percent
      Interrupt                  1 percent
      Idle                      94 percent
    Model                          RE-PPC-1200-A
    Start time                     2014-04-16 10:51:17 UTC
    Uptime                         1 day, 22 hours, 21 minutes, 58 seconds <<<<<<<<<
    Last reboot reason             Router rebooted after a normal shutdown. <<<<<<<<<<

 

Regards,

Raveen

Note: If this answers your question, you could mark this post as accepted solution, that way it helps others as well. Kudos will be cool if I earned it!
Highlighted
Ethernet Switching

Re: indentify EX reboot reason

‎04-18-2014 02:25 AM

Hello Alex

 

Below commands should provide details of last reboot and reason:

 

1. show system uptime

 

--------------------------------------------------------------------------
Current time: 2014-04-18 09:12:26 UTC
System booted: 2014-04-16 10:51:17 UTC (1d 22:21 ago) <<<<<<<<

--------------------------------------------------------------------------

 

2. show chassis routing-engine

 

--------------------------------------------------------------------------
Routing Engine status:
  Slot 0:
    Current state                  Master
    Election priority              Master (default)
    DRAM                      1023 MB
    Memory utilization          32 percent
    CPU utilization:
      User                       0 percent
      Background                 0 percent
      Kernel                     6 percent
      Interrupt                  1 percent
      Idle                      94 percent
    Model                          RE-PPC-1200-A
    Start time                     2014-04-16 10:51:17 UTC
    Uptime                         1 day, 22 hours, 21 minutes, 58 seconds       <<<<<<<<
    Last reboot reason             Router rebooted after a normal shutdown. <<<<<<<<
    Load averages:                 1 minute   5 minute  15 minute
                                       0.02       0.02       0.04


 

--------------------------------------------------------------------------

 

Regards,

Raveen

 

Note: If this answers your question, you could mark this post as accepted solution, that way it helps others as well. Kudos will be cool if I earned it!
Highlighted
Ethernet Switching

Re: indentify EX reboot reason

‎04-21-2014 01:03 AM

 Hi Raveen.

 

thanks for your reply.

I am looking for a logfile which show the reboot history.

In detail a list which shows every reboot everhappened on this device.

 

regards

Alexander

Highlighted
Ethernet Switching

Re: indentify EX reboot reason

‎04-21-2014 01:25 AM

Hi Alexander

 

You should be able to identify from messages file.

 

show log messages | match copyright (or)

 show log messages | match "The FreeBSD Project"

 

Copyright information would be printed during boot up of the appliance.

 

Regards,

Raveen

Note: If this answers your question, you could mark this post as accepted solution, that way it helps others as well. Kudos will be cool if I earned it!
Highlighted
Ethernet Switching

Re: indentify EX reboot reason

[ Edited ]
‎11-12-2019 06:21 AM

I still don't see the output provided the real 'reason' why or how the switch rebooted?.

 

I mean for example, was it rebooted by user issueing 'reboot system'  or  was the device powered off and then powered ON. Or, did the switch reboot abruptly due to SW malfuntioning for instance....

 

If someone can help here that would be appreciated.

 

Ajaz Nawaz
JNCIE-SEC#254 | CCIE#15721
JNCIA-FWV | JNCIS-FWV
JNCIA-JUNOS | JNCIS-SEC
JNCIP-SEC | JNCIE-SEC
CCNP-Collaboration
Highlighted
Ethernet Switching

Re: indentify EX reboot reason

‎11-17-2019 04:04 AM

This kb lists all the reboot reasons and what generates them.

 

https://kb.juniper.net/InfoCenter/index?page=content&id=KB33392

 

note that this is the default response

Last reboot reason             Router rebooted after a normal shutdown.

So there can still be issues when this is seen as noted in the kb.

 

Steve Puluka BSEET - Juniper Ambassador
IP Architect - DQE Communications Pittsburgh, PA (Metro Ethernet & ISP)
http://puluka.com/home
Highlighted
Ethernet Switching

Re: indentify EX reboot reason

‎12-10-2019 02:48 AM

Thank you !

 

'show chassis routing-engine' worked for me 100

Ajaz Nawaz
JNCIE-SEC#254 | CCIE#15721
JNCIA-FWV | JNCIS-FWV
JNCIA-JUNOS | JNCIS-SEC
JNCIP-SEC | JNCIE-SEC
CCNP-Collaboration