AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
#Power
 View Only
  • 1.  CSUM error

    Posted Mon January 31, 2011 12:25 PM

    Originally posted by: Guna_dev


    Hi,

    When I tried to get CSUM for a file which i transferred from Linux (RHEL) to my AIX box i got the following error.
    csum: <file_name> does not exist.
    csum: unable to access one or more files.

    The command i use to get the checksum is

    CSUM <file_name>

    Am i missing anything here? This works fine for smaller files.

    I was able to get the checksum for the same file in Linux box.

    Also i am getting this error only for larger files.

    Any suggesstion would be greatly helpful.

    Thanks
    Guna
    #AIX-Forum


  • 2.  Re: CSUM error

    Posted Tue February 01, 2011 08:10 AM

    Originally posted by: CTetreault


    Guna,

    AIX 6.1 has a 2G limit on the csum command because a 64 bit version of the library that csum
    uses for cryptographic functions is not available. Not sure when/if that limitation will be removed.

    Cathleen
    #AIX-Forum


  • 3.  Re: CSUM error

    Posted Thu February 03, 2011 02:51 PM

    Originally posted by: CTetreault


    You can use the perl script below to get the md5 digest on files over 2G in AIX. It can be found here:

    http://www.ibm.com/developerworks/aix/library/au-satsystemvalidity/index.html

    It takes a filename as an argument, e.g., md5sum.pl <filename>
    __________________________________
    use Digest::MD5;
    use IO::File;

    my $chk = Digest::MD5->new();

    foreach my $file (@ARGV)
    {
    $chk->addfile(IO::File->new($file));

    print "$file -> ",$chk->hexdigest,"\n";
    }
    ___________________________________
    #AIX-Forum


  • 4.  Re: CSUM error

    Posted Sat February 05, 2011 12:04 AM

    Originally posted by: j.gann


    or use
    openssl md5 file
    #AIX-Forum