- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- RCP behaviour when time misalignment between sourc...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2001 06:32 AM
11-20-2001 06:32 AM
we use rcp with "-p" option, which should keep the proper file owner/groups and data.
The source machine date is 2 hours after the destination one.
We remote copy a file which date is 12.00.
The destination time is 10.00 ... after the copy on the destination the file date is "2001", i.e. no date has been assigned, because the HP UX isn't able to manage a date "after" the current one.
If the source date is only few minutes after the destination one, then the destination machine can manage the time (i.e. 10:15 when the date is 10:00).
What is the maximum time misalignment supported (managed) by the HP UX in the context of a file remote copy?
thanks in advance
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2001 06:52 AM
11-20-2001 06:52 AM
SolutionI'll bet that when the time on the destination system catches up to the mod time of the file, ls -l will display the time as you expect.
Cheers,
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2001 07:01 AM
11-20-2001 07:01 AM
Re: RCP behaviour when time misalignment between source and destination
Which command can be used to check if the date is set/kept correctly?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2001 07:08 AM
11-20-2001 07:08 AM
Re: RCP behaviour when time misalignment between source and destination
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2001 07:12 AM
11-20-2001 07:12 AM
Re: RCP behaviour when time misalignment between source and destination
#!/opt/perl5/bin/perl
opendir(DIR, $ARGV[0])
or die "could not open directory $ARGV[0]: $!";
while (defined($filename = readdir(DIR))) {
($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,
$atime,$mtime,$ctime,$blksize,$blocks) = stat($filename);
($sec,$min,$hour,$mday,$mon,$year,@rest) = localtime($mtime);
printf("%02d:%02d:%02d %02d/%02d/%04d %s\n",
$hour, $min, $sec, $mday, $mon+1, $year+1900, $filename);
}
closedir(DIR);
Cheers,
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2001 07:13 AM
11-20-2001 07:13 AM
Re: RCP behaviour when time misalignment between source and destination
I've been bitten by the same thing several times. If the source system's clock is ahead of the destination's, the timestamp on the file will show the year until the destination system's clock catches up.
NTP is nice for keeping the system clock syncronized to a time server. There are several public time servers available but if your company has a firewall (they should) you may not be able to get to the public servers without having a port opened. Of course, you're company may have an NTP time source.
Harry, I'm glad I'll be retired by 2038!
Darrell