Shutdown Module

Botman

Compatibility:

Description

This module allows to restart Windows servers.
It should also allow to halt servers, and run on other OSes, but we only need a reboot feature ATM.

Configuration

As this module uses the Windows API, we don’t need any configuration file.

Query botmans through Alfred

It is possible to make Alfred able to query botmans for you by combining the power of the spam and rewrite modules.
You can add the following JSON object as a new rule of the rewrite module’s configuration file:

{
   "name" : ".reboot",
   "filter" : ".reboot*",
   "rule" : "sed -r 's/^.reboot (.*)/.spam \\1 .reboot/'",
   "description" : ".reboot <pattern>"
}
It might be dangerous to allow such a command to be ran through spam.


Commands

Restart server

(11:38:10) guillaume.friloux@botman.master.com: .reboot
(11:38:10) botman-xxxx: Reboot initiated