Alarm Maintenance

Important: You do not have the latest version of Historian! You are missing out on the newest capabilities and enhanced security. For information on all the latest features, see the Historian product page. For more information on upgrades, contact your GE Digital sales agent or e-mail GE Digital Sales Support. For the most up-to-date documentation, go here.

Alarm Maintenance Overview

Use the alarm backup feature to maintain a backup copy of alarms when you plan a maintenance activity. Use the alarm restore feature to retrieve the alarms that have been backed up or deleted or to move alarms from one system to the other. Use the alarm purging feature to delete alarms that you do not want to store and to manage disk space better.

To backup, restore, or purge alarms, the latest Historian Administrator and Data Archiver is required. If you point the Historian Administrator to an earlier version of the Archiver, the Alarms tab appears unavailable and the option to backup only alarms is not accessible. However, the 6.0 (or later) Administrator can be connected to a pre-6.0 archiver to archive alarm data automatically with the archive.

Backing Up Alarms

When Proficy Historian backs up alarms, it creates a copy of the alarm data in an offline file that can be restored later. The alarms are not removed from the online system. You can backup alarms using the Historian Administrator or through a command line program.

For more information on the command line program, refer to Using ihBackupAlarms.exe to Backup Alarms from the Command Line.

To backup alarms using the Historian Administrator pointing at a 6.0 or newer archiver:

  1. Open the Alarms Maintenance screen. In the Backup/Purge Alarms section, set the time range. Setting the time range helps you back up alarms within a time range.
  2. In the Start Time field, select the start date using the drop-down arrow. Optionally, click the element you want to change and enter the details.
    Select the start time using the up and down arrow keys in the field.
  3. In the End Time field, select the end date using the drop-down arrow. Optionally, click the element you want to change and enter the details.
    Select the end time using the up and down arrow keys in the combo box.
  4. Click Backup Alarms. In the Save As dialog that appears, the file name of the alarm backup is displayed.

    The file format is as follows: mm-dd-yyyy hh:mm:ss. The time format followed is the 24-hour time notation. For example, if the file name is 7-13-2013 16-29-24 it means that the archive was saved on July 13, 2013 at 4 hours, 29 minutes, and 24 seconds. This file naming convention for alarm backup is standard to Historian. Even if you use other date settings such as dd-mm, the file name will still be saved in the mm-dd format.

    The end time stamp in the file name indicates the time at which the alarms have been backed up but not the time till when the alarms are backed up. For example, if you do a backup at 8:00 A.M. using a time of now-2 hours, the backup will contain alarms from 6:00 A.M to 8:00 A.M. but may not contain an alarm at 8:00 A.M. The last alarm may have been at 7:50 A.M. But the backup file name will have the time stamp of 8:00:00 along with the date.

  5. Click Save.

    A status message with the backup progress appears. If the backup has been successful, a message appears indicating the same.

    Note:
    • The backup is saved as a .zip file, by default.
    • The file is saved in the backup path mentioned while saving the file.
    • If your SQL Server is on a different computer, ensure that you specify a path available to the SQL Server.

Using ihBackupAlarms.exe to Backup Alarms from the Command Line

The Proficy Historian install program automatically installs an alarm backup utility on your computer. The default path for this file is typically: ..\Program Files\Proficy\ProficyHistorian\Server\ihBackupAlarms.exe.

Use the ihBackupAlarms.exe command to backup alarms for a time period relative to when the program is run. For example, you can backup alarms from -1 day to now. You can only use relative times with this command.. If you need to backup a specific start and end time, use the Historian Administrator. For more information, refer to the Backing Up Alarms section.

ihBackupAlarms takes the following optional arguments. If no arguments are supplied, ihBackupAlarms.exe will not backup any alarms.

Parameter Description
-s serverNodeName The Proficy Historian node containing the alarms to backup. If the -s is not specified, the program will connect to the local archiver.
-u Username The user name required to connect to the Proficy Historian archiver. This is an optional parameter.
-p Password The password required to connect to the Proficy Historian server. This is an optional parameter.
-b Backup File Path The file path where you want to place the backup file. If the path is not specified, the backup will be placed in the default archive path as specified at install time.
-d Relative Number of Days from Current Time The relative number of days of alarms to backup, counting backwards from the current time. For example, to backup now minus 7 days to now you would use -d 7.
-h Relative Number of Hours from Current Time The relative number of hours of data to back up, counting backwards from the current time. For example, to backup now minus 12 hours, you would use -h 12.
-m Relative Number of Minutes from Current Time The relative number of minutes of data to back up, counting backwards from the current time. For example, to backup now minus 360 minutes, you would do use -m 360.
-sec Relative Number of Seconds from Current Time The relative number of seconds of data to back up, counting backwards from the current time. For example, to backup now minus 120 seconds, you would use -sec 120.

Examples of Typical Command Lines for Alarm Backup

To backup alarms for 24 hours from now minus 24 hours from now, use the following command line:
ihBackupAlarms.exe-h 24

The alarms will be backed up for 24 hours from now in the default location with the file name as month_ day_year_hour_minute_second.zip. For example,_8_13_2012_6_55_30.zip.

ihBackupAlarms.exe-d 7 -h 12 -m 360 -sec 120 -b c:/AlarmBackups/example

The alarms will be backed up for the mentioned time and stored with the file name as backup_8_12_ 2012_19_7_37.zip at C:/AlarmBackups/example.

Note: You must put a space between each parameter and the associated parameter information. You can place the parameters in any order.

Restoring Alarms

Restoring alarms to a running system makes them available for query and analysis. You can restore alarms that have been backed up or deleted previously.

To restore alarms:

  1. Open the Alarms Maintenance screen. In the Restore Alarms section, click the browse button to navigate to the file that you want to restore, select and then click Open.
    The path of the file is listed in the Select File field.
  2. Click Restore.
    A message appears indicating that alarm restore is in progress. If the restore is successful, the alarms are restored to the Archiver.

About Purging Alarms

Purge or delete alarms only if you need to maintain the alarm data efficiently. You may purge alarms if they become outdated or redundant, or due to limited disk space. Purging alarms gives you the flexibility and control of deleting alarms for a specified time range or using a specific alarm ID. Purge alarms using a time range when an entire time period of alarms is no longer of interest. Purge alarms by ID when you need to preserve certain alarms in a time range and remove the others.

The purged alarms are not lost but are moved to a backup file that can be restored on the current system or another system, if needed. Also, an audit trail entry is made indicating the user and time range purged. An audit trail ensures that the alarm data was not purged unintentionally, and is recorded for any auditing purpose for future use.

To purge alarms, you need to be a member of the ihSecurityAdmins security group. To protect against accidental purge, make sure that only certain people are members of this group.

You can purge alarms from the Administrator or through a command line program. For more information, refer to Using ihPurgeAlarms.exe to Purge Alarms from the Command Line section.

Purging Alarms Using a Time Range

  1. Open the Alarms Maintenance screen.
  2. In the Backup/Purge Alarms section, set the time range. In the Start Time field, select the start date using the drop-down arrow. Or click the element you want to change and enter the details. Select the start time using the up and down arrow keys in the field.
  3. In the End Time field, select the end date using the drop-down arrow. Or click the element you want to change and enter the details. Select the end time using the up and down arrow keys in the combo box.
  4. Click Purge Alarms. The following message appears, Do you want to backup the alarms before purging.
  5. Click Yes to back up the alarms. For more information refer to the Backing Up Alarms section.
  6. Click No if you want to purge without backing up the alarms.
    The alarms are purged and saved in a .DAT file and an audit trail is logged. You can see a log file at the following location on your computer at ..\ Program Files\Proficy\ProficyHistorian\Logfiles. And the audit trail message looks like this: Deleted Alarms from (mm-dd-yyyyhh:mm:ss to mm-dd-yyyyhh:mm:ss).

Purging Alarms Using Alarm IDs

To purge alarms using an alarm ID, use the Alarms.PurgeAlarmsById to develop an SDK program. For more information, refer to the SDK sample in SDK Help.

Using ihPurgeAlarms.exe to Purge Alarms from the Command Line

The Proficy Historian install program automatically installs an alarm purge utility on your system at install time. The default location for this file is typically: ..\Program Files\Proficy\ProficyHistorian\Server\ihPurgeAlarms.exe.

The ihPurgeAlarms.exe command takes the following optional arguments. If no arguments are supplied, ihPurgeAlarms will not purge any alarms.

Parameter Description
-s serverNodeName The Proficy Historian node you wish to access archive data on. If the -s is not specified, the program will connect to the local archiver.
-u Username The password required to connect to the Proficy Historian archiver. This is an optional parameter.
-p Password The password required to connect to the Historian archiver. This is an optional parameter.
-b Backup File Path The file path where you want to place the file containing the purged alarms. If the path is not specified, the backup will be placed in the default archive path as specified in the Administrator.
-z 1 ZIP File Saves the alarms in a ZIP file format.
-d Relative Number of Days prior to Current Time Purge alarms older than this time. For example, to purge alarms older than 7 days old, you would use -d 7.
-h Relative Number of Hours prior to Current Time Purge alarms older than this time. For example, to purge alarms older than 12 hours, you would use -h 12.
-m Relative Number of Minutes prior to Current Time Purge alarms older than this time. For example, to purge alarms older than 360 minutes, you would use -m 360.
-sec Relative Number of Seconds prior to Current Time Purge alarms older than this time. For example, to purge alarms older than 120 seconds, you would use -sec 120.
Note:
  • Specify the path for saving backup files if you want to back up the alarms before purging. If you do not mention the path for backup files but select the zip the file option, then the backup will be placed in the default archives folder with the endstamp.zip as the file name. To select the zip file option, use -z 1 in the command line.
  • Specify the backup folder path name in double quotes such as "C:\\backup\\".
  • Alarms will be deleted from current time the relative time prior to current time.

Examples of Typical Command Line for Alarm Purge

To purge alarms older than 36 hours old, use the following command:

ihPurgeAlarms.exe -h 36

The alarms older than 36 hours will be purged and an audit log will be created at ..\Proficy Historian Data\LogFilesfolder.

To purge alarms older than 36 hours, doing a backup first, use the following command:

ihPurgeAlarms.exe -h 36 -z 1

A .zip file will be created as a backup file in the default location and the alarms older than 36 hours will be purged.