[Pacemaker] AP9606 fencing device

Dejan Muhamedagic dejanmm at fastmail.fm
Wed Nov 17 11:50:53 UTC 2010


Hi,

On Tue, Nov 16, 2010 at 08:15:10PM -0700, Devin Reade wrote:
> --On Wednesday, October 27, 2010 09:47:14 AM +0200 Pavlos Parissis
> <pavlos.parissis at gmail.com> wrote:
> 
> > I have a APC AP9606 PDU and I am trying to find a stonith agent which
> > works with that PDU.
> 
> I know that this is an old thread, but I'll reply anyway.
> 
> I have a one cluster that uses an old APC AP9606 for which I've not
> been able to obtain a flash update.  In particular, it is:
>      hardware revision: J13
>      APP version 2.2.0
>      AOS version 3.0.3
> 
> It is running just fine (see caveat below) with the following configuration,
> and I can attest that it has properly stonith'd nodes many times.
> 
> primitive msw stonith:apcmastersnmp \
>         operations $id="msw-operations" \
>         op monitor interval="15" timeout="15" start-delay="15" \
>         params ipaddr="IPADDR" port="161" community="COMMUNITY"
> clone msw-clone msw \
>         meta clone-max="2" target-role="started"
> 
> (yeah, that monitor interval is probably a little quick ...)
> 
> That particular cluster is getting long in the tooth:
>      pacemaker-1.0.5-4.6.x86_64
>      openais-0.80.5-15.1.x86_64
> 
> The caveat is that this PDU used to work with the default implementation,
> however at some point someone updated the OIDs in apcmastersnmp to 
> match newer firmware.  Therefore, I had to reverse patch that RA:

Yes, looking at the repository, that happened sometimes in 2007.
Though the log message claimed that the OIDs would work with both
older and newer PDUs. Apparently not. Then there was an effort by
Philip Gwyn to implement a new plugin which would support both
and it was almost finished. At the time we had a somewhat more
stringent contribution policy and Philip didn't do what was
necessary in the end. It's a shame that that contribution didn't
make it to the project at the time. I can see that the code is
still available at http://www.awale.qc.ca/ha-linux/apc-snmp/
If Philip's still listening or somebody else wants to push this,
we can take a look at it again.

Thanks,

Dejan

> ===============================================================
> --- apcmastersnmp.c.orig        2009-09-26 16:12:27.000000000 -0600
> +++ apcmastersnmp.c     2009-09-28 16:46:17.000000000 -0600
> @@ -137,12 +137,12 @@
>  #define OUTLET_NO_CMD_PEND             2
>  
>  /* oids */
> -#define OID_IDENT                      ".1.3.6.1.4.1.318.1.1.12.1.5.0"
> -#define OID_NUM_OUTLETS
> ".1.3.6.1.4.1.318.1.1.12.1.8.0"
> -#define OID_OUTLET_NAMES
> ".1.3.6.1.4.1.318.1.1.12.3.4.1.1.2.%i"
> -#define OID_OUTLET_STATE
> ".1.3.6.1.4.1.318.1.1.12.3.3.1.1.4.%i"
> -#define OID_OUTLET_COMMAND_PENDING
> ".1.3.6.1.4.1.318.1.1.12.3.5.1.1.5.%i"
> -#define OID_OUTLET_REBOOT_DURATION
> ".1.3.6.1.4.1.318.1.1.12.3.4.1.1.6.%i"
> +#define OID_IDENT                      ".1.3.6.1.4.1.318.1.1.4.1.4.0"
> +#define OID_NUM_OUTLETS                ".1.3.6.1.4.1.318.1.1.4.4.1.0"
> +#define OID_OUTLET_NAMES               ".1.3.6.1.4.1.318.1.1.4.5.2.1.3.%i"
> +#define OID_OUTLET_STATE               ".1.3.6.1.4.1.318.1.1.4.4.2.1.3.%i"
> +#define OID_OUTLET_COMMAND_PENDING     ".1.3.6.1.4.1.318.1.1.4.4.2.1.2.%i"
> +#define OID_OUTLET_REBOOT_DURATION     ".1.3.6.1.4.1.318.1.1.4.5.2.1.5.%i"
>  
>  /*
>         snmpset -c private -v1 172.16.0.32:161
> ===============================================================
> 
> 
> 
> _______________________________________________
> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
> 
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker




More information about the Pacemaker mailing list