Time is a dimension in which events can be ordered from the past through the present into the future, and also the measure of durations of events and the intervals between them.

learn more… | top users | synonyms

66
votes
8answers
85k views

How do I get current Unix time in milliseconds using bash?

How do I get the current Unix time in milliseconds (i.e number of milliseconds since Unix epoch January 1 1970)?
31
votes
4answers
14k views

Windows Server unable to synchronize NTP time reliably

Why does Windows Server (2008, in this case, but I've seen the same problem in 2003) seem to have problem synchronizing time? I've seen this error in my System log across a variety of servers: The ...
19
votes
7answers
9k views

Should servers have their timezone set to GMT/UTC?

This may not be a big deal for smaller shops that only have one or a few site, but for larger organizations this is something I'm curious about. What are the pros and cons have having all/most of ...
18
votes
10answers
16k views

Compare NTPD and ntpdate

What are the pros and cons between these two ways to synchronize your server? It seems to me that your server would probably not drift more than 1 second every day, so ntpdate on a crontab would be ...
16
votes
2answers
2k views

What is the largest hardware clock update the Linux kernel “11-minute mode” can make?

When certain time-related programs (like ntpd) are running on a Linux system, the kernel will switch into so-called "eleven minute mode" (see the hwclock man page) whereby it will automatically update ...
10
votes
6answers
631 views

Replacing sick NTP server source and re-synching (with internal time currently 2 minutes late)

One of the external NTP servers (the primary one--currently) we're using as source seems to not be responding to NTP calls. Unfortunately, on our core router (Cisco 6509), the NTP functionality ...
10
votes
6answers
631 views

Local timezones on servers considered harmful?

I'm curious as to what other administrators' experiences with timezones, in the context of remotely administered servers, are. In my career I've come across several conventions; Always, always, ...
9
votes
9answers
5k views

Time drift

How do you deal with server time drift?
9
votes
2answers
648 views

What is the strategy for detecting time drift in a linux based data centre?

What is the strategy for detecting time drift in all linux based data centre? This is a more difficult problem than it seems at first. Time drift can cause serious problems for certain applications ...
9
votes
3answers
9k views

How to convert 'dmesg' time format to 'real' time format

I have (for example) this log entry in dmesg output: [600711.395348] do_trap: 6 callbacks suppressed Is there a possibility to convert this 'dmesg' time to 'real' time to know, when this event ...
9
votes
7answers
48k views

Why is ntpd not updating the time on my server?

I have ntpd running on my server. It's all the default settings, except I commented out its ability to be a server to other machines: # restrict -4 default kod notrap nomodify nopeer noquery ...
8
votes
7answers
3k views

Local or public NTP servers?

For a relatively large network (thousands of hosts) - what are the arguments for and against running a locally managed (pool of) NTP server(s) (perhaps periodically set via some public NTP server) and ...
8
votes
3answers
246 views

Managing multi-timezone servers

What would be an ideal time and timezone setup for multi-country servers? Especially considering one central IT team managing these servers. Currently we have each server using a local timezone. e.g. ...
8
votes
7answers
13k views

Setting time zone on linux (ubuntu)

Here in the UK we are UTC+1. I set the time using 'date'. However it keeps resetting back to standard UTC, I'm guessing via a NTP time server. I've tried setting the timezone with tzselect but it ...
8
votes
3answers
26k views

How do I force sync the time on Windows Server 2008 R2 Domain Controller?

What is the command to sync a Windows server domain controller to its configured time source?
7
votes
6answers
624 views

What consequences / implications can arise from a wrong system clock?

What issues can you think of that may arise from a wrong system clock setting ? Primarily interested in potential problems affecting servers and Linux or UNIX-like systems in particular. And how ...
7
votes
3answers
7k views

Kill process with high CPU usage after X time? [closed]

running linux i have a few processes which tend to crash occasionally (game servers), which end up using 100% cpu. I'm looking for a program or script to check the cpu usage of a list of processes by ...
7
votes
7answers
3k views

Why is the time messed up on my Ubuntu Server VPS?

A month back loads of services on my VPS stopped working. After messing about for an hour or so i worked out that the time had frozen. I gather it was some sort of virtualization bug and a reboot soon ...
7
votes
1answer
1k views

Single NTP server on isolate network

I have two linux machines (A and B) on an isolated network. They must be time-synchronized. Machine A is powered intermittently and must serve the time, as it is connected to an authoritative time ...
7
votes
3answers
604 views

Record load time of web pages

I have been asked to investigate a way of record how long it a full page request is on our website. i.e. how long it takes from when a user clicks on a link till the page has finished loading. Now ...
6
votes
4answers
1k views

Ubuntu linux takes longer time for incorrect passwords

When I log into my Ubuntu 8.10 box with a correct password the system figures out almost instantaneously that the password is correct and logs me in. However, if I supply an incorrect password, it ...
6
votes
3answers
5k views

Public NTP servers

Is there a list of public NTP servers on the internet I can use.
6
votes
7answers
18k views

Need leading zero for batch script using %time% variable

I came across a bug in my DOS script that uses date and time data for file naming. The problem was I ended up with a gap because the time variable didn't automatically provide leading zero for hour ...
6
votes
6answers
8k views

Domain Controller time is incorrect

I have a domain controller running in VM on Hyper-V, the time seems to be steadily getting faster, over the X-mas period it's 5 faster, which seems odd! I know how to change the time and I belive we ...
6
votes
7answers
451 views

Ratio of PC to Mac support hours? [closed]

For purposes of a purchase of laptops for everyone in my small (15 people) organization, I have compiled a spreadsheet containing what I think is an apples to apples comparison of the cost of, among ...
6
votes
3answers
6k views

How can I compare an ntp server's time to my server's time?

I have ntpd running on a box. I want to see how the time on the box compares to the time retrieved from ntp.ubuntu.com. Is there an easy way to do this?
6
votes
3answers
694 views

Uptime of a Windows machine

How can one find out 'real' uptime of a laptop? By 'real' I mean the time since turning it on and resuming Windows from hybernation state.
6
votes
3answers
483 views

Easy way to get the International Atomic Time on linux?

My system uses UTC for the system clock, which I don't particularly feel like changing. Is there an easy way to get the current TAI time? (preferably a command line tool or flag)
6
votes
11answers
339 views

How do you account for/track your time?

I'm a consultant and I'm not happy with my workflow and want to get some suggestions. Current workflow: Paper notebook where I track time and what I accomplish for clients, I have Outlook where I ...
6
votes
1answer
123 views

Time taken for authentication to work again after changing system time

One of our domain controllers clock drifted way out of sync with the rest of the network (thanks to me forgetting to turn off VMWare's time synchronisation), which caused a whole bunch of servers to ...
5
votes
4answers
4k views

openwrt: Use rdate with NTP servers?

I've noticed that some embedded devices (such as OpenWRT, which runs on Busybox) use rdate to set the system time, instead of NTP. Rdate is an older time protocol, and I'm having trouble finding any ...
5
votes
4answers
37k views

How to synchronize the clock of a windows server 2003 domain server?

Given a windows server 2003 domain server, I'd like to sync it's time to (any) external time services (it's off a couple of minutes). How to do this 1, manually; 2, in an automated manner every week?
5
votes
2answers
127 views

What is an acceptable secure time source in a datacentre environment?

GPS and NTP are two very typical time sources when accurate clocks are required. However, each has an important failing. NTP does not provide authentication of the time source, and so may be ...
5
votes
3answers
1k views

hyper-v server time sync source - PDC / external NTP?

The environement: 10 Hyper-V hosts, all AD joined a lot of VMs AD joined and some not some AD DCs including PDC as Guests What You think is the best approach to time sync a hyper-v farm with AD ...
5
votes
3answers
679 views

Dell T710 time issue, clock loses time every day

I have a Dell T710 here at work that for some reason will not keep proper time. Its a dual quadcore with 32GB ram and runs Windows 2008 R2. Instead of Having multiple servers we run a few virtual ...
5
votes
2answers
194 views

date +%s glitches

I have a strange issue I'm starting to troubleshoot and wondered if anyone would have any helpful tips. I have a cronjob executed every minute that executes a script and appends the output to a file ...
5
votes
1answer
366 views

Windows Server Cluster & Strange Day Light Savings Time Behaviour

Over the weekend (Sunday March 27th) Daylight Savings Time kicked in here in Ireland and so all the servers (all win2k3 server) in our Production Environment updated their Times +1 Hour. However ...
4
votes
8answers
361 views

What should I be doing while I wait for a progress bar? [closed]

So I am sitting here waiting for a progress bar to run (20 mins or so), and was wondering how best to use my time as a SysAdmin. I debated not posting this question briefly, as this could get flagged ...
4
votes
3answers
3k views

Allow Facebook access only in specific hours of the day with squid

I've been able to install squid on my Ubuntu Server with basic authentication and everything works perfectly. Recently the boss asked to block facebook access and I did it with no problems. Now it ...
4
votes
2answers
2k views

Redirecting time.windows.com to internal server

In a corporate environment most machines will be domain joined and therefore get their time from the DCs. However, sometimes you get a machine that isn't in the domain. By default these machines will ...
4
votes
2answers
208 views

how to cause linux system datetime to run faster than real world datetime?

Background I want to monitor a running linux system over several days. It's a custom gentoo build and with much custom software on board. This software has ongoing maintenance timers and cron ...
4
votes
1answer
1k views

Syncing Domain Controller Clocks

It appears some computers in our computer lab have clocks running about 3-4 minutes fast. As of right now, when we join a computer to the domain, it sets the clock based on our server's Domain ...
4
votes
3answers
7k views

DHCP Options for Network Time Server

It looks like there are two options for providing network time settings to a DHCP client; option 004 and option 042. The description for 004 is "Time Server", while 042 specifies NTP. Is there a ...
4
votes
3answers
325 views

Windows time command equivalent

There is a command in Linux that outputs system utilization called time. Is there a Windows equivalent? Or how else can I manually use the task manager commands in a batch file?
4
votes
1answer
536 views

server restart after timezone change

Is it required that the server should be rebooted once I change the time? I ran into trouble when I changed the datetime and did not restart crond. Is there any other service that may have issues ...
4
votes
3answers
953 views

Summer daylight time not changing on some active directory domain clients

We just had a summer daylight change in US. and pc's on my network are behaving strange, some of them change time and some didn't. My network: 2 locations both in Midwest, same time zone. Location ...
4
votes
2answers
5k views

date: cannot set date: Operation not permitted [duplicate]

I have received an interesting problem during I tried to set my Server time either with NTD or manually using date command. First of all I have tried to use NTD. I have succesfully installed the ...
4
votes
2answers
2k views

Is it viable to use w32tm /stripchart to judge time variance of two Windows hosts from each other? A better way to discover two host's time variance?

Is it viable to use w32tm.exe's option stripchart to judge the time variance of two hosts (within a very small margin of error)? Note that w32tm.exe's stripchart function is separate than the ...
4
votes
1answer
655 views

Linux Cumulative User, System CPU Usage of Running Process?

On Linux (and other Unix-like OS's if there's a general answer), is there an easy way to get an output similar to the time command (current real time, user, and system CPU usage totals) for a process ...
4
votes
1answer
129 views

Why is the time on my Server 2008 R2 DC wrong? It's syncing to ntp.org, it claims

OK. After a lot of fun with syncing time across my workstations, I got that sorted out. My workstations are now perfectly synced with my Server 2008 R2 Domain Controller (physical server, not ...