DOS clock is slow after downing server.

  • 10024257
  • 1.0.47440443.2481528
  • 04-Jan-2000
  • 17-Feb-2003

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

Fact

All NetWare versions

Formerly KB 2926204

Symptom

DOS clock is slow after downing server.

At a DOS prompt, type "time" or "date". The time or date shown is the exact time and date when the server was started, i.e., when server.exe was executed. If the server was started 2 months prior, then the date will be 2 months old; a similar result is shown with the time.

Cause

NetWare and intraNetWare are protected mode programs. When server.exe is executed (or mserver.exe in the case of SFTIII), the machine is asked to switch from real mode (where DOS executes) to protected mode (where NetWare will execute). Immediately upon doing this, the DOS clock will be stopped and held at the exact time the switch-over took place, until the server is brought down to DOS again. When this happens (server brought down), the DOS clock will once again start ticking.

Therefore, if a time or date command is executed in DOS (immediately after the server has been brought down, and before the machine has been restarted), it will show the improper time and date.

If server.exe is started again (while DOS reports an incorrect time and date), NetWare will poll the BIOS clock (which has the correct time and date) and it will set the server time and date accordingly. Therefore, this is not an issue with the NetWare operating system getting or using incorrect time - unless, of course, the BIOS clock is set improperly.

Note: It is incorrect to assume that this problem is a bug. This issue is not a bug, but rather is a direct result of how real vs. protected mode effects the computer. When DOS is started after NetWare is brought down, the BIOS clock is not polled, so the time will be incorrect.

Fix

If the DOS time and date of the machine where NetWare is running is a big concern (obviously immediately after the OS has been shut down), there are two things that can be done:

1. Reset the time and date by hand by entering "time" at the DOS prompt and then typing in the correct time and also by entering "date" at the DOS prompt and typing in the correct date.

2. Restart the machine. By restarting the machine, DOS will poll the BIOS clock and set the time and date accordingly - which should be correct.