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

Posted on 2006-03-29
Last Modified: 2013-12-04

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
Question by:vikraman_b
    LVL 51

    Expert Comment

    > i find differences in bytes.
    did you transfer in binary mode?
    LVL 3

    Author Comment

    ascii mode

    LVL 51

    Expert Comment

    change to binary mode and it should be ok
    LVL 3

    Author Comment

    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.
    LVL 51

    Accepted Solution

    > 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.,
    You can use binary mode for everything, ftp does not know anything about the file content, nor does it look at file extentsions.
    LVL 3

    Author Comment

    HI ahoffman,
    I am the same person posted in unix and unix securiy.

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    Join & Write a Comment

    Recently, I read that Microsoft has analysed statistics for their security intelligence report. It revealed: still, the clear majority of windows users do their daily work as administrator. An administrative account is a burden, security-wise. My ar…
    Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.

    745 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

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now