How to pause or delay the loading of an NLM from the AUTOEXEC.NCF file (or any server console command).

  • 10017093
  • 1.0.20686709.2330664
  • 21-Sep-1999
  • 20-Dec-2004

Archived Content: This information is no longer maintained and is provided 'as is' for your convenience.

Goal

How to pause or delay loading an NLM from AUTOEXEC.NCF

Fact

Formerly TID number 2929243

Novell NetWare 5.1

Novell NetWare 6

Novell NetWare 4.11

Novell NetWare 6.5

Symptom

An NLM or one of it's support modules is not loading properly from the console or the AUTOEXEC.NCF file before another one attempts to load.

Fix

Place a question mark "?" in front of the command you wish to be delayed. This will pause the execution of the command for the time shown below. The syntax is:

? LOAD NEEDED.NLM
or
?LOAD NEEDED.NLM
or
?Y LOAD NEEDED.NLM
N.B. You can use "N" instead, to change the default action to NO (or change the default as shown below).

The choice (Y/N) that will be taken when the prompt times out is shown at the end of the command when displayed on the system console. If you want to override the Y/N option for this time only, press the appropriate key before the time out period expires, e.g. if the command
?Y LOAD NEEDED.NLM
is used, you will see
LOAD NEEDED.NLM ? y
and if you press "N" before the end of the timeout period, the NLM will not be loaded.

Note that if you use the second syntax, e.g.
?LOAD NEEDED.NLM
then you need to be careful that the command you want to execute does not start with the letter "Y" or "N" as this will be taken as indicating the default choice, e.g.
?NEEDED.NLM
would actually result in the message
EEDED.NLM ? n

If you don't want to load any NLM, but just want the server to pause - then just omit any NLM name, or use a comment:
e.g.
?Y # Waiting for 10 seconds...

The following SET Parameters can be modified in SERVMAN or MONITOR under the Miscellaneous category to change default values.

SET COMMAND LINE PROMPT DEFAULT CHOICE=ON (Which is the default)
SET COMMAND LINE PROMPT TIME OUT=10 (Default seconds to wait)

Troubleshooting Notes:
Prior to 4.11 the DELAY.NLM was used for this same purpose but isn't recommended/tested on 4.11 because it is CLIB dependent.

This command will work at the system console or AUTOEXEC.NCF or other custom NCF file. It will not work in the STARTUP.NCF file.

Note: You can also download the Novell consulting services TOOL BOX kit which includes a Delay utility.

Note

NOTE: From NW6SP4 forward, including NW6.5, the first syntax option (with a space between the ? and the command) is no longer supported.  So you must use either the second or third syntax options
?LOAD NEEDED.NLM
or
?Y LOAD NEEDED.NLM

Feedback service temporarily unavailable. For content questions or problems, please contact Support.