Re: fence_apc - Perl based CLI version

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

There's a fence_apc_snmp.py script available in the cluster code repository:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/cluster/fence/agents/apc/?cvsroot=cluster

I tested it a little (replaced /sbin/fence_apc with it - they both
have the same CLI parameters) and it seems to work where the fence_apc
script shipped with RHEL5 fails.

Amit

On Jan 8, 2008 11:44 PM, Steffen Plotner <swplotner@xxxxxxxxxxx> wrote:
> Hi,
>
> I currently use a different method of fencing in our clusters (using
> iscsi ietd and iptables currently), however we have the APC7900 PDUs and
> do control them using SNMP:
>
> Use SNMP set commands to turn off and on the ports:
>
> snmpset -c <password> <host>
> PowerNet-MIB::rPDUOutletControlOutletCommand.<port> i 2
>
> The 'i' refers to an integer and the digit 2 means to power off the
> port.
>
> That has worked very reliably.
>
> Steffen
>
>
>
> > -----Original Message-----
> > From: linux-cluster-bounces@xxxxxxxxxx
> > [mailto:linux-cluster-bounces@xxxxxxxxxx] On Behalf Of Benjamin Franz
> > Sent: Tuesday, January 08, 2008 4:32 PM
> > To: linux clustering
> > Subject:  fence_apc - Perl based CLI version
> >
> > As others have reported, the current fence_apc shipping with
> > RHEL5.1/CentOS5.1 simply does not work reliably on newer APC
> > firmwares. It breaks under all kinds of conditions (some as
> > simple as 'works on some ports but not on other ports').
> >
> > Since I *really* need it to work, I hacked together a Perl
> > version (derived from the old fence_apc.pl in CVS) that uses
> > the APC command line interface and dispenses with the 'menu
> > scraping' interface entirely.
> >
> > I don't have any switches here that use a switchnum interface
> > so I couldn't hack anything together for that. But it appears
> > to reliably do what it is supposed to do (at least on my
> > APC7900 switches running AOS
> > 3.3.4): Fence.
> >
> > It would make a great deal of sense for someone to add it to
> > the Luci/CMAN list of supported fences. Maybe "APC Power
> > Device (CLI) / fence_apc_cli"?
> >
> > --
> > Benjamin Franz
> >
> > "It is moronic to predict without first establishing an error rate
> >   for a prediction and keeping track of one's past record of
> > accuracy."
> >                      -- Nassim Nicholas Taleb, Fooled By Randomness
> >
>
> --
> Linux-cluster mailing list
> Linux-cluster@xxxxxxxxxx
> https://www.redhat.com/mailman/listinfo/linux-cluster
>

--
Linux-cluster mailing list
Linux-cluster@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/linux-cluster

[Index of Archives]     [Corosync Cluster Engine]     [GFS]     [Linux Virtualization]     [Centos Virtualization]     [Centos]     [Linux RAID]     [Fedora Users]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Camping]

  Powered by Linux