Is there any option to verify size at destination end after NDM?


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Is there any option to verify size at destination end after NDM?
# 8  
Old 03-29-2013
md5sum is incredibly useful. This is one of my favorite utilities. I rely on it to verify that giant data files do not change or get corrupted when transferred, or after sitting around a long time on disk.

md5sum calculates and verifies checksums (incredibly big numbers like file fingerprints), for example like this:
Code:
$ md5sum file1
27a3024f4381f60aa6a232c2de903645  file1

Code:
$ md5sum file1 > log
$ md5sum -c log
file1: OK
$ echo $?
0

Code:
$ date >> file1
$ md5sum -c log
file1: FAILED
md5sum: WARNING: 1 computed checksum did NOT match
$ echo $?
1

It is guaranteed that if your file is changed during transfer, even the slightest bit, the checksum will be different. You can check the exit value of "md5sum -c" to determine if the file has been changed.
# 9  
Old 03-29-2013
Code:
$md5sum outputfile
ksh: md5sum:  not found

# 10  
Old 03-29-2013
That's too bad. Smilie

But you probably just need to install it to your solaris servers. md5sum is very industry-standard. It's everywhere. Maybe it's called something different on your systems, like "digest -a md5" or "gst-md5sum"? It's worth your while to figure out how to find or install it. Smilie
# 11  
Old 04-09-2013
I found md5 already there with his buddies on CygWin:
Code:
DGST(1)                             OpenSSL                            DGST(1)



NAME
       dgst, md5, md4, md2, sha1, sha, mdc2, ripemd160 - message digests

SYNOPSIS
       openssl dgst [-md5|-md4|-md2|-sha1|-sha|-mdc2|-ripemd160|-dss1] [-c]
       [-d] [-hex] [-binary] [-out filename] [-sign filename] [-passin arg]
       [-verify filename] [-prverify filename] [-signature filename] [-hmac
       key] [file...]

       [md5|md4|md2|sha1|sha|mdc2|ripemd160] [-c] [-d] [file...]

DESCRIPTION
       The digest functions output the message digest of a supplied file or
       files in hexadecimal form. They can also be used for digital signing
       and verification.

OPTIONS
       -c  print out the digest in two digit groups separated by colons, only
           relevant if hex format output is used.

       -d  print out BIO debugging information.

       -hex
           digest is to be output as a hex dump. This is the default case for
           a "normal" digest as opposed to a digital signature.

       -binary
           output the digest or signature in binary form.

       -out filename
           filename to output to, or standard output by default.

       -sign filename
           digitally sign the digest using the private key in "filename".

       -passin arg
           the private key password source. For more information about the
           format of arg see the PASS PHRASE ARGUMENTS section in openssl(1).

       -verify filename
           verify the signature using the the public key in "filename".  The
           output is either "Verification OK" or "Verification Failure".

       -prverify filename
           verify the signature using the  the private key in "filename".

       -signature filename
           the actual signature to verify.

       -hmac key
           create a hashed MAC using "key".

       -rand file(s)
           a file or files containing random data used to seed the random
           number generator, or an EGD socket (see RAND_egd(3)).  Multiple
           files can be specified separated by a OS-dependent character.  The
           separator is ; for MS-Windows, , for OpenVMS, and : for all others.

       file...
           file or files to digest. If no files are specified then standard
           input is used.

NOTES
       The digest of choice for all new applications is SHA1. Other digests
       are however still widely used.

       If you wish to sign or verify data using the DSA algorithm then the
       dss1 digest must be used.

       A source of random numbers is required for certain signing algorithms,
       in particular DSA.

       The signing and verify options should only be used if a single file is
       being signed or verified.



0.9.8r                            2008-05-19                           DGST(1)

Seems you can GNU it.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Homework & Coursework Questions

NDM command to run a Mainframe job from Linux

Hi Experts, I am trying to run a Mainframe Job from Linux using NDM process. I will be passing the contents of the Mainframe job as an parameter to the NDM script. This is working fine with FTP when i use the option filetype = jes, but in NDM i am not able to identify a similar option like... (2 Replies)
Discussion started by: arun1377
2 Replies

2. Shell Programming and Scripting

Ndm scripting issue

Friends, I am trying to use the below type of code in my script, but its not at all executing, its an ndm scripting called inside the shell script, Any help is greatly appreciated, vsource=/temp/ndm vtarget=/temp/ndm vlist=list.txt for i in $( cat $dir/$file1 ) do v1=$i ... (1 Reply)
Discussion started by: aa_remo
1 Replies

3. Shell Programming and Scripting

NDM process say success but file didn't reach destination

I am using ndmcli to NDM my files. When i do so it prints success for the process, with out any errors, but file is not reached at destination. ndmcli -x << EOJ submit phcdb process snode=$RMT_NODE_NAME step01 copy from (file=$SRC_FILE_NAME pnode) to (file=$DST_FILE_NAME snode... (0 Replies)
Discussion started by: pattamuthu
0 Replies

4. HP-UX

How to verify the size of a process

Hi, Could you please advise on the command to verify the size of a process in HPUX 11.23 Itanium. The process name is arserverd. Many thanks in Advance, Best Regards, John Joseph (2 Replies)
Discussion started by: jjosephHPUX
2 Replies

5. UNIX for Advanced & Expert Users

Find command -size option limitation ?

Hi All, I ran code in test environment to find the files more than 1TB given below is a snippet from code: FILE_SYSTEM=/home/arun MAX_FILE_LIMIT=1099511627776 find $FILE_SYSTEM -type f -size +"$MAX_FILE_LIMIT"c -ls -xdev 2>/dev/null | while read fname do echo "File larger than... (3 Replies)
Discussion started by: Arunprasad
3 Replies

6. Shell Programming and Scripting

"sed" to check file size & echo " " to destination file

Hi, I've modified the syslogd source to include a thread that will keep track of a timer(or a timer thread). My intention is to check the file size of /var/log/messages in every one minute & if the size is more than 128KB, do a echo " " > /var/log/messages, so that the file size will be set... (7 Replies)
Discussion started by: jockey007
7 Replies

7. Shell Programming and Scripting

NDM manual

Hi, Can any of you tell me how to get this ndm manual stuff? I need it to know specific error ids and descriptions Thanks, Vinodhini (1 Reply)
Discussion started by: vinodhini4
1 Replies

8. UNIX for Advanced & Expert Users

NDM File transfer - doubt...?

Hi, I have configured NDM (Connect: Direct) to copy a bunch of files from one server to another. I create a master file contains the list of files which need to copied, and my shell script read the file and send the file one by one thru NDM. The problem is, since the files are very big in size... (0 Replies)
Discussion started by: r_sethu
0 Replies

9. Shell Programming and Scripting

How to NDM a file in unix

.................................. Network data mover is a secure mechanism to transfer data . can any body guide me out .... how it is done (1 Reply)
Discussion started by: anumkoshy
1 Replies

10. HP-UX

Print Problem in UNIX. Need to know the option to specify the print paper size

Hi, Could any one please let me know what is the option available in UNIX to print by specifying the paper size? We are using Unix11i. I could n't see any option specified in the 'lp' command to print the report by specifying the size of the paper. It would be of great help to me, if... (1 Reply)
Discussion started by: ukarthik
1 Replies
Login or Register to Ask a Question