[Linux-ha-dev] Stonith plugin for dell DRAC5

Dejan Muhamedagic dejanmm at fastmail.fm
Mon Sep 29 10:22:25 MDT 2008


Hi Xinwei,

On Sun, Sep 28, 2008 at 10:30:07PM +0800, Xinwei Hu wrote:
> Hi all,
> 
>  Sorry that I forget to attach the patch for the previous mail.
> 
>  The DRAC3 stonith plugin shipped with heartbeat seems not to work with DRAC5.
> 
>  The attached patch is a simple external stonith plugin. It sshes
> into the specified IP address, then control the power of the host.
> 
>  Please consider it for upstream.

Great. Many people asked about the drac support.

> +function chksshlogin() {
> +	test -x /usr/bin/sshlogin.exp
> +}

I can't find this program.

> +function sshlogin() {
> +	if [ x = "x$ipaddr" -o x = "x$userid" -o x = "x$passwd" ]
> +	then
> +		echo "ipaddr or userid missing; check configuration"
> +		return 1
> +	fi
> +
> +	test -f /etc/ha.d/drac.debug && set -x
> +	@SSH@ -q -x -n $userid@$ipaddr racadm serveraction "$1" >$outf 2>&1
> +	rc=$?
> +	#grep -w $failstg $outf
> +	#test $rc -eq 0 -a $? -eq 1
> +	test $rc -eq 0

Last four lines have no effect.

Has the plugin been tested?

Cheers,

Dejan


More information about the Linux-HA-Dev mailing list