Ask the Community
Groups
Issue a clean shutdown from an APC UPS - Connect IT Community | Kaseya
<main> <article class="userContent"> <h2 data-id="summary"><strong>SUMMARY</strong></h2> <p>Shutdown a Recovery-Series system cleanly during an unplanned power outage.</p> <h2 data-id="issue"><strong>ISSUE</strong></h2> <p></p> <p>During a power outage, the Unitrends Recovery-Series system needs to be shutdown cleanly. This article outlines how to implement this via APC UPS solutions.</p> <h2 data-id="resolution"><strong>RESOLUTION</strong></h2> <p></p> <p>Follow the procedure to setup APC UPS support on a Unitrends Recovery-Series system.</p> <ol><li>The Unitrends Recovery-Series system <b>must</b> be running CentOS 6. <br><a rel="nofollow" href="/home/leaving?allowTrusted=1&target=https%3A%2F%2Funitrends-support.zendesk.com%2Fhc%2Fen-us%2Farticles%2F360013171437">How can I tell my version of CentOS Linux?</a> </li> <li>The APC ups must be directly connected to the Unitrends Recovery-Series system via a USB using a USB cable provided by the APC UPS vendor. The APC UPS <b>must</b> be connected prior to running the setup utility.</li> <li>If the Unitrends system is not a CentOS 6 system or if the UPS is not connected to the Unitrends system, <b>stop here</b> and complete steps 1 and 2. This process will not work if these prerequisites are not met.</li> <li>Access the Unitrends Recovery-Series system remotely using <a rel="nofollow" href="/home/leaving?allowTrusted=1&target=http%3A%2F%2Fwww.putty.org%2F">PuTTY</a>. PuTTY will provide command line access to the system. Use the following command to verify the APC is connected using USB: <pre class="code codeBlock" spellcheck="false" tabindex="0"> # ls /dev/usb | grep hid</pre> Note: If nothing shows after running this command, please try a different USB port on the appliance. You should see a result looking similar to, "hiddev0".</li> <li>Download the setup utility from the Unitrends FTP site. (Note: Incoming and outgoing FTP access is required during the installation process). <pre class="code codeBlock" spellcheck="false" tabindex="0"> # cd /tmp # wget <a href="/home/leaving?allowTrusted=1&target=ftp%3A%2F%2Fupdateftp.unitrends.com%2Futilities%2Fapc%2Fgd-2.0.35-11.el6.x86_64.rpm">ftp://updateftp.unitrends.com/utilities/apc/gd-2.0.35-11.el6.x86_64.rpm</a> # yum localinstall --nogpgcheck gd-2.0.35-11.el6.x86_64.rpm # wget <a href="/home/leaving?allowTrusted=1&target=ftp%3A%2F%2Fupdateftp.unitrends.com%2Futilities%2Fapc%2FapcConfig.sh">ftp://updateftp.unitrends.com/utilities/apc/apcConfig.sh</a> # chmod +x apcConfig.sh</pre> </li> <li>Execute the setup utility, then start the apcupsd service. <pre class="code codeBlock" spellcheck="false" tabindex="0"> # ./apcConfig.sh # service apcupsd start (a reboot will also start the service) </pre> </li> <li> Verify the script is running. <pre class="code codeBlock" spellcheck="false" tabindex="0"> # ps aux | grep apc root 4649 0.0 0.0 104988 884 ? Ssl Nov05 0:07 /sbin/apcupsd -f /etc/apcupsd/apcupsd.conf root 22261 0.0 0.0 103248 904 pts/0 S+ 09:37 0:00 grep apc</pre> <br> The script will configure the Unitrends Recovery-Series system to support a shutdown from an APC UPS via USB cable.</li> </ol> <p> </p> <h2 data-id="notes"><strong>NOTES</strong></h2> <p>For Unitrends Backup or Unitrends Virtual Backup products, a shutdown command may be configured within the hypervisor.</p> </article> </main>