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

74
votes
9answers
103k 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)?
3
votes
1answer
42 views

How do you manually trigger the first sync for 'Internet Time' in Windows?

When launching a Windows Instance on AWS I'd like to trigger the "Internet Time" to be updated via the command line (powershell or cmd). If I go to "Adjust date/time" and select the "Internet Time" ...
2
votes
4answers
1k views

Get maximum memory usage of linux executable

I need a shell script which will retrieve the maximum memory consumption of a linux executable. The executable may spawn child processes using significant amounts of RAM which should be included in ...
-1
votes
1answer
42 views

Time issue in Windows domain Hyper-V

I ran command on our Domain Controller that has PDC Emulator Role: w32tm /config /manualpeerlist:"0.pool.ntp.org 1.pool.ntp.org 2.pool.ntp.org 3.pool.ntp.org" /syncfromflags:manual /reliable:yes ...
0
votes
1answer
62 views

Time problems in a Windows domain

I need some help getting NTP set up correctly on our Windows domain. We have 2 physical servers: Physical Server 1 Domain Controller (DC1) Physical Server 2 (Hyper-V Host) Data 1 (also a Domain ...
1
vote
3answers
300 views

Where do computers/servers in a Windows Domain get their time settings from? [duplicate]

I have 5 Windows Server 2012 servers and around 100 computers in our domain. Recently I noticed that the time on the servers and computers is around 30 seconds fast. Where do servers and computers ...
7
votes
3answers
626 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 ...
0
votes
1answer
29 views

Will changing the date or time on windows server 2008 break any websites or anything else?

Sorry if this is a newb question, but I was told by someone about a month ago that if I change the date and/or time on one of our servers it could break our websites or something. I can't fully ...
0
votes
1answer
982 views

Meinberg ntp for Windows - force more frequent updates?

I have a Windows VM that has time drift problems, and left to its own devices will drift by minutes per day. I know there are issues with time on VMs, but I was hoping using the Meinberg NTP service ...
4
votes
2answers
354 views

How do I make all Xen guests use their host clock value?

I've set up Xen server under Linux with several guests running, and all was well. After some time I've noticed the clock on the server drifted away, so I installed 'ntpd', and the clock was back to ...
18
votes
3answers
207 views

Risk of starting NTP on database server?

I've heard rumors of bad things happening to database and mail servers if you change the system time while they are running. However, I'm having a hard time finding any concrete information on actual ...
0
votes
3answers
152 views

configuring server time to allow for daylight savings [closed]

Ive got a script that is allows users to submit data to a db, when data is submitted a timestamp is also added, my local time zone is GMT, as is my server time as set it plesk 11, but when the data ...
0
votes
1answer
33 views

How to correct the time on a Red Hat EL6 server? Clock is almost 3 hours behind

This did not work: [~]: sudo /usr/sbin/ntpdate pool.ntp.org 19 Feb 08:03:26 ntpdate[6939]: the NTP socket is in use, exiting So, I'm not sure how to proceed... also tried this to no avail: [~]: ...
-1
votes
1answer
51 views

date and sleep during leap second [closed]

Did you ever watch what happens with a sleep during a leap second or what date will show us? Most UNIX systems can handle a sleep with a fraction of a second and the date command can display ...
3
votes
2answers
7k views

How to temporarily stop time syncing with domain controller?

I wish to do some testing on my local machine which requires me to put the date forward a year. So I can test some stuff in SQL Server (i've found it not possible to override the sql server time). ...
1
vote
1answer
286 views

ntp returning future time

ive noticed the time on a linux server im maintaining is set to 8 hours in the future. i thought this was weird so i checked ntpd was on, and it is. i thought this was even weirder so i checked the ...
0
votes
2answers
28 views

bind cache not used?

i installed a classic bind9 dns server inside a local network, working as a forwarding dns server, there is my config file (i just added my ISP DNS servers as forwarders): options { directory ...
0
votes
0answers
21 views

How to properly set apache timeout and number of simultaneous users?

After reading the apache documentation and searching for something that could help me on ServerFault, I'm still confused about how apache Timeout and MaxRequestWorkers work. In particular I have two ...
2
votes
1answer
44 views

system clock skewing backwards 112 seconds

I'm troubleshooting a problem on one of my NTP servers. This server seems to defy logic, and I'm at my wits end trying to troubleshoot it. Roughly every 162 seconds, the system clock reverts to ...
2
votes
1answer
338 views

NTP: ntpdate to sync time between the PCs on a private network

I have two systems. One acts as Primary/Active and has Internet connection and gets time from NTP server. The second system is Secondary/Passive and has no connection to the external world. Primary ...
0
votes
0answers
21 views

Using RTC to synchronize ntpd when offline

I need a stable configuration, presumably using ntpd, to keep system clock as precise as possible. Background: I have several embedded devices (arm9) running linux (currently: 3.16.1 / debian 7.2) ...
0
votes
0answers
38 views

tzutil.exe keeps changing server timezone

The time-zone on my windows 2008 server keeps being changed, I performed an audit on the "RegQueryValue" registry operation and "TimeZoneKeyName" key found on the following path ...
0
votes
0answers
29 views

Syslog randomly logs bad time [duplicate]

Try as I might, I can't figure out why this server randomly timestamps syslog entries with bad time. Here's a 5-minute stretch of syslog from a few minutes ago. You'll notice there are two places ...
9
votes
3answers
45k 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?
5
votes
4answers
1k views

Faking the date for a specific shell session

I'm certainly trying to achieve something weird here, but I want to fake the date locally for a shell session on GNU/Linux. I need to black-box test how a program behaves at different dates, and ...
12
votes
3answers
1k views

What is a ToD server, “Time of Day” (Not NTP)

I got a simple task: Setup a ToD server... It is not NTP. It runs on port 37. It seems to be bundled with inetd or xinetd. Shall be installed on Debian or CentOS. Alternatively FreeBSD (pfsense ...
5
votes
2answers
192 views

Windows Server 2012 time keeps setting itself 12 minutes ahead

Our Active Directory server has a problem whereby the time keeps setting itself 12 minutes ahead of the real time. This causes authentication issues on the network. I have tried syncing to an ...
5
votes
3answers
159 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 ...
4
votes
1answer
2k views

Windows Server 2008 R2 system time randomly resets to 4 hours in the past

I am having a problem where the time randomly jumps to 4 hours in the past. As a result, none of the scheduled tasks (such as backups) happen at the correct time, and some time-critical applications ...
0
votes
1answer
35 views

Measuring request response time by port

So, I'm currently working on a project in which I spin up a set docker image on a number of different machines and configurations. This image basically contains a web server that accepts a number of ...
4
votes
2answers
423 views

Weird syslog order

Have you ever seen wrong order in /var/log/syslog ? I think that it causes only crontab. Jun 28 22:20:01 alex CRON[2327]: (root) CMD (something > /dev/null) Jun 28 22:21:01 alex CRON[2700]: (root) ...
1
vote
0answers
99 views
0
votes
1answer
38 views

Check how much time has elapsed for Cron job and send email

There is a cron job that is set which runs throughout most of the day, sometimes the job gets stuck and I would like to set a time or check on it which let's me know if it has been stuck for more than ...
-2
votes
1answer
121 views

What is the best way to measure latency via a “telnet to port” test, preferably with built-in Linux tools?

I'm writing a Graphite/Diamond collector measuring network latency. Specifically it should measure the time it takes to open up a connection to a port on a remote server. And it needs to work via ...
0
votes
0answers
167 views

Server times off by over 1 minute after recently syncing

I manually synced the times (and matched hardware times) on two servers A and B. NTP was running on both machines, so I made sure the /etc/ntp.conf files were identical (the time servers on B were ...
1
vote
0answers
84 views

How to configure a redundant PTP server

I have a Sonoma GPS time server and a server, which should synchronise itself to the GPS clock, and serve as a fallback option. The time should be synchronised using PTP (Precision-Time-Protocol). ...
2
votes
1answer
106 views

Can't synchronize time in Ubuntu (Europe/Moscow)

I've got this Ubuntu server virtual machine. I'm trying to setup a correct time on it. I've selected a proper timezone (Europe > Moscow) via sudo dpkg-reconfigure tzdata. After that, I'm using ...
5
votes
2answers
484 views

Synchronize clock with NTP while online, and with RTC while offline?

Is there a existing mechanism that synchronizes a linux system with NTP while online, and with a predictably drifting RTC while offline? We operate remote "collectors": embedded Linux systems that ...
0
votes
0answers
40 views

Do I Need a PTP Aware Switch?

We have a PTP Grandmaster clock which we will be using on a dedicated network for PTP time synchronization. It is necessary for us to use a switch to distribute the signal to multiple clients. Does ...
1
vote
1answer
552 views

Is it better to use the systemd service unit's Restart & RestartSec, or use a systemd timer unit?

I have a couple of in-house automated scripts running at periodic intervals. One is every five minutes, the other is every minute. They don't really need to be ran on-the-dot; e.g. I don't care if ...
1
vote
1answer
640 views

Websphere MQ - Query view message with long time in queue

I need a query or just a command to see stopped/delayed/waiting messages in a queue, but for long time.
8
votes
3answers
8k 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 ...
8
votes
2answers
2k views

What is the clock frequency inside 10Gb and 100Gb Ethernet cards?

As I understand, a 10Gb Ethernet card is capable of putting 10Gb every second on (say) a fibre optics cable. Now naively, for this to happen in hardware, one will need a 10GHz clock running the ...
3
votes
3answers
399 views

How to keep the time on multiple servers in sync

I want a cluster of servers to have the exact same time. All are using UTC time zone. Using NTP currently, i still see they seem to be off by 10-20 miliseconds each. Whats the best way to have them ...
4
votes
2answers
4k 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 ...
2
votes
5answers
575 views

Linux clock loses 10 minutes every week

One of my linux server's clock loses 10 minutes every now and then, nearly every week. I update the time so it stays correct, and although it doesn't really bother me, i'd like to fix it. I've been ...
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 ...
2
votes
1answer
419 views

Real-time clock is wrong (from hours to years), one-time non-monotonic change at boot needed. Can Chrony solve this?

I can't guarantee a sane real-time clock on some machines (the time might be wrong by hours, months or even years). Since I also have intermittent networking, I set up Chrony in the hopes it could fix ...
1
vote
6answers
1k views

Share processor time between computers

I'm a developer and I use lots of applications gadgets. (I WORK ON WINDOWS) I have two computers (HP Dual Core (3.2Ghz) one with 512Mb and one with 1Gb RAM). So I work on both, but when I work I work ...
3
votes
1answer
839 views

Why did my Windows Server 2012 R2 timezone change overnight?

When I logged into my workstation this morning, the timezone had been changed from Eastern to Pacific. In the event viewer I see the following three events, all at 4:12:15 AM. It looks like the ...