Avaya Logo

Previous Topic

Next Topic

Book Contents

Book Index

autoreboot command

The autoreboot command changes or displays the parameters associated with the automatic reboot feature.

Synopsis

autoreboot [enable | disable] [reboots number] [window minutes] [uptime minutes]

autoreboot [status | s]

autoreboot [help | h]

Description

The autoreboot command is used to change parameters associated with the automatic reboot feature and to monitor the status of these parameters.

Parameters for the autoreboot command are described in the following table. In the table and following discussion, the term boot event is used to denote an instance of the system booting itself.

Parameter

Description

Comments

enable|disable

Specifies whether to enable or disable the automatic reboot feature

Default is enable

reboots number

Specifies the number of unanticipated boot events, tolerated within the time period specified by window

Default is 5

window minutes

Specifies the time period for the reboots parameter

Default is 60 minutes

uptime minutes

Specifies the amount of time that the system must be in service before the automatic reboot feature is activated

Default is 5 minutes

status

Shows the current values of the automatic reboot parameters, plus the number of unanticipated boot events that occurred in the window time period preceding the most recent boot event

When the automatic reboot feature is enabled and activated, the system automatically boots after a Unix panic. The automatic reboot feature is activated as follows: If there were fewer boot events than unanticipated boot events during the window minutes prior to the most recent boot event, the automatic reboot feature is activated (if enabled) uptime minutes after the most recent boot event.

An unanticipated boot event is a boot event that occurs after a system crash. A system crash can be caused (for example) by a Unix panic, a system restart via RESET, or a sudden power loss.

For example, assume the automatic reboot parameters are set to their default values. A system crash occurs. The system boots at 8:00. If there were fewer than 5 unanticipated boot events between 7:00 and 8:00, the autoreboot feature is activated as 8:05. Otherwise, it is activated at 9:00.

Example

The following example shows how the autoreboot command enables the automatic reboot feature and changes the window parameter to 2 hours.

autoreboot enable window 120

Note:
This command must be run from ksh (KORN shell).

© 2006 Avaya Inc. All Rights Reserved.