Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Current »

System Startup

 Microsoft 2000 Startup (Boot)
  1. Power on the PC system

  2. Wait for Windows 2000 Logon screen to appear

  3. Log on as Administrator with the appropriate password

 Application Startup

The process control applications are not automatically started when the computer is booted.  However, the application system is easily started with the following sequence:

Double click on the NtRtMgr Startup icon on the desktop.  The TelePro Real-time Control System window appears as follows:

  • The top half of the window displays the status of the control tasks, one per line.  Verify proper operation of tasks (as follows for a typical control system):

  • Tasks GsmOpcSrv, TrenedMgr, TrendGsm, TrendSrv should be active

  • Various tasks should be active and using some portion of their interval

  • The tasks that run on a timer (their names frequently start with a ‘T’) should be active.

  • The tasks that run on demand (their names frequently start with a ‘D’) should be either ‘Prenatal’ or 'Stopped’

More detailed information about the internal operation of the Startup process is available in of this manual.

System Shutdown

 Application Shutdown

The process control application tasks may be stopped as follows

  1. Insure that the process is in a state suitable for stopping the control system.  This would be state ‘ESTOP’ for a mill control system.

  2. Click the “Stop System” button in the upper right had corner of the TelePro Real-time Control System window.  The following message box should appear:

  3. To continue with the application shutdown, first check the box next to the greyed “Shutdown” command button to make it active, and then click the “Shutdown” button.  This two step procedure is implemented to insure that the application is not inadvertently shutdown.

  4. The processes displayed in the TelePro Real-time Control System window will be stopped and the status of each will change to ‘Stopped’.

  5. All required global variables will be saved to the appropriate global common save file.

  6. Click the ‘X’ in the upper right corner of the TelePro Real-time Control System window to remove the window.

  7. The 2000 system may now be safely shut down (see below) or the application processes may now be

restarted, as desired.

 Microsoft 2000 Shutdown

Shut down the 2000 system with the following sequence:

  • Ensure that the application processes are shut down (see Application Shutdown)

  • On the task bar at the bottom of the screen, Click: Start | Shutdown | Shutdown the computer | Yes

 

More detailed information about the internal operation of the Shutdown process is available in Standard Tasks of this manual.

System Backup and Failure Recovery

Overview

A number of products are available to aid in the backup of Windows based system.  A few of the alternatives are described below.

 Directory Copy to Server

A simple backup procedure using the GUI point and click interface of the Windows 2000 Explorer is available which will save the entire contents of the source, executable, and process initialization files.  This procedure will copy the entire contents of the \LocNtRt directory structure to the Process Control FS2 file server. 

 

The contents of this directory contain the entire environment required to build a new application environment.  These files include:

  • Source files

  • Process initialization files

  • Object files

  • Workspace, Project, and process make files

  • Binary executables

Restoration of these files to a backup Windows 2000 / RTX disk would provide the entire application development environment required to re-generate a running process system with a simple make file.

 Procedures

The System Backup methods described here will provide several different procedures for different backup scenarios, including:

  1. Complete ‘cloning’ of a disk surface to a second disk drive

    1. This procedure requires both disk drives to be resident on the same computer.  The backup operation will be performed under DOS

    2. The produced disk is complete and ready to run as a duplicate of the system as of the date and time it was produced.

    3. This procedure uses a third party product: Ghost by Symantec.

  2. Complete backup of the disk surface to a file server.

    1. This procedure requires the single operational disk in the control system and network access to a file server.

    2. The backup operation will be performed under DOS

    3. The produced save image is complete copy of the disk surface, but would need to be copied back to a disk drive to be ready to run.

    4. This procedure uses a third party product: Ghost by Symantec.

  3.  Backup of all application code, data files, and process specific data to CD for archiving.

    1. This procedure requires the single operational disk in the control system and an HP CD-Writer installed in the on the system

    2. This backup operation will be performed under Windows 2000 and may be performed while the system is operating

    3. The produced CD will contain a copy of all of the files required to restore a complete set of application files, including program source, libraries, executables, initialization files, and data files.  Each of these files may be individually accessed or copied from the CD.  The CD will have a directory based image of the application programs which closely resembles the directory layout on the Tsentry disk.

    4. This procedure uses a 3rd party product: CDWriter sold with the HP CD-Writer recording CD drive.

 Cloning the Hard Disk to a Second Hard Drive

This procedure assumes that:

  • You have the bootable (possibly network aware) Ghost diskette

  • You have installed a second hard disk drive in your control system.  The master drive will be the source drive; the slave drive will be the target destination drive.

  1. Shutdown the Tsentry Control System

  2. Shutdown the Windows 2000 system

  3. Insert the Ghost diskette in the floppy drive

  4. Boot from the diskette

  5. You may ignore any error message(s) related to network access

  6. OK

  7. Local | Disk | To Disk

  8. Select local source drive by clicking on the drive number:

  9. Select drive 1 | OK

  10. Select local destination drive by clicking on the drive number:

  11. Select drive 2 | OK

  12. Ignore message: Partition is larger than 7.8GB and may not be bootable

  13. Proceed with disk clone? Yes.

  14. Disk copy will proceed automatically to completion.

 Backup Disk to an Image on the File Server

This procedure assumes that:

  • Ghost enterprise edition has been installed on the file server.

  • You have in your possession the bootable, network aware Ghost Diskette

  • You have properly set up the enterprise Ghost on the server to be aware of the Control system configuration.

On the File server:

  1. Start | Programs | Norton Ghost | Multicast Server

  2. Session Name: Appropriate session name related to control system

  3. Select: Dump from Client

  4. Image File: E:\software\Norton Ghost 6.0\system.gho (or appropriate file name)

  5. Select: Disk

  6. Click: Accept Clients

 On the Control System:

  1. Shutdown the Tsentry Control System

  2. Shutdown the Windows 2000 system

  3. Insert the Ghost diskette in the floppy drive

  4. Boot from the diskette

  5. Insure that network access loads without error

  6. OK

  7. Multicasting

  8. Session:  Appropriate session used as entered above

  9. OK

  10. Select local source drive 1 | OK

  11. Compress Image: High

  12. Proceed with Image Compression: Yes

 

Disk Surface transfer proceeds to completion (about 20 minutes)

On the Control System:

  • Clone Completed Successfully: Reset Computer

 Restoring a Disk from a File Server Image

This procedure assumes that:

  • Ghost enterprise edition has been installed on the file server.

  • You have in your possession the bootable, network aware Ghost Diskette

  • You have properly set up the enterprise Ghost on the server to be aware of the Control system configuration.

  • You have previously saved a copy of the disk to be restored as an image on the server

On File server:

  1. Start | Programs | Norton Ghost | Multicast Server

  2. Session Name: Appropriate session name related to control system

  3. Select: Load to Client

  4. Image File: E:\software\Norton Ghost 6.0\system.gho (or appropriate file name)

  5. Select: Disk

  6. Click: Accept Clients

 

On the Control System

  1. Insert the disk in the backup system.

  2. Insert the Ghost diskette in the floppy drive

  3. Boot from the diskette

  4. Insure that network access loads without error

  5. Insure that network access loads without error

  6. OK

  7. Multicasting

  8. Session:  Appropriate session used as entered above

  9. OK

  10. Select local destination drive: 1 | OK

  11. Ignore message about partition size with OK

  12. Verify Destination drive details | OK

  13. Proceed with disk load? Yes

On File server:

  • Click: Send

Disk Surface transfer proceeds to completion (about 20 minutes)

On the Control System

  • Clone Completed Successfully: Reset Computer

 Make a CD of the Application Code and Files

This procedure assumes that:

  •  HP CD-Write hardware is installed on control system

  • HP CD-Writer Plus CD generation software is installed on

  1. Start | Programs | HP CD-Writer Plus | Create a CD

  2. Click on Easy CD Creation (Make a data CD that is most compatible with other CD-ROM drives)

  3. Recommended CD-R blank CDs: OK

  4. Click on Easy CD Creation – Data “Click here to create a data disc for distribution among different types of computers”

  5. Select Data Cd | next

  6. Select d:\LocNtRt | Add Now

  7. Add any other files or directories as desired

  8. Next

  9. Do not perform the test

  10. Next

Backup or Restore Using DVD Burner

This document describes the process of using the HP DVD200e writer and accompanying software to backup/restore particular files or an entire Windows 2000 system.

Even if you backup the entire system, you can restore either the entire system or just specific files/folders/drives. Follow the appropriate restore instructions for the desired method.

 Backup an Entire System
  1. Log in as Administrator.

  2. Make a note of your hard drive partitions. On the desktop, right click My Computer and select Manage. Select StorageàDisk Management. Write down the sizes of each drive and each partition within it. This will be needed if you are restoring to a blank hard drive in the future.

  3. Disable PCAnywhere and NetMeeting. (Usually can be done from the tray icons.)

  4. Hook up the DVD drive to the computer you are backing up.

  5. Start HP DVD Writer software (desktop icon, or StartàProgramsàHewlett-Packardàhp dvd writeràhp dvd writer).

  6. Select HP Simple Backup.

  7. Media Type recommendation is shown. Make sure you have this media available. Note: you cannot use DVD-R or DVD-RW (only DVD+R or DVD+RW). Click OK.

  8. Select Full System Backup

  9. Select your backup device as HP DVD Writer 200. Click Next.

  10. Wait while HP Simple Backup examines your computer. (This takes about 1 or 2 minutes to complete.) Insert media if you haven’t already. Click Next.

  11. If you are asked to overwrite, append, or use another media, usually you can select overwrite. Do not select overwrite if you have things on the media you wish to preserve.

  12. Backup will take about 3 hours per DVD disc (each holds 4.7 GB)

 Restore an Entire System

Initial Preparations

Initial restore preparations are necessary if you are restoring to a system with a corrupted hard drive, or a blank hard drive. Note that you will lose everything on your current system- for you will be wiping over it with the backup. If your system already has a working windows 2000 installation, correct partitioning, and HP DVD Software installed, you can skip the initial restore preparations. (If you only need to install the DVD software, skip to number 22.) 

  1. Turn on the computer.

  2. Insert Windows 2000 CD into CD-ROM drive (this must be done quickly before the boot process begins.)

  3. The boot process should begin to boot from the CD into Windows 2000 setup. If it does not, you may need to reboot, and change the boot order in your BIOS to boot from CD before booting from the Hard Drive.

  4. Choose Setup Windows 2000 by pressing Enter.

  5. Agree to the license agreement by pressing F8.

  6. If prompted to repair or setup, choose setup by pressing ESC.

  7. Now you must follow the onscreen commands to partition the hard drives on the system to the same way that you recorded during the backup process (see part 2 of How To Backup above). This may include deleting and creating new partitions. (Use NTFS file system when formatting.)

  8. Press Enter to Install Windows 2000 in the selected hard drive space. Usually you will install Windows 2000 onto the C: partition.

  9. If the space is unformatted, it will format it for you.

  10. Formatting could take anywhere from 10 minutes to 90 minutes depending on the size of your partition.

  11. Once setup continues, your machine will need to be rebooted, setup should do this for you.

  12. Click Next for setup.

  13. Type in temporary names for your company. Click Next.

  14. Type in a temporary administrator password when prompted. (You will use this password until the restore process is complete. Click Next.

  15. Click Next to bypass time settings.

  16. Select Typical Settings for Network Settings. Click Next. Next.

  17. When prompted, remove CD and click finish to reboot.

  18. If you have not yet hooked up the DVD drive, do so now.

  19. When booting up, if prompted, click cancel for setting up network connections.

  20. Log in with your temporary password.

  21. Now you need to format the remaining partitions on your hard drives. On the desktop, right click My Computer and select Manage. Select StorageàDisk Management. Right Click and Select format for each partition that needs it. This will take 10 to 90 minutes depending on the size of the partitions.

  22. Insert the hp dvd writer installation disc, labeled software disc 1

  23. Click the Start Installation Rocket Ship.

  24. Click OK if you are told about service packs for windows 2000.

  25. At Welcome page click next.

  26. License agreement, click Yes.

  27. Select Components- uncheck everything except HP Simple Backup. Click Next.

  28. Click Next for default install location.

  29. When prompted, Click Finish and the machine should automatically reboot.

  30. After the reboot ( and logging in again) the DVD software should notify you that installation is complete.

  31. Click Next.

  32. Remove the CD.

  33. Open My Computer, Right Click the C: drive and change it’s label to sysvol. Do the same for the D: drive and name it usrvol0.

Restore Process
  1. Start HP DVD Writer software (desktop icon, or StartàProgramsàHewlett-Packardàhp dvd writeràhp dvd writer).

  2. Select HP Simple Backup.

  3. Media Type recommendation is shown. Click OK.

  4. Select Complete System Restore.

  5. Select HP DVD Writer 200 drive. Click Next.

  6. Insert Disc that you made with Simple Backup.

  7. When the overwrite options appear, you probably want to select the option for “Always overwrite any file that already exists on my computer.” The only time you would not want to do this is if your system has been modified since your last backup AND you are certain that the modifications were not the reason for the system failure.

  8. If corrupted or damaged file errors occur, click continue (usually these errors are really because a file has been modified, and are not fatal errors). Unfortunately, if errors do occur, the restore process will wait for user interaction before continuing, so the restore process may not finish if left unattended. If an error occurs requesting you to insert a Windows 2000 serivce pack CD, click cancel and continue. The restore process takes about one hour per DVD disk

  9. When the restore process is complete, you will have the option of viewing the report log. Oftentimes you will not be able to view this report. Click Finish instead and reboot. After rebooting you can view the report by viewing the file: C:\Program Files\HP CD-DVD\HP Simple Backup\reports\Restore.txt

  10. After rebooting, you may need to stimulate the network settings to get it to work. To do this, on the Desktop, Right Click My Network Places, select Properties. Right click Local Area Connection, select Properties. Select Internet Protocol (TCP/IP). Select Properties. The correct information should already be entered. Click OK. OK. Your network should now be working

  Backup Specific Files
  1. Hookup the DVD drive to the computer you are backing up.

  2. Start HP DVD Writer software (desktop icon, or StartàProgramsàHewlett-Packardàhp dvd writeràhp dvd writer).

  3. Select HP Simple Backup.

  4. Media Type recommendation is shown. Make sure you have this media available. Note: you cannot use DVD-R or DVD-RW (only DVD+R or DVD+RW). Click OK.

  5. Select Custom Backup

  6. Select your backup device as HP DVD Writer 200. Click Next.

  7. Navigate to the directories you want to back up. You may select entire Drives, folders, single files, or any combination.

  8. After selecting the files, click Next.

  9. Put your recording media into the drive. Click Next.

  10. If the media is not new, you may need to select Overwrite or Append.

  11. When done, click Finish. The backup is complete.

 Restore Specific Files
  1. Hookup the DVD drive to the computer you are backing up.

  2. Start HP DVD Writer software (desktop icon, or Start->Programs->Hewlett-Packard->hp dvd writer->hp dvd writer).

  3. Select HP Simple Backup.

  4. Media Type recommendation is shown. Make sure you have this media available. Note: you cannot use DVD-R or DVD-RW (only DVD+R or DVD+RW). Click OK.

  5. Select Custom Restore

  6. Insert your media used in the backup process.

  7. Select your restore device as HP DVD Writer 200. Click Next.

  8. Wait while media is examined. This could take a few moments.

  9. All of the files that exist on the media will be shown. Select all of the drives/folders/files you would like to restore. Click Next.

  10. Now select how to restore. Normally you will want to choose the default option of “Only overwrite …”. This will not restore files that have been modified since the backup. If you are restoring files that exist on your machine but are corrupted, you should choose “Always Overwrite …”. However, in this case, you should only choose the corrupted files, and then do the process again for all other files that you don’t want to overwrite if they are newer. Choose “Never overwrite …” if you only want to replace missing files. Click Next.

  11. If a warning is reported, you can click Report to view it. (Reports are saved in Program Fileds->HP CD-DVD->HP Simple Backup->reports for later viewing.) Click Finish.

  12. Restore is complete

Restart User Interface Server

 ...

If the user terminals fail to display user data, the OPC server may need to be restarted.  To accomplish this, go to the control system console where the TelePro Real-time Control System window should be visible:

Using the mouse, place the cursor in the top window on the process named “GsmOpcSvr”, right click, and then click on the “deactivate” option in the pulldown menu.  This will deactivate the current operator workstation server process, and another copy of the same process will immediately be started.

Using Ghost to Copy Hard Drives

 ...
  1. Make sure the source drive is set to master, destination drive can be slave on master’s channel or on secondary channel

  2. Boot computer with Ghost boot disk

  3. Click OK at the ‘About Symantec Ghost’ window

  4. Select Local – Disk – To Disk

  5. Part. 1 Old Size and New Size need to match

  6. If drives are the same model and old and new sizes match, skip to step 11

  7. Arbitrarily set the Part. 2 New Size to a low number, e.g. 100

  8. Set the Part. 1 New Size the same as the Old Size

  9. Then set the Part. 2 New Size to some large number, e.g. 99999 so it defaults to the remaining space left open on drive

  10. Note: there will often be 8 mb left in the free size. This is normal.

  11. Click OK

  12. Select Yes to begin copying

  13. Copy time ranges from 10 ~ 30 minutes

Creating a Ghost image and Saving it over a Network

 ...
  1. On the computer with Ghost Enterprise installed, select:   Start | Programs | Symantec Ghost | Multicast Server

  2. Type in a session name and REMEMBER THIS NAME!

  3. Select ‘Dump From Client’

  4. Click Browse to choose a destination and name for image file

  5. Click Accept Clients

  6. On computer with hard disk to be ghosted, boot with Ghost boot disk enabled with Network drivers

  7. Click OK at the ‘About Symantec Ghost’ window

  8. Select Multicasting

  9. Type in the session name that was given on the multicast server

  10. Choose level of compression (‘fast’ is preferable)

  11. Select Yes to begin copying

  12. Copy time ranges from 1 ~ 3 hours depending on network traffic and compression level selected

Create a Custom Virtual Web Application for TSentry HMI Web Pages

 ...

By default, the TSentry installation process installs the TSentry HMI application files to two locations:

  1. Virtual application “TSentry”, pointing to disk location %TSENTRY_SYSDIR%\tpriNtRt\wwwroot

  2. Virtual application %TSENTRY_SYSNAME%, pointing to disk location %TSENTRY_SYSDIR%\%TSENTRY_SYSNAME%\wwwroot

 

If these virtual application names or locations are either not sufficient or not desired, there is a script within the TSentry package that may be run to create a virtual application for the HMI web pages under any name and at any disk location.  This script is a command line Windows command script, and it is of the form:

%TSENTRY_SYSDIR%\tpriNtRt\Procs\InstallIISCustom.cmd

Simply typing in this command from the command prompt will display the usage details for the script.

When given two command line arguments, the script creates a virtual application with the required settings under the name of the first argument, with a path to the physical disk location of the second argument, as such:

InstallIISCustom.cmd   "MyWebApp"  "C:\wwwroot\testWebApp"

In this example, a virtual application called “MyWebApp” will be created with similar settings to the standard TSentry virtual application.  The path to the root of the web application is “C:\wwwroot\testWebApp”.

This script will return the following error codes:

  • 0 – success

  • 1 – invalid command line arguments

  • 2 – error creating physical directory (2nd command line argument) if that directory does not already exist

  • 3 – error while copying standard TSentry web files to specified physical directory (2nd command line argument)

  • 4 – error while creating and / or setting up virtual application (1st command line argument)

  • No labels