Professional Documents
Culture Documents
Fmang Inst Instr
Fmang Inst Instr
FMANG Installation
Instructions
DN09202992
Issue 1-1
FMANG Installation Instructions
The information in this document applies solely to the hardware/software product (“Product”) specified
herein, and only as specified herein. Reference to “Nokia” later in this document shall mean the respective
company within Nokia Group of Companies with whom you have entered into the Agreement (as defined
below).
This document is intended for use by Nokia's customers (“You”) only, and it may not be used except for the
purposes defined in the agreement between You and Nokia (“Agreement”) under which this document is
distributed. No part of this document may be used, copied, reproduced, modified or transmitted in any form
or means without the prior written permission of Nokia. If You have not entered into an Agreement
applicable to the Product, or if that Agreement has expired or has been terminated, You may not use this
document in any manner and You are obliged to return it to Nokia and destroy or delete any copies thereof.
The document has been prepared to be used by professional and properly trained personnel, and You
assume full responsibility when using it. Nokia welcomes your comments as part of the process of
continuous development and improvement of the documentation.
This document and its contents are provided as a convenience to You. Any information or statements
concerning the suitability, capacity, fitness for purpose or performance of the Product are given solely on
an “as is” and “as available” basis in this document, and Nokia reserves the right to change any such
information and statements without notice. Nokia has made all reasonable efforts to ensure that the
content of this document is adequate and free of material errors and omissions, and Nokia will correct
errors that You identify in this document. Nokia's total liability for any errors in the document is strictly
limited to the correction of such error(s). Nokia does not warrant that the use of the software in the Product
will be uninterrupted or error-free.
NO WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
ANY WARRANTY OF AVAILABILITY, ACCURACY, RELIABILITY, TITLE, NON-INFRINGEMENT,
MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, IS MADE IN RELATION TO THE
CONTENT OF THIS DOCUMENT. IN NO EVENT WILL NOKIA BE LIABLE FOR ANY DAMAGES,
INCLUDING BUT NOT LIMITED TO SPECIAL, DIRECT, INDIRECT, INCIDENTAL OR CONSEQUENTIAL
OR ANY LOSSES, SUCH AS BUT NOT LIMITED TO LOSS OF PROFIT, REVENUE, BUSINESS
INTERRUPTION, BUSINESS OPPORTUNITY OR DATA THAT MAY ARISE FROM THE USE OF THIS
DOCUMENT OR THE INFORMATION IN IT, EVEN IN THE CASE OF ERRORS IN OR OMISSIONS
FROM THIS DOCUMENT OR ITS CONTENT.
This document is Nokia proprietary and confidential information, which may not be distributed or disclosed
to any third parties without the prior written consent of Nokia.
Nokia is a registered trademark of Nokia Corporation. Other product names mentioned in this document
may be trademarks of their respective owners.
Only trained and qualified personnel may install, operate, maintain or otherwise handle this
product and only after having carefully read the safety information applicable to this product.
The safety information is provided in the Safety Information section in the “Legal, Safety and
Environmental Information” part of this document or documentation set.
Nokia is continually striving to reduce the adverse environmental effects of its products and services. We
would like to encourage you as our customers and users to join us in working towards a cleaner, safer
environment. Please recycle product packaging and follow the recommendations for power use and proper
disposal of our products and their components.
If you should have questions regarding our Environmental Policy or any of the environmental services we
offer, please contact us at Nokia for any additional information.
Table of Contents
This document has 29 pages
4 Quick guide.................................................................................... 8
4.1 Quick guide for Windows............................................................... 8
4.2 Quick guide for Linux..................................................................... 9
5 Installation.................................................................................... 11
5.1 Testing the Java installation..........................................................11
5.2 Installing Apache Tomcat..............................................................11
5.2.1 Installing Apache Tomcat in Windows..........................................12
5.2.2 Installing Apache Tomcat in Linux................................................15
5.3 Creating a folder for local data..................................................... 18
5.4 Installing FMANG......................................................................... 18
5.5 Installing FMANG CLI.................................................................. 20
6 Configuration changes................................................................. 21
6.1 Changing the folder for local data................................................ 21
6.2 Changing the database port number............................................22
9 Troubleshooting............................................................................25
9.1 Overall symptoms data................................................................ 25
9.2 Problem cases............................................................................. 25
9.2.1 Tomcat server is not starting - ports already reserved................. 25
9.2.2 Tomcat server is not starting – not enough memory for Java...... 26
9.2.3 FMANG application does not disappear from Tomcat manager......
26
9.2.4 FMANG is not able to generate the result archive after logout.... 27
9.2.5 FMANG license is requested again..............................................27
9.2.6 After change of the folder for local data, application cannot be
started.......................................................................................... 27
10 Glossary....................................................................................... 29
List of Figures
Figure 1 Apache Tomcat setup - Choose components dialog.......................... 12
Figure 2 Apache Tomcat setup - Configuration options dialog......................... 13
Figure 3 Updating Tomcat memory settings for 64-bit Windows...................... 14
Figure 4 Apache Tomcat default home page.................................................... 19
Figure 5 Deploying FMANG..............................................................................19
Figure 6 FMANG deployed............................................................................... 20
Figure 7 Reloading FMA...................................................................................22
Figure 8 Upgrading Flexi Maintenance Application.......................................... 23
Figure 9 FMANG login screen.......................................................................... 24
g Note: Throughout this document, in FMANGxx the xx stands for the corresponding
release number that is installed.
2.1 Scope
Flexi Maintenance Application (FMA) is a fault management and troubleshooting
application for the Flexi product family. The application allows connecting to the Flexi NG
network element with a web browser. This document explains how to install and upgrade
the application. Operating instructions can be found in the FMANG User Guide. This
FMANG release is compatible with the respective Flexi NG release.
2.2 Audience
This document is aimed at operators and administrators using the Flexi Maintenance
Application for Flexi NG. The reader should be familiar with packet data transfer, 3G
networks, and Evolved Packet System (EPS).
• For the server installation and when using FMANG and FMANS from the same
Tomcat server, a 64-bit operating system and 64-bit Java SE 7 are required.
• Windows 7 (English version) and Linux Ubuntu operating systems are supported.
There is a wide variety of Linux distributions available. The functionality of FMANG
has been tested with the latest Ubuntu 12.04 distribution. Other Linux distributions
may also work but are not officially supported.
• English language version from supported operating system is required.
• Firefox 28 or later
• Google Chrome 33 or later
• Internet Explorer 10 or later
4 Quick guide
This quick guide is addressed to operators and administrators already familiar with the
Apache Tomcat web application.
g Note: The Windows User Access Control (UAC) might prevent the application from
starting. In this case, right-click on the Tomcat Monitor application and run it as an
administrator.
b) Go to Tomcat Manager.
g Note: To upgrade the application, stop and remove the running application from Tomcat
Manager before deploying the new one.
<tomcat-users>
<role rolename="tomcat"></role>
<user username="tomcat" password="tomcat"
roles="tomcat,manager,admin"/>
</tomcat-users>
b) Go to Tomcat Manager.
g Note: To upgrade the application, stop and remove the running application from Tomcat
Manager before deploying the new one.
6 Undeploy the Servlet and JSP Examples from Tomcat Manager for security
reasons.
5 Installation
Purpose
Procedure
Sub-steps
Procedure
2 To start the Tomcat server automatically after a PC restart, set the Service
Startup flag from the Choose Components dialog.
4 Set the user name and password according to your company’s security
policies.
5 Verify that the Java installation path proposed by Tomcat is your actual Java
path.
g Note: Tomcat proposes the default Java installation path. If the actual Java path differs
from the default, Tomcat and the FMA application cannot be started.
After installation
After the installation is completed:
• Apache Tomcat starts automatically if you have selected the option mentioned in
Step 1 (See Choose Components dialog). You should also be able to see the
Monitor Tomcat application in the Windows start menu.
• If you are running the Monitor Tomcat application without administrator privileges, the
Windows User Access Control (UAC) prevents the start of the application. An Access
is denied application system error appears. In this case, right-click on the Tomcat
Monitor application and run it as an administrator. You can start and stop the Tomcat
server from the Tomcat Monitor.
• After Tomcat has been started, increase the Java virtual machine memory
accordingly so that FMANG and FMANS can be used in the same Tomcat instance.
Set the initial memory pool, maximum memory pool and MaxPermSize from the
Tomcat configurator.
Figure 3 Updating Tomcat memory settings for 64-bit Windows
The example is for 64-bit Java. This is a result from the maximum memory pool
(2048MB) and maximum permanent generation memory (MaxPermSize) configured
as 512MB.
See chapter Tomcat server is not starting – not enough memory for Java for
instructions on how to define the memory amount.
In Windows System Properties, select the Advanced tab and then the
Environment Variables. In both User Variables for <user> and System variables,
add a new variable named JAVA_HOME and set as value the path to the JRE 1.7.
for example, C:\Program Files\Java\jdk1.7.0_75.
Purpose
Use the apache-tomcat-7.0.59.zip binary distribution.
The example commands are executed with root privileges. The server runs as a root in
Linux.
Procedure
1 The Apache Tomcat Linux binary distribution is unzipped under the /opt
folder where a tool-specific folder structure is created.
Sub-steps
4 Use the default settings with the exception of the Tomcat user XML
configuration file that requires update of the user name and password
according to your company’s security policies.
Sub-steps
<role rolename="tomcat"/>
<role rolename="manager-gui"/>
<role rolename="manager-script"/>
<role rolename="admin"/>
<tomcat-users>
<role rolename="tomcat"/>
<user username=”tomcat” password=”tomcat” roles=”manager-
gui,manager-script,admin,tomcat”/> </tomcat-users>
6 Verify that the hostname has been defined for the PC.
To verify that the hostname has been defined /etc/hosts.
root@localhost $ more /etc/hostname
fmang2
root@localhost $ more /etc/hosts
127.0.0.1 localhost
127.0.1.1 fmang2
Procedure
Purpose
You need to deploy FMANG through the Tomcat manager. You also need to undeploy
the examples from Tomcat manager due to security reasons.
Procedure
2 Deploy FMANG.
Select the Tomcat Manager link and deploy the FMANG Web Application Archive
(WAR) file.
g Note: In case of Linux installation, the Tomcat installation software also contains
examples. The examples have security vulnerabilities and they must be removed. You
must first stop and then undeploy the Servlet and JSP Examples from Tomcat manager.
Purpose
The corresponding jar file (fmang-cli.jar) is available for both supported operating
systems and is located under the path:
<tomcat installation directory>\webapps\FMANGxx\fmang-cli
Procedure
6 Configuration changes
Purpose
To select an alternative root folder for local data, modify the fma-ng.properties file
in the directory:
<tomcat installation directory>\webapps\FMANGxx\WEB-
INF\classes\..
Procedure
2 Stop FMA, then start FMA again, and finally reload FMA.
g Note: When the application is re-deployed (upgraded), this setting is lost and must be
manually restored if needed.
Purpose
By default, HSQL DB uses the port number 9001. This port is configured in the
application. If the default port number is in use by another application, the application
configuration must change.
To set the alternative database port number, modify the fma-ng.properties file at
the following path:
<tomcat installation directory>\webapps\ FMANGxx\WEB-
INF\classes\ >.
Procedure
2 Add a column and a free port number after the localhost. An alternative port
number is 9101.
Step example
db.jdbc.url=jdbc:hsqldb:hsql://localhost:9101/flexing
Purpose
Use the instructions in this chapter to upgrade FMA in any operating system as the
Tomcat web server home page remains the same.
Before updating and deploying the FMANG application, first stop the application and
then remove it by selecting the Undeploy link. It is important to stop the application in
order to remove it properly.
Procedure
1 Navigate to Tomcat manager, first stop and then undeploy the FMANGxx web
application.
3 Start the Tomcat server again and provide the requested license.
g Note: The default login-shell for non-root users is the fsclish. If a non-root user tries
to connect without having this a default, FMA fails.
9 Troubleshooting
• Write down the problem description and FMANGxx version number. The version and
build can be found from the About dialog of FMA. Mention whether other FMA
applications such as FMANS are being used in the same Tomcat.
• Collect the content of the Tomcat logs folder (/Tomcat/logs) under the Tomcat
installation folder.
• Take screen captures from Tomcat Java memory settings or the content of
setenv.sh file to get the memory configuration for Tomcat.
Procedure
2 Open the server.xml file from the already running Tomcat installation.
3 Compare the shutdown and AJP/1.3 connector ports. If these are the same also
for FMA Tomcat, change the port configuration.
Nokia Solutions and Networks NED documentation uses the Tomcat server. The default
ports set for the FMA Tomcat installation are defined so that it is possible to run NED and
FMA on the same PC.
Alternatively, you can use the Information Browser which uses localhost:9090 so there is
no conflict.
Procedure
1 Check the Tomcat logs and see if there is a log similar to the following:
2013-01-14 09:18:37 Commons Daemon procrun stdout initialized
Error occurred during initialization of VM
Could not reserve enough space for object heap
This indicates that Java Virtual Machine is not able to allocate enough memory for
the Tomcat to start. The memory settings for the Tomcat were defined in figure
Updating the Tomcat memory settings for 64-bit Windows in chapter Installing
Apache Tomcat in Windows. The default settings require 2048 MB + 512 MB
memory.
Procedure
1 Stop the Tomcat server and clean the FMANGxx-related files from the Tomcat
installation folder.
Procedure
1 In order to save the license information properly, stop and start the Tomcat
server from Tomcat Monitor (in Windows) or with the stop and start scripts (in
Linux).
9.2.6 After change of the folder for local data, application cannot
be started
Purpose
Follow these steps if FMANG application cannot be started after the local folder change.
Procedure
4 Change folder again as described in chapter Changing the folder for local data.
10 Glossary
FMA Flexi Maintenance Application