Home

AN1302

image

Contents

1. OK to save script When a power event occurs the external command execution will be initiated prior to the computer being shut down Refer to the Suggestions chapter for more details Configure Shutdown Options of Energy Saver Use the following steps to configure shutdown options for power events in the Energy Saver panel oa Ff oO DN Choose System Preferences from the Apple menu Choose Energy Saver from the View menu Click the lock icon and authenticate as an administrator account Click UPS tab view Click the Shutdown Options button Select the target shutdown option and change the time or percentage E G Enable the Shut down the computer after using the UPS battery for option and set the proper time Click Done button to complete Configure Proper Delay Time to Turn Off UPS When a shutdown procedure is initiated the UPS will delay the shutdown of its own outlets This delay must be long enough to allow for the computer shutdown of both the NAS and the computer The default setting is 180 seconds 3 minutes This setting will need to be changed if your NAS and computer take longer than 3 minutes to shut down ak o bh Open PowerPanel application Make sure that you have installed Daemon from the Configure toolbar gt Daemon tab Click the lock icon and authenticate as an administrator account Make sure that the Turn off UPS when computer shuts down option is checked Assign a proper
2. delay time from the Delay to turn off UPS when computer shuts down Drop down list CyberPower Reliability Quality Valus Shutdown NAS in PowerPanel Configuration on Linux Generate an SSH Key In order to control the NAS from a remote SSH session you must set up the SSH client with an SSH key which will allow the PowerPanel software to execute the shell script on the NAS and shut it down This SSH key is generated on an root user account Generate a private and a public key by following the steps below 1 Switch to root account A prompt ask you to provide the root password to complete the authentication Password 2 Generate a new RSA key pair ssh keygen t rsa This command will ask you to provide a location to save the keys and a passphrase Press Enter if you change nothing The prompt message shows as below example Generating public private rsa key pair Enter file in which to save the key root ssh id_rsa And then ssh keygen command also asks you to provide a passphrase Press ENTER to accept the default no passphrase Enter passphrase empty for no passphrase Enter same passphrase again After you confirm the passphrase the key pair will be generated Your identification has been saved in root ssh id_rsa Your public key has been saved in root ssh id_rsa pub 3 Copy public key to SSH server of NAS ssh copy id i root ssh id_ras pub AdminAccount IpAddress A
3. once without adding the key to the cache enter n If you do not trust this host press Return to abandon the connection Store key in cache lt y n gt When a power event occurs the external command execution will be initiated prior to the computer shutdown Refer to the Suggestions chapter for more details Configure Proper Delay Time to Turn Off UPS When a shutdown procedure is initiated UPS will delay the shutdown of its own outlets This delay must be long enough to allow for the computer shutdown of both the NAS and the computer The default setting is 120 seconds 2 minutes This setting will need to be changed as shown below if your NAS and computer take longer than 2 minutes to shut down 1 Open Notepad application from Start gt All Programs gt Accessories 2 Copy and paste the following properties into Notepad ONDD w lt shutdown gt lt hibernate gt lt off gt lt delay gt 600 lt delay gt lt off gt lt hibernate gt lt shutdown gt lt off gt lt delay gt 600 lt delay gt lt off gt lt shutdown gt lt shutdown gt Change the delay time in seconds to the needed time for your system to shutdown Click File gt Save As to popup Save As Window Change location to the PowerPanel installation directory from Save in Drop down list Enter shutdown xml at File name filed and change Save as type to All Files Click Save Restart the PowerPanel Persona
4. root This requires the root password to complete the authentication Generate a new RSA key pair ssh keygen t rsa A prompt will ask you to provide a location to save the keys and a passphrase The prompt message is shown below Press Enter if you want to change nothing Generating public private rsa key pair Enter file in which to save the key var root ssh id_rsa And then the ssh keygen command will also ask you to provide the passpharase Press ENTER to accept the default no passphrase Enter passphrase empty for no passphrase Enter same passphrase again CyberPower Reliability Quality Value Shutdown NAS in PowerPanel After you confirm the passphrase a key pair will be generated Your identification has been saved in var root ssh id_rsa Your public key has been saved in var root ssh id_rsa pub The key fingerprint is b1 99 1e 25 a5 f9 c9 86 15 5e 5a 4b 53 4f a8 c9 root mac name local The key s randomart image is RSA 2048 c Copy Mac s public key file id_rsa pub to SSH server of NAS for new mac_keys scp ssh id_rsa pub AdminAccount IpAddress ssh mac_keys AdminAccount is the administrator account of NAS IpAddress is the IP address or domain name of NAS This command requires entering yes and the NAS administrator s password to continue connection The message shows as below example The authenticity of host 192 168 20 10 192 168 20 10 can t be e
5. CyberPower YOE Quality Value Application Note AN1302 Automatic Shutdown NAS in PowerPanel Rev 3 2014 07 09 CyberPower Reliability Quality Value Shutdown NAS in PowerPanel Content INTRODUCTION ves ened eit Matis ahi dien ee areca ie ee ele eee eet Ae 2 e IT 2 Configuration ON Windows ssssssessssssiesiresitettnettttttttttttt estratt nnt ASt AAEEEAEEEAEEEAENAEEANEAAEENAEEENEENEEENEEEAEENNEEASEENEEEAEEEEENE EEANN Ennen 2 Download SSH chent tool EE 2 Edit External Command of PowerPanel Personal ECition ccecceeseeeeeeeeeeeeteeeeeaeeseaeeeeaeeteaeeseaeeseaeeseaeeseaeeseaeenias 2 Configure Proper Delay Time to Turn Off UPS 2 00 ecceeecceeeceeeeeeeeeeeeeeeeeseeeeeeeeeeeeeeaaeeseaeesaeeeneeeeeeeseeeeeeeseeeseneeeneeeeeae 3 enee leinen RE EE A Generatean SSA EE 4 Edit External Command of PowerPanel for Mac 6 Configure Shutdown Options of Energy Saver cccccecceeeceeeeeeeeeeeeeeeeeeeeeeeeeeseeeeeeeeseeeesaeeeseeeeseeeseeeeeneeeseeeseieeeneeeeeaa 6 Configure Proper Delay Time to Turn Off UPS cece eeeeeeeneeeeneeceneeeeeeeeeeeeeeeeeaeeeseeeeesaeesaeeeeeeseaeeeneeeseaeesnaeeseaeeeeaees 6 GOnMO te len OM Ell EE 7 Generate an SSH EE 7 Edit External Command of PowerPanel for LINUX ccceecceseseeeeeeseeeeeeeseaeeeeaeeseaeeeeaeeseaeeeeaeeseaeeseaeeseeeeeeeeseneeeneeeeeae 8 Configure Proper Delay Time to Turn Off UPS 00 00 eceeececeneeeeneeeeneeeeeeeeeaeeeeeeeeeseeeeeeeeaaeeseeeeeeees
6. d the computer to allow PowerPanel to communicate with the UPS 5 Ensure that there is an active network connection between your computer and NAS Configuration on Windows Download SSH client tool In order to remote control the NAS equipment via SSH service automatically use plink exe as the SSH client tool Visit the http the earth li sgtatham putty latest x86 plink exe to download the plink exe tool at the target directory e g CL Edit External Command of PowerPanel Personal Edition 1 Go to PowerPanel Personal Edition installation directory such as C Program Files x86 CyberPower PowerPanel Personal Edition is the default directory 2 Ensure that you are on an administrative permission 3 Edit default cmd as shown below to allow the NAS to shutdown Note that on older versions of Windows 2 CyberPower Reliability Quality Value Shutdown NAS in PowerPanel systems such as Win98 or ME the filename may be default bat echo n C plink exe ssh pw AdminPassword AdminAccount IpAddress poweroff AdminAccount and AdminPassword indicate the administrator account and password for NAS lpAddress is IP address or domain name of NAS Note Do not miss the echo n snippet If you do not append this snippet in the front of the whole command NAS will show the below message to ask you whether to add the key to its cache The automatic shutdown procedure will be interrupted If you want to carry on connecting just
7. dminAccount is the administrator account of NAS IpAddress is the IP address of NAS This command requires entering yes and the NAS administrator password to continue connection The message shows as below example The authenticity of host 192 168 20 10 192 168 20 10 can t be established RSA key fingerprint is b1 99 1e 25 a5 f9 c9 86 15 5e 54a 4b 53 4f a8 c9 CyberPower Reliability Quality Value Shutdown NAS in PowerPanel Are you sure you want to continue connecting yes no yes Warning Permanently added 192 168 20 10 RSA to the list of known hosts root 192 168 20 10 s password Edit External Command of PowerPanel for Linux Use vi command to edit etc pwrstatd powerfail sh and etc pwrstatd lowbatt sh Append below shell command to allow the shutdown of the NAS ssh AdminAccount lo Adress poweroff AdminAccount is the administrator account of NAS IpAddress is the IP address or domain name of NAS When a power event occurs the external command execution will be initiated prior to the computer being shut down Refer to the Suggestions chapter for more details Configure Proper Delay Time to Turn Off UPS When a shutdown procedure is initiated the UPS will delay the shutdown of its own outlets This delay must be long enough to allow for the computer shutdown of both the NAS and the computer The default setting is 600 seconds 10 minutes This setting will need to be changed if your NAS and computer take
8. eaeesaeeseaeeseaeeseaeeeatens 8 ele Ee EE 8 CyberPower Reliability Quality Value Shutdown NAS in PowerPanel Introduction If you want to properly shut down both the computer and the NAS that are being supplied power by a UPS this manual will guide through the necessary steps This will allow the NAS to shut down via the SSH service and the computer to shut down gracefully If you are only connecting a NAS to the UPS you do not need this manual Simply connect USB cable from the UPS to the NAS and refer to user s manual for the NAS about power management instructions Set up 1 Enable the SSH service on the NAS to allow remote SSH login NETGEAR NAS Example Log in to the ReadyNAS OS 6 web service and enable SSH Service from System gt Settings gt Services QNAP NAS Example Log in to the QTS 4 web service and enable Allow SSH connection from Control Panel gt Network Services gt Telnet SSH Synology NAS Example Log in of the DSM 4 web service and check Enable SSH Service from Control Panel gt Terminal Refers to your NAS user s manual for more details about SSH service 2 Make sure that the PowerPanel Software has been installed on your computer PowerPanel Person Edition is used on Windows PowerPanel for Mac is used on Mac OS X PowerPanel for Linux is used on Linux Plug in your NAS and computer to the UPS outlets labeled BATTERY SURGE or CRITICAL LOAD Connect the USB or serial cable between the UPS an
9. l Edition service from your services panel or reboot the computer to apply the change Cyber Power Reliability Quality Value Shutdown NAS in PowerPanel Configuration on Mac OS X Generate an SSH Key In order to control the NAS from a remote SSH session you must set up the SSH client with a SSH key which will allow the PowerPanel software to execute the shell script on the NAS and shut it down This SSH key is generated on a root account for PowerPanel daemon to execute a shell script Generate a private and a public key by following the steps below 1 Use root account in Mac OS X a b C d e f g h Enter an administrator account and password and then click OK j Choose System Preferences item from the Apple menu Choose Users amp Groups from the View menu Click the lock icon and authenticate as an administrator account Click Login Options Click the Join button at the lower right corner Click the Open Directory Utility button Click the lock icon in the Directory Utility window Choose Enable Root User from the Edit menu Enter the new root password in both the Password and Verify fields and then click OK Visit http support apple com kb ht1528 for more details in other MAC OS X version 2 Launch the Terminal from the Applications gt Utilities 3 Setup SSH client to remote control NAS without assigning password a Switch to the root account b su
10. longer than 10 minutes to shut down 1 Stop daemon of PowerPanel etc init d pwrstatd stop 2 Use vi to open etc pwrstatd conf 3 Search for shutdown sustain 600 and modify it for the necessary time in seconds your NAS and computer to shut down 4 Save the file and quit vi Start the PowerPanel daemon etc init d pwrstatd start Suggestion 1 ANAS remote login requires admin or root account Note The NETGEAR and Synology NAS equipment requires root account whose default password is same as administrator password 2 Because your IP address which is dynamically obtained may change you must use the domain name to replace with the IP address The NAS shutdown may not work due to the IP address changed Recommends using DDNS service to resolve the dynamic IP address issue Refer to NAS user s manual for advanced details about DDNS service 3 PowerPanel software had tested on NETGEAR Synology and QNAP NAS
11. stablished RSA key fingerprint is b1 99 1e 25 a5 f9 c9 86 15 5e 54a 4b 53 4f a8 c9 Are you sure you want to continue connecting yes no yes Warning Permanently added 192 168 20 10 RSA to the list of known hosts root 192 168 20 10 s password d Login to NAS via SSH client command ssh AdminAccount lo Address AdminAccount is the administrator account of NAS IpAddress is the IP address or domain name of NAS e Append Mac s public key mac_keys to NAS s authorized_keys cat ssh mac_keys gt gt ssh authorized_keys f Change the access permission of the public key chmod 600 ssh authorized_keys g Logout NAS 4 Refer to the step 1 to disable root account in Mac OS X If you want to keep disabled CyberPower Reliability Quality Value Shutdown NAS in PowerPanel Edit External Command of PowerPanel for Mac Edit the script of PowerPanel application allowing to shutdown NAS from the below steps ao Ek OMN 6 Open PowerPanel application from Applications Make sure that you have installed the Daemon from the Configure toolbar gt Daemon tab Click the lock icon and authenticate as an administrator account Click the Edit script button from the Configure toolbar gt Shutdown tab Append the below command to allow to shutdown NAS ssh AdminAccount lo Adress poweroff AdminAccount is the administrator account of NAS IpAddress is the IP address or domain name of NAS Click

Download Pdf Manuals

image

Related Search

AN1302 a1302 hall effect sensor a1302 datasheet a13022 thickness a1302 casio a1302 linear hall effect sensors ana1302

Related Contents

1 AVENANT N°4 AU REGLEMENT GENERAL DES  Rosewill RNX-N600UBE  - partnering together to mobilize kids  クイックスタートガイド  Le Moyen-Age  Toshiba Satellite S875-S7370  User manual X-celler  18455_SuperMagneto User Manual.indd  

Copyright © All rights reserved.
Failed to retrieve file