This document describes how to install and configure Energywise on CentOS 6.9
Contributed by Israel Moreno, Cisco TAC Engineer.
Cisco Energywise Management (CEM) controllers are responsible for direct device communication within the network, device and asset import, power measurement and policy control. Each management deployment requires a minimum of one Controller connected to the CEM Server. Larger deployments typically have multiple Controllers deployed across different sites or locations, or even multiple controllers in the same location for large networks. Controllers can be installed on both Windows and Linux boxes.
Root access or user with administrator rights on CentOS 6.9 box.
CEM Server installed. Credentials and key pair file created during its installation will be needed.
Wget and netcat utility packages installed on the CentOS system. You can install them using the following command: yum install wget nc
Oracle Java SE Runtime Environment 8. The RPM can be found here.
CEM Server 5.2.0 installed on a Windows Server 2008 R2 Virtual Machine.
CentOS 6.9 minimal installation Virtual Machine.
Installing Oracle Java SE Runtime Environment 8
Copy the JRE RPM to the CentOS VM; skip this step if the RPM was downloaded directly on it.
Install JRE with the following command:
yum install /<path> jre-8u<x>-linux-x<64/86>.rpm
The RPM can also be installed using:
rpm –ivh /<path> jre-8u<x>-linux-x<64/86>.rpm
Downloading and Installing the CEM Controller
Download Cisco Energy Management Controller 5.2.0 for CentOS 6 from CEM Download page
There are 32-bit and 64-bit versions available:
Log in to the CentOS system.
Navigate to the folder that contains the downloaded file. For example, if the controller installation file is in your Downloads folder and the folder structure is /home/admin/Downloads, enter the following command:
Enter one of the following commands to install the controller:
There are two valid options for installing the certificate file. The first one is putting the actual cem_keypair.key file to /var/lib/ewcontroller/cem_keypair.key. The command would look similar to this:
The second one is to use a text editor to create the /var/lib/ewcontroller/cem_keypair.key file, paste the content and save it.
Starting the Controller Service
To start the controller service run the following command:
Note: This ewcontroller script looks for .firstboot file in the directory /var/lib/ewcontroller/. If this file exists, it imports the configuration from ewcontroller.init into the setting.json file. After this process is done, both ewcontroller.init and .firstboot files will be removed. If the wrong SSL certificate or wrong type of controller is configured (i.e. On Premise vs Cloud), then settings.json must be deleted and .firstboot must be created again within the same directory. Once the configuration is corrected, rerun /etc/init.d/ewcontroller start.
After the service restarts, the controller registers the service with the central server. If the controller fails to start with an unknown host exception error, edit the host file located in /etc/hosts/ and include the following line: 127.0.0.1 hostname hostname.domain where hostname is the name of the system on which the controller is installed.
Optional step. Opening firewall port
If the CentOS box is running a local firewall which blocks unauthorized outgoing connections (it is very likely there is not), it is necessary to allow outgoing TCP traffic on port 5672. To do so run the following command: