K11278-Rev-A_2.pdf

download K11278-Rev-A_2.pdf

of 5

Transcript of K11278-Rev-A_2.pdf

  • Time Synchronization for Windows 7 Computers K11278, Rev. A

    Sheet 1 of 5

    REVISIONSLTR DESCRIPTION DATE BY/APPDA Initial Release 1/16/2012 RM/

    TIME SYNCHRONIZATION FOR WINDOWS 7 COMPUTERS

    K11278

    EXPORT WARNING STATEMENT: This document contains technical data whose export is restricted by the ArmsExport Control Act (Title 22, U.S.C, Sec 2751, et seq.) or Export Administration Act of 1979, as amended, Title 50,U.S.C. App. 2401 et seq. Violations of these export laws are subject to severe criminal penalties.

    DR R.TSAI 01/05/12 APPDCHK APPD

    TITLETIME SYNCHRONIZATION

    FOR WINDOWS 7 COMPUTERS

    NUMBER REVUSED ON NEXT ASSY K11278 A

    APPLICATION Word 2010 LOCATION/FILE NAME:

  • Time Synchronization for Windows 7 Computers K11278, Rev. A

    Sheet 2 of 5

    1. TIME SYNCHRONIZATION NOTES The information found in this procedure is subject to change. Whenever running a command on a Windows 7 computer through a command prompt, you must

    use an elevated command prompt. That is, start the command prompt to Run as administrator. A valid time source(s), and an active network connection to the time source(s), must be present

    for the time synchronization to function correctly.

    2. SYNCHRONIZE THE CLIENT CLOCK WITH TIME SERVER(S)1. Delete two triggers (this applies to Windows 7 computers).

    a. To see if there are any start/stop triggers for the w32time service, run the command: scqtriggerinfo w32timeIf there are, you will see something like the following:

    [SC] QueryServiceConfig2 SUCCESSSERVICE_NAME: w32timeSTART SERVICE

    DOMAIN JOINED STATUS : 1ce20aba-9851-4421-9430-1ddeb766e809 [DOMAINJOINED]

    STOP SERVICEDOMAIN JOINED STATUS : ddaf516e-58c2-4866-9574-c3b615d42ea1 [NOTDOMAIN JOINED]

    If there are no triggers associated with the w32time service, you will see:[SC] QueryServiceConfig2 SUCCESS

    The service w32time has not registered for any start or stop triggers.b. To delete any start/stop triggers for the w32time service, run the command: sc triggerinfo

    w32time delete2. Verify the Windows Time service (w32time) is set to automatic3. Run the following commands:

    a. net stop w32timeb. net start w32timec. w32tm /config /update /manualpeerlist:IPAdresses_of_servers

    /syncfromflags:MANUALd. w32tm /resync

    Note: You should enter the IP Address of every SMS and/or WB server installed. If there is morethan one SMS server, then enter each IP Address (in the IPAdresses_of_servers) separated by spaces.

    Note: if you want to make any changes to the w32tm (for example, you want to change the list ofservers listed in the manualpeerlist), you must run all steps listed in 3 above.

  • Time Synchronization for Windows 7 Computers K11278, Rev. A

    Sheet 3 of 5

    3. TROUBLESHOOTING GUIDE1. To see if the client is setup to synchronize with a server, run the command: w32tm /query /status.

    a. A successful time synchronization with server at 10.16.105.181 looks like:Leap Indicator: 0(no warning)Stratum: 2 (secondary reference - syncd by (S)NTP)Precision: -6 (15.625ms per tick)Root Delay: 0.0312500sRoot Dispersion: 1.7824690sReferenceId: 0x0A1069B5 (source IP: 10.16.105.181)Last Successful Sync Time: 5/23/2011 3:50:10 PMSource: 10.16.105.181Poll Interval: 10 (1024s)

    2. To re-synchronize with a server (and also see if the server can be a time source), run thecommand: w32tm /resync.

    a. A successful time synchronization with server looks like this:Sending resync command to local computerThe command completed successfully.

    3. Look in Event Log for time errors.4. Verify server is acting as a time source (usually this means that our server is running our GPS).5. Outgoing ntp is listed as an exception in the (advanced) firewall on the client (it is ok if the entry

    is missing, but not if listed and not an exception). Look for the same think for incoming ntp onthe server.

    4. w32tm FUNCTION HELPw32tm [/? | /register | /unregister ]? - this help screen.register - register to run as a service and add default configuration to the registry.unregister - unregister service and remove all configuration information from the registry.

    w32tm /monitor [/domain:][/computers:[,[,...]]][/threads:] [/ipprotocol:] [/nowarn]

    domain - specifies which domain to monitor. If no domain name is given, or neither the domain norcomputers option is specified, the default domain is used. This option may be used more thanonce.

    computers - monitors the given list of computers. Computer names are separated by commas, with nospaces. If a name is prefixed with a '*', it is treated as an AD PDC. This option may be used morethan once.

    threads - how many computers to analyze simultaneously. The default value is 3. Allowed range is 1-50.ipprotocol - specify the IP protocol to use. The default is to use whatever is available.nowarn - skip warning message.

    w32tm /ntte Convert a NT system time, in (10^-7)s intervals from 0h 1-Jan 1601, into a readable format.

    w32tm /ntpte Convert an NTP time, in (2^-32)s intervals from 0h 1-Jan 1900, into a readable format.

  • Time Synchronization for Windows 7 Computers K11278, Rev. A

    Sheet 4 of 5

    w32tm /resync [/computer:] [/nowait] [/rediscover] [/soft]Tell a computer that it should resynchronize its clock as soon as possible, throwing out all accumulated

    error statistics.computer: - computer that should resynchronize. If not specified, the local computer will

    resynchronize.nowait - do not wait for the resynchronization to occur; return immediately. Otherwise, wait for the

    resynchronize to complete before returning.rediscover - redetect the network configuration and rediscover network sources, then resynchronize.soft - resynchronize utilizing existing error statistics. Not useful, provided for compatibility.

    w32tm /stripchart /computer: [/period:][/dataonly] [/samples:] [/packetinfo] [/ipprotocol:]

    Display a strip chart of the offset between this computer and another computer.computer: - the computer to measure the offset against.period: - the time between samples, in seconds. The default is 2sdataonly - display only the data, no graphics.samples: - collect samples, then stop. If not specified, samples will be collected until

    Ctrl-C is pressed.packetinfo - print out NTP packet response message.ipprotocol - specify the IP protocol to use. The default is to use whatever is available.

    w32tm /config [/computer:] [/update][/manualpeerlist:] [/syncfromflags:][/LocalClockDispersion:][/reliable:(YES|NO)][/largephaseoffset:]

    computer: - adjusts the configuration of . If not specified, the default is the localcomputer.

    update - notifies the time service that the configuration has changed, causing the changes to take effect.manualpeerlist: - sets the manual peer list to , which is a space-delimited list of DNS

    and/or IP addresses. When specifying multiple peers, this switch must be enclosed in quotes.syncfromflags: - sets what sources the NTP client should synchronize from. should

    be a comma separated list of these keywords (not case sensitive):MANUAL - synchronize from peers in the manual peer listDOMHIER synchronize from an AD DC in the domain hierarchyNO - synchronize from noneALL - synchronize from both manual and domain peers

    LocalClockDispersion: - configures the accuracy of the internal clock that w32time willassume when it can't acquire time from its configured sources.

    reliable:(YES|NO) - set whether this machine is a reliable time source. This setting is only meaningfulon domain controllers.

    YES - this machine is a reliable time serviceNO - this machine is not a reliable time service

    largephaseoffset: - sets the time difference between local and network time whichw32time will consider a spike.

    w32tm /tzDisplay the current time zone settings.

    w32tm /dumpreg [/subkey:] [/computer:]Display the values associated with a given registry key.

  • Time Synchronization for Windows 7 Computers K11278, Rev. A

    Sheet 5 of 5

    The default key is HKLM\System\CurrentControlSet\Services\W32Time (the root key for the timeservice).

    subkey: - displays the values associated with subkey of the default key.computer: - queries registry settings for computer .

    w32tm /query [/computer:]{/source | /configuration | /peers | /status}[/verbose]

    Display a computer's windows time service information.computer: - query the information of . If not specified, the default is the local computer.source: display the time source.configuration: display the configuration of run-time and where the setting comes from. In verbose mode,

    display the undefined or unused setting too.peers: display a list of peers and their status.status: display windows time service status.verbose: set the verbose mode to display more information.

    w32tm /debug {/disable | {/enable /file: /size: /entries:[/truncate]}}

    Enable or disable local computer windows time service private log.disable: disable the private log.enable: enable the private log.file: - specify the absolute filename.size: - specify the maximum size for circular logging.entries: - contains a list of flags, specified by number and separated by commas, that specify

    the types of information that should be logged. Valid numbers are 0 to 300. A range of numbers isvalid, in addition to single numbers, such as 0-100,103,106. Value 0-300 is for logging allinformation.

    truncate: truncate the file if it exists.

    5. w32tm EXAMPLEThe example below deletes a trigger, stops and stops the time service, adds three server IPs as time

    servers, and forces a time resynchronization.

    sc triggerinfo w32time deletenet stop w32timenet start w32timew32tm /config /update /manualpeerlist: 192.168.101.11 192.168.101.12 192.168.101.13/syncfromflags:MANUALw32tm /resync