The SYSGEN configuration utility

From CometWiki

Revision as of 00:42, 31 May 2009 by Badge (Talk | contribs)
Jump to: navigation, search

Contents

Introduction

This documentation describes the SYSGEN program for the Comet Operating System.

The term SYSGEN refers to a method for creating and maintaining the system configuration file used by Comet Workstations. The SYSGEN process consists of three separate parts:

  • Creating a text file containing the configuration specifications.
  • "Compiling" this text file and creating configuration files; one file for each workstation.
  • Starting the Comet Workstation program using the configuration file.

SYSGEN is a utility program that configures Comet. The process begins with you placing the configuration information for your entire Comet enterprise in a text file called an INI file. You can name this file anything you choose, but we recommend using the name COMET.INI.

The SYSGEN program processes your INI file and creates individual Comet configuration files, one for each node in your Comet enterprise.

For example, suppose that your INI file contains configuration information for 4 nodes. SYSGEN reads the entire INI file and builds 4 configuration files, one for each node. The configuration files in this example are named:

Sysgen1.jpg

The INI file

The text file containing the configuration information is referred to as the | INI file (pronounced "eye en eye" or "in ee"). This text file is not a Comet file. Typically this file is stored in the Comet Startup Folder, but it can be stored in another folder. As it is not a Comet File the file name should not be limited to 8 bytes, but it is not known what the limitations are on the length of the filename. Typically short names are used and often the name is simply COMET.INI. The file extension is typically INI, but again this is not a requrement. The file name must have an extension and that extension must be associated in Windows with a text editing program.

What's in the INI file?

The INI file contains all of the configuration information for your entire Comet enterprise. It includes groups of commands that specify the configuration for various parts of your Comet system. Here are the groups in an INI file:

[ENTERPRISE]
[SITE]
[NODE]
[COMET SYSTEM OPTIONS]
[COMET SESSION OPTIONS]
[PRINTERS]
[SPOOLERS]
[DIRECTORIES]
[GATEWAYS]
[INVALID TRANSLATION TABLE]
[END]

Each of these keywords represents the beginning of a group of additional keywords that specify the details of the Comet configuration. For example, the [DIRECTORIES] keyword is the beginning of a group of keywords that define the Comet directories that will be used in the configuration. See The INI file documentation for more information about these keywords.

Some of the major keywords are optional. Refer to the minimal INI file to see the minimum requirements to configure Comet.

Note: Two keywords that were supported in previous versions of Comet (MULTI-USER BOARDS and TERMINALS) are no longer supported.

Based on the information contained in the INI file, the SYSGEN program creates one configuration file for each node. If multiple nodes are defined, SYSGEN creates multiple configuration files. The node configuration files have .CFG extensions and the file name is the NAME coded in the NODE seqment.

It's important to note and understand that individual workstation configurations can contain different information. Thus some workstations can be prevented from accessing specific directories, or printers.


Using SYSGEN

The following menu is displayed when you run the SYSGEN program


1. BUILD SYSTEM CFG FILE FROM AN INI FILE
                                                                                                                                                                                     .
2. BUILD SYSTEM INI FILE FROM OLD/NEW STYLE CFIG
                                                                                                                                                                                     .
3. EDIT SYSTEM INI FILE
                                                                                                                                                                                     .
4. CFG FILE HAS BEEN CHANGED, RESTART COMET 

If you are running SYSGEN for the first time, and converting from an old CFIG file (or multiple CFIG files), select Option 2. This step creates an INI file that contains the configuration information for one or more Comet nodes.

To edit an existing INI file, select Option 3.

To process the INI file and create the CFG files for the nodes in your Comet enterprise, select Option 1.

After your have built a new CFG file, select Option 4 to restart Comet.

Note

The above process can be automated to a certain extent. If you run SYSGEN and include the name of the INI file, SYSGEN will automatically execute option 1 followed by option 4. For example, if your INI file is named COMET.INI, you could type the following at the READY prompt:

SYSGEN COMET.INI

Option 1 – Processing the INI File

When you select Option 1, the following prompt is displayed:

COMET INI FILE:

Enter the name of the INI file that you want to process. The SYSGEN program will then read the entire INI file and create the CFG file(s). Please note that one CFG file is created for each [NODE] group in the INI file.

Option 2 – Making an INI file from existing CFIG or CFG Files

When you select Option 2, the following prompt is displayed:

COMMAND FILE:

If you want to use a command file to build an INI file from old/new style configuration files, enter the name of the command file. To skip this step, press the Enter key.

Command file information

You can create a command file in the Comet Editor (CED) that lists a group of configuration files. SYSGEN reads this command file and creates one INI file with all of the information from the group of configuration files. This feature can sped up the process of creating an INI file for an existing Comet enterprise that is using old style CFIG files.

Here’s a sample command file:

100 ... NODE1, F:\COMET\STARTUP\CFIG
200 ... NODE2, F:\COMET\STARTUP\NODE#2.CFG
300 ... NODE3, \\FS1\SYS\COMET\STARTUP\CFIG
400 ... NODE4, C:\COMET\CFIG
500 ... NODE5, C:\COMET\NODE#5.CFG
.
.
.
900 ... SALES, D:\COMET\SALES.CFG

The first parameter on each line is the node name for each Comet node.

The second parameter on each line is the path where the existing configuration file resides. Please notice that the configuration file can be an old style (CFIG) or new style (CFG) file.

SYSGEN will accumulate all configuration information and then perform a comparison between each configuration to automatically determine what is global and what is local. For any valid configuration option, if it's found to exist in each node's configuration (it's identical), that entry is considered global. If at least one node's entry is different, then it will be declared as local. A single INI file is built which contains all configuration options for all nodes listed in the command file.

If you skipped the command file step, the following prompt is displayed:

COMET INI FILE:

Enter the name of the INI file you want to create. This prompt supplies a default path and name for the INI file. You may wish to change the path and the file name. The file name can be any eight characters followed by the ".INI" extension. We recommend that you use COMET.INI.

The following prompt is displayed:

COMET CFG FILE:

Enter the name of the CFIG or CFG file that contains the current configuration. This prompt supplies a default path and name for the existing CFIG file (that was created by the QCFIG configuration utility program). You may need to change the path and file name to specify the exact location for the new CFG file (we recommend the Comet startup directory).

The following prompt is displayed:

Comments? (S)imple, (V)erbose, (N)one:

Enter S, V, or N, depending on the type of comments you want to add to the new INI file. When the INI file is created, SYSGEN optionally adds comments for clarity. These comments are derived from the CFIGDOC file located on the REL directory. The CFIGDOC file can be edited, using the Comet Editor (CED), to suit your purposes. However, if you edit the CFIGDOC file, do not change any of the line numbers.

Option 3 – Editing the INI File

When you select Option 3, the following prompt is displayed:

Comet INI File:

Enter the name of the INI file that you want to edit.

The following prompt is displayed:

Use Editor: _________ (DOS Edit, Notepad, Wordpad)

Enter the name of the program you want to use to edit the INI file.

Option 4 – Restarting Comet

When you select Option 4, SYSGEN exits from Comet and restarts Comet. This allows the new or revised CFG file to take effect.

Starting Comet

To start Comet using a specific configuration file, you include the node name in the shortcut that starts Comet. The /PN= startup option, “profile name,” specifies the CFG file to be loaded. For example, suppose you have defined a node named SALES, and that SYSGEN has created a configuration file named SALES.CFG. Your startup shortcut will consist of:

  C:\comet\comet.exe /PN=SALES

The .CFG extension is not required when specifying the shortcut.

The .CFG files must be stored in the Comet start up directory.

The SYSGEN configuration utility/More INI Details

Migration From Legacy CFIG Files

The SYSGEN program contains a very useful feature for Comet users who want to migrate from the legacy format configuration files. SYSGEN can read a legacy CFIG file and create an INI file. This feature is not limited to a single CFIG file either. SYSGEN can read multiple CFIG files (from different nodes in a network, for example) and create a composite INI file that represents the master configuration for the entire Comet enterprise.

Personal tools