4. CARACTERÍSTICAS GENERALES DE LA COMUNIDAD
4.18. BIBLIOGRAFÍA
3 months later:
You and the other project engineers have now been working on developing the solution for several months and are ready to complete the first deployment on site. You will create a backup of the project/application that is on the development server and deploy it onto the production server.
About this section
In this section of the lab you will: Backup the network application Backup the HMI project files
Ensure that the FactoryTalk Network Directory is set up Restore the network application
Restore the HMI project files
Specify the Network Directory location on application computers Move the application’s data server files
Specify data server host computer names
Renew data server shortcuts, topics, and device paths Specify HMI server host computer names
Set up additional HMI server properties Set up the FactoryTalk View SE Clients
Run the FactoryTalk View SE Clients to test the application The following are the roles each server will play in this section:
Server 1 – Primary Server in production environment
Server 2 – Development Server – user for developing project in the for development lab. This section takes approximately 25 minutes to complete.
About Deploying network applications
After developing and testing a FactoryTalk® View Site Edition network application, you can deploy it to run in a live setting, such as the plant floor. Deploying a network application often involves installing
FactoryTalk View SE software components on multiple client and server computers.
For details about installing the software, see Chapter 3, Installing FactoryTalk View Site Edition. For information about upgrading a network application that is already deployed, see Chapter 7, Upgrading FactoryTalk View Site Edition.
For details about the structure and content of network applications, see Chapter 6, “Working with network applications” in the FactoryTalk View Site Edition User’s Guide.
Overview of tasks: deploying network applications
The checklist in this section summarizes the basic tasks involved in deploying a FactoryTalk View SE network application. Each task is described in detail in the rest of this chapter. Add or remove steps as necessary to create a customized procedure that reflects the design and content of your FactoryTalk View application. For example, your application might include additional communications or database servers.
For details about deploying FactoryTalk Alarms and Events servers, see the FactoryTalk Security System Configuration Guide. On the Windows Start menu, click Start > All Programs > Rockwell Software >
Backup FactoryTalk Directory Application
About Backing up the network applicationUse the FactoryTalk Administration Console to back up a FactoryTalk View SE network application. The back-up operation creates an application archive that includes area names, server names, server properties, and application languages.
If you include System information in the back-up operation, user and computer accounts are also archived, along with other FactoryTalk system-level settings.
IMPORTANT: Application files such as HMI project files, product activation, and logged historical data (trends, alarms, and diagnostic messages) must be backed up and restored separately. Backing up System information with a network application
The FactoryTalk Network Directory (also called the Network Directory) is represented at the top of application hierarchy. One level down, the System folder stores settings that are used by all the applications that belong to the same Network Directory.
For example, FactoryTalk user and computer accounts set up for each application are stored in the System folder.
When you back up a network application, System information for the application is not archived automatically. To save the System information, for example, in order to preserve user and computer accounts, you must select the check box, Backup System in archive.
If you back up System information with a network application, when you restore the application, you can also choose whether to restore the archived System information.
If you do, keep in mind that restored System information does not merge with existing FactoryTalk System settings held at the current FactoryTalk Network Directory, it overwrites all existing data. For example, if you restore System information, and if the Network Directory on the local computer is active, you will replace user and computer accounts set up for any other application using the active directory.
Switch to SERVER02 (x64)
Use the SERVER02 (x64) VMWare Workstation image for Backup Network Application steps. To go to the SERVER02 (x64) image:
1. Move the mouse to the top of the screen.
3. Choose SERVER02 (x64) from the VMWare Workstation menu.
To back up a network application
1. On SERVER02 (x64), Click Start > All Programs > Rockwell Software, and then click FactoryTalk
Administration Console.
2. In the Select FactoryTalk Directory dialog box, select Network, and then click OK
.
4. Specify an archive name and location.
To specify a location other than the default, type the path or click the Browse button to find and select a location. For this lab choose C:\Backups.
Before backing up an application, record the user names and passwords of administrative users set up for the application, in case you need this information after restoring the application.
To back up a network application, the logged on user must have FactoryTalk administrative rights. If you receive a prompt to log on, check with your System Administrator.
5. Select the check box, Backup System in archive, and then click OK.
The back-up operation saves an application archive file with a .bak extension to the specified location. The default locations are:
For Windows XP, and Windows Server 2003 - C:\Documents and Settings\All Users\Documents For Windows 7 Professional, Windows Vista and Windows Server 2008 -
C:\Users\Public\Documents
RSLinx Enterprise device paths are also saved with System information, and might not be correct for the computer where the application will be restored. For information about checking device paths after restoring an application, see “Verify RSLinx Enterprise shortcuts”.
6. A dialog box will be displayed when the backup is complete. Click OK.
Backup FactoryTalk View SE
Use the HMI Server Backup and Restore utility to back up HMI project files that belong to HMI servers in the application you are deploying.
About the HMI Backup and Restore Utility
The HMI Backup and Restore Utility provides a means to backup and/or restore any HMI server run in a
distributed SE application. The utility provides a simple graphic user interface that follows a step-by-step process to backup or restore a server.
This utility also supports Command Line operation when used with user configurable (CFG) parameter files to allow for automated backup operation.
The HMI Backup and Restore Utility was developed to provide the ability to backup a running HMI
server's project components. The backup copy can be targeted to a destination path local (on same machine) to the utility or to a mapped drive (to a remote machine).
Keep the following in mind:
The HMI Backup and Restore Utility should be run on the same machine as the intended HMI server.
To backup a project, the utility must run on the same machine as the running HMI server (the source project).
To restore a project, the utility should be run on the intended machine that will host the HMI server (the target project). Be aware that the restore procedure can only be used when the HMI Server is not running.
When an HMI server is running, the HMI tag database files are locked and cannot to be copied by other backup utilities.
The HMIBackupRestore utility uses the process DbUnload.exe to unload data from the locked
database files, and process rtsql.exe to reload this data to the database backup files. These supporting processes (DbUnload.exe and rtsql.exe) are installed as part of the RSView SE HMI server installation.
To run, this utility requires, as a minimum, that the RSView SE HMI server component be installed on the same machine.
This utility can also be run from the DOS command prompt (or from a BAT file) when run with a parameter configuration (CFG) file.
You can include or exclude data log filesets should these files be stored to a path within the HMI project. A checkbox to exclude these files is provided on the main HMIBackup dialog. When running the utility from the CMD prompt, the HMIBackup.CFG file can also be configured to exclude the data log files.
To support remote backup functionality, the utility uses a server component that must be run as a service. Running as a service, no user login is required. This allows the utility to run headless. The utility also provides a restore functionality that can be used to restore an HMI server,
provided the server is not running. If the HMI server is running, the database is locked and cannot overwritten by this utility.
This utility can be installed to any path location (pathname can include spaces). However, all executable files for this utility (HMIBackupRestore.exe, Rockwell HMI Backup Server.exe and
ReloadMain.sql) must be co-located.
The configuration parameter CFG files can be located at any path location. When running, this utility will look for and copy the following files:
o Alarm.tpl o Tags.tpl o DbUnload.exe o Rtsql.exe
Installing the HMI Backup and Restore Utility
The latest version of the Backup and Restore Utility for HMI Servers is included as part of the overall FactoryTalk View SE HMI product installation since version 5.1 CPR9 SR2 and later.
For earlier versions of FactoryTalk View SE, the HMI Backup and Restore Utility is available for download and install from the Rockwell Automation Knowledgebase:
To backup an HMI Server
Continuing with SERVER02 (x64)…
1. On SERVER02 (x64), click Start > All Programs > Rockwell Software > FactoryTalk View > Tools
> HMI Server Backup and Restore.
3. Browse for the Source HMI Server to backup, and the location the backup should be saved to. If you wish to exclude the datalog filesets then select the checkbox.
For this lab choose the InstantFizz_HMI server as the source:
C:\Documents and Settings\All Users\Documents\RSView Enterprise\SE\HMI Projects\InstantFizz_HMI\InstantFizz_HMI.sed
, and C:\Backups as the destination.
4. Then click the “Start Backup” button. Wait a few minutes for the backup to complete. 5. When complete you should see the following:
Click OK.
7. Click the Close button:
Preparing for the Restore
On the computer that will host the FactoryTalk Network Directory, ensure that the FactoryTalk Services Platform is installed, and that localhost is specified as the Network Directory location.
Switch to SERVER01 (x64)
Use the SERVER01 (x64) VMWare Workstation image for the Preparing to Restore steps below. To go to the SERVER01 (x64) image:
8. Move the mouse to the top of the screen.
9. In the VMWare Workstation toolbar, click the blue arrows to move between the computer images. 10. Choose SERVER01 (x64) from the VMWare Workstation menu.
Ensure that the FactoryTalk Network Directory is set up
1. On SERVER01 (x64), click Start > All Programs > Rockwell Software > FactoryTalk Tools, and then click Specify FactoryTalk Directory Location.
To use the utility, you have to log on as an administrator on the local machine.
2. If localhost is displayed in the field, Computer hosting directory server, the computer is already specified as the Network Directory host. You can close the utility.
If localhost is not displayed, click the Browse button.
3. In the FactoryTalk Directory Server Configuration dialog box, click This computer, and then click OK. 4. Click OK again, to close the FactoryTalk Directory Server Location Utility.
Copy the backup files to the local server.
1. On the SERVER01 (x64), Open Windows Explorer.
2. Type \\SERVER02\Backups into the address bar and hit the Enter key.
3. Copy all of the files/folders in the directory. Select all files and folder, right click on them, and select Copy from the context menu.
4. Type C:\Lab Files\ into the address bar and hit the enter key.
5. Paste the files from SERVER02 into the C:\Lab Files\ directory overwrite any existing files. Right- click on the white space, choose Paste from the context menu.
Restore FactoryTalk Network Application
About Restoring the network applicationAfter moving the application’s HMI project files to production computers on the Network Directory server computer, use the FactoryTalk Administration Console to restore the backed-up FactoryTalk View SE network application.
Note: If the HMI/RSView SE Server has already been configured in the FactoryTalk Directory, then it is best to deploy the HMI Project files to the server before restoring the directory.
If you are deploying an application that includes redundant HMI servers, for each redundant pair, you must copy the HMI project files to both the primary and the secondary production computer.
To restore a network application Continuing with SERVER01 (x64)…
1. On SERVER01 (x64), click Start > All Programs > Rockwell Software, and then click FactoryTalk
Administration Console.
2. In the Select FactoryTalk Directory dialog box, select Network, and then click OK.
In order to restore a directory over the top of the existing one, we first need to disable FactoryTalk Alarms & Events on the RSLinx Data Server. If this step is skipped, the restore will fail.
3. Right-click on the RSLinx Enterprise data server, and click on Properties… from the context menu.
4. Click on the Alarms and Events tab.
5. Uncheck the Enable alarm and event support option.
7. Collapse all projects, so that the explore tree shows a plus (+) sign next to each of them.
8. In the Explorer window, right-click the Network icon at the top of the tree, and then click Restore.
10. Navigate to C:\LabFiles and select the “InstantFizz.bak” file. Click Open.
11. Click Next.
12. Uncheck Restore System and click Finish.
Restore System
To restore the application without archived System information, clear the Restore System check box.
The restore operation will add the application to the FactoryTalk Network Directory on the computer without adding any of the system information included in the backup, and without overwriting any of the existing data in the current FactoryTalk Directory.
This is the InstantFizz.bak file that was previously copied from \\SERVER02\Backups
Restoring archived System information replaces existing FactoryTalk System settings on the computer. System settings include configured Users and User Groups, Computers, and Computer Groups, System Policies, Product Policies, etc… This will remove existing computer accounts and could prevent users from logging on to the Network Directory.
Depending on your situation overwriting system information may or may not be desirable.
When deploying a FactoryTalk View SE network application, it is recommended that you backup the existing FactoryTalk Directory before restoring archived system information.
13. If prompted to overwrite the existing InstantFizz application, click Yes.
Application In Use Error
If you get an error indicating that the application cannot be restored because it is in use, please verify the following:
Alarms and Events support is not enabled on any of the RSLinx Enterprise Data servers. (Steps 3 to 6)
The application folder is collapsed (step 7)
Restore FactoryTalk View SE Project
To Restore FactoryTalk View SE Project FilesUse the HMI Server Backup and Restore utility to restore the HMI project files that belong to HMI server in the application you are deploying.
Continuing with SERVER01 (x64)…
1. On SERVER01 (x64), click Start > All Programs > Rockwell Software > FactoryTalk View > Tools
> HMI Server Backup and Restore, to run the HMI Server Backup and Restore utility
2. Click on the “Restore HMI Server” button
3. Browse for the Source HMI Server to backup, and the location the backup should be saved to. If you wish to exclude the datalog filesets then select the checkbox.
Note:
When importing or restoring an HMI Project, it is important to make sure that enough disk space has been allocated for the Temporary Internet files.
The value should be set to at least twice the size of project that is being imported/restored.
For this lab use “C:\Lab Files\InstantFizz_HMI\InstantFizz_HMI.sed” as the source, and
“C:\Users\Public\Public Documents\RSView Enterprise\SE\HMI Projects\InstantFizz_HMI” as
the destination.
4. Click the “Start Restore” button.
If you see the following warning, indicating that the HMI Server is running, you will need to stop the HMI services before continuing the restore process.
Click OK to close the warning message.
To stop the HMI Services, run the SE Service Manager, click Start > All Programs > Rockwell Software > FactoryTalk View > Tools > SE Service Manager
Click on the Stop button and wait until the service status is Stopped.
Click Close. Return to the HMI Backup\Restore Utility and click Start Restore again.
5. If you see a pop-up message informing you that “The HMI Server already exists in this directory.
Do you want to overwrite it?” Click YES.
6. Wait a few minutes for the restore to complete. When complete you should see the following. Click
OK.
8. Click the Close button to close the Select Operation dialog:
Configure the Servers
The application that we backed up was configured to run on SERVER02, thus each of the servers in the project (HMI, Data, A&E) specify SERVER02 as the host computer for the server. In order for the application to run property we need to configure each of those servers to use SERVER01 as the host. Open FactoryTalk View Studio
Continuing with SERVER01 (x64)…
1. On SERVER01 (x64), click Start > All Programs > Rockwell Software > FactoryTalk View >
2. Select Site Edition (Network) and then click Continue.
3. Select the InstantFizz application, verify that the language is English (United States), en-US, and click Open.
Unable to Open HMI Server
If you see the following warning, click OK.
Why do I see this warning?
The application that we backed up, and are now restoring was configured to run on Server02. Thus FactoryTalk View Studio is trying to open the HMI Project files from that computer, but is not able to.
Select the “InstantFizz” application.
Verify the language is
“English (United States), en-US”.
Specify Computer hosting HMI Server
1. Right click on InstantFizz_HMI and select Properties… from the context menu. This will open the