Sponsored Content
Top Forums Shell Programming and Scripting Is there any option to verify size at destination end after NDM? Post 302787213 by hanson44 on Friday 29th of March 2013 01:48:09 AM
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.
 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

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

8. 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

9. 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

10. 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
DBVERIFY(8)						      System Manager's Manual						       DBVERIFY(8)

NAME
dbverify - Directory Server script for indexing attributes SYNOPSIS
dbverify [-Z serverID] [-n backend] [-V] [-v] [-d debuglevel] [-h] DESCRIPTION
Verifies the backend database files. If the server crashes because of a corrupted database, this command can be used to verify the integrity of the different database files to help isolate any problems. This script should be run while the server instacne is stopped. OPTIONS
A summary of options is included below: -Z Server Identifier The server ID of the Directory Server instance. If there is only one instance on the system, this option can be skipped. -n Backend Name The name of the LDBM database to reindex. Example: userRoot -d Debug Level Sets the debugging level. -V Verbose output. -v Display the version of the Directory Server. -h Display the usage. EXAMPLE
dbverify -Z instance3 -n userRoot -V DIAGNOSTICS
Exit status is zero if no errors occur. Errors result in a non-zero exit status and a diagnostic message being written to standard error. AUTHOR
dbverify was written by the 389 Project. REPORTING BUGS
Report bugs to http://bugzilla.redhat.com. COPYRIGHT
Copyright (C) 2013 Red Hat, Inc. Mar 5, 2013 DBVERIFY(8)
All times are GMT -4. The time now is 05:54 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy