Script debugging tips
The following tips may be useful
when debugging SCO OpenServer 5 MDI
installation and configuration scripts:
-
Use the script command
to debug shell scripts such as the lkcfg script:
-
Put the set -x in the top of the script
that you are debugging.
-
Run the script command.
-
Run the netconfig command
and add your driver;
this will execute your lkcfg script
as part of driver configuration.
-
Type <Ctrl>D and look at the typescript file.
This file should contain all the output from the script
that contains the set -x line
as well as all the other information
sent to or from the screen.
-
Examine the ``sysdb'' records
in the /var/`llipathmap`/sysdb directory.
These are stanza format files
that contain configurable options
selected by the user when running netconfig,
including the adapter's KEY
and all options with TYPE=swconfig
and TYPE=link-kit in the AOF.
-
Verify entries in
/etc/conf/sdevice.d/<driver_name>
by comparing them after the lkcfg script executes
with entries in the driver's sysdb record.
lkcfg is called by netconfig init or reconf.
-
Examine the contents of the
/etc/conf/cf.d/mdevice and
/etc/conf/pack.d/<driver_name>/space.h files.
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005