Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

How to apply cksum between Windows NT and UNIX files during PROD migration?

Posted on 2006-03-29
6
Medium Priority
?
2,219 Views
Last Modified: 2013-12-04
HI,

I am doing production deployment so i ftp files from Windows NT to unix environment .Assume there is no unix view.
Mainly i need to apply check sum during production migration like applying checksum to nt  and unix files to make sure  the size and i need to take screenshot also.
 if i am coping files from unix to unix i can use cksum.But if i ftp files from nt to unix i find differences in bytes.
Like i need to take checksum screenshot for NT as wellas Unix seperately.
Please help
0
Comment
Question by:vikraman_b
  • 3
  • 3
6 Comments
 
LVL 51

Expert Comment

by:ahoffmann
ID: 16322759
> i find differences in bytes.
did you transfer in binary mode?
0
 
LVL 3

Author Comment

by:vikraman_b
ID: 16326261
ascii mode

0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 16326532
change to binary mode and it should be ok
0
When ransomware hits your clients, what do you do?

MSPs: Endpoint security isn’t enough to prevent ransomware.
As the impact and severity of crypto ransomware attacks has grown, Webroot fought back, not just by building a next-gen endpoint solution capable of preventing ransomware attacks but also by being a thought leader.

 
LVL 3

Author Comment

by:vikraman_b
ID: 16326677
Hi ahoffmann,
i need to transfer in ascii format only.
for example
i got a file in ClearCase stream NT view say some.sql,some.ini like that, i need to transfer this files from nt to unix envt
so normally use
telnet tounix server
ftp the files under ascii mode and i do the transfer.
u cannot use binary mode,binary can be used only for jar file,etc.,
so after transfer i need to check the size in the nt view as well as unix view.
so i need to apply cksum
if it is unix view i manually copy the file and take the cksum for source and destination directory if it going to be nt and unix ,how will compare and take the scree shot for logging purppose.
0
 
LVL 51

Accepted Solution

by:
ahoffmann earned 750 total points
ID: 16329764
> i need to transfer in ascii format only.
ascii mode is unreliable and causes strange side effects, as you identified yourself
If you know how your ftp client deals with ascii mode *and* you know the remote ftp server deals with ascii mode, then feel free to use it, but as a result you definitely get files which cannot be compared with checksums.

If you need to remove for example M$'s useless/stupid \r in text files, then use a reliable converter before or after transfering instead.
Or better use a reliable editor to create/change your text files inthe format you need them.

> u cannot use binary mode,binary can be used only for jar file,etc.,
wrong
You can use binary mode for everything, ftp does not know anything about the file content, nor does it look at file extentsions.
0
 
LVL 3

Author Comment

by:vikraman_b
ID: 16333676
HI ahoffman,
I am the same person posted in unix and unix securiy.
0

Featured Post

When ransomware hits your clients, what do you do?

MSPs: Endpoint security isn’t enough to prevent ransomware.
As the impact and severity of crypto ransomware attacks has grown, Webroot fought back, not just by building a next-gen endpoint solution capable of preventing ransomware attacks but also by being a thought leader.

Question has a verified solution.

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

SHARE your personal details only on a NEED to basis. Take CHARGE and SECURE your IDENTITY. How do I then PROTECT myself and stay in charge of my own Personal details (and) - MY own WAY...
Our Group Policy work started with Small Business Server in 2000. Microsoft gave us an excellent OU and GPO model in subsequent SBS editions that utilized WMI filters, OU linking, and VBS scripts. These are some of experiences plus our spending a lo…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Loops Section Overview

577 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