CHKID
=====


The CHKID utility is useful when sharing a boot image file among several
workstations; depending on their node addresses, one or more workstations can
load or bypass commands in CONFIG.SYS or AUTOEXEC.BAT.

Using CHKID within CONFIG.SYS

CHKID compares a list of node address on the command line with the node
address of the local workstation.  If the local address matches an address in
the command line, the next line in the CONFIG.SYS file will be executed.  If
the addresses do not match, the next line is not executed.  Addresses on the
command line may include a specific address, ranges of addresses, or both.

The file CHKID.EXE should be copied from the BootWare Utility Diskette into
the boot image file(s) which require it.

The command syntax for CHKID is as follows

	   device=chkid.exe [v] [x] id id1-id2

There are two optional parameters; "v" and "x".  The "v" parameter will
display verbose messages of the status of CHKID while it is executing.  This
is only used during testing of a system using CHKID.

The "x" parameter reverses the condition of the address checking.  Normally
the next line of the CONFIG.SYS will only be executed if the addresses match;
if you include the "x", the next CONFIG.SYS line will not be executed for the
address(es) matched.

      Examples:

      If a workstation's node address is C0F9B544 and CONFIG.SYS included:

	   device=chkid.exe C0F9B544
	   device=himem.sys

      HIMEM.SYS will be loaded only on the workstation with address C0F9B544.

      By adding the "x" parameter, as follows:

	   device=chkid.sys x C0F9B544
	   device=himem.sys

      HIMEM.SYS will NOT be loaded on the workstation with node address
      C0F9B544, but will be loaded at all other addresses.


Using CHKID within .BAT files

The CHKID command can be issued within a .BAT file (ie.  AUTOEXEC.BAT) with
either a node address, a range of addresses, or any combination (up to 128
characters on the command line).  CHKID will check the network to determine if
the present workstation address falls in the range of the addresses specified
on the command line, and will set the DOS ERRORLEVEL as follows:

 	if matched or within range, ERRORLEVEL is set to 0
 	if not matched or not in range, ERRORLEVEL is set to 1
 	if syntax error, ERRORLEVEL is set to 2

Based on the ERRORLEVEL value, the flow of the .BAT file may be redirected as
required by the workstation.

The file CHKID.EXE should be copied from the BootWare Utility Diskette onto
the SYS:LOGIN directory of all file servers or all boot image files which
require it.

A sample .BAT file, AUTOID.BAT is provided on the BootWare Utility Diskette;
this file gives a sample structure for an AUTOEXEC.BAT-type batch file using
the CHKID command.

If you have never used the batch file ERRORLEVEL command before, be aware that
you must test for the highest value of ERRORLEVEL first.  If you test for
ERRORLEVEL == 0, you will match ALL THREE conditions.  The correct method is
to test for ERRORLEVEL == 2 first, and to branch based on this condition.

