to get remote server date & time


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers to get remote server date & time
# 1  
Old 09-10-2009
to get remote server date & time

Hi,

i dont have remote m/c user credential. i only know remote m/c ip address. and i am able to ping that remote m/c.
In windows we use: "net time \\computername" to get the remote m/c time.

so how can i get remote m/c time in unix m/c? (means a unix command)

Thanks for the help.

Partha

Last edited by partha_ori; 09-10-2009 at 08:32 AM..
# 2  
Old 09-10-2009
Ntp ?

Quote:
Originally Posted by partha_ori
Hi,

i dont have remote m/c user credential. i only know remote m/c ip address. and i am able to ping that remote m/c.
In windows we use: "net time \\computername" to get the remote m/c time.

so how can i get remote m/c time ?

Thanks for the help.

Partha
Hello,

maybe you can use NTP ?

Regards
# 3  
Old 09-10-2009
i want to use a unix/linux command to get the time of remote unix box.
# 4  
Old 09-10-2009
rsh <remote Host> date
# 5  
Old 09-10-2009
Question

Hi,
After giving ssh <remote ip> date it gives following error:

ssh: connect to host 192.***.***.*** port 22: Connection refused.


But i am able to successfully ping remote host.

Is there any other command ?
# 6  
Old 09-10-2009
not ssh. I mentioned there rsh
# 7  
Old 09-11-2009
Hi siba,

still no result.

I mentioned rsh 192.*.*.* date but it gives following output:
rsh: 192.*.*.*: not found.

but believe me while i give ping command it gives following result:

64 bytes from 192.*.*.*: icmp_seq=0. time=7. ms
64 bytes from 192.*.*.*: icmp_seq=1. time=7. ms
64 bytes from 192.*.*.*: icmp_seq=2. time=7. ms
64 bytes from 192.*.*.*: icmp_seq=3. time=7. ms
64 bytes from 192.*.*.*: icmp_seq=4. time=7. ms
64 bytes from 192.*.*.*: icmp_seq=5. time=7. ms
.......
.......
21 packets transmitted, 21 packets received, 0% packet loss
round-trip (ms) min/avg/max = 7/7/8 ,

so what should i do?
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

modifying date and time and time zone on solaris 5.10 with (redundant server) veritas

I have a cluster of two Solaris server (veritas cluster). one working and the other is standby I am going to change the date on them , and am looking for a secure solution as it is giving an important service. my opinion is that the active one doesn't need to be restarted (if I don't change the... (1 Reply)
Discussion started by: barry1946
1 Replies

2. Programming

DATE & TIme

Can we select the datetime from oracle database in “hhmmssnnnccyymmdd” format ? please help to solve this..... (2 Replies)
Discussion started by: Sanal
2 Replies

3. Shell Programming and Scripting

Extracting date & time from file name

Hi, I am having a file name as exp_bkp_tables_18_Oct_2010_10_50_28.dmp which is used for import the records. Now, I want to print the output using the selected file name as below : Table records will get restored as on date 18-Oct-2010 and time 10:50:28 How it can be done ? With... (5 Replies)
Discussion started by: milink
5 Replies

4. Shell Programming and Scripting

About date & time difference

Hello All, I was having a look on threads on the Forum about time calculation but didn't find exactly this issue. For instance, if we have these 2 dates, begin & end : 20100430235830 20100501000200 Is there anyway, awk, ksh, perl to calculate the difference in sec and get for... (6 Replies)
Discussion started by: rany1
6 Replies

5. Shell Programming and Scripting

grep - date & time range

Hi, I need to search email files by date & time range in email files. The timezone is not important. Can someone plz advise how i can do this ? For e.g A user can specify only A single date A date range date & time range Below is part of the email file. (4 Replies)
Discussion started by: coolatt
4 Replies

6. Shell Programming and Scripting

Convert Epoch Time to Standard Date and Time & Vice Versa

Hi guys, I know that this topic has been discuss numerous times, and I have search the net and this forum for it. However, non able to address the problem I faced so far. I am on Solaris Platform and unable to install additional packages like the GNU date and gawk to make use of their... (5 Replies)
Discussion started by: DrivesMeCrazy
5 Replies

7. UNIX for Dummies Questions & Answers

Backup Date & Time

:confused: I'm not really sure about the default backup date & time in our Unix system and I would like to change it to a convienient time...how do I do that? Please help? (1 Reply)
Discussion started by: EbeyeJJ
1 Replies

8. UNIX for Dummies Questions & Answers

file creation date & time

Hi All, I have some files which are creates every day using a script. I want to create a log files which does write "filename,creation day and time" how can I do this ?? Alice (3 Replies)
Discussion started by: alisevA3
3 Replies

9. Shell Programming and Scripting

FTP - Get the file date and time on the remote server

I would like to know if there is a way to get the date and timestamp of the file that is being FTP from the remote server using shell script. Currently the get command from FTP will have current date and timestamp. Tried the earlier suggestion 'HardFeed' but still getting the current date and time... (12 Replies)
Discussion started by: gthokala
12 Replies

10. UNIX for Dummies Questions & Answers

Time & Date Command

Hey all, When you run the 'ls -la' command it'll show you the time and dates of all files/directories. Now what I am trying to do is create a script that will tell me what files haven't been used in over the past 1 month and what the time and date is that the files that haven't been accessed in... (2 Replies)
Discussion started by: merlin
2 Replies
Login or Register to Ask a Question