Configuring mcell.conf parameters
To configure the mcell.conf file
- Open the mcell.conf file in a text editor.
The default location is installationDirectory\pw\server\etc. - Create line entries using the format Parameter=Value based on the syntax rules described in Rules for cell configuration parameter syntax.
- Save the changes.
- Either reload the cell configuration or restart the cell for the changes to go into effect. For more information, see Reloading-cell-configuration.
Rules for cell configuration parameter syntax
- One parameter per line, in the form: Parameter=Value, where the Value extends to the end of the line
- Typically, the value for a parameter is a Boolean value, a string, or a path. The supported Boolean values are Yes/No and On/Off.
- The Boolean values are not case-sensitive, so, for example, On, ON, on, and even oN are equally valid.
- Do not enclose the value in quotation marks unless you want the quotation marks to be part of the value.
- Times are stated in seconds unless otherwise specified.
- To change a parameter setting, remove the comment (#) sign at the beginning of the line of code and enter the new value.
For more information about cell configuration parameters, see Cell-configuration-parameters-in-mcell-conf
Specification of path values
Parameters that have path values contain the string FileName or DirName, for example TraceConfigFileName or SystemLogDirName.
Path values can be stated as:
- Absolute path—starts with slash (/) or backslash (), or on Windows, with a drive designator (for example, D: )
- Run time relative path—starts with ./ or ../. The path is relative from the cell's working directory. The working directory is the root directory (/) when it runs as a daemon or a service. When running in foreground, it is the directory where mcell is started.
- Configuration relative path-all other path values are relative from the cell's log file directory, or, for program paths, from the kb\bin directory.
Path values can contain the substitution parameters $VAR or %X. Any $VAR parameter is substituted by the value of the environment variable VAR. The following table lists the possible %X substitution parameters.
Substitution parameters for %X in path value parameters
Parameter | Description |
---|---|
%H | Cell home directory (installationDirectory/pw/server) |
%C | Cell configuration directory (etc/CellName) |
%V | Variable data directory (var/CellName) |
%L | Log file directory (log/CellName) |
%T | Temporary file directory (tmp/CellName) |
%B | Knowledge Base binary directory (kb\bin) |
%P | Program name |
%N | Cell name |
%U | Unique number for the process |
Modifying SystemLogDirName, SystemTmpDirName, SystemVarDirName, and KBDirName
With the cell configuration parameters SystemLogDirName and SystemTmpDirName, users can specify alternative path locations for the system defined log and tmp directories. Their default values are %H/log and %H/tmp. To enable file name specifications that refer to these alternative locations, use the substitution parameters %L for the log and %T for the tmp directory. They are substituted by the specified path to the log and tmp directory.
If you change the default value for the SystemVarDirName parameter or the KBDirName parameter in the mcell.conf file, you must also change the value in the statbld.conf file. If you fail to do this, the cell loses persistency and the mcdb file is not created, because the StateBuilder is configured from statbld.conf file and has no input from the mcell.conf file. As a result,StateBuilder does not know where to find the log files or the KB directory it requires.
ConnectionPortRange syntax
The following figure shows the syntax of ConnectionPortRange.
ConnectionPortRange syntax
<PortSequence> = <Port>[-<Port>]
A range is a number of sequences, each of which is a consecutive range of ports. The cell attempts to access all ports in the specified order. The default is to use any of the ephemeral ports.
For example,
- 1828-1840 specifies a range of ports 1828 through 1840
- 1828, 1829, 1840 specifies the sequence of ports 1828, 1829, and 1840
Scale factors for enhancing configuration parameters
You can add scale factors to numerical configuration parameters in the mcell.conf file. The following table lists the scale factors that are available in Infrastructure Management. Scale factors are case-sensitive.
Scale factors that can be used for configuration parameters in the mcell.conf file
Symbol | Meaning | Factor |
---|---|---|
s | seconds | 1 |
m | minutes | 60 |
h | hours | 3600 |
d | days | 86400 |
w | weeks | 604800 |
k, K | kilo | 1024 |
M | mega | 1048576 |
G | giga | 1073741824 |
If you add a scale factor to a numerical configuration parameter value, then that value ismulitpledby the scale factor that you use.
For example, if you add the minutes scale factor to the following parameter
so that it becomes
then the value for that parameter is equal to 120 (2 times the scale factor for minutes, which is 60). Without the scale factor, the parameter specific unit of measure is used, which is seconds for most time related parameters. So in this example, without the scale factor, the value for the #MessageBufferReconnectInterval is 2 seconds. With the scale factor, the value changes to 2 minutes (120 seconds).