Junos
Highlighted
Junos

Re reboot reason.

[ Edited ]
‎06-26-2019 07:28 AM
Hi Everyone,
 
Can someone help me understand difference between the below outputs, where in RE has switched over and below bit is set for hw.re.reboot_on_disk_failure which is seen from systl out.  I wanted to know if number 2 is set when there is disk failure or does it signifies something else?
 
 
Output 1:
 
hw.re.reboot_on_diskfail: 0
hw.re.dualroot.booted_from:


Output:2
 
hw.re.reboot_on_diskfail: 2
hw.re.booted_up: 1
 
3 REPLIES 3
Highlighted
Junos
Solution
Accepted by topic author nadeemm
‎06-26-2019 10:16 AM

Re: Re reboot reason.

[ Edited ]
‎06-26-2019 08:21 AM

Hi Nadeem,

 

The "hw.re.reboot_on_disk_failure" sysctl variable holds the information from the configuration. Based on the following configuration, the sysctl value will change - 

 

set chassis routing-engine on-disk-failure disk-failure-action ? 
Possible completions:
halt Halt on disk failure
reboot Reboot on disk failure

 

 

When you have no configuration in this hierarchy,  hw.re.reboot_on_disk_failure = 0.

When you configure "set chassis routing-engine on-disk-failure disk-failure-action reboot", hw.re.reboot_on_disk_failure = 1.

When you configure "set chassis routing-engine on-disk-failure disk-failure-action halt", hw.re.reboot_on_disk_failure = 2.

 

I just tested this on my lab device. You can check as well.

 

-================================================

Please mark this solution as accepted.

Kudos are always appreciated 🙂

Highlighted
Junos

Re: Re reboot reason.

‎06-26-2019 10:02 AM
I checked in the lab and it clears my doubt.
Highlighted
Junos

Re: Re reboot reason.

‎06-26-2019 10:12 AM

Thanks for checking, please accept the comment as the solution to benefit others.

Feedback