mk−checksum−filter − Filter checksums from mk−table−checksum.
mk−checksum−filter checksums.txt mk−table−checksum host1 host2 | mk−checksum−filter mk−checksum−filter db1−checksums.txt db2−checksums.txt −−ignoredb
This program takes the unsorted, verbose output from mk-table-checksum and sorts it, then filters it so you only see lines that have different checksums or counts.
You can pipe input directly into it from mk-table-checksum, or you can save the mk−table−checksum’s output and run mk-checksum-filter on the resulting file(s). If you run it against just one file, or pipe output directly into it, it’ll output results during processing. Processing multiple files is slightly more expensive, and you won’t see any output until they’re all read.
−−equaldbs
This comma-separated list of database names is always considered to have the same tables. In other words, this makes "database1.table1.chunk1" equal to "database2.table1.chunk1" if they have the same checksum.
This disables incremental processing, so you won’t see any results until all input is processed.
−−header
Preserves headers output by mk−table−checksum.
−−help
Displays a help message.
−−ignoredb
Ignore the database entirely when comparing lines.
This disables incremental processing, so you won’t see any results until all input is processed.
−−master
Specifies which host is the replication master, and sorts lines for that host first, so you can see the checksum values on the master server before the slave.
−−verbose
Output all lines except header lines.
−−version
Output version information and exit.
Exit status is 0 if no differences were found, 1 if any were.
The environment variable "MKDEBUG" enables verbose debugging output in all of the Maatkit tools:
MKDEBUG=1 mk−....
Please use the Sourceforge bug tracker, forums, and mailing lists to request support or report bugs: <http://sourceforge.net/projects/maatkit/>.
Baron "Xaprb" Schwartz.
This program is copyright (c) 2007 Baron Schwartz. Feedback and improvements are welcome.
THIS PROGRAM IS PROVIDED " AS IS " AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , WITHOUT LIMITATION , THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE .
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2; OR the Perl Artistic License. On UNIX and similar systems, you can issue ‘man perlgpl’ or ‘man perlartistic’ to read these licenses.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111−1307 USA .
This manual page documents Ver 1.1.26 Distrib 1877 $Revision: 1854 $.