Do Caxton 4 Migration
Do Caxton 4 Migration
Do Caxton 4 Migration
Niagara AX to N4 Migration
Guide
June 1, 2020
Niagara AX to N4 Migration Guide
Tridium, Inc.
3951 Westerre Parkway, Suite 350
Richmond, Virginia 23233
U.S.A.
Confidentiality
The information contained in this document is confidential information of Tridium, Inc., a Delaware
corporation (“Tridium”). Such information and the software described herein, is furnished under a license
agreement and may be used only in accordance with that agreement.
The information contained in this document is provided solely for use by Tridium employees, licensees, and
system owners; and, except as permitted under the below copyright notice, is not to be released to, or
reproduced for, anyone else.
While every effort has been made to assure the accuracy of this document, Tridium is not responsible for
damages of any kind, including without limitation consequential damages, arising from the application of the
information contained herein. Information and specifications published here are current as of the date of this
publication and are subject to change without notice. The latest product specifications can be found by
contacting our corporate headquarters, Richmond, Virginia.
Trademark notice
BACnet and ASHRAE are registered trademarks of American Society of Heating, Refrigerating and Air-
Conditioning Engineers. Microsoft, Excel, Internet Explorer, Windows, Windows Vista, Windows Server, and
SQL Server are registered trademarks of Microsoft Corporation. Oracle and Java are registered trademarks
of Oracle and/or its affiliates. Mozilla and Firefox are trademarks of the Mozilla Foundation. Echelon, LON,
LonMark, LonTalk, and LonWorks are registered trademarks of Echelon Corporation. Tridium, JACE,
Niagara Framework, and Sedona Framework are registered trademarks, and Workbench are trademarks of
Tridium Inc. All other product names and services mentioned in this publication that are known to be
trademarks, registered trademarks, or service marks are the property of their respective owners.
June 1, 2020 3
Contents Niagara AX to N4 Migration Guide
4 June 1, 2020
About this Guide
This topic contains important information about the purpose, content, context, and intended audience for
this document.
Produ ct D ocu men t at i on
This document is part of the Niagara technical documentation library. Released versions of Niagara software
include a complete collection of technical information that is provided in both online help and PDF format.
The information in this document is written primarily for Systems Integrators. In order to make the most of
the information in this book, readers should have some training or previous experience with Niagara 4 soft-
ware, as well as experience working with JACE network controllers.
Document Content
This guide provides information about migration of NiagaraAX system running AX-3.8 to Niagara 4 system
running N4.0, and has the following main sections.
• Chapter 1 Migration overview, page 7
Provides requirements, restrictions, compatibilities between NiagaraAX and Niagara 4, background on
the need for migration (including major differences), and a general migration workflow process.
• Chapter 2 Migration tasks, page 27
Provides tasks to start migrating stations, including collecting AX-3.8 station archives, running the N4 mi-
gration tool, migrated database cleanup, preliminary N4 station checkout, and installation of Niagara 4
software and controller upgrades.
• Chapter 3 System verification, page 59
Explains system areas that may need attention and possible configuration immediately following the in-
stallation of Niagara 4 upgrades and migrated stations.
• Chapter 6 Migration reference, page 85
Contains some details on Program object (component) changes in N4 , along with an example “Program
object fix”.
• Chapter 4 Migrating Niagara Enterprise Security stations, page 65
Describes how to migrate your NiagaraAX-3.8 based security Supervisor and controller stations to
Niagara 4.8 based security stations.
• Chapter 5 Connecting a Supervisor station to a legacy controller station, page 77
Describes how you can connect and join Niagara Enterprise Security 2.4 stations to Niagara Enterprise
Security 2.3 JACE-6 controllers.
June 1, 2020 5
Niagara AX to N4 Migration Guide
Related documentation
Additional information about Niagara platforms, installation and operation Workbench is available in the fol-
lowing documents.
• Niagara Platform Guide
• Getting Started with Niagara
June 1, 2020 6
Chapter 1 Migration overview
Topics covered in this chapter
♦ Why a migration tool?
♦ Platform compatibility
♦ Driver and application support
♦ Wire compatibility
♦ File locations
♦ Migration workflow process
The Niagara Framework® has evolved to the point where existing NiagaraAX platforms and stations, if
upgradable, must be migrated to Niagara 4. Therefore, after installing Workbench, you cannot simply use
stations saved in NiagaraAX.
Migration involves several concepts:
• Conversion of AX artifacts to the corresponding N4 format; for example, station .bog files, Px files. The
N4 migration tool handles this conversion.
• “Wire compatibility” (communications) between AX and N4, with the possibility that some migrated jobs
must retain some number of AX controllers. Some platform types cannot be migrated, for example,
JACE-2 controllers.
• For platforms to be migrated that use custom AX software modules, the custom modules must be
refactored as N4-compatible modules.
June 1, 2020 7
Chapter 1 Migration overview Niagara AX to N4 Migration Guide
A number of changes to a station’s UserService and child User components occurred in Niagara 4, which
provide easier ways to manage large groups of station users. Coupled with new “Role” components and
“Tagged Categories”, permissions management is more logical and flexible. A related new Authentica-
tionService architecture allows the flexibility to specify the “authentication scheme” to use for station ac-
cess at the user level. Among other things, this lets you integrate LDAP users into a station’s standard
UserService, (no special LDAP or Active Directory user service required).
• Fox Service has moved
The F o x S e r v i c e component in Niagara 4 was relocated to each station’s main S e r v i c e s container, rather
than existing as a frozen slot under the N i a g a r a N e t w o r k component. Other related authentication
changes were made as well.
• Ports in QNX platforms are sometimes redirected
As part of increased security in Niagara 4, the station process in all JACE controllers runs as an “unprivi-
leged process”, where such processes cannot bind to TCP/UDP ports less than 1024. This affected some
services and network types operating as servers using standard ports in this range.
To accommodate this, a new “Server Port” component architecture is used, where client requests to the
standard privileged ports are automatically redirected to other (higher) unprivileged ports. Most notably,
the default HTTP and HTTPS ports of 80 and 443 for a station’s WebService are now automatically redir-
ected to ports 8080 and 8443. For related details, see “Server Port model” in the NiagaraAX Platform
Guide.
There are many other differences and numerous new features in Niagara 4, however ones like the above are
examples of “breaking changes” that require a database migration tool, and not just the simple addition of
new Java classes and methods.
Platform compatibility
The PC or host controller you wish to upgrade must meet hardware and software requirements.
To qualify as a candidate for migration, any of the supported platforms listed below should be running a re-
leased version of AX-3.8, with working communications to other platforms at the job site running the same
software version. Earlier versions are not supported for migration.
Supervisor or Engineering Work- Supported OS is Professional or Windows Vista (all) and Windows XP (all) are unsup-
station Enterprise versions of Windows 7, ported. Linux OS support is unavailable. Prior editions
(“Workstation”) Windows 8.1, or Windows Server of Windows Server, such as Windows Server 2008, are
2012 or Windows Server 2012 R2 unsupported.
(either 64-bit or 32-bit editions of
any of these).
JACE-7 (JVLN) Supported with Niagara 4.4 and WiFi option is not supported. Some other option cards
earlier. are also not supported in (see NPM below).
JACE-6E, JACE-603, JACE-645 Supported with Niagara 4.4 and Unsupported options include: GPRS, Sedona wireless,
(NPM6E) earlier. and dialup modem. Minimum resources are required
(fully loaded units in AX may not run in N4.0). For de-
tails, refer to Platform resource requirements, page 9.
JACE-6, JACE-602 Express
(NPM6)
JACE-3E (NPM3E)
JACE-2, JACE-202 Express Not supported Support is available for data exchange with N4 plat-
(NPM2) forms. For example, these stations can be under the
8 June 1, 2020
Niagara AX to N4 Migration Guide Chapter 1 Migration overview
JACE-NXT
JACE-NXS
SoftJACE
Supported Support is available for data exchange.
If you first upgrade a system to AX-3.8 in preparation for migration to N4, be sure to verify proper operation
of the system (including NiagaraNetwork communications between stations), before making station backups
to use in the migration process.
Niagara 4 platform compatibility
For any supported PC or host to be migrated, be sure it has the necessary resources available. See Platform
resource requirements, page 9.
P l a t f o r m re s o u rc e re q u i re m e n t s
N4 requires more disk space, more Java heap, and more system RAM to run than a similar AX station. There-
fore, AX-3.8 JACE running near capacity will probably not fit the same station when converted to N4. A brief
summary of reasons why are as follows.
• Disk space (Flash)
N4 requires between 14-16 MB more space than an equivalent AX installation. Additional space is re-
quired by the new Java 8 VM (vs. Java 5), and new UX features enabling a rich browser experience.
• Heap space
For an equivalent station, N4 requires more Java heap (a baseline of 10MB) due to new features and func-
tionality, and more system memory when running on JACE controller.
• History RAM disk size (NPM6/NPM6E only)
To free additional system memory, the maximum history RAM disk size on JACE-6 has been reduced
from 64MB to 32MB. This should not affect most units because the default RAM disk size is 32MB. If the
RAM disk on JACE-6 has been increased, then this increase in the RAM disk size comes at the expense of
Java heap. Maximum history count has not changed.
NPM3 (JACE-3E) 22 94 38
NPM6 (JACE-6) 20 94 38
NMP6E ( JACE-603, 24 94 38
JACE-645)
JACE-7 22 94 90
(1) If an JACE is NOT currently licensed with the “maxHeap” feature, then heap usage will not be an issue in N4.
June 1, 2020 9
Chapter 1 Migration overview Niagara AX to N4 Migration Guide
Fi gu re 1 Example resources check notification using the Program in AX-3.8 JACE station
Alternatively, you can manually check resources, and compare to the recommended resource minimums giv-
en in Table 2 on page 7.
10 June 1, 2020
Niagara AX to N4 Migration Guide Chapter 1 Migration overview
Ma n ua ll y c he ck i ng fo r fre e di sk sp ac e
A minimum amount of free disk space is required.
P re re q u i s i t e s : The host platform is at AX-3.8 and running the station to be migrated.
Step 1 Using Workbench, open the station (Fox/Foxs)..
Step 2 Expand C o n f i g → S e r v i c e s and double-click P l a t f o r m S e r v i c e s .
The P l a t f o r m S e r v i c e C o n t a i n e r P l u g i n v i e w opens.
Step 3 In the F i l e s y s t e m entry for / f f s 0 , compare the Free value with the value in Table 2.
The JACE value should be equal or greater than this minimum value.
June 1, 2020 11
Chapter 1 Migration overview Niagara AX to N4 Migration Guide
Original crypto/security module, using Module “crypto”—replaced by “platCrypto” since AX-3.7 (should only be used by
“CryptoService” in station non-Hotspot JACEs, for example,. JACE-2).
Support for FIPS 140-2 (Federal Information Special FIPS distribution (.dist) file
Processing Standard)
Fox tunneling, HTTP tunneling, and plat- Improved security in N4 prohibits most tunneling. Only serial tunneling is supported
form tunneling in Niagara 4, via the “tunnel” module on the station (server) side and a separate cli-
ent-side tunnel application.
Sedona (SedonaNetwork, Module “sedonaInstaller” in AX builds, which, from a downloaded Sedona “bundle,”
SedonaJen6lpNetwork) would install Sedona-specific modules for integration. These are not supported.
Older video drivers based on the “dev- Modules “video” (base), “axis”, “dedicatedMicros”, “milestone”, and “rapideye”,
Driver”, superseded in AX by “nDriver” superseded in AX by modules “nvideo”, “naxisVideo”, “ndedicatedMicros”, “nmile-
based videoDriver framework stone”, and “nrapideye”.
Platform support forNiagara R2 on any Niagara R2 platform support on JACE-603/JACE-645 controllers requires Workbench
QNX-based JACE controller (3.6, 3.7, or 3.8).
N O T E : This is a partial list. Other rarely-used or limited-distribution software modules were not brought for-
ward to the new version. For more information, check with your support channel to verify availability.
Additionally, any OEM-specific or custom (non-Tridium) software modules used on any platform to be mi-
grated must be refactored for use in Niagara 4. This is a separate process from using the migration tool on a
saved AX station, and must be completed by the custom module developer before you migrate the station.
Wire c om p at ib i li ty
Supported communications, or “wire compatibility” between platforms and tools can be a factor in different
job scenarios. Version compatibility is also relevant when it comes to feature support between N4 and AX.
The following sections describe compatibility between the two major versions of Niagara with regard to
communications and features.
Supported connections
Workbench can connect to stations running NiagaraAX as well as stations running Niagara 4. The following
table summarizes the possible connections and indicates which are supported in Niagara 4.
12 June 1, 2020
Niagara AX to N4 Migration Guide Chapter 1 Migration overview
F ro m To Supported Notes
AX station N4 station, N4 Supervisor Yes Discovery of points, schedules, and histories in N4 stations
is unavailable. However, you can manually add points. Re-
fer to the following section (Features and compatibility) for
more details.
N4 station, N4 Supervisor AX station Yes Refer to the following section (Features and compatibility)
for more details.
N4 station AX Supervisor No Not prohibited in software, but unsupported.
Fe at u res an d compa ti bi l it y
A limited number of features are supported when communicating between Niagara 4 and AX-3.8.
This table indicates which features are supported when communicating between stations.
Table 2 Feature compatibility table
Point discovery No (AX Yes (N4 AX stations cannot discover points in N4 stations. The al-
Supervisor) Supervisor) ternative is to manually add and configure the points.
Point data Yes Yes N4 supports virtual points in AX stations. AX supports vir-
tual points in N4 stations.
Export Histories No Yes N4 uses different history encoding, and so detects and
converts history records as they come in.
Import Histories No Yes
Synchronize users out (sync Yes, but only No Supported users are those assigned an authentication
out) users AX is capa- scheme with a password that can be ported to the AX sta-
ble of supporting tion. The synchronization process is supported in only one
direction.
Synchronize users in (sync in) No Yes, but only
users AX is capa- LDAP is a good alternative for network user
ble of synchronization.
supporting Although AX stations do not support the HTML5 user pro-
totype, you can synchronize users configured with the
HTML5 user prototype to AX stations by enabling the
User Defined 1 configuration flag on the web_WebPro-
fileConfig property of the user prototype slot in the
AX station.
June 1, 2020 13
Chapter 1 Migration overview Niagara AX to N4 Migration Guide
Tunneling n/a n/a As Fox, HTTP, and platform communications provide in-
sufficient security, they are not supported in N4. Serial
tunneling is supported.
Export tags No, stations can- Yes, stations can For the AX station (subordinate) to join an N4 station
not join as join as (Supervisor), prior to executing the export tag join, the
subordinates subordinates two-way Fox connection in each station’s NiagaraNetwork
must be established between the stations. Failure to pre-
configure the two-way connection results in an error dur-
ing the export tag join.
Using Px files with ExportTags may be problematic as all
Px files must be converted for use with N4.
File transfer using Fox (Niag- Yes Yes File permission checks are enforced.
artaDeviceFileExt) is
supported.
N O T E : For Niagara 4 Supervisor to provision AX stations in addition to its own stations, you must import
the software database from the prior Supervisor into the new Supervisor’s software database. However,
Niagara 4 Supervisor cannot directly upgrade platforms to Niagara 4.
File locations
During the Workbench installation and platform commissioning processes, the software differentiates be-
tween two types of files based upon the content of the files: configuration and runtime data. Files and fold-
ers that contain configuration data reside in separate locations from files and folders that contain runtime
data. This separation enhances security by denying general access to the runtime files and allowing each
user access to only their personal configuration files.
As a result of separating configuration and runtime data, the system supports multiple home directories on
the Supervisor or engineering workstation. These homes may be identified as:
• The system home contains runtime files, such as core software modules, the JRE, and binary executables.
• Workbench user home for each user contains configuration data, including option files, and registries.
• A platform daemon user home for the Supervisor or engineering workstation contains platform configu-
ration data.
• Two station homes called, protected station home and station home, are part of each user home.
Homes on a Supervisor
The following table provides a summary of the Supervisor or engineering workstation homes with shortcut
information.
14 June 1, 2020
Niagara AX to N4 Migration Guide Chapter 1 Migration overview
Home in the
Home in th e Platform Ad-
Wo r k b e n c h N a v ministration File ORD
t re e view Niagara 4 alias Windows folder location and contents shortcut
Home s o n a c on trol le r
On a controller there are two homes.
Home in th e Plat- Home in the Plat-
form Adminis tra- form Administra-
tion view tion view Niagara 4 alias OFD location an d contents File ORD shortcut
System home
Sometimes identified by its alias, niagara_home, the system home is the sole location to which the Work-
bench installation wizard and platform commissioning wizard install Niagara runtime components, such as
core software modules, the JRE, and binary executables. License files and license certificates reside in the
Workbench system home, under the security subfolder. A system home contains no configuration files
that can be changed by a user. Except when it is time to upgrade, these runtime files are read-only.
June 1, 2020 15
Chapter 1 Migration overview Niagara AX to N4 Migration Guide
The example above shows the file system for Niagara 4 Supervisor running on a Windows PC. In the Nav
tree, the system home folder is referred to as its S y s H o m e . In the P l a t f o r m A d m i n i s t r a t i o n view, the same
system home is referred to as S y s t e m H o m e .
In the example, the actual location of the system home folder on this PC is: C:\niagara\niagara-
4.7.109.14.
The system home on a controller appears as S y s t e m H o m e in the P l a t f o r m A d m i n i s t r a t i o n view. The actual
location of the system home folder for a controller is: /opt/niagara/opt/niagara.
Control le r u ser ho me
The user homes are the locations under which all configurable data reside. Included are stations, templates,
registry, logs, and other data. Referred to by the alias niagara_user_home, the separation of these files from
the runtime files stored in the system home folder is new in Niagara 4.
The JACE controller has one system home and one user home.
16 June 1, 2020
Niagara AX to N4 Migration Guide Chapter 1 Migration overview
F ig ure 3 JACE Sys Home (niagara_home ) and User Home (niagara_user_home) locations
Callout 1 above identifies a controller’s system home (alias: niagara_home) in both the Nav tree and the P l a t -
f o r m A d m i n i s t r a t i o n view. In the Nav tree, you can find the controller’s system home by expanding P l a t -
f o r m → R e m o t e F i l e S y s t e m . The actual folder for the system home is /home/niagara.
Callout 2 identifies the controller’s user home or daemon user home (alias: niagara_user_home) that contains
the installed and running station and other configuration files. The actual folder for the daemon user home
is: /home/niagara.
June 1, 2020 17
Chapter 1 Migration overview Niagara AX to N4 Migration Guide
In addition to this daemon user home, a Windows host has a separate Workbench user home for each person
(operator, administrator) who logs on with credentials to a Windows-based platform licensed for Workbench,
meaning a Supervisor or engineering workstation. Any given PC or workstation has at least one, and may
contain multiple Workbench user homes.
Each person’s Workbench user home is available in the Nav tree as a node under M y H o s t → M y F i l e S y s t e m
and contains unique configuration information that is not shared. This is where to find any new Workbench
station, as well as any remote station backups, templates and other configuration files. The actual location of
each person’s user home is in the Niagara4.0 folder under your Windows User account.
If you open a local platform connection to your Supervisor PC, expand M y F i l e S y s t e m in the Nav tree, and
go to the P l a t f o r m A d m i n i s t r a t i o n view, you can see both types of user homes at the same time.
Fi gu re 4 Local platform connection to a Supervisor station with Workbench and daemon user homes
18 June 1, 2020
Niagara AX to N4 Migration Guide Chapter 1 Migration overview
You can do this station copy in different ways. In Niagara 4, you can let the N e w S t a t i o n wizard initiate this
copy from its last Finish step. Or as needed, you can manually open a local platform connection and use the
S t a t i o n C o p i e r.
The actual location of each user’s home folder is under that user’s personal Windows account. Some example
Workbench user home locations are:
C:\Users\John\Niagara4.x\<brand>
C:\Users\Mike\Niagara4.x\<brand>
where “John” and “Mike” are separate Windows user accounts. The first time a Windows user starts Work-
bench, the system automatically creates that user’s unique user home folder.
• The person that installs Niagara 4 on a PC acquires the first such user home. If no other Windows users
log on to that PC, this may be the only Workbench user home on the platform.
• However, if another person logs on to Windows on that computer and starts Workbench, that user also
acquires their own Workbench user home.
The following figure shows an example Workbench user home location in Windows Explorer.
June 1, 2020 19
Chapter 1 Migration overview Niagara AX to N4 Migration Guide
Station homes
Niagara 4 uses the Java S e c u r i t y M a n a g e r to protect against malicious from accessing station or platform
data and APIs. The S e c u r i t y M a n a g e r uses signed policy files that specify the permissions to be granted to
code from various sources. Included are tighter controls about which applications have access to parts of the
file system. Two folders under the Wo r k b e n c h U s e r H o m e serve to protect sensitive data while allowing au-
thorized access to data that can be shared.
• The s t a t i o n s sub-folder, otherwise known as the protected station home (alias: protected_station_home)
contains the running station’s file system, and may be accessed only by core Niagara software modules.
Station items that are always in protected station home, that is, items that are not under the shared
sub-folder include the following folders, as applicable:
– alarm
– history
– niagaraDriver_nVirtual
– provisioningNiagara
– dataRecovery
All files in the s t a t i o n s folder root (config.bog, config.backup.timestamp.bog, etc.) are always in pro-
tected station home. For this reason, in Niagara 4 it is no longer necessary to blacklist or whitelist station
files or folders.
• The s h a re d sub-folder, otherwise known as the station home (alias: station_home), allows all modules to
have read, write, and delete permissions.
The alias station_home retains the same file ORD shortcut (^) as used in NiagaraAX—only in Niagara 4
this points to the station’s s h a r e d sub-folder.
20 June 1, 2020
Niagara AX to N4 Migration Guide Chapter 1 Migration overview
F ig ure 7 Example NiagaraAX station file folders compared to Niagara 4 station file folders
As shown in the figure above, comparing an AX station file folder structure (left side) to the same station mi-
grated to Niagara 4, a number of folders are now under this s h a r e d sub-folder. Included are folders and files
used in graphical (Px) views or navigation, such as images, px, nav and so on. Modules that are prevented
from writing to the station root by the S e c u r i t y M a n a g e r must also write to the s h a re d sub-folder.
F ig ure 8 File ORD for the station home in Niagara 4 now points to the shared folder
As shown in a station running above, the station home (alias: station_home) file ORD (^) now points to the
contents of the s h a re d sub-folder. Other items in protected station home are no longer accessible or visible.
June 1, 2020 21
Chapter 1 Migration overview Niagara AX to N4 Migration Guide
R u n n i n g a s t a t i o n f r o m Wo r k b e n c h U s e r H o m e
Instead of running a station out of the daemon U s e r H o m e , you can run a station directly from your Work-
bench U s e r H o m e (outside of normal platform daemon control).
You do this using the Niagara 4 console command:
station stationName
This is not a recommended way to run a production station, but instead more of a developer utility that al-
lows quick access to station debug messages in the console window. If you run the station this way, be mind-
ful of possible port conflicts with any other station that the daemon user may be running locally (in daemon
U s e r H o m e ), meaning Fox ports, Web ports, and so on.
Sh are d fi le st r at e gy
A sharing strategy makes it possible for multiple users of a single Supervisor or engineering workstation to
share station files including backups.
If multiple people log on (differently) to Windows on Niagara 4 host and use Workbench, each person has
their own separate Workbench U s e r H o m e .
Windows users require permissions to access other users’ files; yet it’s possible that different users of a sys-
tem (Supervisor or engineering workstation) may need to share items such as station backups, station cop-
ies, saved template files, and so on. Such items may be in multiple Workbench U s e r H o m e locations in
Niagara 4 .
Therefore, in some scenarios you may need to establish a sharing strategy, perhaps re-copying such items to
a commonly-accessible folder location on the Niagara 4 Windows PC. For example, you might create a
shared folder under the Niagara 4 S y s H o m e location (Workbench U s e r H o m e is not shareable).
22 June 1, 2020
Niagara AX to N4 Migration Guide Chapter 1 Migration overview
Red items indicate NiagaraAX artifacts. Blue items indicate Niagara 4 artifacts. Green boxes indicate steps
you need to take in the migration process.
June 1, 2020 23
Chapter 1 Migration overview Niagara AX to N4 Migration Guide
Environment files are shown in yellow, because they may be generic to all versions of Niagara. If so, and
changed from defaults, they may require individual attention to see if values in them should be re-applied.
Examples of such files include modified !lib/units.xml or !lib/colorCoding.properties.
More detailed migration steps are included in the section Migration workflow process, page 23.
a. Click the “Installed Version” column header to re-sort, as shown above. Scroll down as necessary.
Any third-party sourced modules must be refactored by the module vendor before the station can be
migrated to Niagara 4. This assumes that all modules installed in the JACE are required by the con-
troller’s currently running station. Any installed module that is not used by the station is inconsequen-
tial in for migration.
b. If you previously built custom modules of Program components, using the ProgramModule feature
and its “Program Module Builder” view, you must also refactor these modules. This is something you
can do during the migration process.
4. If you will synchronize users from the N4 Supervisor to the AX station that have been assigned an HTML5
prototype, enable the User Defined 1 configuration flag on the web_WebProfileConfig property of
each user prototype slot in the AX station. (This is necessary because the most likely type of user proto-
type to be selected is an HTML5 prototype. There is no equivalent prototype in an AX station. Conse-
quently, by default, the migration tool assigns the first prototype in the list to each migrated user. This
prototype happens to be the Velocity Doc Web Profile.)
5. Make an N4.0 license request for all platforms to be migrated. You need confirmation that these licenses
are ready before migrating the platforms (AX licenses do not work in Niagara 4).
In almost all cases, the calculated host ID remains the same. An exception is if, on a Windows platform,
you are moving from a 32-bit install to a 64-bit install (or vice versa), in this case, the host ID differs.
Be sure to archive the old AX-3.8 license files as well.
24 June 1, 2020
Niagara AX to N4 Migration Guide Chapter 1 Migration overview
Supervisor upgrade
You migrate the Supervisor first.
Once migrated, it can start up and communicate with JACE controllers still running AX-3.8 (see Wire com-
patibility, page 12 for related details).
System cleanup
Following the upgrade of all AX-3.8 platforms to N4.0, including installation of migrated stations, there may
be several areas that need attention.
June 1, 2020 25
Chapter 1 Migration overview Niagara AX to N4 Migration Guide
26 June 1, 2020
Chapter 2 Migration tasks
Topics covered in this chapter
♦ Preparing platforms for migration
♦ Run the migration tool
♦ Migration details
♦ Post-migration database tasks
♦ Upgrade/convert platforms and install stations
This chapter provides migration tasks, along with reference details as needed.
Certificate export
If your controllers are configured to use secure communications with signed certificates, the best practice is
to create new certificates for each controller and install them after migration. However, it is also a good idea
to export the current certificates before migration in case you need them later.
To save your existing keys, export them from the User Key Store and the User Trust Store prior to migration.
These are deleted from each controller during migration to N4. After migration, if you choose to not create
new certificates, you can import the exported certificates back using Workbench and a platform connection.
June 1, 2020 27
Chapter 2 Migration tasks Niagara AX to N4 Migration Guide
R e l o c a t i n g t h e K e r b e ro s k e y t a b f i l e
If your AX-3.8 stations use Kerberos authentication for user services (for example, L d a p V 3 A D U s e r S e r v i c e )
and they use a “keytab file” supplied by the site’s Kerberos administrator, the migration tool requires this file
to reside under an “ldap” subfolder of each such AX-3.8 station. This procedure relocates the Kerberos key-
tab file prior to migration.
N O T E : If applicable, do this before making source station backups for use with the migration tool.
Step 1 Using Workbench, open the station (Foxs or Fox), expand the C o n f i g node, and navigate to the
property sheet of the UserService’s authenticator.
For example: S e r v i c e s > L d a p V 3 A D U s e r S e r v i c e > A c t i v e D i r e c t o r y C o n f i g > a u t h e n t i c a t o r
The Key Tab Location property ORD value references the current location of the keytab file.
Keep this view open.
Step 2 If it is a remote station, open a new tab in Workbench, and open a platform connection to the re-
mote host and access the F i l e T r a n s f e r C l i e n t view.
28 June 1, 2020
Niagara AX to N4 Migration Guide Chapter 2 Migration tasks
Station backups
For any AX-3.8 platform you are migrating, make a station backup using Workbench. You will use this station
backup dist file as the source when running the migration tool (n4mig.exe) from the command prompt of
a console window.
C A U T I O N : Backups for the purpose of station migration should be made only from the BackupService of
the running AX-3.8 station.
When you migrate a backup dist that was made using the Platform Backup available from the Platform
Administration tool, this contains all the stations that are on the platform. For non-embedded platforms,
this may be multiple stations, as subordinate stations are often copied to the Supervisor.
You should NOT use the Station Copier to make copies for migration.
The proper source for a migration is Niagara Backup Distribution file from a station's BackupService, ob-
tained from the host upon which the original station is running. The Backup contains the necessary additional
information to correctly migrate the station; a station folder does not. Also, you should use only backup dis-
tribution files obtained from the host upon which the original station is running for the source of the
migration.
Most of the time there will be one station in the backup that is to be migrated, or at most only a few. If there
is more than one station, you will be shown a list of the available stations in the backup. Then you will be
prompted to enter a choice selecting which station to migrate. Following, is an example of migration tool
output when run on a backup containing nine stations:
June 1, 2020 29
Chapter 2 Migration tasks Niagara AX to N4 Migration Guide
Se t ti n g Ba ck up S er vic e prope r ti e s
Prior to making a station backup, set properties as needed in the running station’s B a c k u p S e r v i c e . By de-
fault, backups exclude both the history and alarm databases. Other items are also excluded, such as prior
saved station database copies, console outputs, and lock files. In most cases, you want to migrate history
and alarms databases with your station to Niagara 4, so you need to modify default properties.
Prerequis i tes :
Stations are configured and running on a host compatible with Niagara 4.
In general, this is the recommended backup method for all platforms, and the only supported method when
making a local backup at the Supervisor PC.
Step 1 In Workbench, open the station and access the B a c k u p S e r v i c e property sheet.
30 June 1, 2020
Niagara AX to N4 Migration Guide Chapter 2 Migration tasks
Step 2 Review the Exclude Files and Exclude Directoriessettings and make adjustments as neces-
sary. These two properties apply to Fox online backups, that is, backups you initiate while the sta-
tion is running.
Step 3 The bottom two exclude properties apply when you initiate an offline backup with the station
stopped, using a platform connection and the P l a t f o r m A d m i n i s t r a t i o n view. By default, alarms
and histories are included (no Offline Exclude Directories entries, also as shown above).
N O T E : Make only online Fox backups (with station running) for any local station, such as a Supervi-
sor. Otherwise, if you run an offline backup from the P l a t f o r m A d m i n i s t r a t i o n view, it includes all
stations that may be on that platform. The migration tool rejects such a backup file, as it expects
only a single station to be in the backup file. Online Fox backups are more convenient to run than
offline backups.
Step 4 S a v e any changes made.
Examples
The following figure shows an example BackupService configured in JACE station.
Note that Exclude Directories still includes file:^dataRecovery (not useful in migration).
The following figure shows an example BackupService in a Supervisor station that is configured for
provisioning.
Note that Exclude Files has no entry for: *backup*; (to allow prior provisioning backups to be brought
over to the N4 Supervisor).
Ma ki n g sou rce st a ti on ba ck u ps
A station backup (.dist file) from a B a c k u p command is the preferred archive source when migrating AX-
3.8 station.
P re re q u i s i t e s :
June 1, 2020 31
Chapter 2 Migration tasks Niagara AX to N4 Migration Guide
• For an online backup, right-click the S t a t i o n node and select Backup Station.
The station continues running while first it saves is configuration locally, then saves a backup .
dist file in the backups folder of your niagara_home (install) folder.
• For an offline backup, make a platform connection, stop the station from the A p p l i c a t i o n D i -
r e c t o r, then, from the P l a t f o r m A d m i n i s t r a t i o n view, select B a c k u p .
NOTE:
An offline backup applies to JACE stations only. For any local station, such as a Supervisor, you
must make an online Fox backup (with station running).
After the backup completes, you may restart the station so that it can continue working while
you run the migration tool in preparation to convert the platform.
Step 2 As a best practice, consider renaming the resulting backup .dist file to a short, meaningful name.
This simplifies typing in the source .dist file name in the command-line migration tool. Do not re-
name the .dist extension.
For example, if the file name is backup_stationName_141221_0757.dist, shorten it to: sta-
tionName.dist, where stationName is a logical station name.
Step 3 If the new Supervisor or engineering workstation is on a different PC, copy the backup .dist file
to a location on that PC.
If the new station is on the same PC, simply leave all the backup .dist files in the default backups
folder.
For best performance, do not save backup.dist files in the Niagara 4 System home or User home
directories. The files can be located anywhere else, for example: C:\AxBackups.
Step 4 Repeat this procedure for all AX-3.8 stations to be migrated.
32 June 1, 2020
Niagara AX to N4 Migration Guide Chapter 2 Migration tasks
• When you receive a new N4.0 license file for your Supervisor, do not copy it back to any NiagaraAX
home’s licenses folder on the same PC—otherwise Workbench no longer works. This can also occur if
NiagaraAX host downloads the (N4) license offered by the licensing server.
In hybrid systems that combine both N4.0 and AX-3.8 hosts, you need to retain Workbench to use for possi-
ble station modifications to controllers that remain at AX-3.8.
June 1, 2020 33
Chapter 2 Migration tasks Niagara AX to N4 Migration Guide
Completed Migration
Source: C:\Users\John\Niagara4.0\Rocket Industries\migTemp\Supvsr
Target: C:\Users\John\Niagara4.0\Rocket Industries\stations\Supvsr
Migration Report: C:\Users\jDoe\Niagara4.0\Rocket Industries\stations\Supvsr_miglog
_1505261548.txt
34 June 1, 2020
Niagara AX to N4 Migration Guide Chapter 2 Migration tasks
F ig ure 13 Example migration tool output in Workbench User Home (station folder, migration log file)
In this example, notice that the migration process created a Supvsr folder and an associated log file in the
stations folder. The target station name is automatically determined from the station name inside the sta-
tion backup .dist file.
Entries in the log file (migration report) display source and target locations for items written, actions per-
formed, and so on. If needed, you can use command line options to create a greater level of log detail.
June 1, 2020 35
Chapter 2 Migration tasks Niagara AX to N4 Migration Guide
I M P O R T A N T : The embedded console, that is, the Console prompt available within Workbench (shown
here), cannot be used for migration purposes.
36 June 1, 2020
Niagara AX to N4 Migration Guide Chapter 2 Migration tasks
The above would apply if you have both NiagaraAX-3.8 and Niagara 4 installed on your PC. Alter-
natively, enter the full path to source station backup .dist files in the commands.
Step 2 Enter the migration tool command (n4mig) using syntax that specifies the source backup file, at a
minimum. By default (if left unspecified), the migration output targets the stations folder of your-
Workbench U s e r H o m e . Generally, this is the recommended method: specify source file only.
If you changed the console’s current directory to the location of station backups your command could be:
n4mig -t:2 backup_Supvsr_141117_1707.dist
(to migrate a backup .dist with that default file name, for a station named “Supvsr”).
C A U T I O N : Do not attempt a station migration using theWorkbench embedded Console. This console can-
not accept keyboard inputs, and thus will hang waiting for your input selection. The only workaround at that
point is to restart Workbench.
While the migration tool runs, operation activity is reflected in the console window. When finished, the end-
ing lines in the console window state where the target output results and log file can be found.
For reference details on the n4mig command, see Migration tool command usage, page 37. For general in-
formation, see About the migration tool, page 33.
source Yes Typically the AX-3.8 station backup .dist file, but it may also be a bog file, palette file, station folder,
or a zip archive of a station folder. You can enter an absolute file path, or a path relative to the current
directory of the Niagara 4 console.
target No (Optional) The output station folder name to write the migrated station or BOG file. An absolute file
path or a relative path can be entered. Any relative path is relative to the stations subfolder of your
Workbench U s e r H o m e , that is C:\Users\userName\Niagara4.x\<brand>\stations
T I P : Generally, in a station migration you do not specify a target, as you typically want to retain the ex-
isting station name in the migrated station. If it is not specified, the migration tool derives it from the
name of the source, its parent folder, or the name of a folder within the archive—whatever fits best.
The exception is a source named config.bog. In that case, the target is required. If the supplied target
is a relative path, the migration tool targets the result relative to the root of niagara_user_home/
stations.
If you do specify a target folder name, it cannot already exist (by default an existing station is never
overwritten); however, any file path above it must exist. For a related example, see Migrator syntax
example 2, page 39.
-log:level Specify the log level, where level is one of the following:
all, finest, finer, fine, config, info, warning, severe, off
The default is “info”. This produces the text log file migration report, which lists all the changes made
to the AX station as a result of the migration. This file is created in the root of the stations folder in
your Workbench U s e r H o m e . Of course the default (“info”) also includes any more problematic
“warning” or “severe” messages.
After becoming familiar with migrations, you could specify the “warning” log level instead—that lists
only the more problematic entries, shortening the log report.
June 1, 2020 37
Chapter 2 Migration tasks Niagara AX to N4 Migration Guide
-keepTemp Do not clean up temp directories after execution. If used, a “migTemp” folder is left in your Work-
bench User Home, with various subfolders of intermediate files used in the migration process. Only
use -keepTemp option for troubleshooting purposes.
-showSystemLogs Shows messages from all loggers; does not hide non-migrator logs.
-help, -? Print the usage information. By default you see this same information if you enter the n4mig command
alone, that is without any other parameters or options.
-t:<template> When migrating a station backup .dist, this is the template type to use, where template is one of
the migration station template types available on your system. Choices are:
1 = Controller migration template (for example, ControllerMigrationTemplate.ntpl)
2 = Supervisor migration template (for example, SupervisorMigrationTemplate.ntpl)
NOTE:
You can also use 'c' for the default Controller and 's' for the default Supervisor template.
Default migration template files listed above are found in your S y s H o m e folder under !defaults/
workbench/migrationTemplates. An empty migrationTemplates subfolder is also created in your
Workbench U s e r H o m e , to store any customized migration station template files. See the Niagara
Templates Guide for more details on working with Niagara 4 templates.
38 June 1, 2020
Niagara AX to N4 Migration Guide Chapter 2 Migration tasks
In the NiagaraAX installation, there are different ways the ProgramModule feature can be used to create ver-
sioned module JAR files that contain one or more Program objects:
• ProgramModule components copied into a folder under the Workbench file space of the local host, such
as a Supervisor, each saved as a BOG file. These ProgramModule components contain Program objects
copied from stations, used to build local modules with these Programs.
June 1, 2020 39
Chapter 2 Migration tasks Niagara AX to N4 Migration Guide
The figure above shows two such ProgramModule BOG files, under an “AprogBldr” folder in the Workbench
home. The resultant module JARs are also shown in the local modules folder.
• One or more ProgramModule components copied into a station run on a local host, such as a Supervisor.
Typically, this station also has the original Program objects that are now replicated in the station via local
modules built by the ProgramModule(s).
• Simply using the Workbench program palette and the ProgramModule in it, pasting in Program objects
from stations, then compiling and building local modules with these Programs. In this case, ProgramMod-
ules are not persisted—only the modules built using them.
N O T E : Such modules cannot be refactored for N4, unless you first use Workbench to copy ProgramMod-
ules from the program palette into a folder in the Workbench file space, and reconfigure again. Once
saved as AX-3.8 BOG files, you can run migration on the ProgramModules.
In all but the last case, migration of the modules is straightforward. Migration requires running the source
AX-3.8 ProgramModule through the migration tool (either as a BOG file, or if within a station, in a station
backup .dist file). Next you use Workbench on each migrated ProgramModule to recompile the contained
Program(s) and then rebuild the module, which refactors it for Niagara 4.
40 June 1, 2020
Niagara AX to N4 Migration Guide Chapter 2 Migration tasks
N O T E : After the tool finishes, you can simply cut and paste this “non-station” folder to a better
location.
While the migration tool runs, operation activity is reflected in the console window. When finished,
the ending lines in the console window state where the target output folder and log file can be
found. As shown above, you are not prompted for a station “type” (unlike if migrating the AX back-
up .dist file).
Step 3 If the target folder was created in your stations folder, move (cut and paste it) to another location
in your Workbench U s e r H o m e . You can do this in the Nav tree, using right-click commands.
Step 4 In the Nav tree, expand the target folder to see the BOG file(s) with ProgramModule(s).
Step 5 Double-click a ProgramModule for its P r o g r a m M o d u l e B u i l d e r view.
Step 6 Right-click one of the contained Programs and select V i e w s → P r o g r a m E d i t o r (as above).
Step 10 Double-click the ProgramModule for its P r o g r a m M o d u l e B u i l d e r view, then click Build.
June 1, 2020 41
Chapter 2 Migration tasks Niagara AX to N4 Migration Guide
As shown above, a popup dialog appears while the module is created. Completion may take sev-
eral seconds. Related details should also appear in the console area at the bottom of the Work-
bench window.
Step 11 If multiple ProgramModules are in the folder, repeat steps 5 through 9 for each one, so that a mod-
ule for each is created. In the example folder shown here, there are two ProgramModules.
42 June 1, 2020
Niagara AX to N4 Migration Guide Chapter 2 Migration tasks
Step 5 Right-click one of the contained Programs and select V i e w s → P r o g r a m E d i t o r (as above).
Step 8 Double-click the ProgramModule for its P r o g r a m M o d u l e B u i l d e r view, then click Build.
As shown above, a popup dialog appears while the module is created. Completion may take sev-
eral seconds. Related details should also appear in the console area at the bottom of the Work-
bench window.
Step 9 If multiple ProgramModules are in the folder, repeat steps 4 through 8 for each one.
June 1, 2020 43
Chapter 2 Migration tasks Niagara AX to N4 Migration Guide
As shown above, the module named aaPrgmModule.jar was created by the ProgramModule.
Step 10 When done migrating modules, right-click the station’s config.bog file and click S a v e .
Step 11 Close and then restart Workbench. This is necessary to update the registry. Migrated modules
should now be ready when running the migration tool on AX-3.8 station backup .dist files, includ-
ing the station with the source ProgramModules.
Migration details
Details on migration are in the following reference topics:
Migration execution
The migration tool migrates a source artifact to its appropriate N4 target. The typical source is AX-3.8 sta-
tion backup .dist file. The output (target) is a station folder, in your Workbench U s e r H o m e .
At the conclusion of the tool execution, you see these Source and Target locations listed:
09:31:37,355 INFO [migration] Completed Migration
Source:C:\niagara\niagara-3.8.111\backups\backup_Supvsr_141117_1707.dist
Target:C:\Users\John\Niagara4.x\<brand>\stations\Supvsr
You can then install this migrated station into the daemon User Home of Niagara 4 platform, for example
the local platform if a Supervisor, or in a remote platform, such as the migrated station for a controller that
has been converted.
Upon execution, the migration tool scans each folder and file in the backup recursively, and migrates each in
turn as appropriate. Certain folders, such as the folder tree comprising the history database of a station, are
handled separately.
N O T E : Any environment files in the backup .dist that are outside of the station folder, for example, prop-
erties files in the AX platform’s !/lib folder, are not migrated. If you know of any that were edited from de-
fault values, and they still apply to N4 platforms, you may need to re-apply changed values in the platform
after upgrading to Niagara 4 (however, do not copy entire AX files into the N4 environment).
If desired, do this after installing the migrated station.
For each migrated artifact, the migration tool determines if a FileMigrator is registered to handle migrating
that file type. If no special migrator is registered, the default migration is to simply copy the file as is from
the source location to the target location.
In the case of BOG file migration, the BogMigrator opens the .bog file, and walks the XML element tree. For
each element it encounters, it checks to see if there is a BogElementConverter registered to handle convert-
ing that type.
• If no converter is registered, the type is simply passed through and re-encoded.
44 June 1, 2020
Niagara AX to N4 Migration Guide Chapter 2 Migration tasks
June 1, 2020 45
Chapter 2 Migration tasks Niagara AX to N4 Migration Guide
Using Workbench, you should modify any such Program objects until they recompile successfully, before in-
stalling the station.
Prerequisite: You must have a working knowledge of Java programming, Program objects, and the P r o g r a m
E d i t o r view in Workbench. Access to Developer-level Niagara 4 documentation may be needed.
One or more errors result in the Console area at the bottom. Often all possible errors are not in-
cluded, as the compiler stops on failure and outputs an error. Therefore, once you correct one or
two errors, subsequent compile attempts may uncover other errors.
46 June 1, 2020
Niagara AX to N4 Migration Guide Chapter 2 Migration tasks
In this example, errors shown relate to the methods getOpenAlarms() and getRecord(BOrd)
having moved from the BAlarmService class to a new AlarmSpaceConnection class, located
in the javax.baja.alarm package of the alarm module. To fix this, you would need Developer-
level documentation on “breaking changes” in Niagara 4 Alarm API, and make the required
changes in the program code (further details are outside the scope of this document).
Depending on the Program object, other possible compile errors may require changes in its pack-
age import definitions (IIm p o r t s tab).
Step 7 Continue with changes until the Program compiles successfully, and click S a v e & C o m p i l e and
also Save Bog.
Step 8 Repeat steps 4 through 7 for each Program object identified to have a compilation failure.
Step 9 When finished, in the Nav tree right-click the station’s config.bog file, and ensure S a v e is
dimmed. If available (not dimmed), click S a v e .
June 1, 2020 47
Chapter 2 Migration tasks Niagara AX to N4 Migration Guide
P re l i m i n a r y c h e c k o u t o f m i g r a t e d s t a t i o n s
Prior to installing stations, we recommend that you use Workbench to open each of the migrated stations
offline, that is in the stations folder under your Workbench U s e r H o m e , and check it out carefully. If neces-
sary, make and save any changes.
As for migrated JACE stations, if you have an extra, available JACE controller (of the same model type) that
has been converted, you can install a migrated station and observe startup behavior. However, expect many
errors from driver-sourced items—as you would for any unit disconnected from device networks.
48 June 1, 2020
Niagara AX to N4 Migration Guide Chapter 2 Migration tasks
N O T E : When installing Niagara 4 software on the Supervisor PC, be sure to select the option “This instance
of Niagara 4 will be used as an installation tool”. Refer to the Niagara 4 Installation Guide for details.
Alternatively, you may have used a different PC to run the migration tool, and perhaps even to (eventually)
use as the new Supervisor host for the job.
As different combinations are possible in a transition such as this, use the procedures and steps provided to
serve as a general guide.
Step 4 Set Copy Remote Station Alarm Data and Copy Remote Station History Data to true, and
click O K
Step 5 Open a local platform connection
(in the Nav tree, right-click M y H o s t , and choose O p e n P l a t f o r m ).
Step 6 After platform login, go to the S t a t i o n C o p i e r platform view.
Ready-to-install migrated stations are on the left side, in your Workbench User Home, and there is
no station installed on the right side, in the daemon user home (localhost).If your migrated station
folders are not on the left side, copy them into your User Home. For example in: C:\Users\user-
Name\Niagara4.x\<brand>\stations
Step 7 Select the migrated Supervisor station, and copy (install) to the daemon user home.
June 1, 2020 49
Chapter 2 Migration tasks Niagara AX to N4 Migration Guide
Step 8 To transfer in this station copy, choose to Copy files from selected directories, and START
AFTER INSTALL... and AUTO-START... and click N e x t . As shown below, select all station
folders
50 June 1, 2020
Niagara AX to N4 Migration Guide Chapter 2 Migration tasks
Co ntroll er co nvers io n
Typically, after upgrading a Supervisor, you convert JACE controllers to N4.0—or at least you convert all
those for which you successfully migrated a station. During the N4 commissioning of each JACE, you install
this station as one of the steps in the Commissioning Wizard.
CAUTION:
You must migrate the AX station from the JACE and confirm that the migration was successful first (all Pro-
grams report {ok}, for example), before installing the .dist file.
C o n v e r t i n g a c o n t ro l l e r
Perform the following procedure for each controller for which you have secured N4.0 license, and have suc-
cessfully migrated its station database.
P re re q u i s i t e s :
Workbench is open, you have used it to check the migrated station for this controller, and confirmed that
the migration was successful.
Step 1 Open a platform connection to the controller to be converted, and access the D i s t r i b u t i o n F i l e
I n s t a l l e r.
The list of distribution files opens.
June 1, 2020 51
Chapter 2 Migration tasks Niagara AX to N4 Migration Guide
N O T E : N4 may display the cleanDist or other files for other controllers, but you can select only
the file that is appropriate for your controller. This file is only for a unit already converted to
Niagara 4. If you do not see the appropriate *.dist file, verify that you are in the conversion fold-
er. If necessary, use the buttons at the bottom of the view to navigate and browse for the file.
Point the installer to the !/sw/N4buildNumber folder, for example: !/conversion/
4.0.15.619.
Only one of several listed should be selectable. This is an example of the file for converting a
controller:
aAXtoN4-qnx-jace-npm6e-etfs2048.dist
Step 2 Select the appropriate .dist file and click the I n s t a l l button.
N O T E : Installation clears all data in the controller, including AX licenses and certificates, environ-
ment and properties files, SSL certificates and key files, along with all station data and NiagaraAX
software. The controller’s IP configuration is retained. You must use the default platform creden-
tials to regain access.
Step 3 After this .dist file installs and the controller reboots, re-open a platform connection (port 3011)
using the factory default credentials.
Step 4 If you previously exported SSL certificate stores from this controller, access the platform C e r t i f i -
c a t e M a n a g e r view, and do the following:
a. On the U s e r T r u s t S t o re tab, click I m p o r t , and navigate to select the previously saved public
key certificate (typically common among all platforms at the job).
b. On the U s e r K e y S t o re tab, click I m p o r t , and navigate to select the previously saved private
key certificate unique to this platform.
c. Access the platform P l a t f o r m A d m i n i s t r a t i o n view, click the C h a n g e S S L S e t t i n g s button,
and select the new server certificate you just imported.
d. Run the platform C o m m i s s i o n i n g W i z a r d (right-click the P l a t f o r m node, and select C o m m i s -
s i o n i n g W i z a r d ).
In this initial commissioning of the controller, you typically use all default step selections. This in-
cludes most steps except Install lexicons (but if you use text-based lexicons, select this too).
52 June 1, 2020
Niagara AX to N4 Migration Guide Chapter 2 Migration tasks
June 1, 2020 53
Chapter 2 Migration tasks Niagara AX to N4 Migration Guide
Step 6 Re-open a platform connection to the converted controller, using a new platform account you en-
tered in the wizard. Go to the A p p l i c a t i o n D i r e c t o r and view the station standard output.
Again, there may be warnings and messages, but its station status should change to “running”.
Step 7 In Workbench, open a station connection (Fox or Foxs) to the converted controller, typically using
the admin (superuser) login. Verify the station opens.
Step 8 For each remainin controller to be converted, repeat the above steps
When done with this, all converted controllers should be running stations as N4.0 platforms, as well as the
Supervisor station.
54 June 1, 2020
Niagara AX to N4 Migration Guide Chapter 2 Migration tasks
As shown above, by default all items are selected. If necessary you can de-select any items not wanted.
F ig ure 19 Example platform daemon authentication step (to replace factory platform user)
If this controller was previously provisioned by the AX Supervisor, you may wish to have at least one platform
admin user with the prior user name, and possibly prior password (if it was “strong” before). Otherwise, you
must update the platform connection Credentials property for this station back in the Supervisor station’s
NiagaraNetwork.
June 1, 2020 55
Chapter 2 Migration tasks Niagara AX to N4 Migration Guide
An even better practice might be to add another platform user in the JACE that no person uses to make
platform connections, but is only referenced back in the N4 Supervisor.
D o w n g r a d e p ro c e d u re
Perform the following for each controller to be downgraded, and for which you have secured NiagaraAX
license.
P r e r e q u i s i t e s : To restore an existing station, make sure you have access to the station file, or a backup dis-
tribution file.
Step 1 At the Supervisor, using Workbench, open a platform connection to the controller to be down-
graded, then open the A p p l i c a t i o n D i r e c t o r and stop any running station.
Step 2 With the platform still selected, choose the D i s t r i b u t i o n F i l e I n s t a l l e r from the view selector, navi-
gate to the location of the downgrade distribution file, and click C o n v e r s i o n .
N O T E : Some non-applicable files, such as N4 cleanDist, .dist or other files may be selectable
but, in this case, do not select these files. Click the C h o o s e D i r e c t o r y button to browse to the lo-
cation of the downgrade .dist file, for example: N4toAX-qnx-jace-<npm-model>etfs2048-
clean.dist.
Step 3 Select the appropriate .dist file and click the I n s t a l l button.
N O T E : Installation clears all data in the controller, including AX licenses and certificates, environ-
ment and properties files, SSL certificates and key files, along with all station data and software.
The controller’s IP configuration is retained. You must use the default platform credentials to regain
access.
Step 4 After this .dist file installs and the controller reboots, re-open a platform connection using Work-
bench (port 3011) and the factory default credentials.
N O T E : At this point, the JACE will be at 3.8.38 version. If you need an earlier release AX version,
use the clean .dist files in the AX-3.8 D i s t r i b u t i o n F i l e I n s t a l l e r. This will revert the JACE back
to the base-factory version.
Step 5 Run the platform C o m m i s s i o n i n g W i z a rd (right-click the P l a t f o r m node, and select C o m m i s s i o n -
i n g W i z a rd ). During the commissioning process you can choose to reinstall a station, if you have
one ready, perhaps from a previous backup, or you can restore from a backup as described in the
next step.
C A U T I O N : Do not remove power from the controller during this reboot, which may take up to 7
or more minutes. Removing power could cause the unit to become unrecoverable. If desired (and
convenient), you can use a serial shell connection to the controller to monitor progress as files are
installed, the platform is rebooted, and the unit is prepared.
For more details on commissioning the AX-3.8 controller, see the JACE Niagara 4 Install and Start-
up Guide.
Step 6 If you did not restore a station with the previous commissioning step, make sure you have a backup
.dist file and a platform connection to the rebooted AX-3.8 controller. Select the D i s t r i b u t i o n
F i l e I n s t a l l e r view and click on the B a c k u p s button or C h o o s e D i r e c t o r y button to navigate to
the appropriate dist file location.
56 June 1, 2020
Niagara AX to N4 Migration Guide Chapter 2 Migration tasks
Step 7 Select the .dist file and click the I n s t a l l button. Follow the prompts in the D i s t r i b u t i o n F i l e I n -
s t a l l e r to complete the installation.
June 1, 2020 57
Chapter 2 Migration tasks Niagara AX to N4 Migration Guide
58 June 1, 2020
Chapter 3 System verification
Topics covered in this chapter
♦ Non-default environment files
♦ Verify station-to-station communications
♦ Provisioning notes
♦ Station User notes in migrated stations
Following the migration and initial upgrade of a system from AX-3.8, there may be additional considerations
and tasks that you need to verify operation.
The following sections include related topics:
Ve r i f y s t a t i o n - t o - s t a t i o n c o m m u n i c a t i o n s
Ideally, station-to-station communications between the platforms converted to N4.0 and all others resume
after the upgrade. That is, communications between the Supervisor and controller stations, via the N i a g a r a -
N e t w o r k . Supervisor communications between any JACE stations which remain at AX-3.8 should also re-
sume. (Note this assumes all station names remained unchanged.)
However, in some cases you may need to take additional steps to restore communications, working in the
N4.0 Supervisor stations and/or controller stations (N4.0 JACEs, and if applicable, AX-3.8 too).
N O T E : If configuration of any AX-3.8 JACE station is required, say to edit “client connection” properties of
the NiagaraStation that represents the N4.0 Supervisor, need to use Workbench for this.
Some variation of the following sequence may be required:
1. In Workbench, re-open the Supervisor station and go to the S t a t i o n M a n a g e r view of its
NiagaraNetwork.
If new JACE controllers were added (not migrated) there will not be an existing station child for them—
you need to select and add them.
June 1, 2020 59
Chapter 3 System verification Niagara AX to N4 Migration Guide
2. For each NiagaraStation in the Supervisor station’s N i a g a r a N e t w o r k , verify that communications report
{ok}. The status of all stations in the network should be {ok}.
In cases where secure communication (Foxs) is being used with the default self-signed certificates, it may
be necessary to go to the Supervisor’s C e r t M a n a g e r S e r v i c e platform service, and perform other
actions.
The figure above shows allowed hosts exceptions for migrated controllers that need approval. This may
not be necessary, if previously-exported TLS/SSL certificates were imported before commissioning.
3. In a station connection to each JACE controller, go to the S t a t i o n M a n a g e r view of its N i a g a r a N e t -
w o r k , and verify communications to the Supervisor are {ok}.
Again, if Foxs (TLS/SSL) is being used by a Hotspot JACE station back to the Supervisor (and possibly
other JACE stations) you may need to go to the JACE station’s C e r t M a n a g e r S e r v i c e platform service,
and perform other actions.
4. While working in remote JACE stations, after verifying N i a g a r a N e t w o r k communications back to the
Supervisor are {ok}, verify other “inter-network” configuration is valid. For example, verify the correct
N i a g a r a S t a t i o n component (representing the Supervisor) is referenced in the appropriate S t a t i o n R e c i -
p i e n t component, under the station’s A l a r m S e r v i c e . Typically, this is necessary only if station names
were changed when migrating.
Prov is i oni ng n ot es
For any Supervisor migrated to N4.0 that was configured for provisioning stations in its N i a g a r a N e t w o r k ,
that is, using the provisioningNiagara components (for example, P r o v i s i o n i n g N w E x t , also B a t c h J o b -
S e r v i c e ) , there may be related post-migration measures needed.
Ve r i f y S u p e r v i s o r t o c o n t r o l l e r p l a t f o r m d a e m o n c o m m u n i c a t i o n s
You need to verify that communications from the Supervisor to the platform daemon of each controller are
{ok}.
Expand the Supervisor’s N i a g a r a N e t w o r k , and issuing a ping from the P l a t f o r m C o n n e c t i o n device exten-
sion of each child N i a g a r a S t a t i o n .
60 June 1, 2020
Niagara AX to N4 Migration Guide Chapter 3 System verification
The figure above shows successful communications to the JACE platform daemon, using platformssl. How-
ever, you may first need to edit the Credentials property to match a new strong password for the plat-
form admin account in an migrated controller. And/or, perhaps (again) access the Supervisor’s
C e r t M a n a g e r S e r v i c e platform service, and perform other actions.
This station-to-platform provisioning communications is one-way only, from the Supervisor to each control-
ler. Therefore, no reciprocal configuration in controller stations is needed.
P ro v i s i o n i n g c o n s i d e r a t i o n s w h e n J A C E c o n t ro l l e r s re m a i n
Sometimes one or more JACE controllers may need to remain running AX-3.8, yet continue to be in the mi-
grated Supervisor’s N i a g a r a N e t w o r k . This is supported by the N4.0 Supervisor, including many provision-
ing operations. For example, the backup of AX-3.8 stations and installation of AX-3.8 software.
For proper support, you should import the software database of the former AX-3.8 Supervisor into the soft-
ware database of the N4.0 Supervisor. This copies over all the versioned NiagaraAX software modules and .
dist files to the new Supervisor, and makes them available for provisioning of the older platforms.
To do this when the N4.0 Supervisor is installed on the same PC as the former AX-3.8 Supervisor:
1. Use Workbench to open a platform connection to the N4.0 Supervisor, then access the S o f t w a r e M a n a g -
e r view.
2. Click the I m p o r t button at the bottom, and then Import software from directory.
June 1, 2020 61
Chapter 3 System verification Niagara AX to N4 Migration Guide
3. As shown above, in the D i re c t o r y C h o o s e r popup, navigate to the AX-3.8 Supervisor’s installation fold-
er, then expand to find its sw subfolder. Select it and click C h o o s e .
Progress is displayed in a popup dialog similar to the one above, while software files are analyzed for ver-
sions and then copied into appropriate subfolders in the N4.0 Supervisor’s software database. When fin-
ished copying, the normal S o f t w a r e M a n a g e r view opens.
If the former AX-3.8 Supervisor is on a different PC than the N4.0 Supervisor, you perform the same proce-
dure. However, first copy the entire software database (!\sw folder) from the AX-3.8 Supervisor to a loca-
tion accessible from the N4.0 Supervisor, such as on a USB flash drive, etc. Then navigate to that location
from the S o f t w a re M a n a g e r while platform-connected to the N4.0 Supervisor.
62 June 1, 2020
Niagara AX to N4 Migration Guide Chapter 3 System verification
F ig ure 20 Station migrated to N4.0 has default “one-to-one” mapping of new Roles to existing Users
This one-to-one mapping of created roles to users is shown above, where user JohnW has (by default), only
one role assigned: also named JohnW. (Note additional roles could be assigned, but are not here.) Effec-
tively, nothing changed here: the permissions map that used to be in user JohnW’s permissions property is
now in the “same named” R o l e component.
June 1, 2020 63
Chapter 3 System verification Niagara AX to N4 Migration Guide
As shown above, you can see this in the popup E d i t window for each Role (in the R o l e M a n a g e r view on the
R o l e S e r v i c e ). The role now has the permissions map.
In summary, to make better use of roles, you should consider this a workaround effect of migration. For ex-
ample, you could create more duty specific roles and/or rename or delete roles, later reassigning to users in
various combinations. When adding or editing users, this can simplify how permissions are assigned.
The R o l e M a n a g e r lets you do all these things, except the assignment of one or more roles to users. That
you do from editing (or adding new) users in the U s e r M a n a g e r, or from User property sheets.
A u t h e n t i c a t i o n i s u s e r- s p e c i f i c
When looking at a U s e r in Niagara 4 station, notice that the Password property is now inside a new A u -
t h e n t i c a t o rcontainer, along with P a s s w o r d C o n f i g properties. In addition, each User has a specified A u -
t h e n t i c a t i o n S c h e m e N a m e , where the default is typically DigestScheme.
This is part of a new authentication architecture” in Niagara 4. Along with a new (and required) A u t h e n t i c a -
t i o n S e r v i c e and child AuthenticationScheme components, station security is improved, providing finer con-
trol. For the migration of existing station users, typically nothing remains to be adjusted. However, when
creating new users, this architecture may provide added flexibility.
For related details on authentication changes, refer to the Niagara Station Security Guide.
64 June 1, 2020
Chapter 4 Migrating Niagara Enterprise
Security stations
Topics covered in this chapter
♦ Upgrading devDriver-based video drivers
♦ Mapping Supervisor cameras to AX controllers before migration to N4
♦ Preparing the BackupService
♦ Backing up by creating a distribution file
♦ Migrating each station
♦ Copying the migrated files
♦ Setting up database passwords
♦ Configuring network device passwords
♦ Deleting the old certificates
♦ Reconnecting the Supervisor and remote stations
♦ Restoring the BackupService schedules
Niagara Enterprise Security stations are Niagara stations that have some additional unique migration
requirements and options. The following topics describe the specific steps required to migrate your
NiagaraAX-3.8 based security Supervisor and controller stations to Niagara 4.8 based security stations. This
topic provides an overview of the process.
To reduce downtime, migrate the Supervisor station first and then the individual security stations.
A typical Supervisorstation includes persons, badges, access rights, schedules, threat level groups, intrusion
PIN, intruzion zones, NiagaraIntegration ID, tenants, new users, new roles, new categories, a
PhotoIDNetwork, and ObixNetwor, PxViews, additional personnel information, an Ldap network, alarm
class, custom Wiegand format, and keypad configuration.
The following list summarizes the aspects of the AX security system that need special migration attention:
• P a s s p h r a s e : Be sure to have the station passphrase available before starting the migration process.
Depending on the migration scenario you are using, you may need to re-enter existing passhphrases or
create new passphrases during the migration process. Refer to “System Passphrase” and related topics
in the Niagara Platform Guide for more details about passphrase usage.
• d e v D r i v e r b a s e d v i d e o d r i v e r s : Niagara 4 does not support RapidEye and Dedicated Micros legacy
devices. During migration, the migrator deletes devDriver-based devices, including these two. If your
installation includes one or more of these devices, please upgrade to the supported devices: Axis,
Milestone and MaxPro video drivers.
If your installation uses the devDrivers for AxisvideoNetwork and Milestone, a procedure in this chapter
documents how to use the V i d e o D r i v e r U p g r a d e t o o l to upgrade these drivers to nVideo-based
version of the drivers.
• R e m o t e V i d e o C a m e r a m a p p i n g : As part of AX to N4 compatibility restrictions, Supervisor cameras
cannot be discovered under the NiagaraNetwork from an AX controller. So, to migrate cameras to the
new Supervisor station, map them in a Niagara Enterprise Security 2.3 JACE before doing the station
migration. Then, during migration, the new station retains that mapping without additional changes after
migration.
• B a c k u p : Before migration, you will make a backup of the Supervisor station and all subordinate stations.
By default, the BackupService does not include alarms and histories. To retain these database records,
you must specifically include alarms and histories in the backup.
• B a c k u p s c h e d u l e s : Before migration you must use the web UI to unassign any schedules in the
BackupService and re-assign them after completing the migration.
June 1, 2020 65
Chapter 4 Migrating Niagara Enterprise Security stations Niagara AX to N4 Migration Guide
U p g r a d i n g d e v D r i v e r- b a s e d v i d e o d r i v e r s
If you are using one or more devDriver-based video drivers, a conversion tool is available to upgrade these
drivers in each controller station to the newer nVideo-based drivers. You must upgrade these drivers before
you migrate each controller station.
P r e r e q u i s i t e s : Your laptop or PC is connected to the same network as your controller(s) and is running the
NiagaraAX version of Workbench. The driver upgrade module is available.
Step 1 From Workbench, open a connection to the desired controller station (F
Fi l e → S t a t i o n → O p e n S t a -
t i o n ) and enter credentials with admin privileges.
Step 2 From the main menu, click T o o l s → D r i v e r U p g r a d e T o o l .
The D r i v e r U p g r a d e T o o l window opens.
Step 3 Enter the host address, platform and station addresses and click N e x t .
The wizard reads the current station and scans its .bog (station) file. If a driver can be upgraded,
the wizard changes the .bog file and downloads any dependent modules. Be sure that you have
the required modules or an upgrade is not possible.
When it successfully completes the upgrade, the wizard indicates that is was successful.
66 June 1, 2020
Niagara AX to N4 Migration Guide Chapter 4 Migrating Niagara Enterprise Security stations
NOTE:
The wizard does not delete the old devDriver based video driver modules.
Step 4 To conserve space in the controller, delete the old devDriver based modules if they are no longer
needed. devDriver modules that you can delete, include the following:
• devDriver.jar
• devHttpDriver.jar
• devIpDriver.jar
• devVideoDriver.jar
N O T E : The devDriver.jar may be required as a dependency for other drivers. If so, you cannot de-
lete it while that dependency exists.
Step 5 Delete any older driver modules, such as those for Closed-Circuit TV (CCTV) equipment associated
with the older drivers.
June 1, 2020 67
Chapter 4 Migrating Niagara Enterprise Security stations Niagara AX to N4 Migration Guide
Step 3 Add facets as shown in the image above (also, refer to details in table below), where xxx.xxx.x.
xxx is the IP address of the Supervisor platform and xxxx is the actual cameraHandleOrd for the
camera you are mapping.
The following table indicates the key names, type, and values that go in the facets window.
Key Ty p e Va l u e
cameraPreset dynamicEnum 1
68 June 1, 2020
Niagara AX to N4 Migration Guide Chapter 4 Migrating Niagara Enterprise Security stations
N O T E : The startRecording property works only for Milestone cameras but not for Axis
Video cameras. Set the startRecording property to false for an AxisVideoCamera.
When this task is completed the station is ready for backup and migration as described in the tasks included
with Chapter 4 Migrating Niagara Enterprise Security stations, page 65 topic.
Step 2 In the Exclude Files text field, select and delete the following: *.hdb; and *.adb; using your
keyboard and mouse.
June 1, 2020 69
Chapter 4 Migrating Niagara Enterprise Security stations Niagara AX to N4 Migration Guide
Bac ki ng u p b y c reati ng a d is tr ib ut io n fi le
This procedure backs up a Supervisor and any subordinate stations. Creating a single distribution (.dist) file
is the most complete way to back up a Supervisor station and its subordinate remote stations. The backup
file includes all station data and module-dependency information.
P r e r e q u i s i t e s : Your PC is connected to the network with any remote controller subordinate stations. You
are using a browser (the web UI) to connect to the Supervisor station.
Step 1 Open a browser and log in to the AX Supervisor station that you want to back up.
Step 2 From the Home view, click S y s t e m S e t u p → B a c k u p s .
The B a c k u p s view opens.
Selecting the first option (check box) enables a backup of the Supervisor station and all its subordi-
nate stations. The second option (check box), when selected, automatically downloads the backup
to your local Downloads folder.
Step 4 To continue, click O k .
The J o b window displays a progress bar while the backup job runs. When the job finishes, another
L o c a l B a c k u p window opens with a “Show Details” link and a D o w n l o a d button.
Step 5 To display the history of this backup job, click the S h o w D e t a i l s link.
Step 6 To save the backup *.dist file to a designated location, click the D o w n l o a d button. In this case, the
browser saves the file to the temporary folder and prompts you to open or save the file.
N O T E : You must save the file within five minutes of creating it or it is not available.
Step 7 Give the file a short name that identifies the Supervisor and subordinate stations, and save the file
to a location other than the System Home or User Home.
70 June 1, 2020
Niagara AX to N4 Migration Guide Chapter 4 Migrating Niagara Enterprise Security stations
Step 8 Finally, make a note of the date and where you saved the downloaded file for reference when mi-
grating the file.
Step 2 Launch the Workbench and make a platform connection to the Supervisor station.
June 1, 2020 71
Chapter 4 Migrating Niagara Enterprise Security stations Niagara AX to N4 Migration Guide
Sett in g up d at ab as e p as s word s
This procedure covers setting up database and driver passwords in all stations.
P r e r e q u i s i t e s : The Supervisor station requires a MySQL or SQL database. A controller station has a built-in
HSql database. The MySQL or SQL Server databases exist in the Supervisor station. If they do not exist, then
you need to create the database schema and import the database tables that you previously exported to
the new schema.
Step 1 Using a browser (web UI), make a connection to the station.
Step 2 Click C o n t r o l l e r ( S y s t e m ) S e t u p → M i s c e l l a n e o u s → C o n f i g u re D a t a b a s e .
The C o n f i g u r e D a t a b a s e view opens to the Database Services tab.
Step 3 Select the Database tab, set the Enabled property to true, verify the Host Address, database
name, User Name and Password and click S a v e .
After the database changes, you are prompted to restart the station. After the station restarts, the
database should connect using the new credentials, providing data communication from the newly
connected database.
Step 3 For each network driver that may require a password, select the driver, click the H y p e r l i n k button
( ) on the menu and navigate to the device in the network (for example a Camera).
72 June 1, 2020
Niagara AX to N4 Migration Guide Chapter 4 Migrating Niagara Enterprise Security stations
June 1, 2020 73
Chapter 4 Migrating Niagara Enterprise Security stations Niagara AX to N4 Migration Guide
Step 3 In the User Key Store, select the certificate, click D e l e t e (as shown above) and click Ye s to confirm
the deletion.
Step 4 Select the Allowed Hosts tab, select an allowed self-signed certificate, click D e l e t e and click Ye s to
confirm the deletion.
This action deletes the certificate.
Step 5 Restart the station.
Step 6 Perform these steps in the Supervisor and each remote station.
Step 3 To re-establish the connection between the Supervisor and each subordinate station, enter the re-
mote station credentials.
Step 4 Approve each station’s self-signed certificate.
Step 5 For each subordinate station, do a J o i n , as described in “Joining a controller station to the Supervi-
sor station” in the Niagara Enterprise Security Installation and Maintenance Guide
74 June 1, 2020
Niagara AX to N4 Migration Guide Chapter 4 Migrating Niagara Enterprise Security stations
Step 6 To set up data in each remote station, do a R e p l i c a t e , as described in the “Replicating a configura-
tion” topic in the Niagara Enterprise Security Installation and Maintenance Guide.
Step 3 To select the backup schedule, click the Ref Chooser chevron (>
>> )
The R e f C h o o s e r window opens.
Step 4 To assign a schedule to the backup, select the desired schedule from the table and click O k .
June 1, 2020 75
Chapter 4 Migrating Niagara Enterprise Security stations Niagara AX to N4 Migration Guide
76 June 1, 2020
Chapter 5 Connecting a Supervisor
s t a t i o n t o a l e g a c y c o n t ro l l e r s t a t i o n
Topics covered in this chapter
♦ 1. Configuring the Niagara Enterprise Security 4.8 Supervisor station connection
♦ 2. Adding a remote controller 2.3 station
♦ 3. Logging in to the Supervisor from the controller
♦ 4. Connecting from the Supervisor to the NiagaraAX-3.8 legacy security station
Niagara Enterprise Security connections from Niagara 4- based stations to NiagaraAX (JACE-6 controller)
stations were not possible before the release of Niagara 4.8. With Niagara Enterprise Security 4.8, stations
can now connect and join to Niagara Enterprise Security 2.3 JACE-6 controllers by following the instructions
included in this document.
The goal of this process is to have the Niagara Enterprise Security N4Supervisor connect, join, and replicate
with a subordinate JACE-6 controller that is running Niagara Enterprise Security 2.3. After you complete this
procedure, the remote controller is connected and communicating with the Supervisor station as a
subordinate. With this relationship and communication established, you can join and replicate using the
same procedures that describe those tasks for JACE-8000 security controllers. Refer to Station join best
practices and Joining a controller station to the Supervisor station topics for details. Also, refer to Wire
compatibility, page 12 for details about communication and feature support between the two versions of
Niagara.
To establish communication (connect) between the Niagara Enterprise Security 4.8 Supervisor station and a
legacy NiagaraAX JACE-6 controller station, you need to use both Workbench and a browser to configure
the following:
1. Prepare the Niagara Enterprise Security 4.8 Supervisor station (add a user, configure WebService and
FoxService).
2. Discover and add the remote NiagaraAX controller station to the Supervisor station database.
3. Establish an authenticated user connection from the remote NiagaraAX controller station to the Niagara
Enterprise Security 4.8 Supervisor station.
4. Create the proper Supervisor – subordinate relationship between the two controller stations.
Each of these procedures are detailed in specific tasks that follow.
June 1, 2020 77
Chapter 5 Connecting a Supervisor station to a legacy Niagara AX to N4 Migration Guide
controller station
Step 3 In this view, create a new user that you will use later to authenticate the NiagaraAX controller sta-
tion connection back to this Supervisor station.
Step 4 Name the User and set the property values including these two properties:
• For Authentication Scheme Name, choose: AX digest scheme.
• For Roles, choose: admin.
Step 5 Navigate to C o n f i g → S e r v i c e s → We b S e r v i c e .
The WebService P r o p e r t y S h e e t opens.
Step 6 Set the Cipher Suite Group property value to the Supported option and click S a v e .
Step 7 Navigate to C o n f i g → S e r v i c e s → F o x S e r v i c e .
78 June 1, 2020
Niagara AX to N4 Migration Guide Chapter 5 Connecting a Supervisor station to a legacy controller station
Step 8 Set Cipher Suite Groupto the Supported option and click S a v e .
Step 9 Navigate to the Supervisor Certificate Management view (P Pl a t f o r m → C e r t i f i c a t e M a n a g e m e n t )
and delete the remote controller certificate from the A l l o w e d H o s t s table.
June 1, 2020 79
Chapter 5 Connecting a Supervisor station to a legacy Niagara AX to N4 Migration Guide
controller station
Step 2 To find the AX Stations to connect to from the N4 Supervisor, navigate to R e m o t e D e v i c e s and
run a discovery job.
The station appears in the D i s c o v e r e d pane.
N O T E : If discovery does not find the station, manually add the station (click the A d d button, and
provide the AX controller’s IP address and credentials).
Step 3 Select the station to add and click the add (+
+) button.
The A d d S t a t i o n ( s ) window opens.
Step 4 Starting with the left side of the window, enter the Username and Password for Supervisor to log-
in to the remote station (these credentials must already exist on the remote controller).
Step 5 On the right side of the window, enter the Username and Password for the newly created user so
that the remote AX-3.8 controller can log in to the Supervisor (these credentials must already exist
on the Supervisor).
Step 6 Make sure that the Desired Role property is set to Subordinate and click O k .
The Supervisor runs the add-station job and adds the remote station to the Supervisor database.
NOTE:
An Authentication Failure message displays at the completion of the job. This is because of
the different credential storage capabilities in the two different versions. The following steps pro-
vide a way to resolve this from the remote controller and complete the connection.
80 June 1, 2020
Niagara AX to N4 Migration Guide Chapter 5 Connecting a Supervisor station to a legacy controller station
Step 3 Select the Supervisor station and click the Edit icon ( ).
The E d i t window opens.
Step 4 Enter credentials for the newly created NiagaraAX user, verify that the other properties are correct
for the connection and click C o n t i n u e t o R e m o t e C o n f i g u r a t i o n .
The connection to the remote station (Supervisor) continues and the R e m o t e C o n f i g u r a t i o n win-
dow appears.
June 1, 2020 81
Chapter 5 Connecting a Supervisor station to a legacy Niagara AX to N4 Migration Guide
controller station
Step 2 Select the remote NiagaraAX-3.8 legacy security station and click the Edit icon ( ). These fields
should already be populated. Verify the fields and click C o n t i n u e t o R e m o t e C o n f i g u r a t i o n .
The R e m o t e C o n f i g u r a t i o n window opens.
82 June 1, 2020
Niagara AX to N4 Migration Guide Chapter 5 Connecting a Supervisor station to a legacy controller station
Once the Niagara Enterprise Security 4.8 Supervisor station connects to the NiagaraAX-3.8 legacy station,
no further migration of the legacy station is required; it cannot be upgraded to Niagara Enterprise
Security 4.8.
June 1, 2020 83
Chapter 5 Connecting a Supervisor station to a legacy Niagara AX to N4 Migration Guide
controller station
84 June 1, 2020
Chapter 6 M i g r a t i o n re f e re n c e
Topics covered in this chapter
♦ Imports
♦ API changes
♦ Primitives
♦ Security Manager
♦ Example Program object fix
A number of changes to NiagaraAX Program objects (components) need to be made to allow them to run
under Niagara 4. The N4 migration tool can make some of these changes for Programs as part of the station
migration process.
However, other changes often require post-migration work on certain Programs in the (offline) migrated
station.
Imports
The first step in converting Program objects to run under Niagara 4 is to update imports to declare depend-
encies on the appropriate runtime profile JAR files. In most cases, this will be the rt runtime profile JAR file
for the module (baja and nre do not have a runtime profile extension).
If your Program object was run through the N4 migration tool as part of a station migration, this change will
have been made for you.
API changes
If your Program objects use certain APIs that have had breaking changes, they will need to have their Pro-
gram code updated and recompiled using the new Niagara APIs.
Most notable are the “Collection API/Cursor”, “Alarm API”, “History API”, and “Logging API”. For more in-
formation on these changes and how to update your code, see the Niagara Developer Guide for each of
these API changes.
Also, note getProgram() was deprecated starting in AX-3.5 in order to support compiling Programs into
Program Modules. It has been removed for N4.0. While in the past, Program objects using this method
would still compile and run, they now require conversion to use getComponent() instead.
Primitives
Slots that are defined as baja:Boolean, baja:Double, baja:Float, baja:Integer, baja:Long and
baja:String now return their Java primitive types.
This means that you no longer need to call getBoolean(), getDouble(), getFloat(), getInt(), get-
Long() or getString() to cast the values of these slots to primitive values.
For example, for a slot defined on a Program as: Name=temperature, Type=baja:Double
NiagaraAX Program object:
double temp = getTemperature().getDouble();
Niagara 4 Program object:
double temp = getTemperature();
June 1, 2020 85
Chapter 6 Migration reference Niagara AX to N4 Migration Guide
Security Manager
Niagara 4 utilizes the Java Security Manager, which puts restrictions on what Program objects may do. Pro-
gram objects interacting with the station’s component tree should be largely unaffected by the Security
Manager.
F i l e re a d i n g / w r i t i n g
A restriction has been put on file reading and writing to only allow read-from and write-to the station_home
directory (file:^).
Runtime.exec()
The ability to call external executables is extremely useful in certain situations, however the use of Run-
time.exec() can allow potentially malicious code to be executed. As such, several restrictions are placed
on it to help protect your system.
Only station super users can add and edit Program objects. In NiagaraAX, there was a flag/entry to change
this behavior in system.properties. In Niagara 4, this ability has been removed.
Program objects can no longer directly call Runtime.getRuntime().exec(command). Instead, a wrapper
called ProgramRuntime behaves the same way as java.lang.Runtime, except that it takes the Program
object as an additional parameter. Commands executed by ProgramRuntime are logged and audited.
Additionally, to enable the use of ProgramRuntime, the hidden slot allowProgramRuntimeExec on the
station’s P ro g r a m S e r v i c e must be set to true.
N O T E : Only standalone Program objects can use ProgramRuntime.exec(). Program objects that have
been compiled into Program Modules cannot call this function.
An example of this in Program code is below
NiagaraAX Program object:
Runtime.getRuntime().exec(“notepad.exe”);
Niagara 4 Program object:
ProgramRuntime.getRuntime().exec(this, “notepad.exe”);
86 June 1, 2020
Niagara AX to N4 Migration Guide Chapter 6 Migration reference
The WARNING snippet resulted from use of the now-obsolete getProgram(), which must be replaced by
getComponent(). Also note the Program status: “Program is out of date and requires compile.”
If you compile the Program now without making any changes, various errors (4) appear in the console area at
the bottom of the Workbench window, as shown below.
F ig ure 23 Example errors from a compile before making any Program changes
After replacing the two getProgram() instances to getComponent(), saving and then recompiling again,
errors are reduced to two—related to use of getDouble() for primitives (Figure 24 Figure 28, page 88).
June 1, 2020 87
Chapter 6 Migration reference Niagara AX to N4 Migration Guide
This is no longer necessary, as explained in the section Primitives, page 85. To fix, simply remove the text
shown marked above.
As shown below, now after resaving the Program and recompiling, all errors are gone.
Now note the status of the Program is: “Program is up-to-date”, and there are no errors reported in the bot-
tom console area after the last compile and save.
88 June 1, 2020