This is a problem of firmware support, APC have completely changed text-based interface (and it is better than before). This should be solved in release fence-agents-3.1.5-35.el6 (RHEL 6.5). If that (or upstream 4.x version) is not working please create a bugzilla report.
On 02/24/2014 02:57 AM, Andrew Beekhof wrote:
Forwarding to linux-cluster which has more people knowledgeable on this set of fencing agents. On 22 Feb 2014, at 12:38 am, Tony Stocker <Tony Stocker nasa gov> wrote:All, I have a bigger issue regarding dual power supplies and fence_apc that I'm going to eventually need to resolve. But at this point I'm simply having basic issues getting the fence_apc agent to be able to access the devices in general, to wit: # fence_apc --ssh --ip=hac-pdu1 --plug=1 --username=blah --password=blah --verbose --action="" Unable to connect/login to fencing device However I can manually SSH into the device just fine: # ssh blah hac-pdu1 blah hac-pdu1's password: American Power Conversion Network Management Card AOS v5.1.9 (c) Copyright 2010 All Rights Reserved RPDU 2g v5.1.6 ------------------------------------------------------------------------------- Name : hac-pdu1 Date : 02/21/2014 Contact : systems mail myserver123 com Time : 13:12:02 Location : C101, HAC Rack 1 User : Administrator Up Time : 223 Days 17 Hours 0 Minutes Stat : P+ N4+ N6+ A+ Type ? for command listing Use tcpip command for IP address(-i), subnet(-s), and gateway(-g) apc> So perhaps the place to start first is simply getting the fence_apc agent (provided by CentOS/RHEL package fence-agents-3.1.5-35.el6_5.3.x86_64) to actually be able to work correctly. Once that's done, I'll still need help on the dual power supply issue. I'm not seeing any attempts to login in the APC's logs file, though I do see connections when I manually login, e.g.: 02/21/2014 13:13:11 System: Console user 'apc' logged out from 192.168.1.216. 02/21/2014 13:12:40 System: Console user 'apc' logged in from 192.168.1.216. A manual 'telnet [name] 22' command also works fine from the command line: # telnet hac-pdu1 22 Trying 192.168.1.222... Connected to hac-1-pdu1 (192.168.1.222). Escape character is '^]'. SSH-2.0-cryptlib However fence_apc_snmp **does** seem to work: # fence_apc_snmp --snmp-version=1 --community=public --ip=hac-pdu1 --plug=1 --username=blah --password=blah --verbose --action="" /usr/bin/snmpwalk -m '' -Oeqn -v '1' -c 'public' 'hac-pdu1:161' '.18.104.22.168.22.214.171.124.0' No log handling enabled - turning on stderr logging Created directory: /var/lib/net-snmp/mib_indexes .126.96.36.199.188.8.131.52.0 .184.108.40.206.4.1.3220.127.116.11.6 Trying APC Master Switch (fallback) /usr/bin/snmpget -m '' -Oeqn -v '1' -c 'public' 'hac-pdu1:161' '.18.104.22.168.4.1.322.214.171.124.126.96.36.199.1' .188.8.131.52.4.1.3184.108.40.206.220.127.116.11.1 1 Status: ON Does anyone have any ideas as to why fence_apc is not working? Thanks! Tony -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. _______________________________________________ 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