Académique Documents
Professionnel Documents
Culture Documents
Management
Copyright Notice
Copyright © 2014, Bentley Systems, Incorporated. All Rights Reserved.
Preface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Who Should Read This Guide . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Related Documents. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Physical Three-Tier Architecture . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Deployment Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
APM Components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Customizing the APM Environment . . . . . . . . . . . . . . . . . . . . . . . . . 21
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 309
This guide provides the information you need to install AssetWise Perfor-
mance Management (APM), set up a database, set up and manage ser-
vices such as action scheduling and handheld computing, and manage
user IDs.
• Introduction
• Installing APM and Setting up the Database
• Managing Servers and Clients
• Setting up Action Scheduling
• Setting up Handheld Computing
• Setting up APM Supervisor Dashboard
• Managing User Access and Security
• Setting up a Fax Server
• Technical Reference
• Technical Glossary
Related Documents
You can find more information about AssetWise Performance Manage-
ment in Help (click in APM), as well as in the following documents.
Some of the documents are located in the extraction folder that you
selected when downloading APM from Bentley SELECTservices (for
example, BentleyDownloads\ivx640versionen). During installation, all of
the documents are placed in the Bentley\AssetWise Performance Man-
agement directory.
The table below lists the document titles, descriptions, formats, and the
folders where they are located in the extraction folder and Bent-
ley\AssetWise Performance Management folder after installation.
(Integration_Troublesh
ooting .pdf)
Contents
Physical Three-Tier Architecture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Deployment Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
APM Components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Customizing the APM Environment . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Deployment Options
APM provides a single, unified server-provider architecture that sup-
ports ODC, scheduled actions, handheld computers, and tablets. You can
also write custom service providers.
Smart-Client Deployment
This deployment is most common and is generally recommended. It
involves running a minimum software component set on the client con-
nected to a physical or virtual application server. Different clients might
Deploying the APM user interface places a relatively small client compo-
nent on client computers (which require the Microsoft .NET runtime).
The advantages are:
Thick-Client Deployment
This deployment avoids the need for a separate application server. The
client computer runs the client software components, plus the application
server software components, and connects to the separate database
server. The application server can run either in the same process space
as the client (using the -l option on the IvaraClient executable) or as a
separate software server instance. This deployment uses a separate data-
base server, to which the physical client communicates (via the applica-
tion server running locally on the client). Thick-client deployment with
an in-process application server is required for definability (modification/
extension of the core product’s object model and user interface).
APM Components
Application Servers
APM works on a three-tier model with one or more servers connected to
one database and servicing multiple clients. The database and server are
often on separate computers, but can reside on the same machine.
If two or more servers run on the same computer, each server must:
The Settings Editor controls the data source that the APM application
uses to access the database, the user’s database login name and pass-
word, path to the server’s cache file directory.
Server Tools
The following tools are provided for managing APM servers.
Settings Editor
The Settings Editor for APM instances provides a single location where
you can define the server/service or thick-client settings, database
account information, language, and other settings that apply. The diag-
nostic and runtime behavior of the instance is also defined in the Settings
Editor. You can open the Settings Editor from APM Configuration or the
Server window.
The Settings Editor can also be opened from the command prompt or a
shortcut for servers (IvaraServer.exe -s), smart clients (IvaraClient.exe -
s), and thick clients (IvaraClient.exe -l -s).
Use the APM Network Log Viewer to review server information “live” as
messages are logged. When you close the viewer, the log entries are
cleared. However, while the viewer is open, you can save the log files in
XML format or copy them to the clipboard. You can open the viewer from
the Settings Editor’s Logging tab.
• Web services are used for APM Remote and APM Mobile.NET
• The APM Integration Architecture also provides an easy-to-use mech-
anism to bring in data from external systems using Web services and
to expose APM data as XML
• API and sample application are provided
Action Scheduler
The Action Scheduler architecture couples the simplicity of the APM
model with the power of the Windows Task Scheduler. Tasks can be
scheduled within APM to run on various servers. These tasks are then
turned into Windows Task Scheduler tasks that run independently of
each other.
Integration Plugins
APM provides integration plugins that allow you to analyze failure mode
data in another application or exchange information with your CMMS
application.
Use the integration plugin for SAP® Plant Maintenance, IBM® Maximo®,
or Oracle® eAM. Implementation and Performance Management is a pre-
requisite for this module.
Note that the starter values and templates are intended to be a guideline
and starting point only. All values should be reviewed and modified as
necessary. All reliability program templates (indicator/standard task)
should be reviewed and modified to fit the operating context of the equip-
ment for which they will be used.
Definability
The forms designer is the same tool that APM product managers use to
build the application. Customizers can modify existing views or create
them. Existing APM meta data is never modified; rather an editable copy
is made and used in place of the APM version.
The object modeling tool is the same tool APM product managers use to
build the application. Customizers can create objects, attributes, and
relationships. The existing APM meta data is never modified; rather a
new class is created that inherits from the existing APM class. Custom
classes are available for use in the user interface, reports, security, and
EXPLink. The database schema is automatically generated. As well,
dynamic SQL is also generated automatically to read and modify data.
When upgrading APM, your customizations are brought into the new
release automatically by the upgrade tools.
Extensibility
Standalone applications can be created using the EXPLink API to com-
municate with APM business objects.
Custom methods are invoked by the user from UI elements like buttons,
menus, tool bar buttons, and so on. Events are triggered at different
points in an object’s life cycle, for example, object creation, before or after
the object is saved, and so on.
Contents
Overview of Installation Steps. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Prerequisite Steps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Installing APM Software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Activating APM Software. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Installing the OPC Components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Setting up an SQL Server Database . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Setting up an Oracle Database . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
Setting up a Thick Client . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
Launching APM and Creating Initial Users . . . . . . . . . . . . . . . . . . . . . . 62
Uninstalling APM. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
2. Install the APM software. See “Installing APM Software” on page 26.
4. On computers that will host server instances with the OPC.NET plu-
gin for APM Online Data Collection, run the OPC Core Components.
Copies of these files are included in the APM directory in the Prereq-
uisites folder. See “Installing the OPC Components” on page 33.
7. Launch APM and create initial users. See “Launching APM and Cre-
ating Initial Users” on page 62.
9. When you have tested the local configuration, you can set up and test
application servers. See “Setting up a Server/Service Instance” on
page 82.
10. Then package and deploy the client software so that it can be down-
loaded and installed on client computers. See “Packaging the Smart
Client Software” on page 153.
Prerequisite Steps
Before installing or upgrading APM, ensure that you have done the fol-
lowing, as required:
1. Install the SQL Server Native Client (if connecting to a SQL Server
database) or the Oracle Client (if connecting to an Oracle database).
The required Oracle Client components are:
• SQL *Plus
• Oracle Net
• Oracle Data Provider for .NET
• Oracle Providers for ASP .NET
Note: When you are installing APM, you must be logged on to the
computer as an administrator.
Note: The Set User Permissions utility runs first, granting the
current user permissions for the licensing registry location and
folder.
For more information about using APM Configuration when you have an
APM database set up, see “Setting up a Thick Client” on page 51.
The installation directory contains the bin folder for the binary files that
make up the application. The cache folder contains the meta data
describing the business objects. The Docs\English folder contains prod-
uct guides like this one in PDF files. For example:
The Product Activation Wizard allows you to register your activation key
and information with Bentley. You can launch the Product Activation
Wizard after installing APM or from the APM Configuration window.
Tip: You can also set permissions manually using the Grant User
Permissions for License utility. Start the utility from the APM
Configuration window when you add services after installation.
See “To Grant User Permissions for SELECTserver Licensing” on
page 91.
This section explains how to use the Product Activation Wizard and view
licensing information.
9. Select the country where you will be using the product and click
Next. The “Wizard Selections” page displays the information pro-
vided on the previous pages.
10. Review the information and click Finish to activate the product. The
“Product activation complete” page confirms that you can now use the
product. Click Close.
If the license status for a server product is not “Activated”, users will see
a pop-up message when they start APM. The notification shows the sta-
tus, for example, “Trial” and, if applicable, the number of days remaining
before the status will change to “Disabled”.
After SELECTserver activation, the Server Connector and some Visa and
Passport products are shown with the “Trial” status in the Web Monitor
until the first time they generate usage logs. For example, if you do not
use the ODC Connector on a particular computer, it will have the status
“Trial” on that machine until it is used. Similarly, if you have not used
the SD client, it has the “Trial” status until a smart client visits the
Strategy Development view. In this situation, the Number of Days Left
column continues to show “30”; that is, the license does not expire.
Both x86 and x64 OPC SDK must be installed on the computer running
APM smart client.
\SQL Server\apminstall.bak
After you have restored the apminstall database, you must run the
init_ivara.sql script, located in the SQL Server folder.
This section explains how to set up your SQL Server database for APM.
It includes:
This section explains how to set up and restore an SQL Server database
from a backup (*.bak) file on SQL Server. When setting up a database for
APM, usually you will restore the basic APM database (apminstall.bak).
This file is included in the APM installation zip file. It is also copied dur-
ing installation. You will find it in <InstallDirectory>\Bentley\Asset-
Wise Performance Management\SQL Server.
To set up a database for APM, you must have the SQL Server software
installed and have an administrator login.
3. In the To database box, select or enter the name of the database (for
example, “APM” for the main APM database). If the database does
not exist, it will be created.
6. Click Add. In the Locate Backup File dialog that appears, navigate to
apminstall.bak in the Bentley\AssetWise Performance Manage-
ment\SQL Server directory and select it.
8. In the Select the backup sets to restore section, select the check
box beside the backup set.
10. To restore the database, click OK. A message appears when the
restore is complete.
11. Run the initialize script on the database. The init_ivara.sql script
ensures that all required users are present in the database with the
proper permissions. This script is normally found in:
For more details, see “Running SQL Scripts on your SQL Server
Database” on page 36.
2. Select the File menu and then Open and File. The Open File dialog
appears.
3. Browse to the script that you want to run (for example, init_ivara.sql
or proc_ivara.sql), select it, and click Open.
Use the Oracle import utility to perform a user-based import using the
sample Oracle parameter file (impdp_apm.par) and APM export file
(apminstall.dpdmp). These files are located in the <InstallDirec-
tory>\Bentley\AssetWise Performance Management\Oracle folder.
Also included are notes on the maximum open cursors setting and case
sensitivity.
Note: The Oracle export file was created from an 11.2.0 database
created with a WE8MSWIN1252 character set and a AL16UTF16
NCHAR character set. The National character set needs to be set
to AL16UTF16 for the Unicode application to work. A table that
contains extended characters is oq.uitext. String columns in the
APM install database use Unicode string types (nvarchar2, nclob,
nchar).
Note: If you are using an Oracle database and have set up tracing
on an APM server instance that services other client requests,
tracing will be enabled for all users who connect to the server.
This can have a severe impact on performance. A safer approach
is to enable tracing on a separate server or to enable it on a thick
client.
Tablespaces
Before importing the APM database, you will need to set up its
tablespaces. The APM Oracle database requires the following two addi-
tional tablespaces:
Tablespace Function
IVARA_DATA APM tables
IVARA_INDEX APM indexes
The Oracle database also uses a set of redo transaction logs to guarantee
database consistency during recovery. These data files are sequentially
read and written to and should be located on a RAID-1 channel.
Oracle Users
When an APM database is initially created, the database users listed in
the following table are present.
If any of these users already exist in your database, you should delete
them before importing the APM database. To recreate the users, run the
script init_ivara.sql. The IVARA user has the DEFAULT profile that
does not set resource limits.
Maximum Cursors
When running APM, you might get an error message saying that your
maximum cursors have been exceeded. If this occurs, then you need to
change the open_cursors parameter in your parameters file (for example,
the initorcl.ora file). We suggest that you increase that number to 200.
3. If this line does not exist, add a line with the text:
open_cursors = 200
If the line does exist, edit it to say “open_cursors = 200”. Save and
close the file.
4. For this change to take effect, you must restart the Oracle server.
Case-Sensitivity
When running APM with an Oracle database, all of the APM data will be
case-sensitive. This means that when users filter APM data, the system
will match the case of the data, as well as the actual alphanumeric char-
acters. When users do an ascending sort on APM data, the system will
order upper-case letters before lower-case letters, and vice-versa for
descending sorts.
2. For APM to generate SQL statements that are case insensitive, table
oq.ignorecase needs to be populated. Populate this table by running
the script “Enable case search.sql” as the user Sys or Internal.
4. In the Settings pane, click Runtime. Scroll down to the Oracle node
and set Oracle Case Insensitive Sort Always On to True.
A few logical database structures are the data block, extent and segment:
There are two basic memory structures associated with Oracle: the sys-
tem global area (SGA) and program global areas (PGA). The SGA
includes the database buffers, redo log buffers and the shared pool. Data-
base buffers store the most recently used blocks of data read from data
files. The redo log buffer stores redo entries that are a log of changes
made to the database. The redo log buffer is written to a redo log file. The
shared pool contains shared memory constructs such as shared SQL
areas. A shared SQL area contains the parse tree and execution plan for
a SQL statement.
An Oracle server has two general types of processes: server processes and
background processes. In a dedicated server configuration, a server pro-
cess handles requests for a single user connection. Some typical back-
ground processes are DBWn (database writer) which writes modified
blocks from the buffer cache to the data files, LGWR (log writer) which
write redo entries to the log file, SMON (system monitor) which performs
crash recovery and PMON (process monitor) which performs process
recovery.
Basic Tuning
This section contains tips on optimally configuring an tuning your Oracle
database. Review the following points before setting up your APM data-
base.
Installation
• When the database is initially created, set the maxdatafiles parame-
ter on the create database statement to a high number (for example,
256). You do not want to run out of data files when expanding the
database. The cost is a larger control file.
• The redo log file has to be sized appropriately as a checkpoint occurs
on a log file switch. A checkpoint ensures that all database changes
are written to disk. There should be a minimum of three log files on
mirrored drives. Log files are a single point of failure. Redo logs incur
many sequential reads and writes. Place these files on a mirrored
drive with low incidence of reads and writes.
• There should be a minimum of three control files placed on separate
physical devices.
• Set the database block size to be the same as your operating system
block size.
• For Symmetric MultiProcessing (SMP) machines, set the number of
latches for the buffer cache through initialization parameter
DB_BLOCK_LRU_LATCHES so that there is no latch contention.
The default setting is half the number of CPUs or one.
Memory
• Tune the shared_pool_size initialization parameter such that the
library cache hit ratio is at least 99%, the dictionary cache hit ratio is
at least 90% and the shared SQL area hit ratio is reasonable.
• Tune the db_block_buffers initialization parameter such that the buf-
fer cache hit ratio is at least 80%. Queries that cause poor buffer
cache hit ratio should be reviewed.
• If there are waits for space for the log buffer, you may need to size the
log buffer through the log_buffer initialization parameter. The size is
in bytes and needs to be a multiple of the data block size. You can
check if there are waits by issuing the query below. The value should
be near zero.
SELECT NAME, VALUE
FROM V$SYSSTAT
WHERE NAME = 'redo buffer allocation retries'
• Set the sort_area_size initialization parameter so that most sorts are
done in memory and not on disk. The query below can be used to
check the number of sorts and where they are performed. If 25 per-
cent of sorts occur on disk, consider increasing this parameter.
SELECT NAME, VALUE
FROM V$SYSSTAT
WHERE NAME LIKE 'sort%'
• Tune the hash_area_size initialization parameter so that hash joins
are efficient. The default is twice the sort area size.
• If there is sufficient physical memory on the database server for all
processes and the database instance, set the lock_sga to true to keep
the SGA in physical memory.
Input/Output
• When a row is updated and there is insufficient space to fit the row in
the current block or migrate it to another block, the row is split across
data blocks. Minimize row chaining by periodically reporting and fix-
ing chained rows. Refer to your Oracle documentation for detecting
chained rows. There is a script called utlchain.sql and an ANALYZE
TABLE command that needs to be run.
• Set the initialization parameter transactions_per_rollback_segment
to five. This sets the number of concurrent transactions that can be
contained in a single rollback segment. For every five concurrent
users, you should have one rollback segment. You will need to opti-
mally size the rollback segment. To do that, you need to know the
average size of a typical transaction. The other option is to size empir-
ically by observing the size of rollback segments for a time period.
• Redo logs incur many sequential reads and writes. Place these files
on a mirrored drive and low incidence of reads and writes.
• Deleted space in indexes will need to be reclaimed by rebuilding the
index. An index can be analyzed using ANALYZE INDEX
index_name VALIDATE STRUCTURE to determine if the index
needs to be reorganized. Sample tables that are volatile would be
app_lock and connection_reg.
Statistics
• Set the initialization parameter timed_statistics to true. This allows
the gathering of statistics based on time. There is minimal perfor-
mance impact.
• Statistics for tables, indexes and columns need to be refreshed so that
they are not stale. Keep statistics as up to date as possible, since the
optimizer refers to them for query processing. The statistics for a
table should be run whenever there is a significant change to the
table (for example, adding 1 row to an empty table is a 100% change,
whereas adding 50,000 rows to a 40 million row table is not).
Most client sites can run the stats on a nightly basis until such time
as the schedule no longer permits it. Then, only refresh statistics for
stale tables, or look into automated statistics gathering.
To gather and refresh statistics, use Oracle package DBMS_STATS.
Miscellaneous
• For tables and indexes that are simultaneously modified by many
users, the initrans entry for the table or index will need to be changed
from their defaults. The default for tables is one and for indexes are
two.
• Frequently review the database alert log for errors. The alert log is in
the directory specified by initialization parameter
BACKGROUND_DUMP_DEST.
Use the Oracle “IMP” utility to import the apminstall.dpdmp file into an
existing database. You can use the provided impdp_apm.par parameter
file when you import the database. This file assumes that the TNS name
for the database is “Install” and that the DBA user name and password
are “system” and “manager”.
Note: You must have DBA authority to perform the import to the
database.
The “IMP” utility will perform a user-based import into an existing data-
base without overwriting existing system tables. By default, only the
APM users (FND, MAT, MNT, PRO, OQ, IFW, INM, CUSTOMERDATA)
will be imported.
2. Before restoring the dpdmp file, you must run the init_ivara.sql
script. This script ensures that all required users are present in the
database with the proper permissions. This script is normally found
in:
4. Open a Command Prompt window (click Start > All Programs >
Accessories > Command Prompt).
5. Navigate to:
See “Launching APM and Creating Initial Users” on page 62 for informa-
tion about setting the administrator privilege.
Tip: You can also use the Thick-Client Packager to create a soft-
ware installer so that the instance can be deployed to other com-
puters. See “Creating a Thick-Client Installer” on page 164.
2. In the Type list, select the type of instance you wish to create, in this
case, thick client. The following example shows settings for a thick-
client instance.
Tip: If you have not yet activated APM software with SELECT-
server, you do so now by clicking the Installation list and then
Product Activation Wizard.
3. Provide a name for the server instance, for example, “devadmin”.
See “To Create a Data Source for SQL Server”, next or “To Create a
Data Source for Oracle” on page 55.
4. Select the appropriate SQL Native Client option and click Finish.
The Create Data Source to SQL Server dialog appears.
5. Enter or edit the name in the Name box (for example, “APM”). Do not
include spaces in the name.
6. In the Server box, select the APM database server, and then click
Next.
8. Select Change the default database, and then select your APM
database from the list.
9. Click Next. Make sure that the option Perform translation for
character data is selected.
11. To test the connection, click Test Data Source. If the connection is
working, the message Tests Completed Successfully is shown. If the
tests failed, check that your server name, database name, and login
name and password are correct.
Note: If you are upgrading APM and using an existing ODBC data
source, make sure that MTS Support is enabled. The option Dis-
able Microsoft Transaction Server is on the WorkArounds
tab of the Oracle ODBC Driver Configuration dialog. Make sure
that this option is cleared.
2. Select the System DSN tab and click Add. The Create New Data
Source dialog appears:
3. Select the Oracle driver and click Finish. The Oracle ODBC Driver
Configuration dialog appears.
5. Enter or select the TNS service name. If you are using EZConnect,
enter:
hostname/databasename
If you are using local TNS names, select the appropriate name from
the list.
6. On the Workarounds tab, make sure that Disable Microsoft
Transaction Server is not selected.
When you are finished, the settings should look similar to this:
7. Click Test Connection. Enter your database user name and pass-
word.
8. Click OK. A message box appears informing you whether or not the
connection was successful.
2. Ensure that the database user name and password are correct.
4. Click the Configuration list and then Full Settings. The Settings
Editor appears.
For information about other regular and advanced settings, see “Set-
ting up a Server/Service Instance” on page 82.
For information about Server Email Settings, see “Setting up
Email” on page 140.
2. Click Run Tests. The testing process checks for prerequisites, the
path to the attachment folder, the availability of Help files, the data-
base connection, and so on. APM also checks the validity of the
SELECTserver activation key and your user permissions. The results
of the tests appear in the tab. For example:
Icon Description
Error – the server will not run. The instance must be cor-
rected before the application will run.
Warning – review the message before using the server.
The tested instance will run, but information is provided
so that the instance can be adjusted.
Icon Description
Information – this is for information only. No action is
required.
Successful – OK to proceed.
To Create Shortcuts
You can create a shortcut to the thick client and place it on the desktop,
in the Programs menu, or in both places.
5. If you are installing the shortcut in the Programs menu, you can
specify the sub-folder. The default location in the Programs menu is
Bentley\APM.
This topic explains how to log on to APM and create initial APM users.
To learn more about APM user privileges, logging on as an APM adminis-
trator, and security profiles, see “Managing User Access and Security” on
page 259.
When you install the APM software, APM basic databases are copied to
the Bentley\AssetWise Performance Management\SQL Server and
\Oracle directories. The install database provides a starting point for you
to enter your organization’s data.
The install database does not contain employees or users. The first time
that you run APM and connect to this basic database, one APM user is
created using your Windows or Bentley CONNECT login name. This user
can then create more APM users.
• End-user: This is the basic privilege for all users. Users can do
everything in APM except customize the software, create custom
reports, create customer-level table configurations, create purging
rules, and use the Security Setup mode.
• Administrator: This privilege is used by APM administrators and
personnel who need to customize the software, create custom reports,
activate CMMS integration, or set up and assign security profiles.
Users with this privilege can perform Customer-level customizations,
create shareable table configurations, work with purging rules, and
use the Security Setup mode.
This topic explains how to launch and log on to APM the first time and to
create APM user IDs. For information about creating employees and
linking them to user IDs, see “APM Users” in Help.
To Log on to APM
When you launch an application, for example by double-clicking a desk-
top shortcut, the APM Security dialog appears. For example:
• Log on with your current Windows domain, login name, and password
using Windows authentication. You can also click Remember me to
save your credentials for the next time you launch the product.
• Log on as a different Windows user. When you select this option,
enter the Domain\Username and password.
• Log on as a Bentley CONNECT user. Enter your Bentley CONNECT
user name and password. You can also click Remember me with
this option.
• To update your Bentley CONNECT password, click Manage my
Bentley CONNECT account. The Bentley Sign In page appears.
When you click OK, the appropriate APM window appears.
Note: If you did not activate the product after installation, the sec-
ond time that you launch APM with a thick-client, the Activation
Status window appears. Close the Activation Status window. If
you wish to activate the product, open APM Configuration and
run the Product Activation Wizard from there. The correct eleva-
tion and user permissions will be set automatically.
4. Enter the login name. This name must be the same as the user’s Win-
dows or Bentley CONNECT login name.
6. For Windows login names, you can enter a domain name for the user.
You can test that the domain name is correct by clicking Validate.
8. If the user will need to use the APM Server Manager to administer
servers, select APM server manager.
10. Repeat these steps for each user that you need to create.
Note: After you have created security profiles, you will need to
add the appropriate ones for each user. Users who are not linked
to any security profile have full access to the system. For more
information, see “Security” in Help.
You will also need to link each user to an employee record. To create
employee records, see “Adding an Employee” in Help.
Uninstalling APM
Warning: If you have installed the APM server as a service for one
or more instances, stop the services and then uninstall them
before removing the APM installation. To uninstall a service, use
the Uninstall Service option on the APM Configuration window.
Note: Uninstalling APM will not remove your activation key from -
SELECTserver.
This section explains how to set up APM servers, clients, and logging. It
also explains how to use the various tools provided for managing servers.
Contents
Server Management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
Setting up APM Server Manager . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
Setting up a Server/Service Instance . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
Changing the Language for the APM Server . . . . . . . . . . . . . . . . . . . . . 97
Setting Firewall Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
APM Server Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
Server Deployment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102
Using the Web Monitor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107
Viewing and Configuring Log Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121
Setting up Email. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140
Setting up Help Files Locally. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143
Client and Server Command-line Options . . . . . . . . . . . . . . . . . . . . . . 146
Packaging the Smart Client Software . . . . . . . . . . . . . . . . . . . . . . . . . . 153
Creating a Thick-Client Installer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164
Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 174
Server Management
Managing your APM environment for two or more users working with
APM on separate computers involves setting up and maintaining one or
more servers and clients.
Settings Editor
The Settings Editor for APM instances provides a single location where
you can define the server/service or thick-client settings, database
account information, language, and other settings that apply. The diag-
nostic and runtime behavior of the instance is also defined in the Settings
Editor. You can open the Settings Editor from APM Configuration or the
Server window.
The Settings Editor can also be opened from the command prompt or a
shortcut for servers (IvaraServer.exe -s), smart clients (IvaraClient.exe -
s), and thick clients (IvaraClient.exe -l -s).
Use the APM Network Log Viewer to review server information “live” as
messages are logged. When you close the viewer, the log entries are
cleared. However, while the viewer is open, you can save the log files in
XML format or copy them to the clipboard. You can open the viewer from
the Settings Editor’s Logging tab.
Before you start setting up the Server Manager, here are some things you
need to know or do:
• On the computer running the APM Server Manager, you will need
Web Server (IIS) with asp.net 4.5.
• The APM Server Manager must reside on the same domain as the
server instances it monitors.
• Set up a WebServer role. Ensure that Security is set to Windows
Authentication. Turn on asp.net as a feature and ensure that .NET
Framework 4.5 is installed. If you are running Windows Server
2008R2, you can register to use asp.net by running:
aspnet_regiis.exe -i from C:\Windows\Microsoft.NET\
Framework64\v4.0.30319
• Add a firewall inbound rule for TCP protocol to control the connec-
tions to the APM Server Manager port.
• Log entries for the APM Server Manager are stored in the logging
output file called brokerLogName###.txt. You can edit the
broker_logging.config file in the root of the site directory.
3. If you use a name other than “default”, update the Web.config file.
Open Web.config in the Bentley\AssetWise Performance Manage-
ment\ServerAdminBroker folder. Change the value of the “Configu-
rationInstance” key.
Tip: If you are creating a second web site for a second server man-
ager, copy the default instance and give the copy a unique name.
If you are installing a second web site on the same IIS Server,
make a copy of the ServerAdminBroker folder and give it a unique
name. In that folder, change the Web.config file to reference the
name of the copied instance.
4. Select an ODBC data source in the Database Name list, or click the
Configuration list and then ODBC to create one. The ODBC Data
Source Administrator opens, where you can add, configure, and test
the data source.
5. Ensure that the database user name and password are correct.
3. In the Physical path box, click the browse icon. Browse for and
select the ServerAdminBroker folder in the install folder. For exam-
ple:
5. Click OK.
3. Next, set the recycling options for the pool. Right-click the pool and
click Recycling.
6. Click Finish.
9. Select the APM Server Manager site and click Edit Permissions in
the Actions pane. In the Properties window appears, select the Shar-
ing tab, and add the name of your application pool, for example, “IIS
AppPool\APMServerManager”. Ensure that the location is the local
machine, not the domain.
Tip: Alternatively, you could use IIS_IUSRS for the file permis-
sions. Add “IIS AppPool\APMServerManager” to the IIS_USRs
group.
2. Add a user or open an existing user the administrator who will use
the APM Server Manager. Set the authentication type to Windows
and select APM server manager.
The APM application server is software that interfaces with one or more
databases to convey processed data to and from a user interface. The
application server and databases can be housed in the same or separate
computers.
The application server’s role takes care of the business logic in a multi-
tier architecture. The business logic is the functions that the software
performs on the data. “Multi-tier” refers to the three tiers involved in the
system: client, application server, database.
5. Select an ODBC data source in the Database Name list, or click the
Configuration list and then ODBC to create one. The ODBC Data
Source Administrator opens, where you can add, configure, and test
the data source.
See “To Create a Data Source for SQL Server”, next or “To Create a
Data Source for Oracle” on page 86.
4. Select the appropriate SQL Native Client option and click Finish.
The Create Data Source to SQL Server dialog appears.
5. Enter or edit the name in the Name box (for example, “APM”).
6. In the Server box, select the APM database server, and then click
Next.
8. Select Change the default database, and then select your APM
database from the list.
9. Click Next. Make sure that the option Perform translation for
character data is selected.
11. To test the connection, click Test Data Source. If the connection is
working, the message Tests Completed Successfully is shown. If the
tests failed, check that your server name, database name, and login
name and password are correct.
Note: If you are upgrading APM and using an existing ODBC data
source, make sure that MTS Support is enabled. The option Dis-
able Microsoft Transaction Server is on the WorkArounds
tab of the Oracle ODBC Driver Configuration dialog. Make sure
that this option is cleared.
2. Select the System DSN tab and click Add. The Create New Data
Source dialog appears:
3. Select the Oracle driver and click Finish. The Oracle ODBC Driver
Configuration dialog appears.
5. Enter or select the TNS service name. If you are using EZConnect,
enter:
hostname/databasename
If you are using local TNS names, select the appropriate name from
the list.
6. On the Workarounds tab, make sure that Disable Microsoft
Transaction Server is not selected.
When you are finished, the settings should look similar to this:
7. Click Test Connection. Enter your database user name and pass-
word.
8. Click OK. A message box appears informing you whether or not the
connection was successful.
2. Ensure that the database user name and password are correct.
Note: Network and Web Monitor settings show the server and
web server ports, respectively. The defaults assigned to the first
instance and web monitor are 13101 and 8080, respectively.
Whenever a new instance is added, APM automatically increases
the port numbers by one to ensure that they are unique.
5. Click the Configure list and then Full Settings to see all the set-
tings in a hierarchical format in the Settings Editor:
The Mandatory Settings show the defaults and options you selected
in the APM Configuration window.
Tip: You can also open the Settings Editor for a server instance by
entering the following in the command prompt:
IvaraServer.exe /s /i:<instance>
where <instance> is the instance name, for example, “production”.
6. Select Runtime in the Settings tree and then the Directories node.
In the Attachments Path box, click the browse icon to add the loca-
tion where attachments to APM objects are stored. This must be a
shared location (for example, a shared network folder) so that attach-
ments can be shared among users.
• Select Help Settings if you wish to host the Help files locally. For
detailed information, see “Setting up Help Files Locally” on page
143.
• For information about using the Logging tab to work with log-
ging rules or start APM Network Log Viewer, see “Viewing and
Configuring Log Files” on page 121.
8. When you are finished, click the File menu and then Save. Close the
Settings Editor.
After the APM server or service instance is configured, you can set user
permissions and run tests to be sure that it is set up properly.
Note: APM runs the utility automatically when you launch the
Product Activation Wizard, either from APM Configuration or the
InstallShield wizard. Permissions are granted to the current user
and any APM service users. The Grant Permissions utility also
runs automatically when you install an APM service.
The Users list displays the current user and any APM service users in
alphabetical order.
2. For each user, click Browse. The Select Users or Groups dialog
appears. For example:
3. Set the location, for example, the current computer or a domain. Click
Locations to select the location that you wish to search.
4. Enter the user name and click Check Names to validate the name.
You can click the examples link to view Help for using the dialog.
Tip: If you have just installed APM and haven’t set up APM serv-
ers/services yet, include the Local Service user, your own user
account, and any domain users who will be using the computer.
Note: The Remove button removes the selected name from the
list of users. It does not remove the user’s permissions if they have
already been granted.
6. Click Close.
2. Click Run Tests. The testing process checks for prerequisites, the
path to the attachment folder, the availability of Help files, the data-
base connection, and so on. APM also checks the validity of the
SELECTserver activation key and your user permissions. Tests for a
server/service include checks for the Web Monitor and operating sys-
tem type. The results of the tests appear in the tab. For example:
Icon Description
Error – the server will not run. The instance must be cor-
rected before the application will run.
Icon Description
Warning – review the message before using the server.
The tested instance will run, but information is provided
so that the instance can be adjusted.
Successful – OK to proceed.
4. If the test results in a Conflicting Port error, you can assign ports
manually.
Click in a cell to change the port number. When you are finished, click
OK.
Note: Modifying ports might require you to update your smart cli-
ent and remote packages.
To Create Shortcuts
You can create a shortcut to the server and place it on the desktop, in the
Programs menu, or in both places.
5. If you are installing the shortcut in the Programs menu, you can
specify the sub-folder. The default location in the Programs menu is
Bentley\APM.
In the APM Configuration window, click the Installation list and then
Install Service if you want to add a service. See “Installing the APM
Server as a Service” on page 102.
Click the Installation list and then Uninstall Service to shut down an
installed service. See “Uninstalling a Service” on page 106.
For more information about running a server in Console mode, see “APM
Server Window” on page 99.
Note: If the text in the APM user interface is not available in the
selected language, English is shown. However, all formatting com-
plies with the selected language.
3. On the Configure Instance tab, select the language from the list in
the Globalization node.
You must exit and log off APM and log back on to see the user interface in
the new language.
3. In the Actions list, select New Rule. The New Inbound Rule Wizard
appears.
5. Select TCP and Specific local ports. Enter the ports you are using.
For example, enter “13101, 8080, 13201, 13301, 13401, 13501” if you
are using the default port numbers.
6. Click Next twice, accepting the default options on the Action and Pro-
file pages.
8. Click Finish.
• Tools: Select this menu to lock or unlock the server or launch the
Web Monitor. If users are connected to the server, send messages
to them and manage their server connections. Launch APM
Server Manager.
For more information, see “APM Server Tools”, next and “Using
the Web Monitor” on page 107.
• Logging: Select this menu to clear the log window.
For more information about logging see “APM Server Logging” on
page 101.
• Options: Select this menu if you wish to work with the server set-
tings or service providers.
2. Click the Tools menu and then select the action you want to perform.
The Settings Editor for APM instances provides a single location where
you can define the server/service or thick-client settings, database
account information, language, and other settings that apply. The diag-
nostic and runtime behavior of the instance is also defined in the Settings
Editor. You can open the Settings Editor from APM Configuration or the
Server window.
The Settings Editor can also be opened from the command prompt or a
shortcut for servers (IvaraServer.exe -s), smart clients (IvaraClient.exe -
s), and thick clients (IvaraClient.exe -l -s).
The Error logging level is used for errors that might corrupt data or
cause improper program behavior. Because logging is additive, Fatal
messages are also logged and displayed.
To clear all the reported log entries, click the Logging menu and then
Clear Log Window:
Restarting a Server
Before restarting a server, use the Web Monitor (or the tools for a console
server) to ensure that no users are connected to the server. If users are
connected, you can send them messages asking them to disconnect, or
you can lock the server and force them off.
If the server is installed as a service, you can use the Windows service
console to start the service. For example:
4. A message will appear, and when the service has started successfully,
you will see “Started” in the Status column of the Services window.
Server Deployment
You can run one or more APM servers. You can set them up to run in
Console mode or as background Windows services. This section explains:
Tip: You can continue to run the server in Console mode, but not
at the same time that it is running as a Windows service.
You can monitor the installed service using the Web Monitor, as
explained in “Using the Web Monitor” on page 107.
When you install a service, APM automatically runs the Grant User Per-
missions for License utility, which sets permissions for the current user
and all service users to access the registry location and licensing folder.
To Install a Service
1. Launch APM Configuration. For example, on the Start menu, click
Bentley, the appropriate APM program group, and then Configure
APM. The APM Configuration window appears.
3. Click the Installation list and then Install Service. The APM Ser-
vice Options dialog appears. For example:
The APM Service Installer window also appears and shows the status
of the installation as it progresses:
4. In the APM Service Options dialog, specify the service account that
the service can use to log on.
Note: You must also add both a user and an employee in APM for
the service. If you are using Local System, the user name must be
Computer_name$.
If you select the “User” option, you must create a Windows user with
administration privileges. You must also create a corresponding APM
user with the same name. Enter the username and password.
Tip: When you select the “User” option and enter the username,
you might also need to specify the domain, as in, Domain\User-
name. Specify the domain if the installation fails with the mes-
sage “The account name is invalid or does not exist, or the
password is invalid for the account name specified.”
5. Select a start mode:
Tip: You can run two or more instances of an APM server on one
computer, each with its own settings. To do this, change the
instance to a different name of your choosing.
Because you started from APM Configuration, the port number
selected for the server instance is displayed. Each server instance
must run on a unique port.
6. You can enter an IP or network address to bind to so that the server
listens on a specific network card. You might choose to do this for load
balancing or for other network-related reasons. Use this option in
consultation with your network administrator.
7. Click OK. The APM Service Installer window shows the result of the
installation process.
8. When you have reviewed the information, click OK to close the win-
dow.
If you are not using the LocalSystem account to run the service, you can
specify or change the user account on the service’s properties.
Recovery Settings
Occasionally, the APM service can exit unexpectedly. This can be due to a
variety of external events, including when the database server goes down
unexpectedly. When you install a service, its recovery options are auto-
matically set as follows:
With these settings, the server restarts itself and smart client users are
asked to reconnect to the server to continue. Open objects are re-
launched, but changes in progress are discarded.
Resuming the service allows new clients to connect normally. This works
much the same way as the Lock and Unlock commands when you run the
server in Console mode.
Uninstalling a Service
You can uninstall a service that is no longer required. Be sure to stop all
running services beforehand and to specify the service instance that you
want to uninstall.
To Uninstall a Service
1. Stop all running services.
3. Click the Installation list and then Uninstall Service. The APM
Service Installer window appears and the Select APM Service dialog.
5. The APM Service Installer window displays the process steps as the
service is removed from the system. When the process is complete,
the window displays “The uninstall has completed”.
• Listen on a different smart client port (the first default port is 13101)
• Run the Web Monitor on a different port (the first default port is
8080)
• Have its own configuration
APM also provides a template for setting up a web server status page for
monitoring multiple servers.
Tip: In the APM Server window, you can launch the same com-
mands from the Tools menu as you can from the Web Monitor.
The Windows Security dialog typically appears, where you can enter the
user name and password for the Web Monitor (assigned in the server/ser-
vice instance’s Mandatory settings).
When you launch the Web Monitor, the APM Server Statistics page
opens in your web browser. For example:
Tip: You can sort the tables in the Session Statistics and Ser-
vice Providers sections by clicking a column heading. An arrow
appears in the heading, showing that the table is sorted by its val-
ues and indicating whether the sort is descending or ascending.
For example:
Refreshing Information
You can refresh the information on any page by clicking Refresh at the
top or bottom of the page. This will help ensure that you are working
with current server information.
Note: If a server is down and you refresh the Home page, it might
appear that the server is still running. If you click a link to a Ser-
vice Provider that is listed on the page, you will see a Diagnose
connection problem page. Refer to the server log files or to the
Network Log Viewer for full details.
• View a list of server log files. Double-click a file to view its contents.
• Create process dumps by clicking Dump Process Now.
• Use ADPlus to monitor the APM Server process and create dump files
when errors or exceptions occur. Click Monitor Process. “Server is
being monitored” is added to the page:
The APM Server Dump Process page appears to show progress. Click
Back to return to the Diagnostics page.
2. Find the database connection in the table and click the red icon in the
Terminate Database Connection column. On the APM Server
page, the Terminated Database Connection notice appears.
3. Click Home to return to the Statistics page. It might take a few min-
utes for the database connection to be terminated.
On the APM Server Statistics page, click License. The License page dis-
plays information about the activation key, the installed APM products,
and the status of licenses. For example:
General Information
If you have activated the product with SELECTserver, the Activation
Key field displays the valid key provided by Bentley Sales Support.
The Binding Activation Key field displays the activation key stored in
the database accessed by the server, which is identified in the Binding
Server field. The products listed on the License page are taken from the
binding activation key.
The first time that a thick client or server instance accesses an APM
database, its activation key is “bound” to the database. After that, if an
APM thick client or server instance attempts to connect to the database
with a different key, the other key is accepted if it includes the same
number of products or more. If the other key includes fewer products
than the bound key, the client is not able to run and a message informs
the user.
To connect with the SELECTserver and send usage logs, click Synchro-
nize. Your license information is refreshed as a result of the exchange.
Products
The Products section of the page displays the installed APM products
and the activation status of each.
If the license status for a server product is not “Activated”, users will see
a pop-up message when they start APM. The notification shows the sta-
tus, for example, “Trial” and, if applicable, the number of days remaining
before the status will change to “Disabled”.
After SELECTserver activation, the Server Connector and some Visa and
Passport products are shown with the “Trial” status in the Web Monitor
until the first time they generate usage logs. For example, if you do not
use the ODC Connector on a particular computer, it will have the status
“Trial” on that machine until it is used. Similarly, if you have not used
the SD client, it has the “Trial” status until a smart client visits the
Strategy Development view. In this situation, the Number of Days Left
column continues to show “30”; that is, the license does not expire.
2. Click in the user’s Send Message box and enter the message.
Upgrading a Server
The process of upgrading a server differs depending on whether or not
you need to upgrade the database.
• Shut down all users connected to the old server and upgrade the data-
base.
• Install the new software in a different directory.
• Configure and run the new server. The instance name and port must
be different from the old server.
• Prepare and deploy a smart client install update.
• As clients start, they will get the upgrade and connect to the new
server.
• Shut down the old server and uninstall, if necessary.
If the database has not changed:
• Restart all clients on the old server. As clients restart, they will get
the upgrade and connect to the new server.
• Shut down the old server and uninstall, if necessary.
In the Session Statistics section of the Home page, you can see which
users are connected to the server and which connections are active. The
In Transaction column contains a value of “false” when the session is
not active. The column displays “true” if the user is actively committing
transactions to the database. Sometimes a stale session can continue to
appear to be “in transaction”. In this case, it is advisable to shut down the
session. The App Locks column displays the number of application locks
in use by a user.
You can choose to shut down and restart all users in a single step. This is
useful when a new version of APM software is ready for deployment. The
administrator can package updates and then click Restart All Users.
This action stops all sessions and then immediately restarts them. On
connection to the server, the updates are pushed out to the APM clients.
For more information, see “Restarting All Users” on page 119.
2. If you have not done so already, send the user a message advising
that the session will be shut down. Enter a message in the text box
provided and click the Send icon ( ).
3. When the user has been warned, click the Shutdown ( ) icon. The
Shutdown User page opens, showing a “Shutdown User” notice. The
user is scheduled to be shut down.
2. Click Lock Server. The APM Server page opens, showing a “Lock
Server” notice.
If users try to connect to the server, they will see the message from
the APM Server Statistics page.
3. Click Home to return to the Statistics page.
The APM Server page opens, showing a “Lock Server” notice. Users
who attempt to connect will be able to start a session.
2. Click Home to return to the Statistics page.
Note: You can also unlock the server from the APM Server win-
dow, Tools menu.
Note: You cannot restart sessions for users if you have shut down
their sessions individually or if you have chosen the Shutdown
All Users option.
Log files are generated by APM applications, services, and utilities, for
example, APM Server, APM Client, APM Upgrade Wizard, Smart Client
Packager, and Remote Synchronizer. The majority of log files are stored
on the computer where the process is running, in the default log direc-
tory:
C:\ProgramData\Bentley\IvaraEXP\Logs
Tip: You can change the default directory. See “Changing the
Default Location for Log Files” on page 126.
There are a few exceptions to the default location. For example, under
Windows 7, the smart client log files are generated to the user’s App-
Data\Local\Bentley\IvaraEXP\Logs directory).
Tip: When you have one of the packager utilities open, click the
Help menu and then Log File Location to open Windows
Explorer to the folder where log files are stored.
You can also view APM server logs in these ways:
To use Network Log Viewer, the logging configuration file must contain
at least one logging rule that specifies netlogviewer as a target. Two of
the rules in the logging configuration file write to Network Log Viewer:
3. Click the Configuration list and then Full Settings. The Record
Settings window appears.
Tip: You can also open the Settings Editor from the Server win-
dow. Click the Options menu and then Server Settings.
4. Click the Logging tab. The rules and targets are loaded into the util-
ity from the logging.config file. The logging categories are loaded to be
available in the name list.
5. Click Live Log Viewer. The APM Network Log Viewer window
appears. As events occur on the server and the application, errors and
warnings are logged. For example:
Entries in the log appear in a table format, sorted in date and timestamp
order. The information displayed includes:
• You can save the entries as an XML file that can then be used for
troubleshooting or technical support purposes. To do this, click the
File menu and then Save as XML file. The Save As window
appears. Select a location and name the file, which is saved with the
“*.ivlog” suffix.
• You can view saved .ivlog files. Click the File menu and then Open
XML File. The Open window appears, where you can locate and
select the file. When you click Open, the file’s contents are displayed
in the viewer.
Tip: You can also right-click a cell in the viewer to see options
such as copy, create a new filter, update an existing filter, include
or exclude the cell in the filter. Each of these options has a tooltip.
2. Click New Filter. In the Description column, enter a name for the
filter you are creating.
3. Click the SQL column. Enter the SQL criteria for the filter. For
example, to create a filter for any messages that contain the term
“locked”, enter “message like ‘%locked%’”.
4. Double-click the filter to use it. A red check mark appears beside the
filter name.
You can add multiple filters. If you do not wish to use any filters, click
Use None.
5. When you have finished, click Close. The Network Log Viewer logs
are filtered according to your selection. The Filter icon at the bottom
of the viewer shows “on”:
Note: Filters are saved automatically. They are not deleted when
the Network Log Viewer is closed.
C:\ProgramData\Bentley\IvaraEXP\Logs
3. Click the Configuration list and then Full Settings. The Settings
Editor appears.
5. In the Default Log Directory field, click the browse icon, select the
new folder, and click OK.
Logging Overview
Logging requires rules, logging levels, and targets, all of which are
recorded in the logging.config file. This section explains logging require-
ments and the contents of the logging configuration files stored in the
Bentley\AssetWise Performance Management\bin folder.
Rules
Rules identify what to log. Each rule comprises a name, a logging level,
and a defined output target. The rule’s name identifies the category of
data to log, which typically consists of the namespace and class name.
The rule name can end with an asterisk (*) wildcard. Categories are used
to combine rules such that they are organized into a named hierarchal
structure. For example, log Ivara.PL.Remoting is a child of log Ivara.PL.
Logging Levels
There are seven levels or thresholds at which logs can be set.
• Fatal: Used for very serious errors that crash the program. Only logs
of a fatal threshold are logged.
• Error: Used for errors that might corrupt data or cause improper
program behavior. Only logs of Error and Fatal are logged.
• Warn: Used for errors that have been handled by the system, but
which developers or technical support want to track. Error, Fatal,
and Warn logs are logged.
• Info: Used for logging program execution such as startup of sub-sys-
tems, timing, or remoting calls. Logs of Info, Error, Warn, and Fatal
are logged. A log file of Info level will grow in size very quickly result-
ing in adverse system performance.
• Debug: Used for low-level debugging information mainly used by
program developers. All logs of level Debug and above are logged
(Info, Error, Warn, and Fatal).
• Trace: Typically used only at the request of APM Support to capture
information from Trace up to Fatal in order to track problems. Using
this level can significantly slow the performance of the application.
• Off: Nothing is logged.
Log levels are additive. When a log threshold is set, everything at that
level and above is logged. For example, if a log level is set to Info, every-
thing above that level (Warn, Error, and Fatal) is also logged.
Take care when setting the log level to use. If the level is set too high, the
log files could become very large due to the number of log details that are
reported. If set too low, not enough detail will be captured, possibly caus-
ing problems to be overlooked.
Targets
Targets detail where the information is sent. A target can contain infor-
mation about file location, truncation size, or the IP address for APM
Network Log Viewer (netlogviewer). You can specify the maximum size of
the log file and how many log files are kept before they are overwritten.
Example Rule
For example, the rule to log all messages of Error level or higher to a file
and the APM Network Log Viewer has the following format in the config-
uration file:
<rules>
<!-- Log all messages of error or above to a file and
netlogviewer -->
<logger
name="*"
minlevel="Error"
writeTo="file,netlogviewer" />
</rules>
tion’s needs. A single logging configuration file can contain multiple tar-
gets and their corresponding rules. The logging configuration files are
located in the Bentley\AssetWise Performance Management\bin folder.
Logging.config
Logging.config is the default file used for server and thick clients. Log-
ging.config contains these targets:
• netlogviewer – The log files are displayed in the APM Network Log
Viewer. This target logs to any computer that is running the APM
Network Log Viewer utility.
The logging.config file contains these rules:
Logging.thinclient.config
Logging.thinclient.config controls logging in smart-client environments.
It contains rules and targets that are similar to the logging.config file.
This configuration file is included by default when you package a smart
client installer.
2. Click the Configuration list and then Full Settings. The Settings
Editor appears.
3. Click the Logging tab. The rules and targets are loaded into the util-
ity from the logging.config file. The logging categories are loaded to be
available in the name list.
4. In the What to Log tab, click the New button and then New rule
from template in the list.
• When you click the browse button in the name box, the Filtered
Category List appears, showing the namespaces and class name
combinations that contain the current value in the name box. To
view all namespaces, type “*” in the filter box.
• For descriptions of the levels, see “Logging Levels” on page 127.
• When you click the browse button in the writeTo list, the Target
Selector dialog appears, showing all targets defined in the log-
ging.config file. To create a target, see “Creating Targets” on page
135.
7. When you are finished:
2. On the What to Log tab, click the New button and then New empty
rule in the list.
3. Click in the name box and click the browse icon. The Filtered Cate-
gory List appears, showing all of the namespaces and class names in
APM.
4. Find and select the namespace and class name to include in the log
statement. Click OK.
5. In the minlevel list, select the logging level. For more information,
see “Logging Levels” on page 127.
6. Click in the writeTo box and click the browse icon. The Target Selec-
tor dialog appears, showing all of the targets defined in the log-
ging.config file.
Creating Targets
You can create file and netlogviewer targets.
The new target is added to the tab. Default values are provided in the
details area.
3. You can select each detail in turn to view a description and adjust the
value appropriately.
2. On the Where to Log tab, click the New icon and then New Net-
LogViewer Target in the list.
The new target is added to the tab. Default values are provided in the
details area.
3. You can select each detail in turn to view its description and adjust
the value appropriately.
Setting up Email
APM supports two types of email messages: those sent automatically by
the system (for example, to notify employees of indicator alarms) and
those created by users in Microsoft Outlook (for example, to send an indi-
cator reading to another employee). APM comes with two email plugins:
SMTP and Outlook Mail. The email plugin architecture allows for other
plugins to be written if your organization uses a different email system.
SMTP Plugin
This plugin uses System Net Mail (part of the .NET Framework) to send
emails without a user’s interaction. Emails that are sent automatically,
for example, to report indicator alarms, require that employees on the
notification list have accurate email addresses in their employee records.
Client and server email settings must specify the SMTP plugin assembly
name (SmtpPlugin) and host name, which is the name or IP address of
the email server. The email server must support SMTP (Microsoft
Exchange supports SMTP if configured to do so). On the server, only
SMTP email is supported.
SMTP email does not support any “compose UI”, so emails where the
required recipient information is not available (like the Send To option)
cannot be sent via SMTP.
If the server and client use different instance names, the client’s instance
name must be identified in the Server Email Settings so that users can
open emailed shortcuts.
4. If you are using a custom email DLL instead of the plugin supplied by
APM, click the File menu and then Show Advanced Settings. In
the Server Email Settings, the Use Non-Ivara Mail option is
available. Set this option to True. Skip the following step.
Unless you are providing your own email plugins, leave the default
OutlookMailPlugin and SmtpPlugin values in place.
7. Set the SMTP plugin options to match the server settings.
Alternatively, you can set up your APM clients to access the Help from
the APM application server, a shared network directory, or your web
server. Setting up local Help requires downloading the Help zip file from
the APM FTP site and extracting the files to the desired location. Use the
Help settings for the instance to specify the location of the Help.
4. Click the Configuration list and then Full Settings. The Settings
Editor window appears.
9. In APM Configuration, select the Test Instance tab and click Run
Tests. The Online Help test checks that the files are accessible.
11. Start APM and click . The APM Help opens in your browser.
Note: When the Help files are accessed using the file system,
Internet Explorer might prompt you to allow blocked content.
Google Translate is not available.
This section provides the syntax for the IvaraClient, IvaraServer, and
the Generate Custom Schema applications, explanations for the options,
and examples of their use.
IvaraClient.exe [/rs] [/l] [/ad] [/r] [/s] [/a] [/p] [/ba] [/bp] [/i] [/ic] [/c] [/o] [/v]
[/w] [/df] [/nc] [/n] [/pi] [/sw] [/bc][/al][/alt] [/?]
Option Description
/rs Show remote settings
Option Description
/l Start a local server (also called “thick
client”)
/ad Run a local server (thick client) as the
APM Administrator privilege. The
Privilege option in the user record
must be set to “Administrator”.
/r Connect to a remote server
/s Show the Settings Editor
/p:<port#>
/ba Address of APM Server Manager to
connect to.
/bp Port of the APM Server Manager to
connect to.
/i Application instance to launch
Option Description
/c Class ID of the window to launch
Option Description
/sw Display the APM Logon dialog to run
as a different user:
Example:
/l /i:<instancename> /sw
IvaraServer.exe [/r] [/a] [/rs] [/p] [/w] [/us] [/is] [/s] [/i] [/pi] [/df] [/?]
Option Description
/r Run the server in Console mode
/a IP address to bind to
Option Description
/p Network port to bind to
/w Port of the Web Monitor
Option Description
/pi Prompt for the instance to run. For
example:
Example:
/r /pi
Copying an Instance
You can select an instance and then
copy it by clicking . The Copy dia-
log appears:
Option Description
/i APM thick-client instance to launch
Example:
/i:<instance_name>
/s Use the server/service settings
Example:
/i:<instance_name> /s
/q Run without displaying the window
/? Show the list of options
Deployment Options
To make the installer available to users, you can have the packager place
the IvaraClientSetup.exe and IvaraVersion.xml files on a standard APM
deployment web server hosted by the application server. Two settings
control the deployment server set up. For the server/service instance, the
Settings Editor has advanced settings in the Mandatory Settings node:
Note: If you change the defaults, you will also need to change the
default deployment path on the Automatic Update Information
page of the packager.
Automatic Updates
A client software installer includes information that allows updates to be
downloaded and installed on client computers. When the user logs on to
APM, the application checks for updates and, if found, informs the user
that an upgrade is available. When the user clicks OK, the update is
downloaded and installed.
2. Select the server/service instance from the list. This loads the default
settings, assigns port numbers, updates URLs, and sets local deploy-
ment paths.
4. Provide a name for the install directory. This name is used as the
directory name when installing the software and it is used when cre-
ating the folder in the user’s Start menu for the icons. The name can-
not contain the characters \, /, :, *, ?, “, <, >, or|.
Tip: It is good policy to use the same project when packaging the
software for an upgrade. When users install the update, the previ-
ous version is uninstalled automatically, even if the Install Name
has changed.
5. Select the install location:
6. In the property grid on the right, click in the Shortcuts box and then
click the browse icon to view the Shortcuts dialog. For example:
• Set Launch After Install to “True” if you want the Start APM
options to be selected in the setup wizard when the installation is
complete.
• In the Shortcut Command Line setting, you can specify any
additional command line parameters to be included with the
shortcut, for example, /sw to present the logon dialog.
When the instance specifies APM Server Manager settings, the
Shortcut Command Line contains -ba and -bp values for the
server manager’s address and port, respectively.
When APM Server Manager is not in use, the Shortcut Com-
mand Line contains -a and -p values for the server’s address and
port, respectively.
• You can change the folder, icon, and name for the application
shortcut.
• When you are finished, close the Shortcuts dialog.
7. To install a second instance and shortcuts, click . A new instance is
added to the list. Select an instance and set its options using the prop-
erty grid on the right. This feature allows you to install multiple ver-
sions of the client on the same computer by giving each of them a
different name.
Tip: The User Interface settings include the language that the
APM server uses. You can change this setting for the client by
selecting another option in the Language list under Globaliza-
tion.
Tip: You can also delete an instance by selecting it in the list and
clicking . Delete all of the instances by clicking .
9. Click . The Add Files page appears.
10. Use this page to review the files that will be included in the package
and to add others if needed, for example, custom cache and dll files.
You can deselect optional files that you do not wish to include in the
package. Mandatory files, like those in the Core node, cannot be
deselected.
• To add a child to a node in the tree, right-click the node and click
Add Child Component. The Add Component dialog appears,
where you can enter a name and click OK.
Tip: To delete any item that you added to the tree, right-click it
and click Delete.
• To add the contents of a folder to a node in the tree, right-click the
node and click Add Folder. The Browse for Folder dialog
appears. Navigate to and select the folder. When you click OK,
the contents of the folder are added to the tree.
• To add one or more files to a node in the tree, right-click the node
and click Add Files. The Open dialog appears, which contains fil-
ters for binary files, cache files, and all files. Navigate to the file(s)
and select them. When you click OK, the files are added to the
tree.
Tip: To prevent a file that you added from being deselected, right-
click it and click Make Mandatory.
12. Click . The Automatic Update Information page appears. For
example:
If you are using the APM deployment server, the URL and the local
file path are provided in read-only format.
If you are using a network share, enter the UNC path in the following
format:
\\<machine name>\<share name>\
Note: The software version and publish date are entered for you
automatically.
16. Click . The next page is blank, but the Create Installer button is
enabled.
17. Click Create Installer. The progress is shown in the page and when
the process is complete, a message appears. For example:
• Click Yes to copy the files to the deployment path that you speci-
fied in the wizard. If you are using a file share, the “Deploy com-
plete” message appears. If you are using the deployment server,
your web browser opens showing the Install page. For example:
Tip: To view log files generated by the packager, click the Help
menu and then Log File Location(s). A dialog appears listing
the locations of log files. The file name is IvaraClientSetupPack-
agerLog.txt.
20. Close the Smart Client Packager window.
Note: If you do not log off and exit APM before uninstalling, the
utility must reboot the computer to remove locked files. A mes-
sage appears asking you to confirm the reboot.
Click Yes to reboot the computer and complete the uninstall process.
Deployment Options
To make the installer available to users, you can have the packager place
the IvaraThickSetup.exe and IvaraThickVersion.xml files on a standard
APM deployment web server hosted by the application server. Two set-
tings control the deployment server set up. For the server instance, the
Settings Editor has advanced settings in the Mandatory Settings node:
Note: If you change the defaults, you will also need to change the
default deployment path on the Automatic Update Information
page of the packager.
Automatic Updates
A thick-client software installer includes information that allows updates
to be downloaded and installed on client computers. When the user logs
on to APM, the application checks for updates and, if found, informs the
user that an upgrade is available. When the user clicks OK, the update is
downloaded and installed.
2. Select the server instance from the list. This loads the default set-
tings, assigns port numbers, updates URLs, and sets local deploy-
ment paths.
4. Provide a name for the install directory. This name is used as the
directory name when installing the software and it is used when cre-
ating the folder in the user’s Start menu for the icons. The name can-
not contain the characters \, /, :, *, ?, “, <, >, or|.
Tip: It is good policy to use the same project when packaging the
software for an upgrade. When users install the update, the previ-
ous version is uninstalled automatically, even if the Install Name
has changed.
5. By default, Data Source Name displays the ODBC data source that
the instance references. You can select another DSN from the list.
Tip: You can also delete an instance by selecting it in the list and
clicking . Delete all of the instances by clicking .
10. Click . The Add Files page appears.
11. Use this page to review the files that will be included in the package
and to add others if needed, for example, custom cache and dll files.
You can deselect optional files that you do not wish to include in the
package. Mandatory files, like those in the Core node, cannot be
deselected.
• To add a child to a node in the tree, right-click the node and click
Add Child Component. The Add Component dialog appears,
where you can enter a name and click OK.
Tip: To delete any item that you added to the tree, right-click it
and click Delete.
• To add the contents of a folder to a node in the tree, right-click the
node and click Add Folder. The Browse for Folder dialog
appears. Navigate to and select the folder. When you click OK,
the contents of the folder are added to the tree.
• To add one or more files to a node in the tree, right-click the node
and click Add Files. The Open dialog appears, which contains fil-
ters for binary files, cache files, and all files. Navigate to the file(s)
and select them. When you click OK, the files are added to the
tree.
13. Click . The Automatic Update Information page appears. For
example:
If you are using the APM deployment server, the URL and the local
file path are provided in read-only format.
If you are using a network share, enter the UNC path in the following
format:
\\<machine name>\<share name>\
Note: The software version and publish date are entered for you
automatically.
17. Click . The next page is blank, but the Create Installer button is
enabled.
• Click Yes to copy the files to the deployment path that you speci-
fied in the wizard. If you are using a file share, the “Deploy com-
plete” message appears. If you are using the deployment server,
your web browser opens showing the Install page. For example:
Troubleshooting
This section provides tips on diagnosing and solving problems that you
might encounter when installing or upgrading the software, running the
product, or configuring APM servers and clients.
Contents
.NET Framework Remoting Exception when Running IvaraServer . . 174
Web Monitor: Content Blocked by Internet Explorer Enhanced Security
Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 174
APM Service Unable to Connect to Oracle Database . . . . . . . . . . . . . . 175
The .NET Framework was not detected so the .NET components were not
installed. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 175
Generating Call Stacks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 175
Open APM Configuration, select the instance, and open the Settings Edi-
tor. Show advanced settings, select Mandatory Settings, and scroll down
to the Network node. IPv6 Only is set to “False” by default, indicating
that the server supports version 4 only or both versions 4 and 6. Switch it
to “True” if only IPv6 is supported on the server.
javascript://void(0)
Running on a server, Internet Explorer typically uses different security
settings than on a client computer. To turn off the Enhanced Security
Configuration:
4. Click OK.
Solution
Have the Oracle data source point to a local copy of the
TNSNames.ora file.
The .NET Framework was not detected so the .NET components were
not installed
You will see this message if you attempt to install the OPC Core Compo-
nents v2.00 redistributable before the .NET Framework is installed. This
is required for the OPC.NET plugin for APM Online Data Collection. You
might also see this message when running the APM installation if you
selected the OPC option.
2. Re-run the OPC Core Components 2.00. This file is included in the
APM installation folder in the Prerequisites folder: OPC Core Compo-
nents Redistributable.msi.
2. Click the Configuration list and then Full Settings. The Settings
Editor appears.
Contents
Scheduled Actions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 178
Setting Up the Action Scheduler Service Provider. . . . . . . . . . . . . . . . 179
Creating a Scheduled Action . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 190
Scheduled Actions
Scheduled actions are methods that can be set up to run automatically
with a repeatable frequency. Each scheduled action defines:
Set Up
The initial step to using APM and service providers is to set up the APM
server.
Next, set up the service provider in APM. This is done from the Enter-
prise window, Services view. In this step, add the server machine and a
server instance, and then browse for the service provider plugin to use for
the Action Scheduler.
Define the scheduled actions that the service provider will run. You can
select from a list of methods or actions to schedule and the site for which
the method will run. Select the service provider and then set the appro-
priate scheduled frequency. Set the polling interval for the scheduled ser-
vices.
Execution
After the setup is complete, the server, service provider, and the Win-
dows Task Scheduler execute scheduled actions.
The Action Scheduler service provider that runs within the APM server
makes sure that the scheduled methods are set up in the Windows Task
Scheduler as tasks. It compares what was defined as a Scheduled Action
and creates a Windows Scheduled task for each defined method.
Requirements
Review the following requirements for the computers that will run the
Action Scheduler:
• The user ID used to run the APM server must have permission to cre-
ate Windows scheduled actions.
• All service provider components must reside on all server machines.
This ensures that a full list of service providers is available for config-
uration.
• If multiple services will be set up and run on the same server, you
must set up a unique network ID and APM employee for each Action
Scheduler service that will run on the server. This is not necessary if
you will be distributing one APM service on each machine over multi-
ple servers, but it is recommended none the less.
Running ODC and Action Scheduler services on the same machine
also requires a different user ID for each service.
• The data source that connects to the APM database must be a System
DSN.
• The Microsft Outlook email program must be set up and available.
This is because some scheduled actions might require the system to
send email notifications (for example, Recalculate Calculated Indict-
ors and Process Handheld Checksheets).
Overview of Steps
To set up the Action Scheduler, complete the following steps:
Step 1 - Create an APM User for Each Action Scheduler Service Provider
When the Action Scheduler server is installed and started, you can
assign the APM Action Scheduler service provider plugin to the
server instance. You can do this in APM in the Enterprise window.
Step 4 - Configure the Polling Interval
You might need to change the polling interval for the Action Sched-
uler (the default interval is one hour). The polling interval that you
select should take into account the frequency with which all sched-
uled actions are run.
Step 1 - Create an APM User for Each Action Scheduler Service Pro-
vider
1. Have your network administrator create a Windows user for each
Action Scheduler service. For example, you might create a user with
the name “APM-as”.
This user must have the right to login as a service. The user should
also have an email account and access to the Microsoft Outlook®
email program on the computer where the Action Scheduler will be
installed.
2. You must also set the permissions so that the Windows user can
access the licensing folders. You can launch the Set User Permissions
utility from the APM Configuration window. Click the Configura-
tion list and then SELECTserver Permissions. Grant permissions
for the Windows user for the Action Scheduler service.
For more information about this utility, see “To Grant User Permis-
sions for SELECTserver Licensing” on page 91.
3. In APM, open the Enterprise window and select the Security view,
Users tab.
4. Click New to create an APM user that matches the Windows user
created in step 1. For example, create an APM user with the name
“APM-as”. Save and close the User window.
6. Link the employee to the APM user created in step 3. Click This
employee is an APM user and select the user name that you cre-
ated in step 4. On the Contact Info tab, add a valid work email
address. Save and close the Employee window.
7. Test that the Action Scheduler user has the appropriate rights and
settings by doing the following:
Step 2 - Create, Install, and Start the Action Scheduler Server Instance
We recommend creating a server instance dedicated to the Action Sched-
uler to help you keep track of performance and message logging. The
Action Scheduler server must be installed as a Windows service. You will
also need to assign the user (created in Step 1) to the service.
When you install a service, APM automatically runs the Grant User Per-
missions for License utility, which sets permissions for the current user
and all service users to access the registry location and licensing folder.
3. In the Name box, enter a name for the action scheduler server, for
example, “APM-as”. The name cannot contain spaces.
Tip: You can copy an existing instance and modify it to include the
properties that you want.
4. In the Database Name list, select the ODBC data source for the
APM database.
5. Ensure that the database user name and password are correct.
Note: Network and Web Monitor settings show the server and
web server ports, respectively. Whenever a new instance is added,
APM automatically increases the port numbers by one to ensure
that they are unique.
6. Provide the user name and password for the Web Monitor.
7. Click the Configuration list and then Full Settings. The Settings
Editor for the new instance appears. In the Server settings, click the
Service Providers node.
9. In the File menu, click Save. Close the Settings Editor to return to
the APM Configuration window.
The APM Service Installer window also appears and shows the status
of the installation as it progresses. For example:
2. In the APM Service Options dialog, select the service account that the
service can use to log on.
Note: You must also add both a user and an employee in APM for
the service. If you are using Local System, the user name must be
Computer_name$.
6. Click OK. The APM Service Installer window shows the result of the
installation process. If no errors occurred, a message that the instal-
lation is complete and successful appears.
7. When you have reviewed the information, click OK to close the win-
dow.
2. Right-click the APM Server for the Action Scheduler service and click
Start.
5. Select This Account, and enter the user ID of the Action Scheduler
user (for example, the “APM-as” user). Enter and validate the pass-
word.
Note: For the user ID, you must enter the correct domain name
for the user using this syntax:
<DomainName>\<UserName>
For example, MYCOMPANY\APM-AS
6. Click OK.
2. In the Server machines list, create and select the server machine
that runs the server for the Action Scheduler.
3. Create a server instance for the server machine. The name must
match the one given to the server instance when it was created.
4. Select the server instance and click Browse below the Service pro-
vider table. The Browse Service Provider Plugins dialog appears.
Once the scheduler begins executing a single scheduled action, it will not
poll the scheduled actions list again until that method is completed.
Therefore, if the time it takes the method to execute exceeds the amount
of time allotted between polls, then the next poll will be delayed. The
next method will run but will be delayed by the extra time required to
finish executing the previous method. For example, if a method takes an
hour and half to finish and the polling interval is one hour, the next poll
will be delayed by half an hour.
To avoid potential polling delays, you should optimize the run frequen-
cies between scheduled actions.
2. Select the Services view, Scheduled Actions tab. The current poll-
ing interval is displayed at the bottom of the tab. For example:
You might need to schedule some or all of the following methods to run
automatically on a regular basis:
Note: The work type contains the options that permit work order
tasks to be closed with a scheduled action and that designate the
length of time between completion and closure.
2. Select the Services view and the Scheduled Actions tab. Click
New. The Scheduled Action dialog appears.
Note: Some of the actions that are listed are specific to the EAM
modules only.
5. If you want to restrict this action to run for a single site, select Only
Schedule for Site and select the site on which this action will run.
For example, you might want to create a different schedule for pro-
cessing activity reports on each site.
Note: You cannot schedule the same action to run on two servers
for the same site. Similarly, you cannot assign an action to all
sites and then assign it again to a single site.
7. Select Stop running after and specify a time period if you expect
that the volume of actions will be large enough to affect system per-
formance.
When you work with an object that uses a recurrence pattern, you will
see a section of the screen that looks like this:
This topic explains how to define each type of pattern: hourly, daily, by
week, by month, and by year.
2. Enter the time interval expressed in hours (for example, every two
hours or every 0.5 hours). If you want to enter an interval of less than
one hour, enter it as a decimal (for example, 0.25 hours for 15 min-
utes or 0.5 hours for 30 minutes).
• If the pattern will repeat all day long, select All day (selected by
default). “All day” means the pattern will repeat from midnight to
midnight.
• If the pattern does not repeat all day long, enter the times when
the pattern will start and end in the From and Until boxes.
4. Select the day(s) of the week on which the pattern will occur. For
example, you might want the pattern to occur on weekdays but not on
weekends. By default, all the days of the week are selected.
2. Enter the time of day at which the event will occur in the From box.
3. Select the day(s) of the week on which the pattern will occur. For
example, you may want the pattern to occur on weekdays but not on
weekends. By default, all the days of the week are selected.
2. Enter the time interval for the pattern expressed in weeks (for exam-
ple, every one week or every two weeks). You cannot enter an interval
of less than one week.
3. Enter the time of day at which the event will occur in the From box.
4. Select the day of the week on which the event will occur. For this
option, you can only select one day of the week.
2. Enter the time interval for the pattern expressed in months (for
example, every one month or every two months). You cannot enter an
interval of less than one month.
3. Enter the time of day at which the event will occur in the From box.
Note: A monthly task scheduled for the last day of the month is
only supported on Windows Vista/Server 2008 and newer. On ear-
lier versions of the operating system, the task will be scheduled
for the first day of the month.
2. Enter the time interval for the pattern expressed in years (for exam-
ple, every year or every two years). You cannot enter an interval of
less than one year.
3. Enter the time of day at which the event will occur in the From box.
Warning and information messages are displayed for the service and
saved in log files.
The log files are stored on the computer where the process is running, in
the default log directory:
• Windows 7 – C:\ProgramData\Bentley\IvaraEXP\Logs
• Windows XP – C:\Documents and Settings\All Users\Application
Data\Bentley\IvaraEXP\Logs
SimpleMethodInvoker_instance_ScheduledActionId_ID.txt
2. On the Tools menu, click Web Monitor. The APM Server Statistics
window appears.
You can also access the Web Monitor from remote computers by open-
ing a web browser and entering:
http://servermachinename:port#/
where servermachinename is the name of the computer running the
server and port# is the web server’s port number.
This can be useful when running a service when there is no user
interface to launch the Web Monitor.
The APM Server Statistics page, Service Providers section, dis-
plays the description of the service, its current state, and when it
started.
Note: In order to capture all of the data, the Web Monitor should
be running before the Action Scheduler service is started.
For information about using the Web Monitor and configuring logging,
see “Using the Web Monitor” on page 107 and “Viewing and Configuring
Log Files” on page 121.
1. From the Site window, click on the tool bar. The Enterprise win-
dow appears.
3. Double-click the action to open its window. Select the History tab.
5. Select the Audit History tab to view audit activity pertaining to the
scheduled action such as when it was created, activated, suspended,
next date and frequency changes.
This chapter explains how to set up the web service, set up virtual hand-
held computers in APM, and install APM Mobile.NET software on hand-
held computers.
Contents
Introduction to Handheld Computing Setup . . . . . . . . . . . . . . . . . . . . 202
Software Prerequisites . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 204
Setting up the Handheld Computing Server . . . . . . . . . . . . . . . . . . . . 206
Viewing the APM Server Log Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . 215
Creating Virtual Handheld Computers in APM . . . . . . . . . . . . . . . . . . 216
Setting up the Upload Transaction Broker . . . . . . . . . . . . . . . . . . . . . . 219
Setting up Handheld Computers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 229
Troubleshooting Tips for Handheld Computing . . . . . . . . . . . . . . . . . . 239
Next Steps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 242
This section introduces the setup steps and describes the connection
types for handheld computers.
Overview of Steps
To set up handheld computing, you will need to:
Note: You might need to add a firewall inbound rule for TCP pro-
tocol to control the connections to specific local ports. This rule
specifies ports for the smart client service (13101), web monitor
server (8080), deployment server (13201), and mobile synchroni-
zation server (13301). For more information, see “Setting Firewall
Options” on page 97.
Software Prerequisites
Your handheld computer setup requires an application server to act as a
synchronization server, as well as APM Mobile.NET and prerequisite
software installed on each handheld computer.
Minimum Recommended
CPU 2 GHz processor, minimum. Multiple CPUs
or multiple cores are recommended. If you
expect to require numerous concurrent
uploads and downloads, more cores will
help significantly.
Memory Minimum 4 GB. Memory requirements
depend on the total of handheld computers,
tablets, or both that will be synchronized at
simultaneously. 100MB RAM is required
per concurrent upload or download.
Operating System Windows Server 2008 R21 or Windows
Server 2012R2
Microsoft .NET Framework Microsoft .NET Framework version 4.5
(plus the latest patches)
• Windows Mobile 5
• Windows Mobile 6 or 6.5
• Minimum memory requirement for the handheld device is 64 MB
with minimum free program memory of 24 MB
Overview of Steps
1. “Create an APM User for the Handheld Computing Service” on page
206
2. You must also set the permissions so that the Windows user can
access the licensing folders. You can launch the Set User Permissions
utility from the APM Configuration window. Click the Configura-
tion list and then SELECTserver Permissions. Grant permissions
for the Windows user for the handheld computing service.
For more information about this utility, see “To Grant User Permis-
sions for SELECTserver Licensing” on page 91.
3. In APM, open the Enterprise window and select the Security view.
4. Select the Users tab and click New to create the APM user. For the
Login name, use the name created in step 1 (for example, “APMHH”).
When you install a service, APM automatically runs the Grant User Per-
missions for License utility, which sets permissions for the current user
and all service users to access the registry location and licensing folder.
This section explains how to create the service and how to install it.
5. In the Database Name list, select the ODBC data source for the
APM database.
6. Ensure that the database user name and password are correct.
Note: Network and Web Monitor settings show the server and
web server ports, respectively. Whenever a new instance is added,
APM automatically increases the port numbers by one to ensure
that they are unique.
12. Note the value in Mobile base URL, which points to the current
machine name, port for the mobile base URL, followed by “MobileSer-
vice”. When connecting to the service from a handheld computer, you
must enter this path, along with the endpoint “Synchronize” in the
Server URL box.
13. By default, APM stores the handheld settings file in the %program-
data%\Bentley\IvaraEXP\MobileStoredSettings folder. You can
change the location where the settings file is stored by changing the
Stored Settings Location path.
14. Close the Settings Editor to return to the APM Configuration win-
dow.
15. Select the Test Instance tab. Click Run Tests and resolve any
errors that occur.
Tip: If the test results in a Conflicting Port error, you can assign
ports manually. Return to the Configure Instance tab and click
Ports to open the Manage Ports window. Click in a cell to change
the port number.
The APM Service Installer window also appears and shows the status
of the installation as it progresses. For example:
2. In the APM Service Options dialog, specify the service account that
the service can use to log on.
Note: You must also add both a user and an employee in APM for
the service. If you are using Local System, the user name must be
Computer_name$.
5. Click OK. The APM Service Installer window shows the result of the
installation process. If no errors occurred, a message that the instal-
lation is complete and successful appears.
6. When you have reviewed the information, click OK to close the win-
dow.
7. Ensure that the user has listening rights on the Server Port. As an
administrator, open a command line and enter:
netsh http add urlacl url=http://+<PortNumber>/ user="NT
AUTHORITY\Local System"
Note: When setting up the service provider, you will need to enter
the name of the instance that you created in “Create and Install
the Handheld Computing Server Instance” on page 207.
1. From the Enterprise window, select the Services view and the Serv-
ers tab. For example:
3. If you are creating a server machine, enter the name of the server
machine that will host the service provider.
5. Enter the name of the server instance. This name must match the
name given to the server instance when it was created.
7. Select Web Service Host and click OK. The service provider is
added to the table.
C:\ProgramData\Bentley\IvaraEXP\Logs
2. Click the Configuration list and then Full Settings. The Settings
Editor appears.
IvaraServer_<InstanceName>.txt
2. Select the Mobile Computers tab. This tab lists all of the handheld
computers currently registered at the site.
Computer name This is the user key for the handheld or remote
computer. The name can be up to 100 characters
long. Spaces are not allowed in the name.
Maintenance group Select the maintenance group that will use this
mobile computer. This setting is only applicable
to computers assigned to maintenance.
6. Select the Manufacturer tab. On this tab, you can enter information
about the manufacturer and model of the handheld computer.
7. Select the Description tab. On this tab, you can enter a longer
description or notes about the computer.
8. Select the History view to view the actions performed on the virtual
handheld computer, for example, the date and time when the record
was created in APM and the user who created it. Other actions that
are listed here are Mark as inactive and Mark as active.
2. You must also set the permissions so that the Windows user can
access the licensing folders. You can launch the Set User Permissions
utility from the APM Configuration window. Click the Configura-
tion list and then SELECTserver Permissions. Grant permissions
for the Windows user for the upload transaction broker.
For more information about this utility, see “To Grant User Permis-
sions for SELECTserver Licensing” on page 91.
3. Launch APM, open the Enterprise window, and select the Security
view, Users tab.
4. Click New to create an APM user that matches the Windows user
created in step 1. For example, create an APM user with the name
“APMUTB”. Save and close the User window.
6. Link the employee to the APM user created in step 4. Click This
employee is an APM user and select the user name that you cre-
ated in step 4. Save and close the Employee window.
Create and Install the Server Instance for the Upload Transaction Broker
We recommend creating a server instance dedicated to processing upload
transactions to help you keep track of performance and message logging.
The server instance must also be installed as a Windows service. You will
also need to assign the user (created in “Set up a User for the Upload
Transaction Broker” on page 220) to the service.
When you install a service, APM automatically runs the Grant User Per-
missions for License utility, which sets permissions for the current user
and all service users to access the registry location and licensing folder.
3. In the Name box, enter a name for the server, for example, “APM-
utb”. The name cannot contain spaces.
Tip: You can copy an existing instance and modify it to include the
properties that you want.
4. In the Database Name list, select the ODBC data source for the
APM database.
5. Ensure that the database user name and password are correct.
Note: Network and Web Monitor settings show the server and
web server ports, respectively. Whenever a new instance is added,
APM automatically increases the port numbers by one to ensure
that they are unique.
7. Provide the user name and password for the Web Monitor.
8. Click the Configuration list and then Full Settings. The Settings
Editor appears.
10. Under the Server node click Runtime. Scroll down to the Upload
Transaction Broker section.
12. You can also adjust the Polling timeout option, which determines
how many minutes to wait before checking for transactions to be pro-
cessed, and the Process wait option, which is the number of minutes
to wait for processes to finish.
14. In the APM Configuration window, select the Test Instance tab.
Click Run Tests and resolve any errors that occur.
The APM Service Installer window also appears and shows the status
of the installation as it progresses. For example:
2. In the APM Service Options dialog, specify the service account that
the service can use to log on.
Note: You must also add both a user and an employee in APM for
the service. If you are using Local System, the user name must be
Computer_name$.
6. Click OK. The APM Service Installer window shows the result of the
installation process. If no errors occurred, a message that the instal-
lation is complete and successful appears.
7. When you have reviewed the information, click OK to close the win-
dow.
Note: When setting up the service provider, you will need to enter
the name of the instance that you created in “Create and Install
the Server Instance for the Upload Transaction Broker” on page
220.
1. From the Enterprise window, select the Services view and the Serv-
ers tab. For example:
3. If you are creating a server machine, enter the name of the server
machine that will host the service provider.
5. Enter the name of the server instance. This name must match the
name given to the server instance when it was created.
7. Select Remote Transaction Broker and click OK. The service pro-
vider is added to the table.
Tip: After you have installed the prerequisite software and APM
Mobile.NET on one desktop computer and handheld device, you
can use Mobile Device Center or ActiveSync to install the software
on other handheld computers. Connect another handheld com-
puter to the desktop computer using ActiveSync or Mobile Device
Center.
In the ActiveSync window, select the Tools menu and then Add/
Remove Programs. In the Mobile Device Center, select Programs
and Services and then Add/Remove programs.
The Add/Remove Programs window displays the programs on your
desktop computer that have a handheld component. Select a program
and click OK to install it on the handheld computer.
http://<machine name>:<port>/Mobile/index.htm
where <machine name> is the computer running the deployment
server and <port> is the deployment server port number.
The APM Deployment Server opens to the Mobile Client page:
2. Follow the directions on this page to download and install the soft-
ware.
2. Click the File menu and then Connection Settings. The Connec-
tion Settings dialog opens.
4. Click OK.
You can now dock the handheld computer to automatically make the con-
nection between the two devices.
You can now dock the handheld computer to automatically make the con-
nection between the two devices.
held Computers
1. On the desktop computer, ensure that ActiveSync or Mobile Device
Center is running, that the handheld computer is in its docking cra-
dle, and that the application has recognized the connection device.
2. Navigate to the directory where APM is installed and open the Pre-
requisites folder and then the Dotnet Compact Framework folder.
Tip: Select the .Net Compact Framework node and confirm that
this feature and all sub-features will be installed on the local hard
drive. This will ensure that the installation occurs on both the
desktop and handheld device.
4. Follow any setup instructions that appear in the installation wizard
and on the handheld computer.
2. In the ActiveSync window, select the Tools menu and then Add/
Remove Programs. Or in the Mobile Device Center, select Pro-
grams and Services and then Add/Remove programs. The Add/
Remove Programs window appears.
2. Locate the temporary folder into which the APM installation zip file
was extracted. Run the setup program:
Mobile\CE\Setup.exe
Note: If you misspell the user name, the Login Failed message
appears. Tap Yes to try again. If it takes more than three
attempts to enter the IvaraMobile user name, the application
closes.
6. In the Old Password box, type the password that you gave IvaraMo-
bile in step 4.
8. Tap ok.
10. In the Server Url box, enter the path to the Mobile web service.
Tip: You can find this information on the computer hosting the
Mobile web service. Open the Settings Editor for the handheld
computing server instance. Select the Service Providers node,
Mobile Web Service settings, and look for the Mobile base Url.
Add the Endpoint to the path. For example:
http://<server machine>:<port #>/MobileService/Synchronize
where <server machine> is the name of the computer hosting the ser-
vice and <port #> is the port number for the mobile base URL.
Tip: You might also need to include the domain name to help the
handheld computer connect to the server. For example:
Tip: You can find this information on the computer hosting the
Mobile web service. Open APM Configuration and select the hand-
held computing server instance. Look for the Server Manager
Machine Address and the Server Manager Port values.
The next step is to assign the handheld computer to a virtual computer,
which involves downloading virtual handheld computers and users from
the APM database.
Note: Before you can assign a handheld computer, the URL for
the mobile web service must be identified on the handheld com-
puter. (Tap the Options menu and then Application Settings.)
7. Tap ok.
Warning and information messages are displayed for the server and
saved in log files. The log files are stored on the computer where the pro-
cess is running, in the default log directory:
C:\ProgramData\Bentley\IvaraEXP\Logs
For information about using the Web Monitor and configuring logging,
“Using the Web Monitor” on page 107 and “Viewing and Configuring Log
Files” on page 121.
The error occurs because Microsoft .NET Compact Framework 3.5 is not
installed on the device. The prerequisite software is provided by the APM
installation in the folder:
• In the ActiveSync window, select the Tools menu and then Add/
Remove Programs.
• In the Mobile Device Center, select Programs and Services and
then Add/Remove programs.
Set a password for the APMMobile user and provide the URL for the
mobile web service. See “Logging in for the First Time” on page 234.
Synchronization Error
Interface Errror:
Unexpected exception during processing: RequestItem for
RequestID 4c2e5bf1-af1d-4cfd-b1ba-add091b0304e was not
found. Either RequestID is invalid or Request Item was
removed by clean up action. Please submit your request
again.
To prevent this exception, increase the amount of time before the clean-
up action begins.
9. Select the Services view, Servers tab. Right-click the service pro-
vider and click Refresh Service.
Next Steps
The next steps for setting up your handheld computer are:
• Add passwords for users on the handheld computer or, if you do not
require that users be authenticated when logging into APM
Mobile.NET, you can select the Simple Login option in application
settings.
See “Changing a User’s Password on a Handheld Computer” or
“Using Application Settings on a Handheld Computer” in APM Help.
• Set up security profiles on the handheld computer, if needed. See
“Setting up Security Profiles on a Handheld Computer” in APM Help.
• Once you have set up one handheld computer, you can deploy settings
to other handheld computers. See “Storing and Restoring Handheld
Computer Settings” in APM Help.
• If you wish to use a barcode reader, set up the reader on the handheld
computer. See “Setting up a Barcode Reader on a Handheld Com-
puter” in APM Help.
Your handheld computer also provides Help for using APM Mobile.NET.
This chapter explains how to implement the SSL certificate, set up the
server, and set up clients for Supervisor Dashboard.
Contents
Implementing an SSL Certificate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 244
Setting up the Server for Supervisor Dashboard . . . . . . . . . . . . . . . . . 248
Setting up Mobile Clients. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 256
Viewing the APM Server Log Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . 256
where:
• port is the REST Service Port you selected in settings. The default is
13501.
• thumbprint is the SHA-1 hash in hexadecimal of the SSL Certifi-
cate.
• app-guid is a unique GUID for the application. You can create a
GUID by going to http://createguid.com/.
http://support.microsoft.com/kb/981506
You have to open the port externally to the world using the internal
machine firewall and the external network firewall. Ideally, the external
IP address should also be registered with DNS to give it a friendly name.
If they are using HTTPS, then the DNS name must match the SSL certif-
icate.
Overview of Steps
1. “Create and Install the Server Instance” on page 248
When you install a service, APM automatically runs the Grant User Per-
missions for License utility, which sets permissions for the current user
and all service users to access the registry location and licensing folder.
4. In the Database Name list, select the ODBC data source for the
APM database.
5. Ensure that the database user name and password are correct.
Note: Network and Web Monitor settings show the server and
web server ports, respectively. Whenever a new instance is added,
APM automatically increases the port numbers by one to ensure
that they are unique.
8. Click the Configuration list and then Full Settings. The Settings
Editor appears.
12. Select the Test Instance tab. Click Run Tests and resolve any
errors that occur.
Tip: If the test results in a Conflicting Port error, you can assign
ports manually. Return to the Configure Instance tab and click
the Configuration list and then Ports to open the Manage Ports
window. Click in a cell to change the port number.
The APM Service Installer window also appears and shows the status
of the installation as it progresses. For example:
2. In the APM Service Options dialog, specify the service account that
the service can use to log on.
Note: You must also add both a user and an employee in APM for
the service. If you are using Local System, the user name must be
Computer_name$.
5. Click OK. The APM Service Installer window shows the result of the
installation process. If no errors occurred, a message that the instal-
lation is complete and successful appears.
6. When you have reviewed the information, click OK to close the win-
dow.
where:
Note: When setting up the service provider, you will need to enter
the name of the instance that you created in “Create and Install
the Server Instance” on page 248.
1. From the Enterprise window, select the Services view and the Serv-
ers tab. For example:
3. If you are creating a server machine, enter the name of the server
machine that will host the service provider.
5. Enter the name of the server instance. This name must match the
name given to the server instance when it was created.
7. Select Mobile Rest Service and click OK. The service provider is
added to the table.
2. Enter the URL for the server you are connecting to. For example,
http://mymobileserver.com:13501
where:
• The first part is http or https, depending on what you selected in
settings
• The second part is the DNS name that you set up for the external
IP address
• 13501 is the port you selected in settings.
3. Enter your APM user, domain, and password.
If you are running a Windows 8 Pro tablet or computer and the APM
smart client is installed, you can launch objects from the Supervisor
Dashboard in the smart client. This functionality is not available if you
are running Windows RT or the smart client is not installed.
C:\ProgramData\Bentley\IvaraEXP\Logs
IvaraServer_<InstanceName>.txt
Contents
APM Users . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 260
Login Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 262
Launching APM as an Administrator . . . . . . . . . . . . . . . . . . . . . . . . . . 263
Introduction to Security Profiles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 264
APM Users
Each person who uses APM must have a user identification (ID) in the
APM database. The APM user login name must match the user’s Win-
dows login name. You can select one or more security profiles for each
user ID and set the user’s privilege level, for example, end-user or admin-
istrator.
You can set up records for each employee in the enterprise. An employee
is not the same as an APM user. APM uses Windows Authentication to
validate users. As a result, the employee records contain information
about the people working at each site, but they do not provide access to
the APM system. APM user IDs allow a user to log on to the system.
Employees who will not be using APM might need employee records so
that you can schedule work order tasks or track labor costs. Employees
will not be registered as APM users unless you also set up a user ID for
them and link the user ID to the employee record.
This section explains how to add user IDs. For related information, see
“Launching APM and Creating Initial Users” on page 62. For information
about creating employees and linking them to user IDs, see “Employees”
in Help.
Creating a User ID
Creating a user ID involves entering the user’s login name, validating
the domain, setting the privilege level, and assigning security profiles.
• End-user: This is the basic privilege for all users. Users can do
everything in APM except customize the software, create custom
reports, create customer-level table configurations, create purging
rules, and use the Security Setup mode.
• Administrator: This privilege is used by APM administrators and
personnel who need to customize the software, create custom reports,
activate CMMS integration, or set up and assign security profiles.
Users with this privilege can perform Customer-level customizations,
create shareable table configurations, work with purging rules, and
use the Security Setup mode.
If your organization has multiple domain names, you should enter the
correct domain name for the user. You can check that you have entered
the correct domain name using the Validate button.
If you leave the domain name blank, the software will attempt to select
the correct domain when the user logs on.
4. Enter the login name. This name must be the same as the user’s Win-
dows or Bentley CONNECT login name.
6. For Windows login names, you can enter a domain name for the user.
You can test that the domain name is correct by clicking Validate.
8. If the user will need to use the APM Server Manager to administer
servers, select APM server manager.
9. You can select a default security profile for the user. In a multi-site
implementation, the default profile determines the user’s level of
security for all of the sites that do not have a specific security profile
selected.
10. If you have multiple sites set up for your organization, you can pro-
vide a user with more (or less) access to objects on other sites by
assigning site-specific security profiles. Click New, select the site
name and the profile name, and click OK.
12. Repeat these steps for each user ID that you need to enter.
Login Troubleshooting
1. Check that the user has a valid APM user ID in the database they are
trying to connect to.
2. Check that the correct ODBC datasource is listed in the APM Con-
figuration window, Database node, Database Name box.
3. Check that a valid database login name and password are listed in
the APM Configuration window, Database node, Database User
and Database User’s Password boxes.
4. Check that the ODBC data source the user is connecting to has the
correct login and database information (in the ODBC Data Source
Administrator window).
The user can log on but the user’s name does not appear in the APM
banners
An APM user ID exists in the database, but the user is not linked to an
employee record. When the user ID is not linked to an employee record,
APM will not be able to properly record audit information for actions the
user takes in APM. Create an employee record for the user and assign
the employee to a user ID.
You can use the administrator privilege to perform the following tasks:
The name of a security profile should describe the type of access it pro-
vides; a job title often makes a good name. In a multi-site implementa-
tion, you might want to name the profile for the site to which it applies,
such as the home site or the top site.
Security Levels
When you create a security profile, you can choose from three possible
security levels. This is the default security level for the profile. This
default level can then be overridden for a class or for attributes and rela-
tionships, actions, views, pages, and reports within a class. The three
security levels are:
• Editable (Full access): This level allows a user to perform any task,
including viewing data, entering new data, and editing existing data.
All actions are enabled, and all views and pages are visible. A user
whose profile has the Editable default level will have access to all
actions and data in the system, except for any items with overrides.
• Read-only: This level allows a user to view data, but not to add or
modify data. Actions are disabled, but views and pages are visible. A
user whose profile has the Read-only default level is able to view all
objects in the system, but is not able to edit them, or to create new
ones, except for items with overrides.
• Hidden (No access): This level means that a user cannot view, add,
or modify data. Actions are disabled, and views and pages are hidden.
A user whose profile has the Hidden default level is not able to open
objects in any view, or perform any actions, unless overrides are
added to the profile.
• Start from the editable access level and then remove objects, views,
actions, or data that require lower access.
• Start from the read-only access level and then remove those items
that should have no access, or enable those items that need full
access.
• Start from the hidden access level and then enable those items that
need full or read-only access.
Examples
For example, an employee who administers the APM system will need
access to most of the objects and menu items at their home site. There
might be some objects and functions that are restricted, but these are
exceptions. An “Administrator” security profile should have a default
security level of editable. Then, you can set read-only or not accessible
security levels for the exceptions.
However, an employee who works as a data collector can only use a small
part of the system. You could give the “Data collector” security profile a
read-only default security level, and then provide full access to the data
collection parts of the system. An employee who logs in as a data collector
will then be able to create checksheets, upload and download checksheets
to a handheld computer, and enter indicator readings, but will only be
able to view information on assets and work orders.
You might wish to start from the hidden default security level if a user
will use only one or two features, such as creating work requests. If you
make the site’s Work Requests page and the work requests class editable,
users will be able to create and view work requests, but will not be able to
open other pages or objects.
The supplementary profiles for each profile can be seen in the Security
Profile window, Composite Profile tab.
When you enter Security Setup mode, you can add class, action, attri-
bute, relationship, view, and tab overrides by navigating through the UI.
You can change the security setting for any class (object), view, tab, table,
action (menu item), and attribute or relationship (field) by right-clicking
the item and selecting the appropriate Mark as option.
For example if you want to hide the site’s Analytics page for a profile, you
would open the site, select the Indicators view, right-click the Analyt-
ics tab, and select Secure Page and then Mark as Hidden.
Note: To use Security Setup mode, you must launch the applica-
tion as an APM administrator.
When you are in Security Setup mode, the cursor displays an open
lock icon:
Classes are the main building-blocks of the object model. A class is like a
template for system objects that all have the same basic characteristics.
The design of each class and how the classes relate to each other provide
the basic structure of the application. All objects in APM are based on
classes. Objects that behave the same way belong to the same class. For
example, each asset in the system is based on the Asset class.
Each security profile can contain overrides for any class of objects in the
system (class security). Within each class security, you can create over-
rides for any of the class’s methods, attributes, relationships, views,
pages, or reports.
Class Security
The default security level for a profile applies to all of the objects in the
system, unless that default is specifically overridden for a class of objects
(such as assets).
The following table summarizes the default security settings for classes,
attributes, relationships, actions, views, pages, and reports for each of
the three security levels for a security profile.
You can verify this by entering Security Setup mode, opening a KPI, and
right-clicking the banner in the KPI window. The class security option is
listed as Secure Indicator Class.
Report Security
You can disable or enable standard reports in the security profile by add-
ing the class to the list of overridden classes and then applying an over-
ride for the individual report. For example, you could add the Strategy
development analysis class to the profile and override the general secu-
rity level.
Then select the Reports tab, click Browse, select the Reports tab in
the selector dialog. Select the report from the list. When you click OK,
the report is added to the list. Double-click the report to see the Report
Security dialog. For example:
If you are using APM procurement features, you can send RFQ and pur-
chase order documents to suppliers by fax. To do this, you will need to
designate at least one computer on the network to be your fax server. You
can create more than one fax server, if necessary.
Because the Fax method must be scheduled, the system only sends faxes
at the frequency that the Fax method is run. For example, if you schedule
the Fax method to run once a day, pending faxes will only be retrieved
and sent once a day.
Tip: When you have completed these steps, send a test fax to
ensure that the fax server is set up correctly.
The following steps are for Windows Server 2008 R2. The steps might
vary slightly if your APM application server computer runs another sup-
ported version of the operating system.
1. On the computer that will be the fax server, click Start, Administra-
tive Tools and then Server Manager. In the left-hand pane, click
Roles and in the right-hand pane click Add Roles. A wizard
appears.
2. In the Add Roles Wizard, on the Select Server Roles page, select Fax
Server. A message appears indicating that Print and Document Ser-
vices also need to be setup with the Fax Server Role.
3. Click Add Required Role Services and then click Next. A Select
Fax Users page opens.
4. If you wish to restrict use of the fax server to specific users, on the
Select Fax Users page, click Add and then type in the domain and
user names for the groups and user that will have access to the fax
server. Click OK and then click Next.
5. On the “Specify who can Access the Fax Server Inbox” page, you can
select the groups and users who should have access. Click Next.
6. Continue through the wizard until you reach the Confirm Installation
Selections page. Review the choices made and click Install. The roles
you selected are installed.
7. Click Start, Run and then type “control printers”. Confirm that a
printer named “Fax” exists. If it does not, restart the computer.
8. If you cannot restart the computer, stop and start the Print Spooler
instead. To do this, open the Control Panel to Administrative
Tools, Services. In the right pane, right-click Print Spooler and
click Stop. Click the Print Spooler again and click Start.
Tip: You can also open Server Manager by typing the following at
a command prompt “servermanager.msc”.
2. In the Features Summary section, click Add Features.
3. In the Add Features Wizard dialog box, ensure that the Desktop
Experience option is selected.
5. After the installation process is complete, click Close and then close
Server Manager.
2. Click Add a Device and follow the steps to add a local fax device.
3. Open the new fax device. In the Windows Fax and Scan window, you
can monitor the progress of faxes, view sent faxes, and create cover
pages for faxes.
4. Click the Tools menu and then Fax Accounts. Click Add to create a
fax account to send or receive faxes.
2. Select the Services view and the Scheduled Actions tab. Click
New. The Scheduled Action dialog appears.
5. If you want to restrict this action to run for a single site, select Only
Schedule for Site and select the site on which this action will run.
For example, you might want to create a different schedule for pro-
cessing activity reports on each site.
Note: You cannot schedule the same action to run on two servers
for the same site. Similarly, you cannot assign an action to all
sites and then assign it again to a single site.
7. Select Stop running after and specify a time period if you expect
that the volume of faxes will be large enough to affect system perfor-
mance.
Contents
ODBC Data Sources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 280
Running the Database Transfer Program. . . . . . . . . . . . . . . . . . . . . . . 281
Running the CheckIndexes Stored Procedure . . . . . . . . . . . . . . . . . . . 288
Adding Hints to Table Configurations . . . . . . . . . . . . . . . . . . . . . . . . . 291
Column Is No Longer Used . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 293
Generating Cache Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 295
Case-Insensitive Searches in Oracle . . . . . . . . . . . . . . . . . . . . . . . . . . . 297
For information on creating an ODBC data source for APM, see “Setting
up an Oracle Database for APM” on page 39.
Note: The APM Upgrade Wizard uses the database transfer util-
ity when upgrading a database. For instructions on how to use the
upgrade wizard, see the APM Upgrade Guide.
Transferring Customizations
When you select the Metadata data type and either Distributor or
Customer Administrator as the data owner, all customizations and
table configurations in the target database are deleted and replaced with
those from the source database. This option allows you to transfer object
model customizations, UI customizations, and table configurations that
have been created with either a Distributor or Customer privilege. Per-
sonal (end-user) table configurations are not transferred.
%localappdata%\IvaraEXP\Logs
To Run DBTransfer
You can choose to run DBTransfer using either the source database of
your choice or the Server Compact Database file (EXP.sdf) for the APM
install database as the source.
4. In the DSN (Data Source Name) box, select the data source for the
source database. This is the database from which you are transferring
data. For example, if you are upgrading to a new APM version, the
source database will be the basic APM database that came with the
new APM software.
5. Enter the database login name and password. Click OK. The Source
box displays the name and type of database, as well as the machine
name and data source name.
7. In the DSN (Data Source Name) field, select the data source for your
target database. This is the database that will receive the new data.
For example, if you are upgrading to a new APM version, the target
will be your current (old version) database.
8. Enter the database login name and password. Click OK. The Target
box displays the name and type of database, as well as the machine
name and data source name.
9. Select the appropriate option for the type of data that you want to
transfer:
• Metadata: transfers the object model data into the target data-
base. Use this option to upgrade a database or to transfer custom-
izations and table configurations from one database to another
(when transferring Customer Administrator data).
Note: Before using the Entire Database option, you must run
the initialize script (init_Ivara.sql) on the target database.
10. If you are transferring metadata, select the owner of the data to be
transferred:
12. If you have transferred an entire database, after the database copy is
complete, you must run the proc_Ivara.sql script and then run the
CheckIvaraIndexes stored procedure.
13. If you have transferred security profiles, once the transfer is com-
plete, you must review all of the security profiles, and user security
profile assignments:
4. Open APM Configuration and select the thick-client instance you are
using to access the source database.
5. In the Database Name list, select the ODBC data source for the tar-
get APM database. This list is refreshed whenever it is opened in
APM Configuration. Make sure that the Cache Files Path is correct
for the target database.
6. If needed, create a new shortcut for the instance and select Run as
APM Administrator. This ensures that the “ -admin” option is
added to the shortcut.
Note: You should check all APM indexes following every database
upgrade or after transferring a database using the DbTransfer
utility.
The following sections provide examples of SQL Server and Oracle calls.
exec oq.CheckIvaraIndexes 2
Name and save the resulting file. Then open the file and run the SQL
commands.
Name and save the resulting file. Then open the file and run the SQL
commands.
Name and save the resulting file. Then open the file and run the SQL
commands.
Note: For SQL Server databases, only query hints are allowed
(hints that are appended to the end of an SQL statement). APM
does not support table hints or join hints in SQL Server data-
bases. For more information on using hints with SQL Server, see
the SQL Server Books online help file.
You can add hints to any table configuration in APM. To add hints, you
must launch the application as an APM administrator.
Note: Table configuration hints are not copied when the table con-
figuration is copied.
You cannot add hints to APM type configurations. However, you can
override the APM configurations by creating Customer configurations
(with an Administrator license). If you choose to override a configuration,
you can set the new configuration to:
Note: If you do not see this tab, you are not logged in as an APM
administrator.
4. In the Hint Source section, select the option Use the database
hints defined below.
To fix a configuration, you can delete the obsolete column. See “Adding
and Removing Columns in a Table Configuration” in Help.
Oracle Example
Run the stored procedure using a SQL*Plus script similar to the follow-
ing example.
Example: Removes all deleted and obsolete columns from all table con-
figurations.
Example: Removes all deleted and obsolete columns from all table con-
figurations.
exec oq.CleanupColumns 1
However, custom cache files can improve initial performance if you have
a significant number of customizations. In this case, you might wish to
generate and run with custom cache files. You must generate custom
cache files manually, and you are responsible for removing or regenerat-
ing them in the future.
Before regenerating custom cache files, delete the cache files for the Cus-
tomerData system. Then access the Customization Center in APM and
generate cache files. This function creates all of the cache files you need
(including the .dict files). Because it is creating so many files, it might
take a few minutes to complete.
Note: Your Windows user must have full access to the Customer-
Data directory before you can successfully generate cache files.
4. From the Site window, click on the tool bar. The Enterprise win-
dow appears.
5. Select the Customization Center view. Click the Generate list and
then Cache Files.
2. For APM to generate SQL statements that are case insensitive, table
oq.ignorecase needs to be populated. Populate this table by running
the script “Enable case search.sql” as the user Sys or Internal.
4. In the Settings pane, click Runtime. Scroll down to the Oracle node
and set Oracle Case Insensitive Sort Always On to True.
Administrator This privilege is used by APM administrators and personnel who need to
Privilege customize the software, create custom reports, activate CMMS integra-
tion, or set up and assign security profiles. Users with this privilege can
perform Customer-level customizations, create shareable table configura-
tions, work with purging rules, and use the Security Setup mode.
APM Supervi- The APM Supervisor Dashboard is a set of Android, Windows 8.1, and
sor Dashboard iOS applications optimized for personal mobile devices like smart phones
and tablets. The dashboard allows maintenance managers and execu-
tives to monitor KPIs and asset health indexes within APM and to make
simple updates like acknowledgments and approvals.
Application The APM application server is software that interfaces with one or more
Server databases to convey processed data to and from a user interface. The
application server and databases can be housed in the same or separate
computers.
The application server’s role takes care of the business logic in a multi-
tier architecture. The business logic is the functions that the software
performs on the data. “Multi-tier” refers to the three tiers involved in the
system: client, application server, database.
Base Unit of The first unit of measure that is added to a UOM category will be the
Measure (UOM) base UOM for the category. APM uses the base UOM when filtering and
sorting data in tables. If data in a table uses different UOMs in the same
category, APM will convert the data to the base UOM (in the back-
ground) to determine the correct filtering or sorting sequence. However,
the data in the table will still be displayed in the original units of mea-
sure.
Class Classes are the main building-blocks of the object model. A class is like a
template for system objects that all have the same basic characteristics.
The design of each class and how the classes relate to each other provide
the basic structure of the application. All objects in APM are based on
classes. Objects that behave the same way belong to the same class. For
example, each asset in the system is based on the Asset class.
Database The database server is the computer on which the APM database is
Server installed. APM can use either a Microsoft SQL Server database or an
Oracle database.
Distributor Priv- This privilege is used by partners and APM distributors to perform Dis-
ilege tributor-level customizations.
End-user Privi- This is the basic privilege for all users. Users can do everything in APM
lege except customize the software, create custom reports, create customer-
level table configurations, create purging rules, and use the Security
Setup mode.
Inheritance All classes are derived from the inheritance hierarchy. At the top of the
Hierarchy hierarchy are abstract classes that define the base attributes and meth-
ods for all other classes. The inheritance hierarchy is rooted at an imple-
mentation class called CAXContainer. The Persistent and Dependent
classes inherit from CAXContainer. Persistent and Dependent are the
key base classes that business objects inherit from.
Interface Class Interface classes are secondary objects within the APM object model.
They provide a simplified organization of data elements (attributes and
relationships) that exist within base classes. Interface classes can be
thought of as “wrapper classes” which group related data elements
Interface Event Interface events are programatic functions or actions that occur in the
database or the business logic processing of data management. The basic
interface events are:
• Create
• Modify
• Delete
Therefore, each time a data element is added, edited or removed from the
APM database an appropriate interface event will also be triggered. Cus-
tom events are triggered by actions in the application or by an external
customization application.
Interface Sub- Interface subscriptions are registrations that map an external applica-
scription tion or APM database to an interface package. Each package contains a
list of events which trigger messages to the subscriber. Each subscription
contains the subscriber name, the message queue path, and the name of
the subscribed package.
Join Path A “path” through the object model that gives access to an object’s attri-
butes or relationships. Join paths may be used in report authoring, set-
ting up security, or customization.
For example, to get to the telephone number of the employee who created
a work request, you may use this join path:
[WorkRequest]Requestor/BusinessPhone1/TelephoneNumber.
Method A method is any action that you can perform against an instance (object)
of a particular class. For example, Change Status is a method that can
be performed on asset objects.
Object Model The object model is the collection of related classes that make up the
APM system. This collection defines the types of business objects in the
system (such as assets and work orders), the properties that each object
has, and how the objects are related to each other.
ODBC Data Each APM client requires an ODBC data source in order to connect to the
Source APM database. You can create or edit data sources using the Windows
ODBC Data Source Administrator utility. The name of the data source
must be entered into the APM settings. You can enter or change the data
source name using the APM Configuration window.
ODC Data An ODC data source is a representation of an external data source used
Source to collect data. For example, a data source might be an OLE Process Con-
trol (OPC)-compliant process (OPC DA) that collects real-time data. A
data source (which can be an OPC HDA-compliant process) can also be a
data archiver or database that stores historical condition readings.
Data sources reference multiple data tags (data points) collected from an
asset. In most cases, the target data source must be connected to your
ethernet network so that you can configure a data source in APM and/or
for data collection when the ODC service provider is running.
ODC Service The ODC service provider is an APM plugin hosted within the APM
Provider server that monitors data readings provided by external data sources.
Once configured and started, the service automatically collects data
according to a polling schedule. The appropriate ODC plugin must be set
up to collect data (for example, the PI plugin is required for PI servers).
Polling Sched- ODC services monitor readings using defined time schedules. These
ule schedules determine when, and at what frequency, data readings are
taken.
Relationship A relationship defines the way one class is linked to another class in the
object model. When objects are created from classes, they relate to each
other based on the relationships set up between the classes in the object
model. For example, the Asset class has an “owns many” relationship to
the Functional Failure class. This means that when asset objects are cre-
ated, they can own one or more functional failure objects.
Service Pro- A service provider is an APM plug-in component that provides additional
vider functionality to an APM server. It can be used to pull in external data,
update data, or perform a complex calculation.
View A view is a screen or set of screens in the user interface. Each class usu-
ally has one or more views. View objects include class views (for example,
the site’s Assets view) and dialogs (for example, the Work Management
Settings dialog).
CleanupColumns
Index Stored Procedure 293
Clients, AMP
Command Line Options 146
Columns
Symbols
Cleanup Procedure 293
.NET
Command Line Options
Not Detected 175
Switch User 146
Connection String Server Setting
A 90
Action Scheduler 179, 190 Console, Server 99
Polling Interval 179 CPU
Setting up 179 Synchronization Server 204
Actions Creating
Scheduling 178 User IDs 260
Activation with SELECTserver 30 Credentials, Saving 62
Administrator Privilege Customization
Logging on as 264 Generating Cache 295
Administrator, APM Users 62
ADPlus Settings 91
D
APM Configuration 51, 82
Data Source
Creating Shortcuts 60
Description 280
Testing Server Instances 58, 93
Database
APM Local Servers
Cannot Connect Message 262
Setting ODBC Data Source 53,
Checking Indexes 288
55, 84, 86
Copying 281
APM Server Window 99
Oracle Architecture 45
APM Servers
Restoring
Creating Shortcuts 60, 95
Oracle 49
Setting Up 51
SQL Server 34
Testing 58
Running Scripts
APM Thick Client Software
SQL Server 36
Automatic Updates 164
Setup
Authentication, APM Users 62
Oracle 39
Bentley CONNECT 62
SQL Server 34
Windows Users 62
Terminating Client Connec-
tions 112
C Transferring Customizations
Cache Files 281
Generating 295 Transferring Meta Data 281
Call Stacks, Generating 175 Transferring Security Profiles
Case Sensitivity 42 281
Oracle Transferring Templates 281
Performance 44, 298 Database Transfer Utility (DB-
Checksheet Software Transfer) 281
Installing 202 Diagnostics
Classes Stack Dump Options 175
Securing 269
E L
End-users in APM 62 Language Preference 97
Export to Excel Settings 58 Languages, Changing 97
Launching APM 62
F Licenses
Fax Server 273 Updating License Information
Scheduling 273 113
Setting up 273 Viewing License Information
113
G Licensing
Generating Offline Status 32, 114
Cache Files 295 SELECTserver 30
Glossary 301 Trial Mode 32, 114
Live Log Viewer 121
H Log Files 121
Handheld Computers APM Server 101
Creating Virtual 216 Configuring 131
Inventory 216, 237 Default Log Directory 126
Maintenance 237 Levels 127
Maintenance Group 216, 237 Network Log Viewer 121
Registering 237 Server Window 121
Requirements 202 Web Monitor 121
Synchronization Settings 216, Logging Configuration 131
237 Configuration Files 129
Warehouse 216, 237 Logging Levels 127
Hard Drive Space Netlogviewer Target 137
Synchronization Server 204 Rules 127, 130
Help Files 143 Targets 128, 130
Hints 291 Logging Levels 127
Logging off APM 62
Logging on to APM 62
I
Logging on, as Administrator 264
Indexes
Checking in Database 288
U
Upgrading
Checking Indexes 288
Generating Cache 295
Upload Transaction Broker 89, 219
Service Provider 225
Setting Up 219
User IDs
Creating 260
User Interface
Language Preference 97
User Name
Troubleshooting 263
User Privileges in APM 62
Users
For Scheduled Actions 179
Oracle 40
Users, APM 62
Creating 62
V
Virtual Handheld Computers 216
W
Web Monitor 107
Database Connections 112
License Information 113
Locking Servers 118
Multiple Servers 120
Opening 108
Restarting All Users 119
Sending Messages 115
Server Diagnostics 111
Server Statistics Page 109
Shutting Down Users 117
Unlocking Servers 118
Upgrading Servers 116