This class allows you to modify and view the [Startup] section of the CPF file through
programmatic APIs. While properties are usually modified through the System Management
portal, there may be some occasion where modifying them through the API's is best
for your system. In all the Config methods, if you do not specify the CPFFile parameter,
the currently active CPF file is used. If you wish to modify a CPF file which is not
the currently active one, specify the CPF file you wish to modify in the method call.
The Flags parameter does not normally need to be specified; the defaults are usually sufficient for most cases.
You can use either the provided API's (Get/Modify) to modify the properties by passing in the correct parameters, or use Object syntax to open and directly manipulate the config objects.
; Use class methods to modify properties %SYS>s Status=##Class(Config.Startup).Get(.Properties) %SYS>i 'Status w !,"Error="_$SYSTEM.Status.GetErrorText(Status) %SYS>zw Properties("MaxConsoleLogSize") Properties("MaxConsoleLogSize")=5 %SYS>s Properties("MaxConsoleLogSize")=10 %SYS>s Status=##Class(Config.Startup).Modify(.Properties) %SYS>i 'Status w !,"Error="_$SYSTEM.Status.GetErrorText(Status) ; Now use Objects to modify properties %SYS>s Obj=##Class(Config.Startup).Open() %SYS>w Obj.MaxConsoleLogSize 10 %SYS>s Obj.MaxConsoleLogSize=20 %SYS>s Status=Obj.%Save() %SYS>i 'Status w !,"Error="_$SYSTEM.Status.GetErrorText(Status)
Execute the CALLIN^%ZSTOP routine entry during calling Halt.
Executes the CALLIN^%ZSTART routine entry during Callin startup.
Name used to append to $J when Config.Miscellaneous.NodeNameInPid is set.
Stores a list of allowed database block sizes.
Port for the SuperServer.
IP Address SuperServer will bind to.
By default, the SuperServer accepts requests on all addresses, but if a DefaultPortBindAddress is specified it will accept requests only on that address. You should insure that all clients, including the CSP Gateway, are also configured to connect to the address you specify. If no address is specified, the SuperServer will accept requests directed to any address on the server.
Start the VSS Backup Daemon.
Auto start the Ensemble productions.
Number of days to store application error logs before purging them.
Use FIPS 140-2 compliant library for database encryption.
System is operating in an IPv6 network, with IPv6 addresses.
0 - IPv6 is not enabled.
1 - IPv6 is enabled.
Execute the JOB^%ZSTOP routine entry during JOB process Halt.
Number of job servers you want the system to start up with.
Execute the JOB^%ZSTART routine entry during JOB process startup.
Maximum size in megabytes the CacheTemp database will be when the system is restarted.
When the system restarts, the CacheTemp database will be truncated to this size. If 0, the CacheTemp database will not be truncated.
Maximum size in megabytes of the cconsole.log after which it will be automatically switched.
Execute the LOGIN^%ZSTOP routine entry during terminal user Halt.
Execute the LOGIN^%ZSTART routine entry during terminal user startup.
Enter the time, in seconds, Caché should wait for shutdown to complete normally before timing out and forcing a shutdown.
Execute the SYSTEM^%ZSTOP routine entry during system shutdown.
Executes the SYSTEM^%ZSTART routine entry during system startup.
Directory for temporary files.
Set the format of the terminal prompt.
This is a comma separated string of values which set the default terminal prompt for the system.
0 - Use only ">" for the prompt.
1 - Host name, also known as the current system name. The name assigned to your computer. For example, LABLAPTOP>. This is the same for all of your terminal processes.
2 - Namespace name. For example, %SYS>. The current namespace name is contained in the $NAMESPACE special variable. It can be an explicit namespace name or an implied namespace name.
3 - Config name. The name of your system installation. For example, CACHE2>. This is the same for all of your terminal processes.
4 - Current time, expressed as local time in 24-hour format with whole seconds. For example, 15:59:36>. This is the static time value for when the prompt was returned. This value changes for each prompt.
5 - pid. The Process ID for your terminal. For example, 2336>. This is different for each terminal process. This value can also be returned from the $JOB special variable.
6 - Username. For example, fred>. This is the same for all of your terminal processes.
7 - Elapsed time executing the last command, in seconds.milliseconds. For example, .000495>. Leading and trailing zeros are suppressed. This changes for each prompt.
8 - Transaction Level. For example, TL1>.
The order of the values in the string determines the order the values appear in the prompt. For example TerminalPrompt="2,1" will give you a terminal prompt of "%SYS:HostName>"
Start the private WebServer.
Webserver name or IP address the private web server is running on.
If not specified, it defaults to localhost. For Unix and Windows, the private web server will be started on this node, on the specified IP address and port. For VMS, This is the IP address of the node where the webserver is running.
Private WebServer port.
Run the user defined startup from the ZSTU routine at system startup.
Request a test page (ping) from the private webserver.
This is valid only for Windows and Unix. If run on VMS, or the web server is configured to not start, it always returns success.
Delay - Number of seconds to wait before making request.
Restart the super server.
Restart the private webserver.
Set the terminal prompt to the system default.
Restart the private webserver.
Switch the cconsole.log file if it is larger than the max size defined.
On a MultiValue system, it will also switch the mv.log file if it grows too large.