|Performance Analysis and Tuning Simplified|
dmap - A Free Disk Mapping Tool for Solaris SPARC
dmap lets you translate disk names between the c0t0d0 format and the sd322 format used by utilities like sar and iostat. This utility is much faster than the available scripts that do the same thing and is a spinoff from our development of SarCheck for Solaris SPARC, a commercial product. We're providing dmap for free as a way of thanking the Solaris community for the success of SarCheck. The output of dmap looks like this:
dmap 0.04 - A utility to translate disk device names from
dmap works on 32- and 64-bit versions of Solaris SPARC and has been tested on versions 2.5.1 through 2.8. Resource utilization is fairly trivial. dmap reads the /etc/path_to_inst file and runs the following command:
/usr/bin/ls -l /dev/rdsk/*s0
It then tries to match things up. There are a number of scripts floating around that do the same thing and dmap is designed to do it more efficiently. This version of dmap works with some SANs but probably not all of them. If you have some ideas about how to improve dmap, please let us know!
Usage: dmap [-q][-h|-z|-l] -q: suppress the beginning descriptive paragraphs -h: print this help text instead of disk information -l: print the license agreement -z: zero-fill the instance number to improve sorting To sort the output of this program, do something like this: dmap -q -z > foobar; sort -k 3 foobar Copyright 2002-2004 by Aptitune Corporation, Plaistow NH USA.
Aptitune Corporation PO Box 1033, Plaistow NH 03865 USA email: firstname.lastname@example.org Phone: 1-603-382-4200; Fax: 1-603-382-4247 http://www.sarcheck.com FREE SOFTWARE LICENSE AGREEMENT TERMS AND CONDITIONS CAREFULLY READ ALL THE TERMS AND CONDITIONS OF THIS AGREEMENT. USING THIS PROGRAM CONSTITUTES YOUR ACCEPTANCE OF THESE TERMS AND CONDITIONS. If you do not agree to the following terms and conditions, no license is granted hereunder and you are not authorized to use Aptitune Corporation's dmap ('Program'). 1. LICENSE: Aptitune grants to you a royalty-free, worldwide, perpetual, right and license to use the Program, including the right to make copies of the Program. YOU MAY NOT DECOMPILE, REVERSE ENGINEER, OR OTHERWISE DISASSEMBLE OR MODIFY THE PROGRAM OR ANY PART THEREOF. 2. In the event that you copy or transfer the Program, you agree to reproduce the Program in its entirety, including the copyright notice. 3. TERMINATION: This license will terminate immediately and without notice upon your failure to comply with any term or condition of this Agreement. You agree, upon such termination, to destroy all copies of the Program. 4. NO WARRANTY: THE PROGRAM IS PROVIDED TO YOU FREE OF CHARGE AND FOR NO CONSIDERATION AND APTITUNE DISCLAIMS ALL WARRANTIES OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTIES AS TO THE SUITABILITY OF THE PROGRAM FOR YOUR PURPOSES, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL APTITUNE BE LIABLE FOR ANY DAMAGES WHATSOEVER, INCLUDING LOSS OF ANTICIPATED PROFITS, OR ANY DIRECT, INCIDENTAL, EXEMPLARY, SPECIAL, OR CONSEQUENTIAL DAMAGES. THE PROGRAM IS PROVIDED TO YOU 'AS IS, WHERE IS', AND WITH ALL FAULTS AND WITHOUT ANY WARRANTIES OF ANY KIND. 5. INDEMNIFICATION BY LICENSEE: You agree to indemnify Aptitune from, and hold Aptitune harmless against, any claim or action by any third party arising out of or related to your operation or use of the Program, provided that such indemnification shall not apply to any claim or action by any third party alleging that the Program, as supplied to you by Aptitune, infringes the proprietary rights of any third party. 6. CHOICE OF LAW: This license shall be governed and construed in accordance with the laws of the State of New Hampshire, without giving effect to its conflicts of laws principles, and the Courts of which shall have exclusive jurisdiction over any dispute arising hereunder 7. ACKNOWLEDGMENT: YOU ACKNOWLEDGE THAT YOU HAVE READ THIS AGREEMENT, UNDERSTAND IT, AND AGREE TO BE BOUND BY ITS TERMS AND CONDITIONS. YOU ALSO AGREE THAT THIS AGREEMENT IS THE COMPLETE AND EXCLUSIVE STATEMENT OF AGREEMENT BETWEEN THE PARTIES AND SUPERSEDES ALL PRIOR PROPOSALS, AGREEMENTS, OR UNDERSTANDINGS, WRITTEN OR ORAL, WITH RESPECT TO THE SUBJECT MATTER OF THIS AGREEMENT. Should you have any questions concerning this Agreement, please contact in writing Aptitune Corporation, PO Box 1033, Plaistow NH 03865 USA Copyright 2002-2004 by Aptitune Corporation, Plaistow NH USA.
Here is dmap. For MSIE, use the right mouse button to click on this link - dmap.taz (7886 bytes) and select "Save Target As". For other browsers, check the documentation. If you're FTPing this file and there's a PC involved, be sure the PC knows that this file is binary and not text. This file is a compressed tar archive. To install, cd to the directory you want dmap to reside in and use the following command:
zcat < dmap.taz | tar xvf -
We hope that you'll find dmap to be a useful tool and we encourage you to distribute it throughout the Solaris SPARC community. And of course, feel free to request an evaluation copy of SarCheck for Solaris so that you can see what we *really* do.