GNU/Linux Command – RDATE

rdate — Get the time from Remote machine.

Summary :
RDate connects to a Remote Time Server over a TCP/IP network, print and / or set the system clocl to  the time returned by it. The time in remote server should be maintained properly. So that all machines can get the time from that server.
 
Example:
$ rdate -p 192.168.1.5 -- Print the time returned by the remote machine. # rdate -s remote.pc.com -- Set the system time to the timereturned from the remote machine. $ rdate -u myserver -- Use UDP instead of TCP as the transport. $ rdate -l myserver -- Use syslog to log errors and output (Useful when it is used in cron jobs).
NOTE:

  1. Remote server should run the time service in port 37.
  2. Firewall should not block port 37.

Read : man rdate

Advertisements
Tagged with: ,
Posted in Uncategorized

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: