MES Installation Guide
MES Installation Guide
Installation Guide
Version 7.0
December, 2022
aveva.com
© 2015-2023 by AVEVA Group plc or its subsidiaries. All rights reserved.
No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by any
means, mechanical, photocopying, recording, or otherwise, without the prior written permission of AVEVA
Group plc. No liability is assumed with respect to the use of the information contained herein.
Although precaution has been taken in the preparation of this documentation, AVEVA assumes no responsibility
for errors or omissions. The information in this documentation is subject to change without notice and does not
represent a commitment on the part of AVEVA. The software described in this documentation is furnished under
a license agreement. This software may be used or copied only in accordance with the terms of such license
agreement. AVEVA, the AVEVA logo and logotype, OSIsoft, the OSIsoft logo and logotype, ArchestrA, Avantis,
Citect, DYNSIM, eDNA, EYESIM, InBatch, InduSoft, InStep, IntelaTrac, InTouch, Managed PI, OASyS, OSIsoft
Advanced Services, OSIsoft Cloud Services, OSIsoft Connected Services, OSIsoft EDS, PIPEPHASE, PI ACE, PI
Advanced Computing Engine, PI AF SDK, PI API, PI Asset Framework, PI Audit Viewer, PI Builder, PI Cloud
Connect, PI Connectors, PI Data Archive, PI DataLink, PI DataLink Server, PI Developers Club, PI Integrator for
Business Analytics, PI Interfaces, PI JDBC Driver, PI Manual Logger, PI Notifications, PI ODBC Driver, PI OLEDB
Enterprise, PI OLEDB Provider, PI OPC DA Server, PI OPC HDA Server, PI ProcessBook, PI SDK, PI Server, PI
Square, PI System, PI System Access, PI Vision, PI Visualization Suite, PI Web API, PI WebParts, PI Web Services,
PRiSM, PRO/II, PROVISION, ROMeo, RLINK, RtReports, SIM4ME, SimCentral, SimSci, Skelta, SmartGlance, Spiral
Software, WindowMaker, WindowViewer, and Wonderware are trademarks of AVEVA and/or its subsidiaries. All
other brands may be trademarks of their respective owners.
U.S. GOVERNMENT RIGHTS
Use, duplication or disclosure by the U.S. Government is subject to restrictions set forth in the license
agreement with AVEVA Group plc or its subsidiaries and as provided in DFARS 227.7202, DFARS 252.227-7013,
FAR 12-212, FAR 52.227-19, or their successors, as applicable.
Publication date: Wednesday, January 11, 2023
Publication ID: 769606
Contact Information
AVEVA Group plc
High Cross
Madingley Road
Cambridge
CB3 0HB. UK
https://sw.aveva.com/
For information on how to contact sales and customer training, see https://sw.aveva.com/contact.
For information on how to contact technical support, see https://sw.aveva.com/support.
To access the AVEVA Knowledge and Support center, visit https://softwaresupport.aveva.com.
Contents
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 3
Viewing MES Product License Information ........................................................................................... 37
Reserving Licenses When Multiple MES Systems Are Deployed ............................................................ 39
Deactivating MES Product Licenses ...................................................................................................... 40
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 4
Reconfiguring the DB/MW Communication Component If the Common Platform HTTPS Port Number Is
Changed............................................................................................................................................ 80
Addressing MES Middleware Configuration Issues ............................................................................... 80
Adding MSDTC Firewall Exception for Remote MES Middleware to Database Communication .............. 81
Configuring the MSDTC Component Services ....................................................................................... 83
Chapter 13 Running MES Install and Configurator from a Command Line ...... 125
Prerequisite Software ....................................................................................................................... 125
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 5
Command List File ............................................................................................................................. 125
MES Install Command ....................................................................................................................... 126
Install Response File XML Syntax ............................................................................................................. 126
Install Response File Component Entries ................................................................................................. 127
Sample Install Response Files Provided ................................................................................................... 128
Checking Installation Results in the MES Installation Logger File ............................................................ 128
MES Uninstall Command ................................................................................................................... 129
Configurator Command ..................................................................................................................... 129
Configurator Response File XML Syntax and Component Properties ...................................................... 129
MES Component Properties ..................................................................................................................... 130
MES Database Setup Component Properties ....................................................................................... 130
MES DB/MW Communication Component Properties......................................................................... 132
Middleware Proxy Component Properties ........................................................................................... 136
MES Web Portal Component Properties .............................................................................................. 137
MES BI Gateway Reports Component Properties ................................................................................ 138
Licensing Component Properties.......................................................................................................... 139
System Management Server Properties for AVEVA Single Sign-On Service......................................... 139
BI Gateway Components ...................................................................................................................... 140
Template Configurator Response File for MES ........................................................................................ 141
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 6
Chapter 1
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 7
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 1 – Preparing to Install MES
Beginning with MES 2020, the MES Middleware Web API uses AVEVA Identity Manager to authenticate
users. This requires that the MES Security Mode in MES Client be set to either OS Group or OS User and that
the AVEVA System Management Server component in the post-install Configurator be configured.
Other access to the MES middleware for remote users (e.g., using the Stateless API) should be secured
through a VPN connection. It is also recommended that the Windows Firewall be used to limit the users who
are authorized to access the middleware.
Port Changeable?
Component
HTTP HTTPS HTTP HTTPS
MES Middleware Proxy Y N
MES Middleware Web API 80 Y N
443
MES Web Portal N Y
System Management Server N/A N Y
For a list of the firewall ports used by other AVEVA products with which MES works, refer to their
documentation:
License Server and Manager: Enterprise Licensing Guide
System Platform: System Platform Readme and Application Server User Guide
Work Tasks: Work Tasks Administrator Guide
BI Gateway: BI Gateway Installation Guide and BI Gateway Web Configuration Guide
For SQL Server and similar third-party products, refer to the appropriate product documentation.
MES Components
The following topics describe the components that can be installed or added during the MES installation.
Server Components
Database
The MES database is a centralized repository for the MES data.
The Database component also includes the OS Group SID utility, which is used to import Windows Active
Directory group SIDs into the MES database.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 8
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 1 – Preparing to Install MES
To optimize performance on a system that will also be running BI Gateway, the MES database should be
installed on a separate server from the BI Gateway database.
Middleware
The MES middleware:
Enables communication between the client components and the MES database
Allows the node to support executing archive, purge, and restore (APR) jobs for MES database maintenance
Changes shifts
Generates and changes the status of quality samples
Cleans up stale sessions
Runs schedules of Supply Chain Connector
The Middleware component also includes:
The Service Monitor utility, which is used to start, stop, and restart the MES middleware host service from
the Service Monitor icon in the Windows system tray
The MES Web API, which can be used to develop custom applications
The MES Clear Parameter Cache utility, which is used to clear the middleware stored procedure parameter
cache
A License Client API for accessing the License Server
MES Web Portal
MES Web Portal is a web application that provides web-based access to MES.
Client Components
The client components can run on non-server nodes and interact with the server components on the server
nodes.
MES Client
MES Client is used to configure almost all aspects of the MES system, and interact with operational information.
You can:
Configure system utilization states, reason groups, and reason codes
Configure users, user groups, privileges, entity access, and user certifications
Configure languages
Configure physical entities
Configure shift patterns and schedules and assign them to entities
Set up system-wide values such as job states, document types, defaults for file extensions, labor
departments, and labor categories
Configure General Parameters
Configure items, BOMs, operations, and processes
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 9
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 1 – Preparing to Install MES
Configure archive, purge, and restore (APR) jobs for database maintenance
Configure quality specifications, sample plans, and characteristics
Create and manage work orders and jobs
Set up data collection
Store customer information and processing sales orders
For more information, see the MES Client User Guide or online help.
Application Objects
The Application Objects components include:
The Operations Capability Object (OCO), which extends the System Platform IDE equipment model to trigger
production events and log associated production data in the MES database.
The Utilization Capability Object (UCO), which extends the System Platform IDE equipment model to
monitor machine performance.
The Sample Recording Object (SRO), which extends the System Platform IDE equipment model to monitor
quality samples for an entity.
For more information about these objects, see Application Objects on page 11.
Entity Model Builder
Entity Model Builder is a System Platform IDE extension. Therefore, the System Platform IDE must be installed
before attempting to install Entity Model Builder.
You can use Entity Model Builder to perform the following tasks:
Creating entities from your System Platform equipment model that use the UCO for configuring
utilization/OEE support, the OCO for configuring production related entity support, and/or the SRO for
capturing quality data.
Exporting the existing System Platform users and roles to MES to create corresponding MES users and
groups.
If you install Entity Model Builder, you must also install the MES Application Objects component and import at
least one of these objects into a System Platform galaxy. Running Entity Model Builder without having an MES
application object installed and imported is not a supported scenario.
For more information, see the MES Entity Model Builder User Guide.
Supervisor
Note: MES Supervisor will be removed in a future release.
You can use MES Supervisor to manage:
Inventory
Storage entities
Supply Chain Connector import and export schedules
For more information, see the MES Supervisor User Guide or the MES Help online help.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 10
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 1 – Preparing to Install MES
Note: MES Supervisor is not selected by default for installation. It must be manually selected using the Custom
Installation option during the installation process.
Data Editor
Note: MES Data Editor will be removed in a future release.
You can use MES Data Editor to filter, insert, and modify historical data from the MES database, such as:
Item production and consumption
Labor use and entity use
Step data
Lot information
For more information, see the MES Data Editor User Guide or the MES Help online help.
Operator
You can use MES Operator to control processes as an operator on the factory floor, such as:
Executing jobs
Claiming produced quantities and reporting consumption
Entering data for steps, specifications, and the data logger
Capturing machine utilization and labor data
For more information, see the MES Operator User Guide or the MES Help online help.
.NET Controls
The .NET controls are part of the client components’ user interface. You can use these controls as building blocks
for System Platform graphical interfaces and Operations Management Interfaces (OMI).
When the .NET Controls component is installed, the .NET control files and the MESControls.aaPKG file are
installed in the <MES program files path>\Wonderware\MES\Controls folder. The MESControls.aaPKG file,
which contains all of the DLLs, can be imported into the System Platform IDE. The MES Controls folder can be
imported as an OMI app.
Middleware Proxy
The MES middleware proxy is required by client components installed on remote nodes to access the MES
middleware service. These include, for example, nodes that have an application object (that is, a OCO, UCO, or
SRO) deployed on them.
Application Objects
Operations Capability Object (OCO)
The OCO extends the System Platform IDE equipment model to trigger production events and log associated
production data in the MES database.
Once you have deployed the OCO, you can:
Create jobs running on the entity
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 11
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 1 – Preparing to Install MES
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 12
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 1 – Preparing to Install MES
Note: During the installation, selecting the Report Server role option will install only the MES BI Gateway
Reports component. To install the BI Gateway Server, BI Gateway Model Builder, and BI Gateway Data Adapters
components as part of the MES installation, you have to choose the Customize Installation option in the Setup
tool and then manually select these components.
For information about using the MES BI Gateway Reports, see the MES BI Gateway Reports User Guide.
PDF Documentation
The PDF Documentation component installs the MES user documentation PDFs and online help files.
MES Deployment Guide
Provides guidance on deploying a MES solution.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 13
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 1 – Preparing to Install MES
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 14
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 1 – Preparing to Install MES
The License Server and Manager. The licensing components must be installed so that MES product licenses
can be added to the system.
AVEVA Single Sign-On. The AVEVA Single Sign-On service provides secure access to MES when using MES
Web Portal or the MES Web API in custom applications.
It is possible that these components have already been installed in the system. However, if they are not
installed, then they can be selected during the MES installation using the custom installation feature.
In addition to these two licensing components, there is also a Licensing API that is automatically installed when
the MES Middleware or Web Portal components are installed. The licensing API can also be installed during an
MES command line (silent) installation by specifying LicAPI32 in the response file.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 15
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 1 – Preparing to Install MES
Note that more than one role can be selected for installation on a node, to support nodes that will be running a
number of MES clients or services. Although the MES installation software includes a limited version of BI
Gateway Server, none of the MES roles will install BI Gateway. During the installation, you have to select the
customize option to manually select the BI Gateway components.
It is recommended that you identify the appropriate role for each node before starting the installation. For
information about planning what components to install on the MES nodes, see the MES Deployment Guide.
The following roles are available for selection. Note that all roles include the entire library of MES user
documentation by default.
Database Server with MES
Select this role to install the MES database on the node.
This role includes the following components:
MES Database
MES Middleware
MES Middleware Proxy
To optimize performance on a system that will also be running BI Gateway, the MES database should be
installed on a separate server from the BI Gateway database.
Operator Client
Select this role if production operators, application objects, or third-party applications will be using the node to
record production, utilization, or quality management data.
This role includes the following components:
MES Operator
MES .NET controls
MES Development Library (API DLLs)
MES Middleware Proxy
Web Portal
Select this role to install the MES Web Portal web application on the node.
This role includes the following components:
MES Web Portal
MES Middleware Proxy
Report Server
Select this role to install support for deploying MES BI Gateway Reports.
This role includes the following component:
MES BI Gateway Reports
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 16
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 1 – Preparing to Install MES
If you want to deploy MES BI Gateway Reports but BI Gateway has not been installed on the network, you can
customize the installation to include the BI Gateway Server, BI Gateway Model Builder, and BI Gateway Data
Adapters.
MES Middleware/DB Maintenance Server
Select this role to install the MES middleware service on the node, or to support executing
Archive/Purge/Restore jobs to maintain the MES database.
This role includes the following components:
MES Middleware
License Client API for accessing the License Server
MES Middleware Proxy
To distribute the client load, a system can have multiple MES Middleware components installed. All
five-equipment licenses include two MES Middleware components. All larger equipment licenses include six MES
Middleware components. Additional MES Middleware components can be purchased separately. Dedicated MES
Middleware components are recommended for enterprise integration, MES Application object/scripting servers,
Work Tasks .NET workflow integration, and nodes making heavy use of the MES API through custom
applications.
Configuration Client
Select this role if MES administrators, supervisors, or developers will be performing configuration or supervisory
tasks from the node.
This role includes the following components:
MES Client
MES Data Editor
MES Middleware Proxy
System Platform Development
Select this role if MES developers will be using System Platform and MES application objects to develop or run
MES applications on the node.
This role includes the following components:
Application Objects (OCO, SRO, UCO)
MES .NET Controls
MES Entity Model Builder
MES Development Library (API DLLs)
MES Middleware Proxy
.NET Development
Select this role if MES developers will be using .NET Controls to develop or run custom MES applications on the
node.
This role includes the following components:
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 17
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 1 – Preparing to Install MES
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 18
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 1 – Preparing to Install MES
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 19
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 1 – Preparing to Install MES
Install any MES licenses on the license server. See Activating the MES Product Licenses on page 32. (Trial
licenses have to be installed on both cluster nodes.)
Install only the MES server components on both cluster nodes.
Start the MES middleware service on the host node.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 20
Chapter 2
To prepare for upgrading MES to the latest version, you need to be aware of the upgrade requirements and
information about migrating the MES database.
Upgrade Requirements
Observe the following requirements when upgrading MES:
You cannot upgrade to the current version of MES from a version older than 3.5. To upgrade from a version
older than 3.5 to the current version, you must first uninstall the previous version, and then install the new
version.
If you are upgrading from version 3.5 or older, it is recommended that you change all passwords, since the
encryption scheme used in the older versions is not as secure as the newer encryption scheme.
If your organization is using MES with System Platform, System Platform 2023 is required. If the system has a
previous version installed, it must be upgraded to System Platform 2023 prior to installing MES.
If your organization is using MES .NET controls in System Platform, you have to first remove the previous
version of the MES .NET controls before upgrading to the current version of the controls. For the procedure,
see Upgrading MES .NET Controls for AVEVA InTouch HMI Applications on page 143.
Any deployed System Platform client controls using MES (for example, MES application objects, API
scripting, .NET controls) should be undeployed from the node prior to upgrading.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 21
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 2 – Preparing to Upgrade MES
Migration of MES databases from version 4.0 and later is supported. If you are migrating from versions
earlier than version 4.0, it is recommended to first migrate the database to version 4.0.
Another option is to record the contents of the FactIntelligence.cfg file prior to the upgrade and then use
that information to configure the new database in the post-install Configurator application (the database
connection information will not be automatically populated in Configurator). You can see the settings to
record by running the MES Database Connection String Editor on the old MES version.
Custom modifications to any version of the MES database might not be supported by the post-install
Configurator and might prevent migration. For more information on migrating an existing MES database, see
the procedure in Migrating or Overwriting an Existing MES Database on page 54.
If you are migrating an MES database from a release prior to version 5.0, it will not have index optimization
that was available starting with the version 5.0. To apply this index optimization to the migrated MES
database, see MES Database Index Optimization Script on page 60.
If you are migrating an MES database from version 5.3 or earlier, the migration of the utilization table
structure to the new structure can take a long time. A rough estimate is provided prior to migrating it. As a
precaution, all the original data remains in the database in tables labeled tablename_deprecated. Once you
are satisfied that the migration was successful, these tables can be deleted.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 22
Chapter 3
Installing MES
Note: If a version of the License Server and License Manager prior to 3.5 is listed to be updated, it might
not install properly. Refer to step 11 for more information. Note that the License applications might be
identified as AVEVA or Schneider Electric products.
3. Click OK to close the messages.
If the required release of .NET Framework is not installed, you are prompted to install it.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 23
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 3 – Installing MES
Click Yes to install the required release of .NET Framework. At the conclusion of the .NET Framework
installation, you might be prompted to restart the system. If so, restart the system and then rerun the MES
Setup tool to continue with the MES installation.
Otherwise, the Setup tool opens and the Welcome to MES Setup message appears.
4. Click Next.
The End User License Agreement (EULA) appears.
5. Use the options to read the general EULA content and the specific schedules for each of the software
components available in the installation software.
You can use the controls above the license agreement box to print the agreement or adjust how it is
displayed.
6. To continue with the installation, select the I have read and accept the terms ... option, then click Agree.
If you are upgrading MES and any MES applications are running, you are prompted to close them.
The roles by which the MES components are grouped appears. Information about the highlighted role
appears in the description box on the right. For more information about these roles and which products and
components are installed with them, refer to MES Role-Based Installation on page 15.
7. Select the roles whose products and components you want to install on the local node and click Next.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 24
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 3 – Installing MES
8. Do one of the following, depending on whether you want to customize which products and components will
be installed or change the destination install folder:
To install the default sets of products and components for the roles you selected and use the default
install destination folder (C:\Program Files (x86)), leave the Customize Installation check box cleared
and click Next.
A list of the prerequisite software that must be installed on the node prior to performing the MES
installation appears. Go to step 11.
To customize the sets of products and components for the roles you selected, or to change the install
destination folder, select the Customize Installation check box and click Next.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 25
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 3 – Installing MES
The list of products and components appears. The products and components are selected based on the
roles selected in step 7. Information about the selected component appears in the description box on
the right. Go to step 9.
Note: To install the following components as part of the MES installation, you have to choose the Customize
Installation option and then manually select the components: License Server and Manager components;
MES Supervisor; BI Gateway components.
Note: To install the Quality Characteristic Detail report's SPC Chart control, the MES BI Gateway Reports
component must be installed and configured on the same node as the BI Gateway Datastore and SQL Server
Reporting Services (SSRS).
9. To change the install destination folder, click the Browse button and then navigate to and select the desired
folder.
10. To change the products or components to be installed, select the check boxes of only those products or
components that you want to install and click Next.
Note the following:
o If any prerequisite software cannot be installed by the MES installation, it will be identified in a message.
Install this software before proceeding.
o If you are using MES with System Platform, System Platform 2023 or later is required. You will be
prompted to install the Application Server component of System Platform 2023 or later if you selected
the Entity Model Builder.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 26
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 3 – Installing MES
MES is ready to be installed. A list of the products and components that will be installed appears. Also, any
prerequisite software that the MES installation can install is listed under Prerequisites:.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 27
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 3 – Installing MES
When the installation is finished, you are prompted to configure products and components that require
configuration before they can be used.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 28
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 3 – Installing MES
Initially, it is possible that not all of the components on which MES is dependent will appear in the
Configurator or will be available to be configured. For this reason, close the Configurator. The necessary
components will appear properly the next time you open the Configurator. However, before using the
Configurator to configure the MES components, see the instructions below in "Next Steps."
Next Steps: Activating the MES Product Licenses and Configuring AVEVA Single Sign-on
Before configuring the MES components in the post-install Configurator:
The MES product licenses must be activated so that the MES middleware can be started. See Activating the
Product Licenses on page 34.
If the Single Sign-on Service was installed as part of the MES installation, its component in the Configurator,
System Management Server, has to be configured. See Implementing Secure Communication with System
Management Server on page 47.
MES Service Monitor
If the MES Middleware component was installed on the node, the MES Service Monitor is installed and its icon
(shown below) is added to the system tray.
The Service Monitor allows users to start, stop, and restart the MES middleware host. For more information, see
MES Service Monitor on page 123.
MES Shortcuts in the Startup Menu
On the Start screen, MES application shortcuts will appear in the Manufacturing Execution System group. MES
user documentation shortcuts will appear in the AVEVA Documentation group. If you do not see these groups in
the Start screen, they should appear after restarting the node.
Recovering from the License Manager Installation Error
1. If the post-install Configurator application is open at the conclusion of the MES installation, close it.
2. Reboot the system.
3. Do one of the following:
In the Control Panel Programs and Features applet, select Manufacturing Execution System and click
Change or Uninstall/Change on the toolbar.
Run the Setup.exe file in the MES installation root folder.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 29
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 3 – Installing MES
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 30
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 3 – Installing MES
6. Click Next.
7. When you are prompted that the Licensing features are currently installed and will be upgraded, click OK to
proceed with their installation.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 31
Chapter 4
The MES product licenses must be activated before configuring the MES components with the post-install
Configurator application so that the MES services can be started.
The product license files would have been emailed once an order was placed for the MES product.
To activate the MES product licenses
1. If the License Server has not already been configured, use the post-install Configurator tool to configure it.
See Configuring the License Server Component on page 33.
2. Use the License Manager to activate your MES product licenses. See Activating the Product Licenses on page
34.
With License Manager, you can also:
View the MES product license usage.
For an environment in which there are multiple MES systems running and using the same License Manager
Server (for example, separate test and production systems), you can reserve licenses for a specific MES
server.
Deactivate MES product licenses.
The following topics cover general information for performing these tasks. For more detailed information about
using the License Manager, see the License Manager Guide and the online help.
For more information on licensing requirements for MES, contact your distributor.
BI Gateway Product Licensing
The BI Gateway product uses the Licensing component and activation.
If using BI Gateway for the MES Reporting content and for additional functionality, follow the licensing
guidelines provided by the BI Gateway documentation.
If BI Gateway is only being used as the reporting database for MES BI Gateway Reports, then the BI Gateway
Service does not require a license to be activated. The reporting solution only allows a connection to the
MES reporting source. In this scenario, BI Gateway can work with one deployed data source only—the MES
reporting database.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 32
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 4 – Activating the MES Product Licenses
3. Enter the server name of the node and click the Test Connection button to verify connectivity to the server.
4. If the test was successful, click the Configure button.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 33
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 4 – Activating the MES Product Licenses
If the License Server was properly configured, a success message appears in the Configuration Messages
box. Also, the License Server status indicator changes to a green check mark.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 34
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 4 – Activating the MES Product Licenses
The license file would have been emailed once an order was placed for the MES product.
The license appears in the license grid.
5. Browse to and add any other MES product licenses to be activated.
6. Select the check boxes for the MES product licenses and click Activate.
The dialog closes and the licenses are listed on the License Summary tab.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 35
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 4 – Activating the MES Product Licenses
4. The middleware requests all entity counts by a name built from the MES database server name and MES
database name.
Note: When entering the server name during MES middleware configuration, use either the host name or IP
address. Be consistent in this when configuring MES middleware on different nodes, as the system will not
know that a host name and IP address point to the same server. See Specifying the MES Production
Database Connection String. If you enter localhost, it will be converted to the local server name when
building the database connection string.
For example, it might request 20 Operations entities, 10 Performance entities, 5 Quality entities, 35
Production entities, and 205 Storage entities (Inventory).
Note that the name can be altered to remove any characters that are not allowed in the naming of Windows
files and directories, since the License Server uses the name to create a directory on the server itself.
o If any counts cannot be acquired, the middleware reports warnings but still starts.
o If another MES middleware already has these licenses but by a different name, there will be an error
and the middleware will not start.
o If another MES middleware already has these licenses using the same name (that is, both are configured
against the same database Server/database name), then the middleware will start with the same counts
as the already running middleware.
5. If using Enterprise Integration, the Enterprise Integration service first attempts to acquire the professional
feature and then the standard feature. Either feature enables MES Supply Chain Connector functionality
During Run Time
During run time, the middleware validates its connection to the License Server every hour. If it fails to
contact the License Server, warnings are logged but all calls will continue to be executed.
Note: Do not attempt to restart the middleware without a connection to the License Server as the middleware
will not start.
If a license expires, the middleware will log a warning within one day of expiration and then every day for
two weeks before no longer allowing calls to pass through.
When a middleware shuts down, it releases the Middleware count feature. If it is the last middleware to
shut down (that is, no other middleware features are in the acquired state), then the middleware also
releases the Operations, Performance, Quality, Production, and Inventory features. This behavior is relevant
only if the middleware is sharing licenses with other MES middleware instances. Note that sharing means
that the various middleware instances are configured to use the same database server node and database.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 36
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 4 – Activating the MES Product Licenses
The Usage Summary tab shows the combined count of a specific feature. In this example, the license server has
a 1000-equipment count license for Operations, Performance, and Quality. Each of these provide 6 middleware
counts for a total of 18. They each also provide a total count of 10,000 production entities that can run jobs. The
Operations license provides for a total of 20,000 inventory entities. In this example, there are no licenses
reserved, 1 MES Middleware license in use, and all functional entities acquired.
Detail Information on the License Details Panel
You can view details about a product license, such as the quantities available for each feature included in the
license, from the License Summary tab.
1. On the License Summary tab, select the check box of the product license.
2. Click Details.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 37
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 4 – Activating the MES Product Licenses
You can also view details about MES product license feature usage on the License Manager Usage Details tab.
The features that are available from the activated product licenses are listed. Included in the information is to
what device they are currently assigned and the In Use/Total counts.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 38
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 4 – Activating the MES Product Licenses
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 39
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 4 – Activating the MES Product Licenses
2. In the Device Name field, enter the device name as the MES server name and the MES database name with
an underscore (_) character between them.
The server name cannot contain any special characters that are not allowed in the naming of Windows files
and directories.
3. For each feature to be reserved for this device, select the feature and enter the count to be reserved In the
Count column.
4. Click Add.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 40
Chapter 5
MES configuration is performed by configuring the MES components in the post-install Configurator application.
The topics in this section:
Describe the Configurator
Explain how to specify SQL Server user authentication in Configurator, which is required for several of the
MES components
Explain closing Configurator and whether the node needs to be restarted to complete the configuration
Discuss post-configuration tasks
Details about how to configure the MES components are described in the following sections. The sections are in
the recommended order for configuring them.
Implementing Secure Communication with System Management Server on page 47
Creating or Migrating MES Databases on page 51
Configuring MES Middleware Communication with MES Databases on page 62
Configuring the MES Middleware Proxy on page 86
Configuring MES Web Portal on page 92
Configuring and Deploying MES BI Gateway Reports on page 102
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 41
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 5 – Configuring MES Components
Launch the Configurator application file from Windows Explorer. The default path is:
C:\Program Files (x86)\Common Files\ArchestrA\Configurator.exe
Product Tree
The post-install Configurator includes a product tree that lists the components for each of the products that
require post-installation configuration.
If Configurator has been launched from the Configure button on the last page of the MES Setup tool, then only
the MES-related components are listed in the product tree. Otherwise, all products and components that can be
configured are listed.
The MES components are listed in the order in which they are recommended to be configured. This starts with
creating or migrating the MES database, configuring the MES middleware and security settings to access the
MES database, and finishing with the Middleware Proxy, Web Portal, and BI Gateway Reports components.
Configuration Status
The status of each product or feature configuration is indicated by the following icons.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 42
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 5 – Configuring MES Components
Configuration Messages
As you perform configuration tasks, messages appear in the Configuration Messages box. Messages indicating
errors are highlighted in red.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 43
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 5 – Configuring MES Components
To save the list of messages in the Configurator Messages Lists window to a text file
Click the Export to file button.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 44
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 5 – Configuring MES Components
To use SQL Server Authentication, clear the the Use Windows integrated security option. Enter the
appropriate SQL Server Authentication user name and password.
If using this option, make sure that the SQL user account has been created. If the user account is being used
to access the MES production or restore database, make sure that it is assigned the appropriate database
roles. See Manually Adding a SQL Server Login for the Middleware Service on page 64.
Closing Configurator
After completing the configuration tasks in Configurator, you can close it. Depending on what components were
configured, you might have to restart the node to finalize the configuration and start the required services at
startup.
To close Configurator
1. Click the Close button.
If configured components require a node restart, you are prompted to restart the computer.
2. Click one of the buttons to restart the node now or later.
If you click the Restart Later button, you will have to restart the node before attempting to use MES on it.
Post-Configuration Tasks
After you have configured the MES components, depending on which components were installed and
configured you might have to perform the following tasks:
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 45
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 5 – Configuring MES Components
If the Application Objects component was installed, you will have to import the updated objects into the
System Platform IDE. For more information, refer to the object guides.
If the Development Library was installed and a previous version of the MES Client API script libraries was on
the Application Server, you will have to upgrade them. See Upgrading the MES Client API Script Libraries on
page 142.
If the MES .NET Controls component was installed and a previous version of them was being used in the
System Platform IDE, you will have to upgrade them in the System Platform IDE. See Upgrading MES .NET
Controls for AVEVA InTouch HMI Applications on page 143.
If MES BI Gateway Reports were installed, they must be deployed. See Configuring and Deploying MES BI
Gateway Reports on page 102.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 46
Chapter 6
Security measures for System Platform network topology are enabled through the System Management Server
and the AVEVA Identity Manager (AIM). These measures include secure encrypted communications between
nodes, AVEVA Single Sign On (SSO), and certificate management. The System Management Server stores shared
security certificates and establishes a trust relationship between nodes in the System Platform network
topology. These security components together make up the common platform security measures.
If not already installed as part of a System Platform installation, System Manager Server and AIM are installed
when any of the following MES components are installed: MES Middleware, MES Middleware Proxy, and MES
Web Portal.
To implement secure communication with the MES middleware and for user authentication with the MES Web
API, the System Management Server must be configured prior to configuring the MES components in the
post-install Configurator. If MES is being upgraded, then the MES components must be reconfigured to
implement the latest security measures. In addition, all MES nodes on the network must be able to
communicate with the System Management Server.
Note: MES does not support Azure AD in the System Platform configuration of System Manager Server.
There should only be a single System Management Server in your System Platform network topology (additional
redundant single sign-on servers can be configured). However, each node in the network has a System
Management Server component that must be configured using the post-install Configurator.
Note: System Management Server's Redundant Single-Sign On capability is not supported by the MES
middleware or MES Web Portal.
The System Management Server component settings include:
Specifying whether the System Management Server is on the local node or a remote node.
If on the local node, specifying the HTTPS port for the System Management server. This port number also
serves as the HTTPS port number for the local node's common platform communication over web ports.
If on a remote node, specifying the HTTPS port used by the local node for common platform communication
over web ports. Generally, this will be the same as the HTTPS port number for the System Management
Server, but it could be different.
For complete information about configuring System Management Server, refer to the topic "System
Management Server Configuration" in the System Platform Installation Guide.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 47
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 6 – Implementing Secure Communication with System Management Server
The procedures for configuring the MES components will refer to the System Management Server settings as
needed.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 48
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 6 – Implementing Secure Communication with System Management Server
If the System Management Server is on a remote node, they are shown on this tab but cannot be edited.
They can only be changed from the remote node.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 49
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 6 – Implementing Secure Communication with System Management Server
Client Secret
A secret, or password, for the client ID.
User Name (domain\user) and Password
A user name and password that has login access to AIM.
After completing entries to these prompts, the client ID registration is performed and you should see a
message indicating that the client has been registered successfully. This client ID and client secret can now
be used by client applications to obtain AIM access tokens.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 50
Chapter 7
The first step in configuring a new MES system is to create the MES database. This step requires a SQL Server
database server to be available on the network or local node. A Windows or SQL Server user account with access
to the server and rights to create a database must be known to successfully configure the Database Setup
component.
The MES Database Setup component settings in the Configurator allow you to:
Create the MES production database, and optionally a restore database, for a new installation
Migrate an existing MES database to the current MES version
Dump the MES database scripts to disk, so they can be customized and used to create a custom MES
database
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 51
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 7 – Creating or Migrating MES Databases
The initial MES Database Setup component settings and controls are shown in the following figure.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 52
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 7 – Creating or Migrating MES Databases
If the validation is successful and the named database does not exist, the New Database settings appear.
If the named database exists but is not an MES database, an error message appears.
4. Optionally, to set the path, initial size, or percentage growth of either the MES database's data file or log file,
click the Advanced settings title to expand the settings.
Path
The path of the data or log file.
Initial Size
The initial size, in MB, of the data or log file.
Percent Growth
The percent by which to limit the percent growth of the data or log file.
When you have completed validating the SQL Server connection and optionally entering any advanced
database settings, you are ready to create the MES database.
5. Click Configure.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 53
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 7 – Creating or Migrating MES Databases
The SQL scripts that create the database run. A message appears, asking to wait while the database
configuration is performed.
Progress information and any errors, if they occur, appear in the Configuration Messages box.
If the database creation completes successfully, a success message appears in the Configuration Messages
box. Also, the MES Database Setup status indicator changes to a green check mark.
If errors are encountered, check the Operations Control Management Console Log Viewer for details. To
enable additional details, enable the Log Script Execution log flag in the Log Viewer and run the Configure
operation again.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 54
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 7 – Creating or Migrating MES Databases
As part of the validation, as estimate is calculated for how long upgrading the existing database will take. If
the estimate is more than 10 minutes, the estimated time is displayed in a message box.
If the specified database is not found, then the settings for creating a new database appear. Try entering the
correct name for the existing database and clicking the Validate button again.
4. Do one of the following:
To migrate the existing database to the new release, select the Overwrite and Migrate data options.
Then go to step 6.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 55
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 7 – Creating or Migrating MES Databases
To overwrite the existing database with a new MES database, select the Overwrite option but clear the
Migrate data option. Then go to step 5.
When the Overwrite option is selected and the Migrate data option is cleared, the Advanced settings
title appears with the settings collapsed.
To keep the existing database and not run the Database Setup configuration, select the Keep option.
Note: If you choose to overwrite or migrate the existing MES database, it is strongly recommended that you
back up the existing database before proceeding in case you need to recover its content. You can back up
the database from SQL Server Management Studio.
5. Optionally, to set the path, initial size, or percentage growth of either the new MES database's data file or
log file, click the Advanced settings title to expand the settings and enter them. Then go to step 7.
Path
The path of the data or log file.
Initial Size
The initial size, in MB, of the data or log file.
Percent growth
The percent by which to limit the percent growth of the data or log file.
6. If the existing MES database that you are migrating has the system parameters for recording distinct
production records set but instead you want to aggregate these records into hourly records and disable
distinct production records, select the Aggregate existing item production records option.
If the existing MES database already has the system parameters for recording distinct production records set
to False, then the setting of this option has no effect.
It is recommended to aggregate production records into hourly buckets, as this will improve the overall
system performance for recording production and reporting on production data. In versions prior to MES
version 4.5, recording distinct production records was required for reporting hourly KPIs, but this is no
longer the case. You might still want distinct production records for other reasons, in which case do not
select this option.
7. To migrate or overwrite the existing MES database, click Configure.
CAUTION: While the database is being migrated from a prior version, the Configurator application cannot be
closed or switched to a different component's configuration. If the Configurator application is stopped
prematurely (such as closing the application or shutting down the computer), the MES database will be in an
inconsistent state and might not function correctly.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 56
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 7 – Creating or Migrating MES Databases
The SQL scripts that migrate or create the database run. A message appears, asking to wait while the
database configuration is performed.
Progress information and any error messages appear in the Configuration Messages box.
If the database migration or creation completes successfully, a success message appears in the
Configuration Messages box. Also, the MES Database Setup status indicator changes to a green check mark.
During migration, if the database is configured to use OS Group security and does not already have the OS
Group SIDs in the MES database, the configure operation will attempt to create them. If the domain is not
available, then use the OS Group SID Utility to update them later when the domain is available. See Importing
Windows Active Directory Group SIDs into the MES Database.
If migrating from MES 2014 R3 (version 5.3) or earlier, the migration process creates new tables for tracking
utilization data and moves the existing data into these new tables. The original tables still remain in the
database but have been renamed to util_log_deprecated, job_util_log_link_deprecated, and
tpm_stat_deprecated. These deprecated tables can be deleted once the migration is deemed to have completed
successfully. New views are created with the original table names of util_log, job_util_log_link, and tpm_stat to
ensure any existing queries or reports continue to function after migration.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 57
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 7 – Creating or Migrating MES Databases
The database scripts are dumped to the folder FactDBResources\v.v.v, where v.v.v is the MES version (for
example, 5.03.0001). This folder is located in the installed MES Database folder, whose default path is
C:\Program Files (x86)\Wonderware\MES\Database.
Also, the button label changes to Overwrite Scripts on Disk. Clicking this button causes the scripts in the
FactDbResources folder to be overwritten with the default scripts.
To create a customized MES database using modified database scripts
1. Modify the scripts as needed.
2. In the MES Database Setup component settings, enter the server and database names and then click the
Validate button.
The Configurator checks for access to SQL Server and the existence of the specified database to see if the
database will be created or migrated.
3. If the validation is successful, complete the necessary database settings.
For details, see either Creating an MES Database on page 51 or Migrating or Overwriting an Existing MES
Database on page 54.
4. Click the Configure button to create the customized database.
Script modifications that result in an error will be logged as the script is executed.
Restoring the Default Database Scripts
Whenever you configure the MES Database Setup component after dumping the scripts, the component
configuration always uses the scripts in the FactDBResources\v.v.v folder to create the database. If needed, you
can overwrite the modified scripts with the default unmodified scripts to create a standard MES database. Or
you can delete the FactDBResources\v.v.v folder and configure the Database Setup component to create or
migrate the database.
To restore the default unmodified database scripts
In the MES Database Setup configuration settings, click the Overwrite Scripts on Disk button.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 58
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 7 – Creating or Migrating MES Databases
2. Click Start.
The SID import progress appears. During the import process, the Start button becomes a Stop button to
allow you to stop the import. The utility will retrieve only the SIDs for any group that does not have a SID in
the database. This might happen so quickly that you cannot detect the button label transitioning from Start
to Stop and back to Start.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 59
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 7 – Creating or Migrating MES Databases
When the import is complete, the completion status appears in the window.
3. Check the status messages to see if any groups have errors. These errors will have to be addressed and the
utility run again to correct the errors.
4. Click the window's Close button to close the utility.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 60
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 7 – Creating or Migrating MES Databases
Added
Changed
Read
Deleted or moved to offline storage (and thus in conjunction with the how frequently data is added, how big
various tables can become)
So actual statistics about the usage of the database should drive the choice of indexes.
Be careful to collect statistics during a wide enough period of time so that the results are representative of the
way the system operates as a whole. Traffic at a shift change, for example, might be very different from that in
the middle of a shift. Also, be sure to catch the generation of any large sets of periodically-generated reports.
Monitoring system activity should be an ongoing database administration task. As the system grows and its
usage changes over time, new statistics should be obtained and indexes should be re-examined.
Additional Assistance
There are automated tools available to help you find missing indexes that ought to be added, as well as
identifying unused indexes that can be dropped. A web search on "SQL Server index optimization" will result in
numerous links to such tools.
You can also consult web resources for SQL Server database maintenance for specific information about those
databases. For more information, see the Microsoft SQL Server web site.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 61
Chapter 8
The DB/MW Communication component is used to create the database connection strings that the MES
middleware service uses to access MES databases. In addition:
It is used to create a firewall inbound rule exception to allow the MES middleware proxies to communicate
securely with the MES middleware.
It is used to register the MES middleware with the AVEVA Identity Manager (AIM) for the MES Web API
authentication.
It can also be used to assign the minimal SQL permissions required to access and query an MES database to
the MES middleware service's Windows user account. Otherwise, the SQL permissions have to be assigned
manually.
If the MES middleware and the MES database are on separate nodes, the Microsoft Distributed Transaction
Coordinator service (MSDTC) must be added to the Windows Firewall exception list on both nodes to allow them
to communicate.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 62
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 8 – Configuring MES Middleware Communication with MES Databases
The Security, AVEVA Identity Manager, and Production tabs, and optionally the Restore tab if the Enable
Restore Database option is selected, need to be completed before clicking the Configure button to configure
the component. The order in which they are completed does not matter. The next few topics describe the
Production and Restore tabs first, and then the Security and AVEVA Identity Manager tabs.
Database connection string information is entered on the Production and Restore tabs.
The MES middleware service's Windows user account is shown on the Security tab. If this user account will
be used to access the MES database using Windows integrated security, then the option to automatically
create a SQL Server login for that account is also provided on this tab.
The AVEVA Identity Manager client registration information for the MES middleware on this node is entered
on the AVEVA Identity Manager tab.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 63
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 8 – Configuring MES Middleware Communication with MES Databases
Unless Workgroups is being used to manage user accounts and the middleware is on a different node than the
MES database, the MES middleware service can use Windows integrated security to access the MES database. If
this approach is chosen, the MES DB/MW Communications component Security tab includes an option to
automatically add the middleware service Windows user account as a SQL Server login when the MES DB/MW
Communications component is configured.
If Windows integrated security is not or cannot be used, then the middleware service must use an existing SQL
Server login with the appropriate access to the MES database. See Manually Adding a SQL Server Login for the
Middleware Service on page 64.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 64
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 8 – Configuring MES Middleware Communication with MES Databases
3. In the Object Explorer window, create a SQL Server login by right-clicking Logins under Security and then
clicking New Login.
4. In the General settings, select SQL Server authentication, enter the login name and password, and clear
Enforce password policy.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 65
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 8 – Configuring MES Middleware Communication with MES Databases
5. In the Server Roles settings, assign the MES middleware service login only the Public server role, as shown
below.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 66
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 8 – Configuring MES Middleware Communication with MES Databases
6. In the User Mappings settings, select the MES database and any other database to which the MES
middleware service requires access, as shown below.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 67
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 8 – Configuring MES Middleware Communication with MES Databases
10. Select the Grant check box for each of the required database roles: Alter, Connect, Delete, Execute, Insert,
Select, and Update.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 68
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 8 – Configuring MES Middleware Communication with MES Databases
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 69
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 8 – Configuring MES Middleware Communication with MES Databases
Database Name
The name of the MES production database.
If this is a new installation and the connection string has not been created yet, the name defaults to MESDB.
If the connection string has been previously created or the database was migrated from a previous release,
the actual database name appears.
2. Specify the user account that the MES middleware service will use to access the MES production database.
If the Use Windows integrated security option is selected, then the MES middleware will use the MES
Middleware Host user account that appears on the Security tab. Otherwise, the MES middleware will use
the SQL Server login entered here.
When using SQL Server credentials, the login entered here must have appropriate rights and access to the
MES database. This configuration component will not grant privileges to a SQL Server login. See Manually
Adding a SQL Server Login for the Middleware Service on page 64.
For more information about entering a user account, see Specifying SQL Server User Authentication on page
45.
3. (Optional) Configure the connection string's Advanced Settings.
The advanced settings allow you to set properties that affect the database connection behavior, such as
tuning the connection to your environment or setting up database mirroring. For example, entering Connect
Timeout=300 would cause the connection to attempt to connect to the database for up to 300 seconds.
For a list of the SQL database connection properties that can be set, see the SqlConnectionStringBuilder
Class topic in the Microsoft online documentation.
Any advanced settings will be appended to the database connection string.
4. Click the Validate button.
The system checks the database connection using the entered settings. It also returns the Preferred MW
Host and the Default Time Zone settings that are currently set in the MES database. When the Database
Setup component is configured, the time zone is set to the local time zone of the server where the MES
database is installed.
5. (Optional) If multiple MES middleware hosts are running in a multi-node environment, select the Preferred
MW Host: Set to current middleware host check box to specify the local middleware host as the preferred
middleware host for the MES system.
The preferred MES middleware host handles all scheduled tasks, such as:
o Executing minutely, hourly, and daily tasks for the management of shifts and utilization reasons
o Cleaning up stale sessions
o Running Supply Chain Connector (SCC) schedules
o Generating future quality samples.
If a preferred MES middleware host is not specified for the system, the first available middleware host will
be used to perform scheduled tasks.
Clearing the Preferred MW Host: Set to current middleware host check box will remove the designation of
a preferred MES middleware host in the system.
6. (Optional) To change the default time zone for the database, select it in the Default Time Zone list.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 70
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 8 – Configuring MES Middleware Communication with MES Databases
Note: If you click the Validate button before clicking the Configure button, the Preferred MW Host and
Default Time Zone settings will be reset to those currently in the database.
Next:
If using an MES restore database, you are ready to specify the MES restore database connection string. See
Specifying the MES Restore Database Connection String on page 71.
If not using an MES restore database, you are ready to configure the MES middleware user account's access
to the database. See The Middleware Service Windows User Account and Automatically Setting Database
Access on page 73.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 71
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 8 – Configuring MES Middleware Communication with MES Databases
During an MES upgrade, if a restore database was previously configured, the Enable Restore Database
option will be selected by default, even if the restore database no longer exists.
2. Complete the database server and MES database name settings:
Server Name
The host name or IP address of the server that is hosting the MES restore database. The server name
defaults to the node's host name if a connection string was not previously saved or to the server name
entered for the previously saved connection string. Supported server name entries include IP addresses
(IPv4 and IPv6), SQL server named instance conventions, cluster names, and SQL Server Availability Groups.
When using a Failover or Availability Group naming convention, the configuration must be performed when
the primary node is active.
Note: For the server name, enter either the host name or IP address. Be consistent in this when configuring
MES middleware on different nodes, as the system will not know that a host name and IP address point to
the same server. If you enter localhost, it will be converted to the local server name when building the
database connection string.
Database Name
The name of the MES restore database.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 72
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 8 – Configuring MES Middleware Communication with MES Databases
If this is a new installation and the restore database connection string has not been created yet, the name
defaults to RestoreDB. If a restore database connection string has been previously created or the database
was migrated from a previous release, the actual database name appears.
3. Specify the user account that the MES middleware service will use to access the restore database.
If the Use Windows integrated security option is selected, then the MES middleware will use the MES
Middleware Host user account that appears on the Security tab. Otherwise, the MES middleware will use
the SQL Server login entered here.
When using SQL Server credentials, the login entered here must have appropriate rights and access to the
MES database. This configuration component will not grant privileges to a SQL Server login. See Manually
Adding a SQL Server Login for the Middleware Service on page 64.
For more information about entering a user account, see Specifying SQL Server User Authentication on page
45.
4. (Optional) Configure the connection string's Advanced Settings.
The advanced settings allow you to set properties that affect the database connection behavior, such as
tuning the connection to your environment or setting up database mirroring. For example, entering Connect
Timeout=300 would cause the connection to attempt to connect to the database for up to 300 seconds.
For a list of the SQL database connection properties that can be set, see the SqlConnectionStringBuilder
Class topic in the Microsoft online documentation.
Any advanced settings will be appended to the database connection string.
5. Click the Validate button.
The system checks the database connection using the entered settings.
Note: If you click the Validate button before clicking the Configure button, the Preferred MW Host and
Default Time Zone settings on the Production tab will be reset to those currently in the database.
Next, you are ready to configure the MES middleware user account's access to the database. See The
Middleware Service Windows User Account and Automatically Setting Database Access on page 73.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 73
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 8 – Configuring MES Middleware Communication with MES Databases
If you are using Windows integrated security for the database connection strings on the Production and Restore
tabs, you can select the Set the minimal SQL permissions on the database for the service account option. This
will cause the middleware service Windows user account to automatically be added as a SQL Server login when
the DB/MW Communications component is configured. This login will have the permissions to perform
transactions with the MES database.
Account Name
A read-only field that shows the Windows user account that is currently assigned to the MES middleware
service. The default user account is NT Service\WCFHostService, which is created during the MES Middleware
component installation. This is a virtual service account that is based on using Active Directory (AD) for user
account management.
If AD is being used to manage user accounts, you can leave the default user account or change it to another
AD user account.
If Workgroups is being used to manage user accounts, you must change the middleware service's user
account to a local Workgroups user account. Also, if the MES database is on a remote server, the
Workgroups user account must also be set up on the remote node where the database is located.
Changing the user account should be performed prior to the MES DB/MW Communication component
configuration.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 74
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 8 – Configuring MES Middleware Communication with MES Databases
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 75
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 8 – Configuring MES Middleware Communication with MES Databases
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 76
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 8 – Configuring MES Middleware Communication with MES Databases
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 77
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 8 – Configuring MES Middleware Communication with MES Databases
The Identity Manager client registration information for the MES middleware is entered on the AVEVA Identity
Manager tab.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 78
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 8 – Configuring MES Middleware Communication with MES Databases
Next Step
After completing the Identity Manager registration information, you are ready to test the database connection
settings and save them. See Testing and Saving the Database Connection Settings on page 79.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 79
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 8 – Configuring MES Middleware Communication with MES Databases
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 80
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 8 – Configuring MES Middleware Communication with MES Databases
Please remember to restart your middleware service to utilize new connection strings
If the message Please remember to restart your middleware service to utilize new connection strings appears in
the Configuration Messages box, the middleware failed to restart. You will have to start the middleware
manually for the database connection setting changes to take effect. See Starting, Stopping, and Restarting the
MES Middleware Host on page 123.
Database Connection Fails
If any of the database connections fail, correct the settings that caused the failure and click the Configure button
again. Once the connections are successful, the MES middleware service is started (or restarted) so that it is
using the most recent settings. The success or failure of the restore database connection does not affect the
starting of the MES middleware service.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 81
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 8 – Configuring MES Middleware Communication with MES Databases
4. Click the Browse button, select the msdtc.exe file in the folder C:\WINDOWS\system32, and click Open.
The MSDTC service is added to the apps list.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 82
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 8 – Configuring MES Middleware Communication with MES Databases
6. Click OK to close the Allow Apps settings and controls and save the addition of the MSDTC service to the
exceptions list.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 83
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 8 – Configuring MES Middleware Communication with MES Databases
The following procedure is based on Windows Server 2019; depending on what Windows version you are using,
the steps and screens might be different.
1. On the node, in the Administrative Tools section of the Control Panel, open Component Services.
The Component Services window appears.
2. In the left pane, expand Component Services, Computers, My Computer, and Distributed Transaction
Coordinator.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 84
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 8 – Configuring MES Middleware Communication with MES Databases
o Enable XA Transactions
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 85
Chapter 9
You can access a MES middleware server from remote nodes on which MES client products or components are
running by configuring the MES middleware proxy on the remote nodes.
You must install the MES middleware proxy on all remote nodes on which OCOs, UCOs, or SROs are
configured (e.g., using System Platform Object Editor or through GR-Access) or deployed to run. For
high-transaction MES objects, it is recommended that a full MES Middleware component be installed on the
node hosting MES objects.
If you are configuring the MES middleware proxy on a node, make sure that you have installed, configured,
and started the MES middleware service on the remote server before configuring the MES middleware
proxy.
In a multi-node system that has multiple MES middleware servers installed, each middleware server can be
configured for the proxy to use. This allows the proxy to move communications to another middleware
server if its current middleware server stops running. If this occurs, the proxy will attempt to connect to the
next middleware server according to their order in the list.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 86
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 9 – Configuring the MES Middleware Proxy
The default proxy connection information that is set here is used by all client applications running on the
computer. An individual application can override the information with its own connection information.
To configure the MES middleware proxy
1. To add a middleware server to the list, click Add.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 87
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 9 – Configuring the MES Middleware Proxy
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 88
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 9 – Configuring the MES Middleware Proxy
The HTTP port is always used to retrieve the middleware configuration settings regardless of the Protocol
setting. You must change this value only when you cannot access port 80 through the firewall.
HTTPS Port
The port number for the MES Web API.
The default value is 443, which is the default for HTTPS.
The port number entered here must match the common platform HTTPS Port setting of the node on which
the MES middleware is running. On the MES middleware node, this setting is on the System Management
Service component's Advanced Configuration dialog (see System Management Server and Local Node
Common Platform HTTPS Port Settings on page 48).
3. Click Configure.
If the middleware proxy can communicate with a middleware service successfully, a success message
appears in the Configuration Messages box.
If the proxy could not successfully communicate with a middleware service, a failure message appears in the
message box.
The MES Middleware Proxy component configuration status changes according to the following conditions:
If the proxy was able to successfully communicate with all of the middleware servers, the indicator changes
to . Client applications on the node can now communicate with any of the middleware servers.
If communication failed with one or more middleware servers but succeeded with at least one, the indicator
changes to . Client applications on the node can now communicate with any of the middleware servers
for which communication succeeded.
If communication failed with all of the middleware servers, the proxy component configuration fails and the
indicator changes to . Communication with at least one of the middleware servers will have to be
established before client applications on the node can use the MES proxy.
To remove one or more middleware servers from the list
1. Select the server entries.
2. Click Remove.
Reconfiguring the Middleware Proxy If the MES Middleware HTTPS Port Number Is Changed
If the System Management Server and MES middleware are on the same node and the HTTPS Port number
is changed, change the proxy HTTPS Port number to match it and reconfigure the Middleware Proxy
component.
If the System Management Server and MES middleware are not on the same node and the common
platform HTTPS Port number for the MES middleware node is changed, change the proxy HTTPS Port
number to match it and reconfigure the Middleware Proxy component.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 89
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 9 – Configuring the MES Middleware Proxy
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 90
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 9 – Configuring the MES Middleware Proxy
If the MES Middleware and client middleware proxy are on the same node, then in the post-install
Configurator verify that the HTTPS port number configured for the MES Middleware Proxy component is the
same HTTPS port number configured for the System Management Server (click Advanced and refer to the
Ports tab on the Advanced Configuration dialog).
4. If the MES middleware and client middleware proxy are on different nodes, then in the post-install
Configurator verify the following about the System Management Server:
o If the System Management Server configuration on the Middleware Server node is set to This node is
the System Management Server, then the System Management Server configuration on the client
middleware proxy node should be set to Connect to an existing System Management Server and point
to the Middleware Server node.
o If the System Management Server configuration on the Middleware Server node is set to Connect to an
existing System Management Server and the configured target node is different than the client
middleware proxy node, then the System Management Server configuration on the client middleware
proxy node should use the option Connect to an existing System Management Server and use the same
target node name of the System Management Server that is configured on the Middleware Server node.
That is, the target node being pointed to as the location of the existing System Management Server
should be the same on the Middleware Server and client middleware proxy nodes.
o If the System Management Server configuration on the Middleware Server node is set to Connect to an
existing System Management Server and the configured target node is same as the client middleware
proxy node, then the System Management Server configuration on the client middleware proxy node
should be set to This node is the System Management Server.
5. In the post-install Configurator on the node where the System Management Server resides, verify that the
System Management Server status is Configured (green indicator).
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 91
Chapter 10
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 92
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 10 – Configuring MES Web Portal
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 93
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 10 – Configuring MES Web Portal
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 94
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 10 – Configuring MES Web Portal
Do not select Update option and click the Configure button. The Configurator does not update the IIS
applicationHost.config file and leaves the conflicting feature settings in the web.config file. A message is
logged that feature delegations were detected that must be added to the IIS configuration to support MES
Web Portal.
To allow the MES Web Portal web site to run, a web administrator must then either:
o Change the setting for the conflicting feature delegations to Read/Write in IIS Manager, or
o Edit the IIS applicationHost.config file manually to set the feature settings to the appropriate MES Web
Portal values and remove those settings from the MES Web Portal web.config file.
For instructions about how to set feature delegations in IIS Manager and how to manually modify the
applicationHost.config file, refer to the IIS Feature Delegation topics on the Microsoft TechNet web site.
Authentication – Anonymous
Conflicts with web.config section:
<security>
<authentication>
<anonymousAuthentication enabled ="false">
</anonymousAuthentication>
</authentication>
</security>
Authentication – Windows
Conflicts with web.config section:
<authentication mode="Windows"></authentication>
MIME Types
Conflicts with web.config section:
<staticContent>
<remove fileExtension=".svg" />
<mimeMap fileExtension=".svg" mimeType="image/svg+xml" />
<remove fileExtension=".json" />
<mimeMap fileExtension=".json" mimeType="application/json" />
</staticContent>
Handler Mappings
Conflicts with web.config section:
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 95
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 10 – Configuring MES Web Portal
<handlers>
<remove name="WebDAV" />
<remove name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" />
<remove name="ExtensionlessUrlHandler-ISAPI-4.0_64bit" />
<remove name="ExtensionlessUrlHandler-Integrated-4.0" />
</handlers>
Modules
Conflicts with web.config section:
<modules runAllManagedModulesForAllRequests="true"
runManagedModulesForWebDavRequests="true">
<remove name="RoleManager" />
<remove name="WebDAVModule" />
</modules>
Default Document
Conflicts with web.config section:
<defaultDocument>
<files>
<remove value="default.aspx" />
<remove value="iisstart.htm" />
<remove value="index.htm" />
<remove value="Default.asp" />
<remove value="index.html" />
<remove value="Default.htm" />
<remove value="index.cshtml" />
<add value="MES.cshtml" />
</files>
</defaultDocument>
Error Pages
<httpErrors>
<clear/>
</httpErrors>
Making the Root SSL Certificate Available to MES Web Portal Users
A Root SSL certificate is a certificate issued by a trusted certificate authority (CA). By default, the Windows
Trusted Root Certification Authorities certificate store is configured with a set of public CAs that has met the
requirements of the Microsoft Root Certificate Program.
The System Management Server has a private CA that can be used to issue self-signed certificates for use by
HTTPS connections to nodes in the System Platform network topology. The root certificate for this private CA is
installed in the Trusted Root Certification Authorities certificate store. The root certificate name for a self-signed
certificate that was issued by the System Management Server includes the host name of the node on which the
AVEVA Identity Manager is running followed by ASB Root CA (e.g., MESTP ASB Root CA).
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 96
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 10 – Configuring MES Web Portal
If the Identity Manager and MES Web Portal are installed on different nodes, the root certificate file for the
certificate that was assigned to MES Web Portal must be installed in Windows on client machines of Web Portal
users. This enables the client machines to trust and allow the HTTPS connection to MES Web Portal. You have to
provide the root certificate file to those users. Instructions for exporting the root certificate to a file are
provided below. The MES Web Portal User Guide and help include instructions for how to install the Root
certificate file in Windows on a client machine.
To export the root certificate to a file
1. On the node on which the Identity Manager is running, open Microsoft Management Console (open the Run
application and type mmc).
A console window appears.
2. On the File menu, click Add/Remove Snap-in.
3. On the Add or Remove Snap-ins dialog, select Certificates and click Add >.
4. On the Certificates snap-in dialog, leave the default selection and click Finish.
5. On the Add or Remove Snap-ins dialog, click OK.
6. In the console window navigation panel, expand Certificates, expand Trusted Root Certification Authorities,
and select Certificates.
The trusted root certificate CAs are listed.
7. Locate the root certificate CA for the certificate that was assigned to MES Web Portal.
The CA selected in the figure below is an example of a private CA used by System Management Server.
8. Right-click the root certificate CA, click All Tasks, and then click Export.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 97
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 10 – Configuring MES Web Portal
9. Click Next.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 98
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 10 – Configuring MES Web Portal
10. Leave the default No, do not export the private key option selected and click Next.
11. Leave the default DER encoded binary file format option selected and click Next.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 99
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 10 – Configuring MES Web Portal
12. Enter a file path and file name for the certificate file, then click Next.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 100
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 10 – Configuring MES Web Portal
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 101
Chapter 11
The MES reporting content defaults to using the BI Gateway database as the source for the report data. The BI
Gateway model includes content from Performance, Operations, and Quality data tables.
This section describes how to configure and deploy the MES BI Gateway reports. There are multiple steps
involving software components other than MES [that is, BI Gateway and SQL Server Reporting Services (SSRS)].
The MES installation software includes a limited version of BI Gateway Server that can be used solely with MES
BI Gateway reports. The MES BI Gateway reports will also work with a full version of BI Gateway.
The configuration and deployment of the MES BI Gateway reports includes the following procedures:
1. If not already performed, configuring the BI Gateway components and MES Database Setup component.
2. Importing and deploying the MES BI Gateway model.
3. Deploying the SSRS MES reports against the BI Gateway database.
4. Configuring the security policies for the Quality Characteristic Detail report.
Prerequisites
Prior to configuring and deploying MES BI Gateway reports, note the following prerequisites:
For BI Gateway, MES only supports the use of a local SQL Server and not Azure SQL.
Prior to configuring and deploying the MES BI Gateway reports, verify that the SSRS Report Server has been
configured using the Report Server Configuration Manager. This configuration creates the Report Server
database and the Report Server Web Service and Web Portal URLs. Also verify that the SSRS service is
running.
To install the Quality Characteristic Detail report's SPC Chart control, the MES BI Gateway Reports
component must be installed and configured on the same node as the BI Gateway Datastore and SSRS.
Upgrading the MES BI Gateway Model
The MES 2023 BI Gateway Model is the same as the MES 2017 R2 and MES 2020 Intelligence Model. If you
upgraded from MES 2017 R2 or MES 2020 to MES 2023, there is no need to upgrade the MES Intelligence
Model.
If you are upgrading from MES 2014 R3 (version 5.3) or MES 2017 (version 6.0), and Intelligence 2014 R3
(version 2.1), perform the procedure in Upgrading to the MES 2020 Intelligence Model on page 113.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 102
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 11 – Configuring and Deploying MES BI Gateway Reports
For more information about the BI Gateway components, see the BI Gateway Software Installation Guide.
Note: If you have upgraded from Intelligence to BI Gateway, the BI Gateway component status indicators
might incorrectly show that they have already been configured. You must still configure each component.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 103
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 11 – Configuring and Deploying MES BI Gateway Reports
2. On the node on which the MES Database Server component was installed, use Configurator to configure the
MES Database Setup component and create the MES database or migrate an existing one to the current
version.
See Creating or Migrating MES Databases on page 51.
3. After completing the configuration tasks, click Close to close the Configurator.
You are prompted to reboot the computer for the configuration changes to take effect.
4. Reboot the computer.
You must reboot the computer to avoid BI Gateway permission issues.
5. After the reboot is complete, continue to the next task of importing the MES BI Gateway model.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 104
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 11 – Configuring and Deploying MES BI Gateway Reports
The file is stored in the BI Gateway Reports folder within the MES application folder.
8. To configure the MES BI Gateway Reports data source, select the MESRDBMESDB data source object.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 105
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 11 – Configuring and Deploying MES BI Gateway Reports
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 106
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 11 – Configuring and Deploying MES BI Gateway Reports
13. In the Windows Services tool on the node on which BI Gateway is installed, make sure the Intelligence
Service is running.
14. On the main menu, click Deploy All.
You are prompted whether you want to deploy all objects.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 107
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 11 – Configuring and Deploying MES BI Gateway Reports
A message in the Configuration Messages box prompts you to install the BI Gateway hotfix.
3. Install BI Gateway hotfix HF_2172196, which can be found in the BI Gateway Reports folder within the MES
application folder. This is a cumulative hotfix that also includes BI Gateway HF_1848891. Refer to the
instructions in the hotfix Readme file.
4. In Configurator, change the MES BI Gateway Reports configuration settings from the default entries as
needed.
BI Gateway Database Node
o Server Name: The server name on which the BI Gateway database is stored. This can be localhost or the
local node's host name.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 108
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 11 – Configuring and Deploying MES BI Gateway Reports
5. Click Configure.
The data source to connect to the BI Gateway database, the MES reports folder, and the MES BI Gateway
reports are created on the SSRS server.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 109
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 11 – Configuring and Deploying MES BI Gateway Reports
6. From the Reporting Services Configuration Manager application, verify that the MES Reports have been
deployed and that their links are accessible from the MES Reports - Report Manager web page.
7. Verify that the following views, stored procedures, and functions were created in the BI Gateway database.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 110
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 11 – Configuring and Deploying MES BI Gateway Reports
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 111
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 11 – Configuring and Deploying MES BI Gateway Reports
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 112
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 11 – Configuring and Deploying MES BI Gateway Reports
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 113
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 11 – Configuring and Deploying MES BI Gateway Reports
4. Click OK.
The License Agreement screen appears.
5. Review the license agreement, select the I have read and accept the terms ... option, then click Agree.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 114
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 11 – Configuring and Deploying MES BI Gateway Reports
The MES Setup tool runs an upgrade readiness check on the Intelligence installation software.
6. As the important message on this screen recommends, review the "Upgrading Intelligence" section of the
Intelligence Installation Guide to familiarize yourself with the Intelligence upgrade process.
7. When you are ready to continue, click Next.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 115
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 11 – Configuring and Deploying MES BI Gateway Reports
The Export Model screen appears, showing the Intelligence datastore server name and datastore name that
were configured.
8. Click Next.
The existing model is exported to a JSON model file format. The upgraded JSON model file Data.json is
stored in the \Bin\MigrationFiles folder of the Intelligence application folder.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 116
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 11 – Configuring and Deploying MES BI Gateway Reports
The message on this screen explains that you have to undeploy all Intelligence objects before proceeding.
9. To undeploy all Intelligence objects, do one of the following:
If you used the Intelligence Model Builder utility to deploy the Intelligence 2014 R3 Patch 2 model, it
does not have a control to undeploy the model. You must manually run the following SQL script against
the Intelligence database to undeploy the model.
truncate table [Model].SourceDataItems
GO
UPDATE Model.DataItems
SET IsDeployed = 0,
SerializedConfiguration = REPLACE(SerializedConfiguration,
'<DeployState>Deployed</DeployState>',
'<DeployState>NotDeployed</DeployState>')
GO
If you used the System Platform IDE to deploy Intelligence 2014 R3 Patch 2 model, then undeploy the
Intelligence model from the System Platform IDE.
10. After undeploying the Intelligence objects, return to the MES Setup tool and click Next.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 117
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 11 – Configuring and Deploying MES BI Gateway Reports
The list of the components that are selected for installation or upgrading appears.
Because you are performing an upgrade of Intelligence 2014 R3, the Intelligence installation components,
including the new Intelligence Model Builder utility, are automatically selected to be installed.
11. Click Next.
The Ready to Install the Application screen appears.
12. Click Install.
13. After the installation completes, use the post-install Configurator to configure the following components:
o MES Database Setup
o MES DB/MW Communication
o MES Middleware Proxy
o Intelligence Server
o Intelligence Data Adapter
o Intelligence Model Builder
14. After completing the configuration tasks, click Close to close the Configurator.
You are prompted to reboot the computer for the configuration changes to take effect.
15. Reboot the computer.
You must reboot the computer to avoid Intelligence permission issues.
16. After the reboot is complete, open the Intelligence Model Builder in a web browser by entering the URL
https://localhost:61075.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 118
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 11 – Configuring and Deploying MES BI Gateway Reports
Note: The Intelligence Model Builder supports only Chrome web browser.
After the Intelligence Model Builder opens, it shows the upgraded JSON model from the MES 2014 R3 P02 or
MES 2017 installation. The measures, dimensions, and data source are tagged in yellow, indicating that they
are not deployed.
17. To configure the MES Intelligence Reports data source, select the MESRDBMESDB data source object.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 119
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 11 – Configuring and Deploying MES BI Gateway Reports
18. In the General tab in the right panel, enter the MES database name in the Database name field.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 120
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 11 – Configuring and Deploying MES BI Gateway Reports
22. In the Windows Services tool on the node on which Intelligence is installed, make sure the Intelligence
Service is running.
23. On the main menu, click Deploy All.
You are prompted whether you want to deploy all objects.
24. To deploy all of the MES objects in the upgraded model and keep existing report data, click Keep Data.
Note that if any custom changes were made to the dimensions or measures, Intelligence will remove the
data and recreate it. This will be indicated by a message in the Operations Control Management Console
Logger similar to the following:
Intelligence.Com... Measure MESRDBHourlyUtilization has been modified to the extent that its data will be
deleted.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 121
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 11 – Configuring and Deploying MES BI Gateway Reports
The measures, dimensions, and data source are tagged in blue, indicating that they are deployed.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 122
Chapter 12
You can use the MES Service Monitor to start, stop, or restart the MES middleware host.
If the Work Tasks Connector for MES has been installed, it can also be started, stopped, or restarted from the
Service Monitor.
The Service Monitor allows users to start, stop, and restart the MES middleware host. If the Work Tasks
Connector for MES has also been installed on the node, its service can also be started and stopped from the MES
Service monitor. See Starting, Stopping, and Restarting the MES Middleware Host on page 123.
To exit the Service Monitor and remove it from the system tray
Right-click the Service Monitor icon and click Exit.
Note that exiting the Service Monitor does not affect the state of the MES middleware host.
To start the Service Monitor and add it to the system tray
From the Start menu, open the Service Monitor app.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 123
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 12 – MES Service Monitor
2. Click MES Middleware Host and then click Start, Stop, or Restart.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 124
Chapter 13
The MES install and Configurator commands allow you to install MES and configure the installed components
from a command line. Installation and configuration settings are passed to the commands using XML-formatted
response files. The uninstall command allows you to uninstall MES from a command line.
To understand how these commands work, it is recommended that you read Installing Wonderware MES and
Configuring MES Components on page 41 to see how the MES installation and configuration is performed from a
user interface.
Note the following about the MES install, Configurator, and uninstall commands:
The commands must be run by a user with a Windows Administrator user account.
Only a new MES install, an upgrade from a previous version, or an uninstall can be run from a command line.
To modify or repair MES software, you must use either the Control Panel Programs and Features applet or
the MES Setup tool.
If you are upgrading MES using the install command, any MES applications that are currently running will be
stopped before the installation is performed. Also, see the topics in Preparing to Upgrade MES on page 21.
Localization of the response files used with the install and Configurator commands is not supported.
Prerequisite Software
During the installation process, the MES installation analyzes the software installed on the node. The installation
will attempt to install missing prerequisite software, but some missing software might have to be installed
manually. Any issues with prerequisite software will be entered in the Logger file for the MES product. See
Checking Installation Results in the MES Installation Logger File on page 128.
To avoid issues with missing prerequisite software during a command line installation, it is recommended that
you install all prerequisite software before running the MES installation. For more information, see MES
Prerequisite Software on page 18.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 125
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 13 – Running MES Install and Configurator from a Command Line
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 126
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 13 – Running MES Install and Configurator from a Command Line
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 127
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 13 – Running MES Install and Configurator from a Command Line
Licensing.AELicenseServer
The License Server.
Licensing.AELicenseManager
The License Manager.
AVEVA Single Sign-On Service.ASBRuntime
The AVEVA Single Sign-On Service.
AVEVA Single Sign-On Service.ASBServiceRepository
The AVEVA Single Sign-On Service repository.
Response_SelectedFeatures.txt
This response file is a template for installing selected MES components.
<responsefile>
<install>
FeatureForm.SInstallDir=<Install directory>
FeatureForm.SFeatureList=<Feature list>
# Each feature name in the feature list should be in the format ParentFeatureName.ChildFeatureName,
separated by commas. For a complete list of feature names, see the commented list below.
# List of features
# MES.PDFDocs, MES.Development,
# Client.Supervisor, Client.Operator, Client.EntityModelBuilder, Client.AppObjects,
Client.DataEditor, Client.ClientFramework, Client.NETControls, Client.MiddlewareProxy,
# Server.WebPortal, Server.FactDB, Server.FactMiddle,
# Reports.IntelligenceReports,
# AVEVA BI Gateway.EMIAdapterCommon, AVEVA BI Gateway.EMIRuntime, AVEVA BI Gateway.EmiModelConfig,
AVEVA BI Gateway.PDFDocumentation
# LicAPI32, LicAPI64
# Licensing.AELicenseServer
# Licensing.AELicenseManager
# AVEVA Single Sign-On Service.ASBRuntime
# AVEVA Single Sign-On Service.ASBServiceRepository
</install>
</responsefile>
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 128
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 13 – Running MES Install and Configurator from a Command Line
Configurator Command
The Configurator command format is:
Configurator.exe /silent=true /action=add /feature=<component_list>
/response=Configurator_response_file
where
Configurator.exe is the post-install Configurator executable file. The default path for this file is:
C:\Program Files (x86)\Common Files\ArchestrA.
/action=add is the switch that causes the components to be configured.
/feature=component_list is the switch that specifies which components are being configured.
/response=Configurator_response_file is the switch that specifies the file path (if needed) and file name of
the response file that specifies the settings for the components being configured.
For example:
C:\Program Files (x86)\Common Files\ArchestrA\Configurator.exe /silent=true /action=add
/feature=MES:WebPortal,MES:MiddlewareProxy /response=C:\response.txt
The command must be run by a user with a Windows Administrator user account.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 129
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 13 – Running MES Install and Configurator from a Command Line
<configurator> </configurator>
The Configurator tag includes the list of Configurator component properties. For the list of properties, see
MES Component Properties on page 130.
Note the following about the Configurator response file:
Localization of the response file is not supported.
Comment lines in the response file must be preceded by the hash (#) character.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 130
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 13 – Running MES Install and Configurator from a Command Line
Advanced Properties
These properties are optional and apply only to new MES databases.
MES.FactDB.DataFilePath
The file path of the data file. See the installed version of SQL Server for the default data file path that is used
if this property is not specified.
MES.FactDB.DataFileSize
The initial size, in MB, of the data file. The default value 30 is used if this property is not specified.
MES.FactDB.DataFilePercentGrowth
The percent by which to limit the percent growth of the data file. The default value 10 is used if this property
is not specified.
MES.FactDB.LogFilePath
The file path of the log file. See the installed version of SQL Server for the default log file path that is used if
this property is not specified.
MES.FactDB.LogFileSize
The initial size, in MB, of the log file. The default value 30 is used if this property is not specified.
MES.FactDB.LogFilePercentGrowth
The percent by which to limit the percent growth of the log file. The default value 10 is used if this property
is not specified.
Upgrading Properties
These properties apply only when upgrading to a new version of MES.
MES.FactDB.Overwrite
Values are:
o True: If the MigrateData property is set to True, migrate the existing MES database to the new release.
If the MigrateData property is set to False, overwrite the existing database with a new MES database.
o False: Keep the existing MES database with no changes. You might use this setting in case, for example,
the named MES database already exists but was not expected to be there. The database would not be
overwritten, but the upgraded MES would not be usable until a new MES database was created or the
existing one was migrated.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 131
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 13 – Running MES Install and Configurator from a Command Line
MES.FactDB.AggregateItemProduction
Applies only if the Overwrite and MigrateData properties are set to True. Values are:
o True: If the existing MES database that you are migrating has the system parameters for recording
distinct production records set, aggregate these records are aggregated into hourly records and distinct
production records are disabled.
o False: Do not aggregate distinct production records.
MES.FactMiddle.ProductionUseIntegratedSecurity
Specifies which security method should be used to connect to the production database.
Values are:
o True: Use Windows Integrated Security. The currently logged-in Windows user account will be used to
connect to SQL Server and the MES database. No user name or password has to be specified in the
response file.
o False: Use SQL Server Authentication. Specify the appropriate SQL Server Authentication user name and
password with the ProductionUserName and ProductionDatabasePassword properties.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 132
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 13 – Running MES Install and Configurator from a Command Line
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 133
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 13 – Running MES Install and Configurator from a Command Line
If this property is not specified, the server name defaults to the node name if a connection string was not
previously saved or to the server name entered for the previously saved connection string.
MES.FactMiddle.RestoreDatabaseName
The name of the MES restore database.
If this property is not specified:
o If this is a new installation and the connection string has not been created yet, the name defaults to
RestoreDB.
o If the connection string has been previously created or the database was migrated from a previous
release, the actual database name is used.
MES.FactMiddle.RestoreUseIntegratedSecurity
Specifies which security method should be used to connect to the restore database
Values are:
o True: Use Windows Integrated Security. The currently logged-in Windows user account will be used to
connect to SQL Server and the MES database. No user name or password has to be specified in the
response file.
o False: Use SQL Server Authentication. Specify the appropriate SQL Server Authentication user name and
password with the RestoreUserName and RestoreDatabasePassword properties.
When False, the RestoreUseIntegratedSecurity property must always precede the RestoreUserName
and RestoreDatabasePassword properties. Otherwise, the False setting of this property will cause the
values of the RestoreUserName and RestoreDatabasePassword properties to be cleared.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 134
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 13 – Running MES Install and Configurator from a Command Line
Whether to automatically set the minimum SQL permissions on the MES databases for the MES middleware
service Windows user account
If permissions will be set automatically, the admin user accounts that are authorized to set the permissions
on the MES databases
MES.FactMiddle.SetMinimalSqlPermissions
Set this property to True to have the minimal SQL permissions set to allow the MES middleware service user
account to perform the required operations on the MES databases.
If set to False, then you will have to manually set up the SQL permissions and assign them to the MES
middleware service user account using the SQL Server Management Studio. For more information about the
minimal SQL permissions that are needed, see Assigning SQL Server Database Roles to the MES Middleware
Service User Account.
The default value True is used if this property is not specified.
MES.FactMiddle.ProductionAdminUseIntegratedSecurity
Applies only if the SetMinimalSqlPermissions property is set to True.
Values are:
o True: Use Windows Integrated Security. The currently logged-in Windows user account will be used to
set the MES middleware service user account SQL permissions for the MES production database. The
user must have administrator privileges to set SQL permissions.
o False: Use SQL Server Authentication. Specify the appropriate SQL Server Authentication user name and
password with the ProductionSecuritySqlUserName and ProductionSecuritySqlPassword properties.
When False, the ProductionAdminUseIntegratedSecurity property must always precede the
ProductionSecuritySqlUserName and ProductionSecuritySqlPassword properties. Otherwise, the False
setting of this property will cause the values of the ProductionSecuritySqlUserName and
ProductionSecuritySqlPassword properties to be cleared.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 135
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 13 – Running MES Install and Configurator from a Command Line
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 136
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 13 – Running MES Install and Configurator from a Command Line
The HTTP port is always used to retrieve the configuration settings regardless of the
MES.MiddlewareProxy.Protocol property. You must change this value only when you cannot access port 80
through the firewall.
MES.MiddlewareProxy.Protocol
The communication protocol type used by the MES middleware communications. Values are TCP (the
default if this property is not specified) or HTTP.
MES.MiddlewareProxy.HttpsPort
The HTTPS port number for the MES Web API.
The default HTTPS port number 443 is used if this property is not specified.
If you want to include multiple MES middleware servers with which the proxy will be able to communicate,
include their settings for each property line separated by semi-colons, as shown below.
# Middleware Proxy Configuration
MES.MiddlewareProxy.MiddlewareHost=Srvr1.MES.ourorgdomain.com;Srvr2.MES.ourorgdomain.com
MES.MiddlewareProxy.HttpPort=80;80
MES.MiddlewareProxy.Protocol=TCP;TCP
MES.MiddlewareProxy.HttpsPort=443;443
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 137
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 13 – Running MES Install and Configurator from a Command Line
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 138
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 13 – Running MES Install and Configurator from a Command Line
MES.IntelligenceReports.VirtualFolder
The name of the report server's virtual folder.
MES.IntelligenceReports.TargetReportFolder
The name of the target report folder for the MES reports.
MES.IntelligenceReports.UseCurrentUserWindowsCredentials
Values are:
o True: The currently logged-in Windows user account will be used to access the report server on which to
deploy the MES reports. No user name or password has to be specified in the response file.
o False: The Windows user account specified by the ReportingServicesNodeDomain,
ReportingServicesNodeUserName, and ReportingServicesNodePassword properties will be used to
access the report server on which to deploy the MES reports.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 139
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 13 – Running MES Install and Configurator from a Command Line
Common Platform.ASBRuntime.AsbManagedCertificates
A flag that indicates whether the System Management Server will manage certificates. The default is true.
Common Platform.ASBRuntime.BindingCertificateThumbprint
Optional. The thumbprint of the binding certificate. This property is required only if AsbManagedCertificates
= false. Otherwise, remove this property.
Common Platform.ASBRuntime.UserName and Common Platform.ASBRuntime.Password
Optional. The user name and password of a user account that has access to System Management Server.
These properties are not required if the currently logged-in user is authorized to access the System
Management Server. You can remove these two properties if they are not required.
Common Platform.ASBRuntime.IsRedundantSsoServer
A flag that indicates that, if the System Management Server is on a remote machine, configure this machine
as a redundant SSO server. The default is true.
Common Platform.ASBRuntime.SuitelinkMixedModeEnabled
A flag that, if false, indicates that SuiteLink accepts only encrypted connection requests. If true, it indicates
that SuiteLink accepts both encrypted and unencrypted connection requests (recommended only during
upgrade scenarios or for supporting legacy applications). The default is false.
Common Platform.ASBRuntime.NmxAllowAllUsers
A flag that, if false, indicates that only authorized users can use NMX. If true, indicates that all users can use
NMX (not recommended). The default is false.
BI Gateway Components
BI Gateway Server
AVEVA BI Gateway.EMIRuntime.StorageType
Data store storage type. The default and only option supported by MES is SQL Server.
AVEVA BI Gateway.EMIRuntime.DSServerName
The name of the server on which the BI Gateway database is stored. The default is localhost.
AVEVA BI Gateway.EMIRuntime.DatabaseName
The name of the BI Gateway database. The default is the name of the existing BI Gateway database.
Otherwise, the default is BIGateway_DataStore.
AVEVA BI Gateway.EMIRuntime.AuthenticationMode
The default and only option is Windows Integrated Security. The currently logged-in Windows user account
will be used to access SQL Server. No user name or password has to be specified in the response file.
AVEVA BI Gateway.EMIRuntime.DataFilePath
The file path at which to store the datalog file. The default path depends on the version of SQL Server. An
example is C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\DATA.
AVEVA BI Gateway.EMIRuntime.LogFilePath
The file path at which to store the log file. The default path depends on the version of SQL Server. An
example is C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\DATA.
AVEVA BI Gateway.EMIRuntime.UserName
The username of the user account under which the BI Gateway Server service runs.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 140
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 13 – Running MES Install and Configurator from a Command Line
AVEVA BI Gateway.EMIRuntime.Password
The password of the user account under which the BI Gateway Server service runs.
AVEVA BI Gateway.EMIRuntime.Domain
The domain of the user account under which the BI Gateway Server service runs.
Data Adapter
AVEVA BI Gateway.EMIAdapterCommon.RuntimeServicePort
The number of the service port over which the BI Gateway Server and Data Adapter will communicate. The
default is 8732.
AVEVA BI Gateway.EMIAdapterCommon.UserName
The username of the user account under which the BI Gateway Data Adapter service runs.
AVEVA BI Gateway.EMIAdapterCommon.Password
The password of the user account under which the BI Gateway Data Adapter service runs.
AVEVA BI Gateway.EMIAdapterCommon.Domain
The domain of the user account under which the BI Gateway Data Adapter service runs.
BI Gateway Model Builder
AVEVA BI Gateway.EmiModelConfig.ModelApiPortNo
The number of the service port over which the BI Gateway Event API service will communicate. The default
is 61076.
AVEVA BI Gateway.EmiModelConfig.ModelBuilderPortNo
The number of the service port over which the BI Gateway Model Builder service will communicate. The
default is 61075.
AVEVA BI Gateway.EmiModelConfig.AddIntelligenceModelConfigUsertoGroup
Values are:
o True: The default. The currently logged-in user will be added to the aaIntelligenceConfigAdmin Windows
group, which has Read/Write access to BI Gateway Model Builder. If additional users need to run BI
Gateway Model Builder, they can be manually added to this group.
o False: The currently logged-in user will not be added to the aaIntelligenceConfigAdmin Windows group.
If this option is selected, one or more users will have to be manually added to this group so that they
can run BI Gateway Model Builder.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 141
Chapter 14
To support using MES in custom applications, the MES development components must be upgraded when
upgrading MES from a previous version.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 142
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 14 – Upgrading MES Development Components
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 143
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 14 – Upgrading MES Development Components
5. In Windows Explorer, perform a recursive search for the names of the MES .NET controls within the
\ArchestrA application folder to make sure that they were deleted.
For example, if you deleted the SampleViewer control, search for the name of the control, SampleViewer.
Each imported control will have a folder with a name in the format
Invensys_Systems__Inc__FactMES.Controls.<control_name>.
6. Delete any of the MES .NET control DLL folders that are found in the \ArchestrA application folder but not
the DLL files in the \MES\Controls installation folder.
7. Restart the System Platform IDE.
8. Import the MES controls package that was installed with the new release into each galaxy.
By default, the MES .NET controls are installed at in the Controls folder of the MES application folder. All the
DLL files present in the MES\Controls directory are enclosed in the MESControls.aaPKG file. You can import
individual DLL files or import all the .NET controls into the System Platform IDE by importing the
MESControls.aaPKG file.
For detailed information about importing .NET controls into System Platform IDE, see the MES .NET Controls
Developer Guide.
9. If using the MES Stateless or Stateful APIs, reimport these script libraries.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 144
Chapter 15
You can modify which MES products or components are installed, repair the MES installation, or uninstall MES.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 145
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 15 – Modifying, Repairing, and Uninstalling MES
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 146
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 15 – Modifying, Repairing, and Uninstalling MES
The list of MES products and components appears. The check boxes of products and components that are
currently installed are selected by default. For example, the figure below indicates that only the Operator
Client role components are currently installed.
3. Select the check boxes of only those products and components that you want to have installed at the
conclusion of the Modify operation.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 147
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 15 – Modifying, Repairing, and Uninstalling MES
Only those products and components that have been selected will be installed. If a product or component
was previously installed but you have cleared its check box here, that product or component will be
uninstalled. Following the example provided in the previous step, the figure below indicates that the
Operator Client role components will be uninstalled while components related to the Configuration Client
role will be installed.
4. When you have finished selecting the products and components to be installed or remain installed, click
Next.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 148
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 15 – Modifying, Repairing, and Uninstalling MES
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 149
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 15 – Modifying, Repairing, and Uninstalling MES
If any applications that might conflict with the installation are running, a list of them appears.
8. Close the applications, then click the Try Again button to see if there are still any conflicts.
If there are still conflicting applications running, close them and click the Try Again button.
If there are no conflicting applications, click Next.
The installation modification begins. The following screen appears when it completes successfully.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 150
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 15 – Modifying, Repairing, and Uninstalling MES
MES Database
MES Middleware
MES Middleware Proxy
MES Web Portal
Report Server components
For information about how to configure the MES components, refer to the appropriate topics in Configuring
MES Components on page 41.
Post-Uninstall Tasks
For possible post-uninstall tasks you might have to perform, see Tasks to Perform After MES Components Have
Been Removed on page 156.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 151
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 15 – Modifying, Repairing, and Uninstalling MES
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 152
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 15 – Modifying, Repairing, and Uninstalling MES
3. Click Repair.
If any applications that might conflict with the installation repair are running, a list of them appears.
4. Close the applications, then click the Try Again button to see if there are still any conflicts.
If there are still conflicting applications running, close them and click the Try Again button.
If there are no conflicting applications, click Next.
The installation repair begins. The following screen appears when it completes successfully.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 153
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 15 – Modifying, Repairing, and Uninstalling MES
Uninstalling MES
You can remove all the MES products and components installed on a node.
To remove only certain products or components on the node, see Modifying What MES Products or Components
Are Installed.
Note: Uninstalling MES from the Control Panel or using the Setup tool does not uninstall License Manager or BI
Gateway. If you want to uninstall those products, they have to be uninstalled separately.
To uninstall MES on a node
1. From the node, do one of the following:
In the Control Panel Programs and Features applet, select Manufacturing Execution System and click
Uninstall or Uninstall/Change on the toolbar.
Run the Setup.exe file in the MES installation root folder.
The Setup tool options appear.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 154
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 15 – Modifying, Repairing, and Uninstalling MES
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 155
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 15 – Modifying, Repairing, and Uninstalling MES
4. Close the applications, then click the Try Again button to see if there are still any conflicts.
If there are still conflicting applications running, close them and click the Try Again button.
If there are no conflicting applications, click Next.
The uninstall begins. The following screen appears when it completes successfully.
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 156
Index
.
.NET Controls
upgrading • 143
.NET Development installation role • 15
prerequisite software • 18
.NET Framework required version • 18, 23
A
Admin User • 7
Application Objects
client component • 11
AVEVA Identity Manager
DB/MW Communication • 77
MES client registration • 77
AVEVA Single Sign On • 15, 47, 139
C
cluster environment
environment considerations for server component • 20
command line installation, configuration, uninstall
command list file • 125
Configurator response file MES component properties • 130
Configurator response file syntax • 129
Configurator response file template • 141
install command syntax • 126
install response file component entries • 127
install response file syntax • 126
install response file, samples • 128
installation results, checking • 128
Logger, Operations Control Management Console • 128
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 157
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 15 – Index
D
database connection strings
production database • 69
restore database • 71
testing and saving • 79
Database Server wth MES installation role • 15
prerequisite software • 18
Database Setup component, configuring • 51
properties in Configurator response file • 130
DB/MW Communication component, configuring • 62
properties in Configurator response file • 132
E
End User License Agreement (EULA) • 23
H
hardware requirements • 7
I
installation
command line, running from • 126
prerequisite software • 18
procedure • 23
requirements, hardware and software • 7
role-based • 15
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 158
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 15 – Index
L
Logger, Operations Control Management Console • 7
M
MES .NET Controls, upgrading • 143
MES BI Gateway Reports
BI Gateway Data Adapters component • 12, 103
BI Gateway Model Builder • 104, 113
BI Gateway Model Builder component • 12, 103
BI Gateway Server component • 12, 103
installing and configuring • 102
MES BI Gateway Model, importing and deploying • 104
MES BI Gateway Reports component • 12
MES report model file • 104, 113
MES views, stored procedures, and functions added to BI Gateway database • 108
properties in Configurator response file • 138
Quality Characteristic Details report, configuring security policies for • 113
removing • 156
upgrading model from a previous release • 113
MES configuration • 41
post-configuration tasks • 45
MES database optimization
assistance with • 61
index optimization script • 60
index rebuild and reorganize frequency • 61
indexes, number to use • 61
reindexing during database creation and migration • 51
system usage, monitoring • 60
what to index • 61
MES databases
creating • 51
migrating • 54
overwriting • 54
removing • 156
table fragmentation, fixing • 51
MES Development Library
Development Library component • 13
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 159
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 15 – Index
O
Operations Capability Object (OC)
description • 11
Operator Client installation role • 15
prerequisite software • 18
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 160
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 15 – Index
P
performance counters • 79
permissions when running installation • 7
post-configuration tasks • 45
prerequisite software • 18, 125
R
removing the MES software • 156
Report Server installation role • 15
prerequisite software • 18
reports components • 12
requirements, hardware and software • 7
role-based installation • 15
S
Sample Recording Object (SRO)
description • 11
security when running installation • 7
server components • 8
software requirements • 7
SQL Server
user authentication, specifying in Configurator • 45
System Management Server
Advanced Configuration dialog • 48
configuring • 47
DB/MW Communication • 77
HTTPS port • 48
MES settings affected by • 48, 80
System Platform Development installation role • 15
prerequisite software • 18
System Platform User Account • 7
U
uninstalling MES software
uninstall command syntax • 129
upgrade requirements • 21
Utilization Capability Object (UCO)
description • 11
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 161
AVEVA™ Manufacturing Execution System (MES) Installation Guide
Chapter 15 – Index
W
WCFHostService • 7
Web Portal installation role • 15
prerequisite software • 18
workgroup environment
MES database permissions • 7
Version 7.0
© 2023 AVEVA Group plc and its subsidiaries. All rights reserved. Page 162