SVCMON Configuration File Keywords
For more information about modifying the SVCMON configuration file, see Service Configuration Files.
The SVCMON keywords are listed in the tables below:
- Service Info Keywords
- Associated Services Keywords
- Security Keywords
- Replication Keywords
- Persistence Keywords
- Logging Keywords
- Backup Keywords
- Auditing Keywords
- VHS Send Queue Keywords
- Other Keywords
Service Info Keywords
| Keyword | Required | Description | Default | Options |
|---|---|---|---|---|
|
SERVICE |
Yes |
SERVICE specifies the name of the service in Site.Service format. |
SITE.SVCMON |
8 chars max each for site and service name; no spaces; must be unique to the system. Valid characters are: A-Z, 0-9, !, $, _ |
|
MAX_POINTS |
Yes |
The maximum number of records (points) in the service’s current value table. If a value outside the allowed value limits is specified, the maximum number of points will default to the value limits. For example:
The maximum point count of CygNet current value services is 500,000 points. This includes the HSS, OPCIS, SVCMON, and the 32-bit UIS. Best practice recommends running any CVS with more than 256,000 points on a 64-bit operating system so that adequate memory is available to accommodate 500,000 points. |
5000 |
100 to 500,000 |
|
PERSIST_VALUES |
Yes |
Switch to restore point values upon startup from CVS.PERSIST.dat. |
N/A |
N/A |
|
ENABLE_SCRIPTING |
No |
Switch to enable scripting and combine each HyperPoint’s script into one script in alphabetical order by the HyperPoint’s Long Point ID. Recommended only in the HSS. The CVS_SCRIPT_ENABLED (Script Enabled) info item will report the value of this keyword. |
N/A |
N/A |
|
SCRIPTING_OPTION_EXPLICIT |
No |
If set to Yes, forces Option Explicit for all hyperpoints in the service, enabling Option Explicit and allowing the scripts to load, even if HyperPoint scripts have Option Explicit specified. Recommended if ENABLE_SCRIPTING keyword is present. See Using Option Explicit in HyperPoint Scripts. The CVS_FORCE_OPT_EXPLCT (Force Option Explicit) info item will report the value of this keyword. |
NO |
YES, NO |
|
PNT |
Yes |
The Site and Service name of the service’s PNT, in Site.Service format. |
SITE.PNT |
Any valid service name of the corresponding type |
|
SVC_PORT |
Yes |
The SVC_PORT keyword specifies the UDP port number for this service. Each service on the computer must have a unique port number. Use the Config File Manager to ensure that all ports for all services on a given server are unique. |
6033 |
5001 to 32767 (5410 can be used only by the ARS) |
|
REDUNDANT |
No |
REDUNDANT indicates whether Redundancy is enabled for this service and it is part of a redundant set with other services.
See Redundancy for more configuration details. A redundancy definition for your CygNet environment is configured in the CygNet Redundancy Editor. Note: A redundant RSM cannot be managed by another RSM in your redundancy environment. CygNet won’t allow an RSM to start an owned RSM if that RSM has the REDUNDANT keyword set to TRUE. The IN_REDUNDANT_SET (Service in redundant set) info item will report whether this service is part of a redundant relationship. |
FALSE |
TRUE, FALSE |
|
No |
The EAC_TO_ALARM_HISTORY keyword determines if the CVS logs entries to an ELSALM associated with the service’s CAS each time status bit calculations are affected by the Enhanced Alarm Configuration settings. This keyword controls the EACHistory.bin file, which is used to store any pending writes of any alarms that were impacted by Enhanced Alarm Configuration choices. The EACHistory.bin file is located in the service directory for each CVS (HSS, OPCIS, SVCMON, and UIS). Note: In some cases, a large number of ELSALM entries may be created by leaving this feature enabled, negatively affecting system performance. If this occurs, disabling the feature is recommended. |
YES |
YES, NO |
Associated Services Keywords
| Keyword | Required | Description | Default | Options |
|---|---|---|---|---|
|
ACS |
Yes |
The Site and Service name of the service’s ACS, in Site.Service format. |
SITE.ACS |
Any valid service name of the corresponding type. |
|
AUD |
No |
The Site and Service name of the service’s AUD, in Site.Service format. |
SITE.AUD |
|
|
CAS |
No |
The Site and Service name of the service’s CAS, in Site.Service format. |
SITE.CAS |
|
|
ELS |
Yes |
The Site and Service name of the service’s ELS, in Site.Service format. |
SITE.ELS |
|
|
MSS |
Yes |
The Site and Service name of the MSS from which commands will be accepted, in Site.Service format. |
SITE.MSS |
|
|
FAC |
Yes |
The Site and Service name of the service’s FAC, in Site.Service format. |
SITE.FAC |
|
|
GNS |
No |
The Site and Service name of the service’s GNS, in Site.Service format. |
SITE.GNS |
|
| NOTE | No |
The Site and Service name of the service’s NOTE, in Site.Service format. |
SITE.NOTE | |
|
TRS |
Yes |
The Site and Service name of the service’s TRS, in Site.Service format. |
SITE.TRS |
|
|
VHS |
No |
The Site and Service name of the service’s VHS, in Site.Service format. |
SITE.VHS |
Security Keywords
| Keyword | Required | Description | Default | Options |
|---|---|---|---|---|
|
ACS_ID |
Yes |
The User ID of the service. This keyword is required for performing security events. |
SVCMON |
User defined |
|
ACS_APPLICATION |
Yes |
The service’s application name for security. |
SVCMON |
Any valid security application ID |
|
ACS_SEC_EVENT |
No |
Specify an event that can override an ACS security event. |
CONTROL |
Any valid ACS event name |
Replication Keywords
| Keyword | Required | Description | Default | Options |
|---|---|---|---|---|
|
CHANGE_QUEUE_SIZE |
No |
CHANGE_QUEUE_SIZE sets the size of the service change queue that contains the incremental changes to the data in the source service. This is the number of changes the service will store to answer replication requests before expiring the oldest changes. Notes: This keyword is initially commented out by default. Uncomment the line and enter a valid value to use anything other than the default value. If 0 is specified, the change notification is disabled. This keyword is specified in the configuration file for the source service. The CHANGE_QUEUE_SIZE (Change Update Queue Size) info item will report configured size of the service change queue. |
20000 |
User defined |
|
REPL_SOURCE |
No |
The REPL_SOURCE keyword specifies the Domain and Site.Service name for the source service to be replicated in the format [DDDD]SITE.SERVICE. The REPL_SOURCE value requires the same service name, with a different domain prefix. If not specified, replication is disabled. Applies to all services except ARS, FMS, and RSM. Note: This keyword is specified in the configuration file for the replicated (destination) service. The REPL_SOURCE (Repl Source Service) info item will report the source service name from which the replicated service is requesting changes. |
None |
[DDDD]SITE.SERVICE |
|
REPL_CHECK_INTERVAL |
No |
REPL_CHECK_INTERVAL indicates the interval (in seconds) to check before performing the next replication synchronization. This value determines the replication synchronization frequency. After performing a sync, a replicating service will subtract the amount of time the sync took from the check interval time to determine how long to wait until the next sync. For example, if the check interval is 60 seconds and the sync takes 40 seconds, the service will only wait 20 seconds before starting the next sync. If the whole sync time exceeds the frequency, then the replicating service will wait for half the sync interval (30 seconds in this case) before starting the next sync. Note: This keyword is specified in the configuration file for the replicated (destination) service. The REPL_CHECK_INTERVAL (Repl Poll Secs) info item will report the interval that a replicated service will check the source change queue for new updates. If the service is not replicating REPL_CHECK_INTERVAL will respond with an empty string. |
60 |
1 to 3600 |
|
REPL_DELAY_MAX |
No |
REPL_DELAY_MAX indicates the number of seconds a service is allowed to be behind in replication before it is considered to be behind. If this keyword is disabled, the value defaults to double the REPL_CHECK_INTERVAL time. Best practice recommends enabling and setting a meaningful value for REPL_DELAY_MAX for all replicating services. A recommended value would be a longer time interval than you would expect any sync interval to take. Note: This keyword is specified in the configuration file for the replicated service. The REPL_DELAY_MAX (Allowed repl delay) info item will report the time elapsed since the service was last fully in sync. Time is calculated as the delta between "now" and the end of the last full sync that has completed. If the time since the last successful sync exceeds the REPL_DELAY_MAX value, and the REPL_INT_VAL_STATE (Int repl val state) info item is currently "Normal", then the REPL_INT_VAL_STATE info item is set to "Delayed." The state can only be set back to "Normal" when the time between two syncs is less than the REPL_DELAY_MAX time. |
120 |
1 to 3600 |
Persistence Keywords
| Keyword | Required | Description | Default | Options |
|---|---|---|---|---|
|
PERSIST_FILE_REFRESH_RATE |
No |
The PERSIST_FILE_REFRESH_RATE keyword specifies the rate (in minutes) at which to write current persisted values to the CVS.Persist.dat file. The default value is 60 minutes. |
60 |
1 to 1440 |
|
NOTIFICATIONS_PERSIST_RATE |
No |
The NOTIFICATIONS_PERSIST_RATE keyword specifies the rate (in minutes) when the notification persist files are refreshed. The default value is 10 minutes. 0 disables the keyword. If an integer above 60 is specified, 60 is used. |
10 |
0 to 60 |
Logging Keywords
| Keyword | Required | Description | Default | Options |
|---|---|---|---|---|
|
LOGMASK_ELS |
Yes |
Specifies the types of service events to be logged to the associated ELS (specified in the ELS keyword). To disable logging to the ELS, comment out the ELS keyword for the selected service. See the Note below this table for more information about the keyword values. The LOGMASK_ELS (LMask ELS) info item will report the value of this keyword. See LOGMASK_ELS in the Logging section for more information. |
CONTROL EXCEPTIONS |
LOG_ALL or any combination of: |
|
LOGMASK_FILE |
Yes |
Specifies the type(s) of service events to be logged to the service’s log file ([file name].log). During the current session of the service, data is written to the current log file. Log file names follow the naming convention of the selected logging mode (as set by the LOGFILE_MODE keyword value). See the Note below this table for more information about the keyword values. The LOGMASK_FILE (LMask File) info item will report the value of this keyword. See LOGMASK_FILE in the Logging section for more information. |
CONTROL EXCEPTIONS WARNING |
LOG_ALL or any combination of: |
|
LOGFILE_FILE_COUNT |
Yes |
Specifies the maximum number of log files that a service will create before it starts re-using log files. For example, a count of two will produce SVC001.log, then SVC002.log, and then start back at SVC001.log, where SVC is the name of the service. Specify any value from 2 to 100. The LOGFILE_FILE_COUNT (File Cnt) info item will report the value of this keyword. See LOGFILE_FILE_COUNT in the Logging section for more information. |
2 |
2 to 100 |
|
LOGFILE_FILE_SIZE |
Yes |
When the value of the LOGFILE_LIMIT_MODE keyword is set to SIZE, this keyword specifies the maximum size (in megabytes) allowed for a log file, before logging will be continued using the next log file. Possible maximum size values are user-determined, respecting the limits of your specific system configuration. The default value is 100 megabytes. When the specified limit is reached, the log finishes the current line, closes the current file, and then continues logging in the next available log file. The LOGFILE_FILE_SIZE (File Size) info item will report the value of this keyword. See LOGFILE_FILE_SIZE in the Logging section for more information. |
100 |
Depends on user system configuration |
|
LOGFILE_LINE_COUNT |
Yes |
When the value of the LOGFILE_LIMIT_MODE keyword is LINE, this keyword specifies the maximum number of lines per log file. When the specified line count is reached, the log file is truncated at the limit point, and logging is resumed using the next available log file. Specify any value from 1000 to 1000000. The LOGFILE_LINE_COUNT (Line Cnt) info item will report the value of this keyword. See LOGFILE_LINE_COUNT in the Logging section for more information. |
1000000 |
1000 to 1000000 |
|
LOGFILE_LIMIT_MODE |
Yes |
Specifies how to limit the size of each individual log file. Options are LINE (maximum line count is determined by the LOGFILE_LINE_COUNT keyword) or SIZE (maximum file size in megabytes) determined by the LOGFILE_FILE_SIZE keyword). The LOGFILE_LIMIT_MODE (Limit Mode) info item will report the value of this keyword. The default value is LINE. See LOGFILE_LIMIT_MODE in the Logging section for more information. |
LINE |
LINE SIZE |
|
LOGFILE_MODE |
Yes |
Specifies the operational mode for the log file, that is, how log files are maintained. Options are LEGACY or EXTENDED. The default value is LEGACY. The LOGFILE_MODE (Logging Mode) info item will report the value of this keyword. See LOGFILE_MODE in the Logging section for more information. |
LEGACY |
EXTENDED LEGACY |
Note: Use the following keyword values to set logging options for the LOGMASK_ keywords.
- LOG_ALL — logs all options. This is the highest level of logging and will log everything the service is programmed to log.
- CONTROL — logs control operations, such as startups, shutdowns and UIS operational events, etc.
- ENTER_EXIT — logs every entry and exit through functions. This is used primarily by a programmer to debug code, and is too verbose for the ELS (not applicable for LOGMASK_ELS).
- EXCEPTIONS — logs all exceptions thrown, not all of which are severe. An exception is an unexpected event occurring during execution of the service. It could be the result of a configuration error, an invalid command parameter, a bug, etc.
- MAX_TRACE — more verbose logging than MIN_TRACE. This is used primarily by a programmer to debug code, and is too verbose for the ELS (not applicable for LOGMASK_ELS).
- MIN_TRACE — used primarily by a programmer to debug code.
- PROG_STAT — typically used to monitor the progress of the code through some logical steps. Some services, like the GNS, use it to add to the logging of the notifications, acknowledgments, and operations.
- STATISTICS — enables gathering and reporting of message processing statistics.
- WARNING — logs anomalies, not as serious as exceptions.
There is no order of precedence for the logging options, except that LOG_ALL logs everything.
Example
A value for LOGMASK_ELS might be CONTROL + EXCEPTIONS.
A value for LOGMASK_FILE might be CONTROL + EXCEPTIONS + WARNING + PROG_STAT.
Backup Keywords
| Keyword | Required | Description | Default | Options |
|---|---|---|---|---|
|
BACKUP_PATH |
No |
BACKUP_PATH specifies the path to the backup directory for the service files. The path can be relative or absolute. If the path contains spaces it must be enclosed in quotation marks. The service will create the backup folder if it does not exist. |
None |
User-defined path |
|
BACKUP_TIME |
No |
BACKUP_TIME specifies the time for the daily backup to run (24-hour format 0000 to 2359, do not use a colon). If this keyword is not enabled for a service or no time is specified, the automatic backup will not occur. Service backup will only occur if manually initiated or scheduled via the MSS. |
None |
0000 to 2359 |
|
COPY_BACKUP_TO |
No |
COPY_BACKUP_TO enables copying of the backup service files to the specified directory once the backup process is complete. The path can be relative or absolute. If the directory does not exist the service will create it. If the path or directory name contains spaces, the parameter must be enclosed in quotation marks. If you specify a network drive and are running the CygNet services as system services, you must use the Universal Naming Convention (UNC) (\\Workstation\Path) to specify the path. The backup file can be copied to a network drive only if the drive is mapped to the local machine. |
None |
User-defined path |
Auditing Keywords
See SVCMON Audit Levels for more information.
| Keyword | Required | Description | Default | Options |
|---|---|---|---|---|
|
AUDIT_LEVEL |
No |
AUDIT_LEVEL sets auditing level of messages written to the AUD service. When set to 0, auditing is off. The AUDIT_LEVEL info item reports the value of this keyword. |
1 |
0, 1, 3, 4 |
|
AUDIT_LEVEL_SETPOINT |
No |
Sets the audit level for setpoint commands. When set to 0, auditing is off. See each CVS in Service Audit Levels for more information. The AUDIT_LEVEL_SETPOINT info item reports the current audit level for CVS setpoints. |
1 |
0, 1, 3, 4 |
|
AUDIT_SETPOINT_USERSEC_ENABLED |
No |
The AUDIT_SETPOINT_USERSEC_ENABLED keyword enables or disables the generation of setpoint audit records based on a security event (SUPSPAUD) for the user ID performing the setpoint request. Note that setpoint auditing must be enabled (AUDIT_LEVEL_SETPOINT). When set to 'YES', and the user's access level for the SUPSPAUD event is set to '5-Admin', the generation of setpoint audit records based on user ID is suppressed. See Suppressing SetPoint Auditing Based on User ID for more information about this feature. The SETPOINT_USERSEC_ENABLED (Setpoint User Sec Enbld) info item reports the setting for this keyword. |
NO |
YES, NO |
VHS Send Queue Keywords
| Keyword | Required | Description | Default | Options |
|---|---|---|---|---|
|
VHS_TIMEOUT |
No |
The time (in milliseconds) at which to send a partial message to the VHS. The value is rounded down to the nearest second. |
1000 |
1000 to 99999999 |
|
MAX_VHS_BACKLOG |
No |
The maximum number of backlogged VHS messages to retain. |
10000 |
1000 to 99999999 |
Other Keywords
| Keyword | Required | Description | Default | Options |
|---|---|---|---|---|
|
MAX_CONCURRENT_MSGS |
No |
MAX_CONCURRENT_MSGS sets the maximum number of concurrent messages allowed between the client and server. Note: Determining the correct value for this parameter helps ensure performance efficiency. There is not one "perfect" value: setting the value too low could result in difficulties connecting to the service; setting it too high could result in eroded usage of host system memory resources. To determine the value to set for this keyword, you can assess real-time active message counts by viewing the Act Msgs value (SRVNET_ACT_MSGS (Act Msgs) info item, displayed on the Network and Service Generic pages of the CygNet Service Information dialog box), and trend the count values over time using the SVMAMSG point (SVCMON UDC, analog input type). See Trending Point Data for more information. |
20 |
Valid values: 0 to 100 Recommended values: 10 to 100 |


