Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Linux-HA: Users

Re: Stonith with APC Smart UPS1000 +Network ManagementCard

 

 

Linux-HA users RSS feed   Index | Next | Previous | View Threaded


dk at in-telegence

Jul 10, 2009, 12:52 AM

Post #1 of 6 (600 views)
Permalink
Re: Stonith with APC Smart UPS1000 +Network ManagementCard

The stonith plugins are part of the heartbeat package iirc. I think
there were reports in the past that those were built without snmp
support and thus the apcmastersnmp plugin was not included. Maybe you
have to build it yourself.

I have no idea whether it will work for your device. But if it is just a
different mib, it should not be too hard to modify.

Regards
Dominik

Ehlers, Kolja wrote:
> Hello,
>
> do you think that the apcmastersnmp plugin will work? Dejan noted that the MIB probably will not fit. I have installed the
> pacemaker-mgmt-1.99.1-2.2.i586.rpm package and also am monitoring my cluster through snmp but the apcmastersnmp plugin is not
> installed. Is it in one of those packages:
>
> pacemaker-mgmt-client-1.99.2-1.1.i586.rpm
> pacemaker-mgmt-devel-1.99.2-1.1.i586.rpm
>
> -----Ursprüngliche Nachricht-----
> Von: linux-ha-bounces [at] lists [mailto:linux-ha-bounces [at] lists] Im Auftrag von Dominik Klein
> Gesendet: Freitag, 10. Juli 2009 08:27
> An: General Linux-HA mailing list
> Betreff: Re: [Linux-HA] Stonith with APC Smart UPS1000 +Network ManagementCard
>
> Ehlers, Kolja wrote:
>> Yeah it supports SSH but if I log in using SSH there is just a menu to
>> configure the card. Since I can enter only 2 digits at that prompt
>>
>> 1- Control
>> 2- Diagnostics
>> 3- Configuration
>> 4- Detailed Status
>> 5- About UPS
>>
>> <ESC>- Back, <ENTER>- Refresh, <CTRL-L>- Event Log
>>
>> I think it will not accept commands to shut down a node. But maybe someone knows better?
>
> That looks about like what the cfg menu of my AP7920 looks like. I've never seen a cmdline interface.
>
> Try activating snmp and manage outlets via snmp.
>
> Regards
> Dominik
> _______________________________________________
> Linux-HA mailing list
> Linux-HA [at] lists
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
>
> Geschäftsführung: Dr. Michael Fischer, Reinhard Eisebitt
> Amtsgericht Köln HRB 32356
> Steuer-Nr.: 217/5717/0536
> Ust.Id.-Nr.: DE 204051920
> --
> This email transmission and any documents, files or previous email
> messages attached to it may contain information that is confidential or
> legally privileged. If you are not the intended recipient or a person
> responsible for delivering this transmission to the intended recipient,
> you are hereby notified that any disclosure, copying, printing,
> distribution or use of this transmission is strictly prohibited. If you
> have received this transmission in error, please immediately notify the
> sender by telephone or return email and delete the original transmission
> and its attachments without reading or saving in any manner.
>
> _______________________________________________
> Linux-HA mailing list
> Linux-HA [at] lists
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
>

_______________________________________________
Linux-HA mailing list
Linux-HA [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


ehlers at clinresearch

Jul 10, 2009, 12:55 AM

Post #2 of 6 (565 views)
Permalink
Re: Stonith with APCSmart UPS1000 +Network ManagementCard [In reply to]

This is exactly what I have installed:

heartbeat-2.99.2-8.1.i586.rpm
heartbeat-common-2.99.2-8.1.i586.rpm
heartbeat-resources-2.99.2-8.1.i586.rpm
libheartbeat2-2.99.2-8.1.i586.rpm
libopenais2-0.80.5-13.1.i586.rpm
libpacemaker3-1.0.4-23.1.i586.rpm
openais-0.80.5-13.1.i586.rpm
pacemaker-1.0.4-23.1.i586.rpm
pacemaker-mgmt-1.99.1-2.2.i586.rpm

and these are the plugins listed:

# stonith -L
apcmaster
apcsmart
baytech
cyclades
drac3
external/drac5
external/hmchttp
external/ibmrsa
external/ibmrsa-telnet
external/ipmi
external/kdumpcheck
external/rackpdu
external/riloe
external/sbd
external/ssh
external/vmware
external/xen0
external/xen0-ha
ibmhmc
ipmilan
meatware
null
nw_rpc100s
rcd_serial
rps10
ssh
suicide
wti_nps

-----Ursprüngliche Nachricht-----
Von: linux-ha-bounces [at] lists [mailto:linux-ha-bounces [at] lists] Im Auftrag von Dominik Klein
Gesendet: Freitag, 10. Juli 2009 09:53
An: General Linux-HA mailing list
Betreff: Re: [Linux-HA] Stonith with APCSmart UPS1000 +Network ManagementCard

The stonith plugins are part of the heartbeat package iirc. I think there were reports in the past that those were built without
snmp support and thus the apcmastersnmp plugin was not included. Maybe you have to build it yourself.

I have no idea whether it will work for your device. But if it is just a different mib, it should not be too hard to modify.

Regards
Dominik

Ehlers, Kolja wrote:
> Hello,
>
> do you think that the apcmastersnmp plugin will work? Dejan noted that
> the MIB probably will not fit. I have installed the
> pacemaker-mgmt-1.99.1-2.2.i586.rpm package and also am monitoring my cluster through snmp but the apcmastersnmp plugin is not
installed. Is it in one of those packages:
>
> pacemaker-mgmt-client-1.99.2-1.1.i586.rpm
> pacemaker-mgmt-devel-1.99.2-1.1.i586.rpm
>
> -----Ursprüngliche Nachricht-----
> Von: linux-ha-bounces [at] lists
> [mailto:linux-ha-bounces [at] lists] Im Auftrag von Dominik
> Klein
> Gesendet: Freitag, 10. Juli 2009 08:27
> An: General Linux-HA mailing list
> Betreff: Re: [Linux-HA] Stonith with APC Smart UPS1000 +Network
> ManagementCard
>
> Ehlers, Kolja wrote:
>> Yeah it supports SSH but if I log in using SSH there is just a menu
>> to configure the card. Since I can enter only 2 digits at that prompt
>>
>> 1- Control
>> 2- Diagnostics
>> 3- Configuration
>> 4- Detailed Status
>> 5- About UPS
>>
>> <ESC>- Back, <ENTER>- Refresh, <CTRL-L>- Event Log
>>
>> I think it will not accept commands to shut down a node. But maybe someone knows better?
>
> That looks about like what the cfg menu of my AP7920 looks like. I've never seen a cmdline interface.
>
> Try activating snmp and manage outlets via snmp.
>
> Regards
> Dominik
> _______________________________________________
> Linux-HA mailing list
> Linux-HA [at] lists
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
>
> Geschäftsführung: Dr. Michael Fischer, Reinhard Eisebitt Amtsgericht
> Köln HRB 32356
> Steuer-Nr.: 217/5717/0536
> Ust.Id.-Nr.: DE 204051920
> --
> This email transmission and any documents, files or previous email
> messages attached to it may contain information that is confidential
> or legally privileged. If you are not the intended recipient or a
> person responsible for delivering this transmission to the intended
> recipient, you are hereby notified that any disclosure, copying,
> printing, distribution or use of this transmission is strictly
> prohibited. If you have received this transmission in error, please
> immediately notify the sender by telephone or return email and delete
> the original transmission and its attachments without reading or saving in any manner.
>
> _______________________________________________
> Linux-HA mailing list
> Linux-HA [at] lists
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
>

_______________________________________________
Linux-HA mailing list
Linux-HA [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Geschäftsführung: Dr. Michael Fischer, Reinhard Eisebitt
Amtsgericht Köln HRB 32356
Steuer-Nr.: 217/5717/0536
Ust.Id.-Nr.: DE 204051920
--
This email transmission and any documents, files or previous email
messages attached to it may contain information that is confidential or
legally privileged. If you are not the intended recipient or a person
responsible for delivering this transmission to the intended recipient,
you are hereby notified that any disclosure, copying, printing,
distribution or use of this transmission is strictly prohibited. If you
have received this transmission in error, please immediately notify the
sender by telephone or return email and delete the original transmission
and its attachments without reading or saving in any manner.

_______________________________________________
Linux-HA mailing list
Linux-HA [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


ehlers at clinresearch

Jul 10, 2009, 7:58 AM

Post #3 of 6 (567 views)
Permalink
Re: Stonith with APCSmart UPS1000 +Network ManagementCard [In reply to]

Hello again,

I am not to familiar with SNMP but I guess this management card does not allow shutdown. I was looking for the rPDU branch which is
used by the apcmastersnmp but it is not listed. I guess if you think about it it makes sence as the UPS is not a PDU device.
Probably I have to look somewhere else.

Could somebody explain how the APC Smart shutdown command works? Does it actually allow to take away the power from only one of the
connected servers or does it just take away the power from everything that is connected?

If I am overlooking this correctly a APC UPS can only shutdown everything that is connected not only one jack only. That means for a
three node cluster two APC UPSes are not good enough even if I somehow manage to signal shutdown to an UPS.

Thanks


-----Ursprüngliche Nachricht-----
Von: linux-ha-bounces [at] lists [mailto:linux-ha-bounces [at] lists] Im Auftrag von Dominik Klein
Gesendet: Freitag, 10. Juli 2009 09:53
An: General Linux-HA mailing list
Betreff: Re: [Linux-HA] Stonith with APCSmart UPS1000 +Network ManagementCard

The stonith plugins are part of the heartbeat package iirc. I think there were reports in the past that those were built without
snmp support and thus the apcmastersnmp plugin was not included. Maybe you have to build it yourself.

I have no idea whether it will work for your device. But if it is just a different mib, it should not be too hard to modify.

Regards
Dominik

Ehlers, Kolja wrote:
> Hello,
>
> do you think that the apcmastersnmp plugin will work? Dejan noted that
> the MIB probably will not fit. I have installed the
> pacemaker-mgmt-1.99.1-2.2.i586.rpm package and also am monitoring my cluster through snmp but the apcmastersnmp plugin is not
installed. Is it in one of those packages:
>
> pacemaker-mgmt-client-1.99.2-1.1.i586.rpm
> pacemaker-mgmt-devel-1.99.2-1.1.i586.rpm
>
> -----Ursprüngliche Nachricht-----
> Von: linux-ha-bounces [at] lists
> [mailto:linux-ha-bounces [at] lists] Im Auftrag von Dominik
> Klein
> Gesendet: Freitag, 10. Juli 2009 08:27
> An: General Linux-HA mailing list
> Betreff: Re: [Linux-HA] Stonith with APC Smart UPS1000 +Network
> ManagementCard
>
> Ehlers, Kolja wrote:
>> Yeah it supports SSH but if I log in using SSH there is just a menu
>> to configure the card. Since I can enter only 2 digits at that prompt
>>
>> 1- Control
>> 2- Diagnostics
>> 3- Configuration
>> 4- Detailed Status
>> 5- About UPS
>>
>> <ESC>- Back, <ENTER>- Refresh, <CTRL-L>- Event Log
>>
>> I think it will not accept commands to shut down a node. But maybe someone knows better?
>
> That looks about like what the cfg menu of my AP7920 looks like. I've never seen a cmdline interface.
>
> Try activating snmp and manage outlets via snmp.
>
> Regards
> Dominik
> _______________________________________________
> Linux-HA mailing list
> Linux-HA [at] lists
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
>
> Geschäftsführung: Dr. Michael Fischer, Reinhard Eisebitt Amtsgericht
> Köln HRB 32356
> Steuer-Nr.: 217/5717/0536
> Ust.Id.-Nr.: DE 204051920
> --
> This email transmission and any documents, files or previous email
> messages attached to it may contain information that is confidential
> or legally privileged. If you are not the intended recipient or a
> person responsible for delivering this transmission to the intended
> recipient, you are hereby notified that any disclosure, copying,
> printing, distribution or use of this transmission is strictly
> prohibited. If you have received this transmission in error, please
> immediately notify the sender by telephone or return email and delete
> the original transmission and its attachments without reading or saving in any manner.
>
> _______________________________________________
> Linux-HA mailing list
> Linux-HA [at] lists
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
>

_______________________________________________
Linux-HA mailing list
Linux-HA [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Geschäftsführung: Dr. Michael Fischer, Reinhard Eisebitt
Amtsgericht Köln HRB 32356
Steuer-Nr.: 217/5717/0536
Ust.Id.-Nr.: DE 204051920
--
This email transmission and any documents, files or previous email
messages attached to it may contain information that is confidential or
legally privileged. If you are not the intended recipient or a person
responsible for delivering this transmission to the intended recipient,
you are hereby notified that any disclosure, copying, printing,
distribution or use of this transmission is strictly prohibited. If you
have received this transmission in error, please immediately notify the
sender by telephone or return email and delete the original transmission
and its attachments without reading or saving in any manner.

_______________________________________________
Linux-HA mailing list
Linux-HA [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


dmaziuk at bmrb

Jul 11, 2009, 12:58 AM

Post #4 of 6 (555 views)
Permalink
Re: Stonith with APCSmart UPS1000 +Network ManagementCard [In reply to]

Ehlers, Kolja wrote:

> Could somebody explain how the APC Smart shutdown command works? Does it actually allow to take away the power from only one of the
> connected servers or does it just take away the power from everything that is connected?

IIRC we have the previous model of that network management card. It can
shutdown the whole UPS, or it can send the powerfail signal to connected
machines. I'm pretty sure ours can't shut off an individual outlet.

You'll probably need their net-managed power strip for what you're
trying to do.

Dima
_______________________________________________
Linux-HA mailing list
Linux-HA [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


ehlers at clinresearch

Jul 13, 2009, 12:39 AM

Post #5 of 6 (542 views)
Permalink
Re: Stonith with APCSmart UPS1000 +Network ManagementCard [In reply to]

Hello Dima,

can you explain how you get that card to shutdown the whole UPS or how to send the powerfail command to connected machines (are you
talking about the PowerChute agent?). Is any of that possible through a stonith plugin?

Thanks so much

-----Ursprüngliche Nachricht-----
Von: linux-ha-bounces [at] lists [mailto:linux-ha-bounces [at] lists] Im Auftrag von Dimitri Maziuk
Gesendet: Samstag, 11. Juli 2009 09:58
An: General Linux-HA mailing list
Betreff: Re: [Linux-HA] Stonith with APCSmart UPS1000 +Network ManagementCard

Ehlers, Kolja wrote:

> Could somebody explain how the APC Smart shutdown command works? Does
> it actually allow to take away the power from only one of the connected servers or does it just take away the power from
everything that is connected?

IIRC we have the previous model of that network management card. It can shutdown the whole UPS, or it can send the powerfail signal
to connected machines. I'm pretty sure ours can't shut off an individual outlet.

You'll probably need their net-managed power strip for what you're trying to do.

Dima
_______________________________________________
Linux-HA mailing list
Linux-HA [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Geschäftsführung: Dr. Michael Fischer, Reinhard Eisebitt
Amtsgericht Köln HRB 32356
Steuer-Nr.: 217/5717/0536
Ust.Id.-Nr.: DE 204051920
--
This email transmission and any documents, files or previous email
messages attached to it may contain information that is confidential or
legally privileged. If you are not the intended recipient or a person
responsible for delivering this transmission to the intended recipient,
you are hereby notified that any disclosure, copying, printing,
distribution or use of this transmission is strictly prohibited. If you
have received this transmission in error, please immediately notify the
sender by telephone or return email and delete the original transmission
and its attachments without reading or saving in any manner.

_______________________________________________
Linux-HA mailing list
Linux-HA [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


dmaziuk at bmrb

Jul 13, 2009, 3:23 AM

Post #6 of 6 (540 views)
Permalink
Re: Stonith with APCSmart UPS1000 +Network ManagementCard [In reply to]

Ehlers, Kolja wrote:
> Hello Dima,
>
> can you explain how you get that card to shutdown the whole UPS or how to send the powerfail command to connected machines (are you
> talking about the PowerChute agent?). Is any of that possible through a stonith plugin?

I never got a 'round tuit: we have pretty reliable power and all
important stuff is on journaled raids.

As I recall you can send powerfail either to a monitoring daemon
(apcupsd?) or as snmp trap; with recent firmware you can also group
upses to send the signal only when both of them lose power (with 2-psu
machines connected to 2 upses on independent circuits). However, this is
the opposite of what you want.

Their networked power strip lets you turn individual outlets on and off
-- dunno if you can do it via snmp, though. I'm sure you can wrap
telnet/expect or http/curl script into a plugin if it comes to that.

Dima
_______________________________________________
Linux-HA mailing list
Linux-HA [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Linux-HA users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.