SLAC CPE Software Engineering Group
Stanford Linear Accelerator Center
 

LCLS UPS

CONFIGURATION

SLAC Detailed
SLAC Computing
Software Home
Software Detailed
 

 

How to setup/configure a UPS with a Smart Card

 


All LCLS Computers in the MCC Computer room are receiving their power via a SUA3000RMXL3U SMART-UPS with a smart card.  This allows one UPS to control multiple servers. 

Below are installation instructions and configuration instructions for telnet, web server, and client software.

 

 

 

Installation of UPS

Configuration via webserver

 

 


SUA3000RMXL3U SMART-UPS

(When purchasing this unit the smart card is an add-on and must be ordered separately.  AP9617 )

 


 

Installation of UPS

 

  1. Before installation remove the UPS battery  (most of the weight)
    1. Remove UPS from box
    2. Attach the front brackets to UPS

 

  1. Install mounts in rack
  2. Install UPS
  3. Install UPS batteries
  4. Install Smart Card on back of UPS
  5. Connect power
  6. Power on UPS
    1. Main switch is on the back
    2. Front switch turns on UPS

 

  1. Setup IP address for UPS
    1. Login to a Linux server on same network and assign IP to UPS management card

                                                               i.      arp –s ip-address   mac-address

1.      MAC address is on management card or on quality test sheet taped to anti-static bag the card was delivered in

2.      ex. arp –s 134.79.151.56   00:00:3a:04:5b:06

                                                             ii.      To test:  ping ip-address –s 113

 

  1. telnet into UPS
    1. telnet ip-address
      1. Use apc for both user name and password
      2. All of this is self explanatory
        1. Use configuration information provided below
     

       

      Once you setup the network you should be able to configure the rest via the web server.  ( https://ip-address )

       


 

Configuration via Webserver

  1. Configuration Settings
    1. Admininstration tab
      1. Security tab
        1. Set up account and password
      2. Network tab
        1. Configure port speed 100 FD
        2. DNS servers are mccsrv01 and mccsrv02 ( 134.79.151.12    &   134.79.151.13 )
        3. Enable HTTPS
        4. Disable Telnet and Enable SSH V2
        5. Disable SNMP V1 and V3
        6. Disable FTP
    2. Notification tab

      1. Email server is MCCDEV@slac.stanford.edu
      2. Setup recipients
    3. General tab
      1. Configure ID
      2. Configure NTP
        1. Servers are mccsrv01 and mccsrv02  ( 134.79.151.12    &   134.79.151.13 )
      3. Configure Unit Preference
        1. Fahrenheit °F
    4. UPS tab
      1. Configure general
      2. Run self test
      3. Configure PowerChute
        1. Turn off and stay off
        2. Authentication Phrase
          1. ex: lcls_authphrase

 


Configuration via Web Server w/ pictures

  1. Via the Web Server: ( https://ip-address )  login

    Initial web page:

   Adminstration tab: SECURITY

 Administration: NETWORK

 

Cliclk on NEXT >> (in above menu)

                                                                                                                                                                

Important Note - The initial configuration of the UPS is done using standard http port #80.  Set up the UPS for http port # 80. Save. Configure the client linux machine. After linux client machine is successifully configured it will display following message -

Registering PowerChute Network Shutdown with the management card ...
PowerChute Network Shutdown registration completed successfully.
Ones the client linux machine is successfully registered, you need to again login to ups via web and change web access method to https/443.

                                                                                                 

                                                                                                  

                                                                                                                                                                   

Ones the client linux machine is successfully registered, you need to again login to ups via web and change web access method to https/443. After completing the UPS configuration reboot the UPS management interface.

  Administration:  Notification tab

 

  Administration: General tab

 

   UPS : Configuration

   UPS : Powerchute

 

Reboot the management interface after the configuration -

Administration -> General  -> Reset/Reboot  -> Reboot Management Interface               

                                                                                                                                               

 


 

CLIENT SOFTWARE

 

 

 

 

*Note:  On the AP9630 card the client software will not load if the AP9630 is setup to use HTTPS.  Select HTTP for the cards web server and it will load the client software

 

 

Note - Before configuring client ensure that from client machine you can ping the UPS. At the time of client set up, UPS should be configured for http/Port 80.  Set up UPS for http/Port 80 and reboot UPS management card for the changes to come into effect. After the client starts showing up in UPS's web interface then set up UPS for https/Port 443 and reboot the UPS Management Card for changes to take effect. While configuring the client if you get message like "Cannot communicate with management card" , do not configure client.  In case for any reason you want to unstall the client use command "/opt/APC/PowerChute/uninstall".

 

  1. Install PowerChute Network Shutdown software on the client
    1. Download latest from APC.com   -then move to following locations
      1. /afs/slac/g/cd/sysadmin/APC/pcns301Linux/               (AFS node)
      2. /usr/local/admin/Powerchute/pcns301Linux/               (Private node)
    2. Login to client and install software (Pick up the latest software)

      [root@lcls-archsrv Linux]# pwd
      /afs/slac/g/cd/sysadmin/APC/pcns301Linux/Linux
      [root@lcls-archsrv Linux]# ./install.sh
      ------------------------------------------------------------------
      PowerChute Network Shutdown 3.0.1 for Linux
      Copyright (c) 1999-2012 Schneider Electric.
      All Rights Reserved.
      ------------------------------------------------------------------

      OS=Linux

      Initializing ...
      cp: cannot create regular file `backup.tar.gz': Permission denied
      gzip: pcns301.tar: Permission denied

      Press any key to display End User License Agreement

      PowerChute/group1/apclicense.txt: No such file or directory

      Do you agree to the above license terms? [yes or no]
      yes

      Please enter the installation directory or press enter to install to the default directory (/opt/APC/PowerChute):

      Are you sure you want to install PCNS to /opt/APC/PowerChute [Yes|No]?
      Yes
      Creating /opt/APC directory ...
      PCNS will be installed to /opt/APC/PowerChute

      Please enter java directory if you want to use your system java (example:/usr/local/bin/jre/jre1.6.0_31) or press enter to install the bundled Java:

      Copying jre to /opt/APC/PowerChute ...
      Extracting jre to /opt/APC/PowerChute/jre ...

      java version "1.6.0_31"
      Java(TM) SE Runtime Environment (build 1.6.0_31-b04)
      Java HotSpot(TM) Server VM (build 20.6-b01, mixed mode)

      JAVA_DIR=/opt/APC/PowerChute/jre/bin/

      Copying the installation files ...
      Extracting PCNS files ...
      PCNS is extracted to /opt/APC/PowerChute
      Configuring startup files ...
      Startup script=/etc/rc.d/init.d/PowerChute
      Updating Linux symbolic link ...
      Configuring uninstall script ...
      Setup the m11.cfg file

      PowerChute Network Shutdown, v3.0.1
      Copyright (c) 1999-2012, Schneider Electric. All Rights Reserved.
      Startup completed.

      Installation has completed.
      PowerChute Network Shutdown can be accessed through your browser at https://<your_server_ip_address>:6547
      Please complete the configuration wizard so that PowerChute Network Shutdown can protect your server.

       
    3. Go to url https://<your_server_ip_address>:6547 and configure the UPS Client.
      1. Need IP address of Smart card UPS where the client is plugged in
      2. Need username  &  password for UPS
      3. Need authentication phrase for that UPS
        1. mcc_authphrase5
      4. Do you want to start the service:  YES
    4. When this is complete the IP of the client will be in the Client list on the UPS

 

 

              5. Once the above step is complete,  logon to client from web browser - i.e. like https://lcls-dev7:6547/index.html

                   Select "Configure Events" and check box for following condition -> "Shut Down Server" when "UPS on Battery"

                   Important - Select "Configure Shutdown" and UNCLICK "Turn off the UPS after the shutdown finishes"

    

 

How to find out a server is connected to which ups without tracing power cables ?

Assuming there is a working and online server and you don't know to which ups it's connected. Without tracing power cables you can find it out using tcpdump command.

[root@lcls-dev3 divekar]# tcpdump udp | grep -i apc
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on em1, link-type EN10MB (Ethernet), capture size 65535 bytes
12:11:15.490629 IP ups-lcls09.slac.stanford.edu.63474 > lcls-dev3.slac.stanford.edu.apc-3052: UDP, length 571


 

Programmers' Guides, Users' Guides, Requirements, Design, Papers, Administration, How-To, Hardware, IOC, Database

 

[SLAC CPE Software Engineering Group][ SLAC Home Page]

 

Last modified: July 28, 2014