{"id":1010,"date":"2011-12-06T07:43:27","date_gmt":"2011-12-05T21:43:27","guid":{"rendered":"https:\/\/www.penguinpunk.net\/blog\/?p=1010"},"modified":"2012-02-22T12:55:41","modified_gmt":"2012-02-22T02:55:41","slug":"emc-diy-heatmaps","status":"publish","type":"post","link":"https:\/\/www.penguinpunk.net\/blog\/emc-diy-heatmaps\/","title":{"rendered":"EMC &#8211; DIY Heatmaps"},"content":{"rendered":"<p>My friend Mat has developed a pretty cool script that can make pretty pictures out of Analyzer files from CLARiiON and VNX arrays. He&#8217;s decided to release it to the world, so you can download it <a title=\"Mat's awesome heatmap tool\" href=\"https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2011\/12\/heatmap.3.010.zip\" target=\"_blank\">here<\/a>. I&#8217;ve also added the following instructions to a pdf document available <a title=\"Heatmap Generator Readme\" href=\"https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2011\/12\/Heatmap_Generator_v3.010_Readme.pdf\" target=\"_blank\">here<\/a>. Here&#8217;s a <a href=\"https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2011\/12\/heatmap.html\" target=\"_blank\">sample output file<\/a> from the script. He&#8217;s after feedback as well, so send it through and I&#8217;ll make sure it gets to him.<\/p>\n<p><span style=\"font-family: Calibri;\"><span style=\"font-size: small;\">Purpose:<\/span><\/span><\/p>\n<p><span style=\"font-family: Calibri;\"><span style=\"font-size: small;\">The heatmap script allows you to generate heatmaps of various metrics over time from NAR files generated from EMC Clariion\/VNX arrays.<\/span><\/span><\/p>\n<p><span style=\"font-family: Calibri;\"><span style=\"font-size: small;\">Requirements\/Notes:<\/span><\/span><\/p>\n<ul>\n<li><span style=\"font-family: Calibri; font-size: small;\">This script was developed and tested using \u00a0Strawberry Perl <\/span>(v5.12.3)<span style=\"font-family: Calibri;\"><span style=\"font-size: small;\">, but there is no reason it won\u2019t work with other flavours or versions of Perl, but it is possible that other perl modulse other than the one listed below may need to be installed <\/span><\/span><\/li>\n<li><span style=\"font-size: small;\"><span style=\"font-family: Calibri;\">It requires the \u00a0Text::CSV module for Perl. \u00a0Available here <\/span><\/span><a href=\"http:\/\/search.cpan.org\/CPAN\/authors\/id\/M\/MA\/MAKAMAKA\/Text-CSV-1.21.tar.gz\"><span style=\"font-family: Calibri; color: #0000ff; font-size: small;\">http:\/\/search.cpan.org\/CPAN\/authors\/id\/M\/MA\/MAKAMAKA\/Text-CSV-1.21.tar.gz<\/span><\/a><span style=\"font-size: small;\"><span style=\"font-family: Calibri;\"> , if you can get cpan working \u00a0(run \u201ccpan Text::CSV\u201d) it will be easy to install, otherwise you\u2019ll have to do it manually \u2026<\/span><\/span><\/li>\n<\/ul>\n<p><span style=\"font-size: small;\"><span style=\"font-family: Calibri;\">Unzip the files into eg C:\\Text-CSV-1.21 and run the following commands<\/span><\/span><\/p>\n<p>C:\\Text-CSV-1.21&gt;perl Makefile.PL<\/p>\n<p>C:\\Text-CSV-1.21&gt;dmake<\/p>\n<p>C:\\Text-CSV-1.21&gt;dmake test<\/p>\n<p>C:\\Text-CSV-1.21&gt;dmake install<\/p>\n<ul>\n<li><span style=\"font-family: Calibri; font-size: small;\">The script uses the Microsoft tool logparser.exe to manipulate various CSV files available here <\/span><a href=\"http:\/\/www.microsoft.com\/download\/en\/details.aspx?displaylang=en&amp;id=24659\"><span style=\"font-family: Calibri; color: #0000ff; font-size: small;\">http:\/\/www.microsoft.com\/download\/en\/details.aspx?displaylang=en&amp;id=24659<\/span><\/a><\/li>\n<li><span style=\"font-family: Calibri;\"><span style=\"font-size: small;\">The script uses naviseccli to convert the NAR files into CSV files.<\/span><\/span><\/li>\n<li><span style=\"font-family: Calibri;\"><span style=\"font-size: small;\">At the moment the script will only run on a windows server\/PC due to its reliance on the logparser tool, if people are interested I will investigate other tools available in the Linux\/Unix worlds.<\/span><\/span><\/li>\n<li><span style=\"font-size: small;\"><span style=\"font-family: Calibri;\">The default min\/max figures that I am using may be unrealistic, I am by no means an expert in analysing the performance of an array, any feedback is welcome.<\/span><\/span><\/li>\n<\/ul>\n<p><span style=\"font-size: small;\"><span style=\"font-family: Calibri;\">Usage:<\/span><\/span><\/p>\n<p><span style=\"font-size: small;\"><span style=\"font-family: Calibri;\">The following are the command line options available for the script <\/span><\/span><\/p>\n<p>&#8211;logparser &lt;path\\filename&gt;<\/p>\n<p>&#8211;naviseccli &lt;path\\filename&gt;<\/p>\n<p><span style=\"font-size: small;\"><span style=\"font-family: Calibri;\">These options allow you to set the location of the various 3<sup>rd<\/sup> party binaries that the script relies on<\/span><\/span><\/p>\n<p>&#8211;avg_interval &lt;seconds&gt;<\/p>\n<p><span style=\"font-size: small;\"><span style=\"font-family: Calibri;\">The interval that the analyser stats are averaged down to, ie 1800 seconds will set the average interval to 30 minutes <\/span><\/span><\/p>\n<p>&#8211;nar_file &lt;filename&gt;<\/p>\n<p><span style=\"font-size: small;\"><span style=\"font-family: Calibri;\">The input NAR file(s), more than one NAR file can be specified<\/span><\/span><\/p>\n<p>&#8211;out &lt;filename&gt;<\/p>\n<p><span style=\"font-size: small;\"><span style=\"font-family: Calibri;\">The filename of the generated HTLM output file, the default is HEATMAP.HTML<\/span><\/span><\/p>\n<p>&#8211;array_name &lt;name&gt;<\/p>\n<p><span style=\"font-size: small;\"><span style=\"font-family: Calibri;\">The name of the array, this is for reporting purposes only<\/span><\/span><\/p>\n<p>&#8211;summary<\/p>\n<p><span style=\"font-size: small;\"><span style=\"font-family: Calibri;\">Generate a summary for each attribute type, displaying minimum, average and maximum figures for each metric<\/span><\/span><\/p>\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td width=\"51\">\n<p align=\"center\"><strong>Metric<\/strong><\/p>\n<\/td>\n<td width=\"37\">\n<p align=\"center\"><strong>Min<\/strong><\/p>\n<\/td>\n<td width=\"42\">\n<p align=\"center\"><strong>Max<\/strong><\/p>\n<\/td>\n<td width=\"42\">\n<p align=\"center\"><strong>Avg<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"51\">\n<p align=\"center\">Disk Utilization (%)<\/p>\n<\/td>\n<td width=\"37\">\n<p align=\"center\">0.27<\/p>\n<\/td>\n<td width=\"42\">\n<p align=\"center\">97.38<\/p>\n<\/td>\n<td width=\"42\">\n<p align=\"center\">8.16<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td width=\"51\">\n<p align=\"center\">Disk Total Throughput (IO\/s)<\/p>\n<\/td>\n<td width=\"37\">\n<p align=\"center\">0.72<\/p>\n<\/td>\n<td width=\"42\">\n<p align=\"center\">309.06<\/p>\n<\/td>\n<td width=\"42\">\n<p align=\"center\">23.03<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td width=\"51\">\n<p align=\"center\">SP Utilization (%)<\/p>\n<\/td>\n<td width=\"37\">\n<p align=\"center\">38.03<\/p>\n<\/td>\n<td width=\"42\">\n<p align=\"center\">61.11<\/p>\n<\/td>\n<td width=\"42\">\n<p align=\"center\">49.78<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td width=\"51\">\n<p align=\"center\">SP Total Throughput (IO\/s)<\/p>\n<\/td>\n<td width=\"37\">\n<p align=\"center\">5588.70<\/p>\n<\/td>\n<td width=\"42\">\n<p align=\"center\">25693.24<\/p>\n<\/td>\n<td width=\"42\">\n<p align=\"center\">10088.56<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&#8211;mash<\/p>\n<p>&#8211;mashonly<\/p>\n<p><span style=\"font-size: small;\"><span style=\"font-family: Calibri;\">This generated a mash table for each metric type (currently only Storage Processor and Disk), averaging each of the metrics for each type down into a single table, allowing you to combine multiple metrics into a single table.<\/span><\/span><\/p>\n<p><span style=\"font-size: small;\"><span style=\"font-family: Calibri;\">The &#8211;mash option will display the mash-up table alongside the selected metrics, and the &#8211;mashonly options will only display the mash-up tables.<\/span><\/span><\/p>\n<p>&#8211;get_drive_type<\/p>\n<p>&#8211;array_ip &lt;ip addresS&gt;<\/p>\n<p><span style=\"font-size: small;\"><span style=\"font-family: Calibri;\">This option allows you to query the array (as it is currently configured) to determine drive types (currently only SATA II, FIBRE CHANNEL, and SATA II SSD), currently this options only affects the IOPS calculations for drives.<\/span><\/span><\/p>\n<p>&#8211;user_id &lt;user id&gt;<\/p>\n<p>&#8211;pwd &lt;password&gt;<\/p>\n<p>&#8211;scope &lt;0|1&gt;<\/p>\n<p><span style=\"font-size: small;\"><span style=\"font-family: Calibri;\">These options are only used in conjunction with the &#8211;get_drive_type option, if you have cached credentials for the array configured then these options should not be necessary.<\/span><\/span><\/p>\n<p>&#8211;display_drive_type<\/p>\n<p><span style=\"font-size: small;\"><span style=\"font-family: Calibri;\">This option is only used in conjunction with the &#8211;get_drive_type option, it will display another drive table, and allow you to view the different drive type, drive size, pool and RAID Group layouts.<\/span><\/span><\/p>\n<p>&#8211;disk_highlight<\/p>\n<p><span style=\"font-size: small;\"><span style=\"font-family: Calibri;\">This option is only used in conjunction with the &#8211;get_drive_type and &#8211;display_drive_type options, it will highlight the corresponding disks in the other heatmaps, it will also allow you to select all of the drives that have the same attributes as displayed by the &#8211;display_drive_type option.<\/span><\/span><\/p>\n<p>&#8211;config_file &lt;filename&gt;<\/p>\n<p>&#8211;generate_config &lt;filename&gt;<\/p>\n<p><span style=\"font-size: small;\"><span style=\"font-family: Calibri;\">These options allow you to generate a configuration file, using the &#8211;generate_config option, this will generate a config file with all of the default attributes, and to use a configuration file using the \u2013config_file option.<\/span><\/span><\/p>\n<p>&#8211;help<\/p>\n<p><span style=\"font-size: small;\"><span style=\"font-family: Calibri;\">This option will display the following help information.<\/span><\/span><\/p>\n<p>&nbsp;<\/p>\n<p>Heatmap Generator<\/p>\n<p>&nbsp;<\/p>\n<p>Usage: heatmap.3.010.pl &lt;options&gt;<\/p>\n<p>Where options can be the following:<\/p>\n<p>&#8211;logparser &lt;path\\filename&gt; &#8211; The path to the logpaser executable (c:\/Program Files\/Log Parser 2.2\/LogParser.exe)<\/p>\n<p>&#8211;naviseccli &lt;path\\filename&gt; &#8211; The path to the naviseccli executable (c:\/Program Files\/EMC\/Navisphere CLI\/NaviSECCli.exe)<\/p>\n<p>&#8211;avg_interval &lt;seconds&gt;\u00a0\u00a0\u00a0\u00a0 &#8211; The interval in seconds that the stats are averaged at (1800 seconds)<\/p>\n<p>&#8211;nar_file &lt;filename&gt;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#8211; NAR input file(s) this option can be specified multiple times<\/p>\n<p>&#8211;out &lt;filename&gt;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#8211; The output filename (heatmap.html)<\/p>\n<p>&#8211;array_name &lt;name&gt;\u00a0\u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0\u00a0\u00a0&#8211; Set the name of the array in the report<\/p>\n<p>&#8211;summary\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#8211; Displays a summary of each metric<\/p>\n<p>&#8211;mash\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#8211; Creates a mash-up of each metric per object type, and displays alongside other metrics<\/p>\n<p>&#8211;mashonly\u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8211; Creates a mash-up of each metric per object type, and only displays the mash-ups<\/p>\n<p>&#8211;get_drive_type\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#8211; Query Array to get drive type information<\/p>\n<p>&#8211;array_ip &lt;ip addresS&gt;\u00a0\u00a0\u00a0\u00a0\u00a0 &#8211; Set the IP address of the array<\/p>\n<p>&#8211;user_id &lt;user id&gt;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#8211; Set the user ID to log into the array<\/p>\n<p>&#8211;pwd &lt;password&gt;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#8211; Set the user password of the array<\/p>\n<p>&#8211;scope &lt;0|1&gt;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#8211; Set the Scope of the array account<\/p>\n<p>&#8211;display_drive_type\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#8211; Display the drive types in the charts<\/p>\n<p>&#8211;disk_highlight\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#8211; Highlight drives on mouse over<\/p>\n<p>&#8211;config_file &lt;filename&gt;\u00a0\u00a0\u00a0\u00a0 &#8211; Use a configuration file to set attribute min\/maxes<\/p>\n<p>&#8211;generate_config &lt;filename&gt; &#8211; Generate a configuration file using the defined defaults<\/p>\n<p>&#8211;help\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#8211; This help<\/p>\n<p>&#8211;attrib &lt;attribute&gt;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#8211; Set the attribute to graph, where attribute can be the following<\/p>\n<p>d_utilization &#8211; display stats based on disk utilization (%)<\/p>\n<p>d_iops\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#8211; display stats based on disk Total Throughput (IOPS)<\/p>\n<p>d_r_iops\u00a0\u00a0\u00a0\u00a0\u00a0 &#8211; display stats based on disk read IOPS<\/p>\n<p>d_w_iops\u00a0\u00a0\u00a0\u00a0\u00a0 &#8211; display stats based on disk write IOPS<\/p>\n<p>d_queue\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#8211; display stats based on disk Queue Length<\/p>\n<p>d_b_queue\u00a0\u00a0\u00a0\u00a0 &#8211; display stats based on disk Average Busy Queue Length<\/p>\n<p>d_response\u00a0\u00a0\u00a0 &#8211; display stats based on disk Response Time<\/p>\n<p>d_service\u00a0\u00a0\u00a0\u00a0 &#8211; display stats based on disk Service Time<\/p>\n<p>d_bandwidth\u00a0\u00a0 &#8211; display stats based on disk Total Bandwidth<\/p>\n<p>d_r_bandwidth &#8211; display stats based on disk Read Bandwidth<\/p>\n<p>d_w_bandwidth &#8211; display stats based on disk Write Bandwidth<\/p>\n<p>d_r_size\u00a0\u00a0\u00a0\u00a0\u00a0 &#8211; display stats based on disk Read Size<\/p>\n<p>d_w_size\u00a0\u00a0\u00a0\u00a0\u00a0 &#8211; display stats based on disk Write Size<\/p>\n<p>d_seek\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#8211; display stats based on disk Average Seek Distance<\/p>\n<p>&nbsp;<\/p>\n<p>s_utilization &#8211; display stats based on SP utilization<\/p>\n<p>s_response\u00a0\u00a0\u00a0 &#8211; display stats based on SP Response Time<\/p>\n<p>s_bandwidth\u00a0\u00a0 &#8211; display stats based on SP Total Bandwidth<\/p>\n<p>s_iops\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#8211; display stats based on SP Total Throughput (IOPs)<\/p>\n<p>s_b_queue\u00a0\u00a0\u00a0\u00a0 &#8211; display stats based on SP Average Busy Queue Length<\/p>\n<p>s_service\u00a0\u00a0\u00a0\u00a0 &#8211; display stats based on SP Service Time<\/p>\n<p>s_c_dirty\u00a0\u00a0\u00a0\u00a0 &#8211; display stats based on SP Cache Dirty Pages (%)<\/p>\n<p>s_c_flush\u00a0\u00a0\u00a0 \u00a0&#8211; display stats based on SP Cache Flush Ratio<\/p>\n<p>s_c_flush_mb\u00a0 &#8211; display stats based on SP Cache MBs Flushed (MB\/s)<\/p>\n<p>s_c_hw_flush\u00a0 &#8211; display stats based on SP Cache High Water Flush On<\/p>\n<p>s_c_i_flush\u00a0\u00a0 &#8211; display stats based on SP Cache Idle Flush On<\/p>\n<p>s_c_lw_flush\u00a0 &#8211; display stats based on SP Cache Low Water Flush Off<\/p>\n<p>s_wc_flush\u00a0\u00a0\u00a0 &#8211; display stats based on SP Write Cache Flushes\/s<\/p>\n<p>s_fc_dirty\u00a0\u00a0\u00a0 &#8211; display stats based on FAST Cache Dirty Pages (%)<\/p>\n<p>s_fc_flush_mb &#8211; display stats based on FAST Cache MBs Flushed (MB\/s)<\/p>\n<p>&nbsp;<\/p>\n<p>Running the script without any &#8211;nar_file options will result in the script prompting the user to supply NAR file(s)<\/p>\n<p>&#8211;attrib &lt;attribute&gt;<\/p>\n<p>Allows you to select which attributes you want to display on the heatmap.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>My friend Mat has developed a pretty cool script that can make pretty pictures out of Analyzer files from CLARiiON and VNX arrays. He&#8217;s decided to release it to the world, so you can download it here. I&#8217;ve also added the following instructions to a pdf document available here. Here&#8217;s a sample output file from [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[125,60,5,408],"tags":[24,200,228,21,32,158,40,787,807],"class_list":["post-1010","post","type-post","status-publish","format-standard","hentry","category-clariion-emc-storage-storage","category-emc-storage","category-storage","category-vnx","tag-clariion","tag-cx4-960","tag-cx700","tag-emc","tag-iops","tag-naviseccli","tag-san","tag-storage","tag-vnx"],"_links":{"self":[{"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/posts\/1010","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/comments?post=1010"}],"version-history":[{"count":8,"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/posts\/1010\/revisions"}],"predecessor-version":[{"id":1016,"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/posts\/1010\/revisions\/1016"}],"wp:attachment":[{"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/media?parent=1010"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/categories?post=1010"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/tags?post=1010"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}