Setting plug-in configuration parameters
You can set optional configuration parameters for the Event Gateway plug-ins using the
ncp_gwplugins.pl
script.
About this task
ncp_gwplugins.pl
script to set optional configuration
parameters. The script is located at $NCHOME/precision/scripts/perl/scripts/ncp_gwplugins.pl.To run the script to set configuration parameters, issue a command similar to the following. This example sets the update interval for the ncmonitor.activeEvent table to 10 seconds. The default is 5 seconds.
$NCHOME/precision/perl/bin/ncp_perl $NCHOME/precision/scripts/perl/scripts/ncp_gwplugins.pl -domain NCOMS [ -global ] -plugin "Adaptive Polling" -set -name ActiveEventUpdateInterval -value 10
Command-line options
The following table describes the command-line options for the
ncp_gwplugins.pl
script used in this example. For help, run the script as follows:- For a brief list of the available options, run the command without any options.
- For a full set of command line options, run the script with the
-help
option.
Command-line option | Description |
---|---|
-domain DomainName |
Mandatory; the name of a domain related to the plug-in. This domain is used to enable the script to read the relevant DbLogins,cfg file in order to connect to and update the relevant Event Gateway plug-in databases. You must specify a domain, even if you want to change a value for plug-ins in all domains. |
-global | Optional. Sets the parameter for this plug-in in all domains. If you do not include the -global parameter, the parameter is set for the plug-in in only the specified domain. |
-nameParameterName | Name of the parameter to set. |
-plugin PluginName |
Name of the plug-in.
Note: You can only run the script for one plug-in at a
time.
Plug-in names for use in this command line option are as follows. If the plug-in name is
made up of more than one word, then the name must be enclosed in double quotes; for example:
"Adaptive Polling".
|
-set | Indicates that a variable is to be set. |
-valueParametervalue | Value to set for this parameter. |