On Sun, Apr 17, 2011 at 11:23 PM, Avestan <babak_khoram...@hotmail.com> wrote:
>
> Hello,
>
> I am using STONITH Device AP9225EXP with AP9617 Network Management card.  I
> have generated my own pacth to change the apcmaster.c file to work with my
> setup.
>
> The stonith appears to allow only three commands (reset - on - off) to be
> passed on to the STONITH Device using numbers 1, 2, 3 which reflected the
> selection of option 1, 2, and 3 on the outlet control console as show here:
>
>
> [root@dizin stonith]# stonith
> usage:
>         stonith [-svh] -L
>         stonith -n -t stonith-device-type
>         stonith [-svh] -t stonith-device-type [-p stonith-device-parameters
> | -F stonith-device-parameters-file] -lS
>         stonith [-svh] -t stonith-device-type [-p stonith-device-parameters
> | -F stonith-device-parameters-file] -T {reset|on|off} nodename
>
> where:
>        -L      list supported stonith device types
>        -l      list hosts controlled by this stonith device
>        -S      report stonith device status
>        -s      silent
>        -v      verbose
>        -n      output the config names of stonith-device-parameters
>        -h      display detailed help message with stonith device
> desriptions
> [root@dizin stonith]#
>
> The question is how I can add more possibilities to the list as the
> AP9225EXP is capable of doing more and I would like to take advantage of it.

You mostly can't.
But you can change what action your stonith agent performs when it
receives one of the allowed values.

> Here is what AP9225EXP offers at it own outlet control console:
>
>> 1
>
> ------- Outlet Control 1:5
> ----------------------------------------------------
>
>        Outlet Name : monitor
>        Outlet State: ON
>        Control Mode: Graceful Shutdown
>
>     1- Immediate On
>     2- Delayed On
>     3- Immediate Off
>     4- Immediate Reboot
>     5- Graceful Reboot
>     6- Shutdown
>     7- Override
>     8- Cancel
>
>     ?- Help, <ESC>- Back, <ENTER>- Refresh, <CTRL-L>- Event Log
>
> Can someone tell me which file it is that I need to manipulate in order to
> increase the available options to the Ap9225EXP possibilities?
>
> Thanks,
>
> Avestan
>
>
>
>
> --
> View this message in context: 
> http://old.nabble.com/How-can-I-add-more-options-to-current-reset%2C-on%2C-off-options--tp31419415p31419415.html
> Sent from the Linux-HA mailing list archive at Nabble.com.
>
> _______________________________________________
> Linux-HA mailing list
> Linux-HA@lists.linux-ha.org
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
>
_______________________________________________
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to