<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Procedure: How to gang multiple APC AP7901 outlets together under the same name<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Note: Do not include any quote marks. They are used below just to indicate verbatim strings.<o:p></o:p></p>
<p class="MsoNormal"> It may take perhaps 10 seconds for any changes to reflect so be patient (like after clicking Apply or Next)<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Here is the crm config that worked for this example (yours may be different). It worked out-of-box with no other configuration to the AP 7901.<o:p></o:p></p>
<p class="MsoNormal"> primitive scc-stonith stonith:external/rackpdu \<o:p></o:p></p>
<p class="MsoNormal"> meta target-role="Started" \<o:p></o:p></p>
<p class="MsoNormal"> operations $id="scc-stonith-operations" \<o:p></o:p></p>
<p class="MsoNormal"> op monitor interval="3600" timeout="200" start-delay="15" \<o:p></o:p></p>
<p class="MsoNormal"> params hostlist="scc-pri" pduip="10.1.1.50" community="private"<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">=== Procedure ===<o:p></o:p></p>
<p class="MsoNormal">Launch a web browser and key in the IP address of the AP 7901 as the URL. In this example 10.1.1.50 is the ipaddr for our AP 7901.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Here we will gang together outlets 1 and 2 under a common name "srvr-one"<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">From within the APC web page, select the Device Manger tab<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Click Configuration in the left pane<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">In the right pane, click the outlet #1 name (underlined as a link) and change its name to "srvr-one"<o:p></o:p></p>
<p class="MsoNormal">The external link can be any non-blank string so you can leave it as "http://www.apc.com"<o:p></o:p></p>
<p class="MsoNormal">Set power on delay, power off delay, and reboot duration to what you need<o:p></o:p></p>
<p class="MsoNormal">Click apply<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">In the right pane, click the outlet #2 name (underlined as a link) and change its name to "srvr-one" also<o:p></o:p></p>
<p class="MsoNormal">Set power on delay, power off delay, and reboot duration to match those of outlet 1<o:p></o:p></p>
<p class="MsoNormal">Click apply<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Under "Outlet Groups" in the left pane, select Information<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">In the right pane, click the button "Create Local Outlet Group"<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Change the Outlet Group Name to "srvr-one" -- which is the same name as both of the outlets<o:p></o:p></p>
<p class="MsoNormal">Check (i.e. select) the first two outlets which are now both named "srvr-one"<o:p></o:p></p>
<p class="MsoNormal">Click Apply<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Click Next to procede to the "Select the Global Outlet for this Outlet Group" window<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Check (i.e. select) only the first outlet of the two now named srvr-one<o:p></o:p></p>
<p class="MsoNormal">Click Apply.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">You should notice " G1 srvr-one 1,2 " under the Group Name with its associated IP address<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">=== Test the configuration ===<o:p></o:p></p>
<p class="MsoNormal">In the left window pane the Device Manger tab click Control. You will see the On/Off status of all eight outlets.
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Paste this into the command console to turn the two srvr-one outlets off (assuming that they are both currently on):<o:p></o:p></p>
<p class="MsoNormal">stonith -t external/rackpdu hostlist=srvr-one pduip=10.1.1.50 community=private -T off srvr-one<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Refresh the web page (F5) and verify that both outlets are off. It may take 10 seconds for it to take.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Paste this into the command console to turn the two srvr-one outlets on (assuming that they are both currently off):<o:p></o:p></p>
<p class="MsoNormal">stonith -t external/rackpdu hostlist=srvr-one pduip=10.1.1.50 community=private -T on srvr-one<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Refresh the web page (F5) and verify that both outlets are on.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">=== end of test ====<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><b><i><span style="font-family:"Arial","sans-serif";color:navy">Josh Epps<o:p></o:p></span></i></b></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>