How to make a remote reboot when system has panic'ed ?

Garrett Cooper yanefbsd at gmail.com
Mon Jan 12 10:15:39 PST 2009


On Mon, Jan 12, 2009 at 8:20 AM, Shane Ambler <FreeBSD at shaneware.biz> wrote:
> Nathan Whitehorn wrote:
>>
>> Niels S. Eliasen wrote:
>>>
>>> hi guys
>>> Having some issues with the current kernel getting sound and keyboard
>>> working (thanks sofar Nathan! ) made me think about how to reboot when the
>>> system has panic'ed...  remotely ??
>>> ie. a virtual CTRL-OPTION-POWER ?
>>> is that possible at all?
>>
>> How remotely? During a panic, there is necessarily no network access.
>> Typing reset at the debugger prompt, though, via a serial console or
>> firewire (dcons) will cause a reboot, and the machine with the other end of
>> the console can be connected to the network.
>>
>>> and at the same time.... How about a automatic reboot after a
>>> power-outage ? (the option is available within MacOSX/YDL Linux as well) ??
>>> just rambling ....
>>
>> See the sysctl dev.pmu.0.server_mode.
>> -Nathan
>
> May not help - but then it may point your thoughts the right way -
>
> Dedicated Hosting services have been known to provide remote access (either
> web or telnet access) to the UPS powering your server allowing a power cycle
> as needed. Combined with a remote console access (think second pc with
> serial port connection to the server in question) allowing single user
> booting to swap kernels from across the globe.
>
> X10 home automation anyone??

>From my kernel config file:

# Debugging for use in -current
options         KDB                     # Enable kernel debugger support.
options         KDB_UNATTENDED          # I don't want to be here when
stuff crashes..

>From /etc/sysctl.conf:
debug.debugger_on_panic=0

Cheers,
-Garrett


More information about the freebsd-ppc mailing list