Solved

how to change another server's date remotely?

Posted on 1997-11-12
2
252 Views
Last Modified: 2010-04-21
(1) Is it possible to change another server's (S1) date from server (S2) on a WAN?

(2) It seems the timed daemon works only on LAN and I've not been successfully with the following command as well.

rsh S2 -l root "date 1112231197".

I have included the following line in .rhosts in /home/usr1 in S2 for the rsh command.  Am I supposed to include the following line in .rhosts in root's home?  Where exactly?
 
192.1.1.222 root


I'm using AIX 4.1 on IBM RS/6000.
0
Comment
Question by:Rita060297
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 1

Accepted Solution

by:
rjhoward earned 50 total points
ID: 2007750
Rita:

You should have a .rhosts file in the / directory, and its mode should be either 400 or 600.

Here are other things to check:

1. Check to see that rshd is running on the target node.

2. Check to see that the target host name gets properly resolved.  If you ping S2, ping should return the IP address of S2.  To dodge the name resolution issue altogether, use the IP address in your rsh command, instead of the host name.

2. Check to see that you can telnet to the target node across the WAN.

Good luck.
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 2007751
why not using timed?
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

696 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question