<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<!-- saved from url=(0014)about:internet -->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta http-equiv="Content-Style-Type" content="text/css" />
    <meta name="GENERATOR" content="Quadralay WebWorks AutoMap 2003 Platinum Edition Client for FrameMaker 8.6.6597.0" />
    <meta name="TEMPLATEBASE" content="emwebh8-1-17" />
    <meta name="LASTUPDATED" content="08/01/13 14:48:24" />
    <title>Generating Top10 Reports Using Scripts </title>
    <!-- Copyright 2010-2013, Cisco Systems, Inc. All rights reserved. -->

    <link rel="StyleSheet" href="document.css" type="text/css" />
    <link rel="StyleSheet" href="catalog.css" type="text/css" />


<script> 
    var is_chrome = navigator.userAgent.toLowerCase().indexOf('chrome') > -1; 
   
    if(is_chrome){document.domain=document.domain}
   </script>
    <script type="text/javascript" language="JavaScript1.2" src="expand.js"></script>
    <script type="text/javascript" language="JavaScript1.2" src="page.js"></script>

    <script type="text/javascript" language="JavaScript1.2">
     <!--
      function  WWNoOp() {}
      function  WWNoValue() { return ""; }

      var  VarDropDown;

      if (typeof(HTMLHelp_Object) != "undefined")
      {
        VarDropDown = new WWDropDown_Object();
      }
      else
      {
        VarDropDown = new Object();
        VarDropDown.fAnchorOpen  = WWNoOp;
        VarDropDown.fAnchorClose = WWNoOp;
        VarDropDown.fDIVOpen  = WWNoOp;
        VarDropDown.fDIVClose = WWNoOp;
      }
     // -->
    </script>

  
<SCRIPT language="javascript">
<!--
  self.document.write("<link href='"+top.relPath+"shared/style.css' rel='stylesheet' type='text/css'>");
  myid=2272;
  self.document.write("<script type='text/javascript' language='JavaScript' src='"+top.relPath+"shared/con_utils.js'></scr"+"ipt>");
//-->
</SCRIPT>
</head>

  <body onload="highlightSearchTerms();" bgcolor="#ffffff">

    
    <blockquote>
    <a name="top"></a>

    
    


<a name="wp1287753"> </a><h1 class="pTitle">
Generating Top10 Reports Using Scripts

</h1>
<a name="wp1287754"> </a><p class="pBody">
You can generate Top10 reports manually by issuing the following commands:

</p>
<div class="pSmartList1"><ul class="pSmartList1">
<a name="wp1287755"> </a><li class="pSmartList1">On UNIX, run the script:
</li>
<div class="pPreformattedRelative"><pre class="pPreformattedRelative">
“/&lt;user_directory&gt;/.cisco_mds9000/bin/pm.sh display pm/pm.xml &lt;output_directory&gt;”<a name="wp1287756"> </a>
<a name="wp1287757"> </a>
</pre></div>
<a name="wp1287758"> </a><li class="pSmartList1">On Windows, run the script:
</li>
<div class="pPreformattedRelative"><pre class="pPreformattedRelative">
“c:\Program Files\Cisco Systems\MDS 9000\bin\pm.bat display pm\pm.xml 
&lt;output_directory&gt;”<a name="wp1287759"> </a>
<a name="wp1287760"> </a>
</pre></div>
</ul></div>
<a name="wp1287761"> </a><p class="pBody">
On UNIX, you can automate the generation of the Top10 reports on your DCNM-SANDCNM-SAN 
Server host by adding the following cron entry to generate the reports once an hour:

</p>
<div class="pPreformattedRelative"><pre class="pPreformattedRelative">
0 * * * * /&lt;user_directory&gt;/.cisco_mds9000/bin/pm.sh display pm/pm.xml &lt;output_directory&gt;<a name="wp1287762"> </a>
<a name="wp1287763"> </a>
</pre></div>
<a name="wp1287764"> </a><p class="pBody">
If your crontab does not run automatically or Java complains about an exception similar to <a href="perfmon21.html#wp1287769">Example&#160;6-1</a>, 
you need to add “-Djava.awt.headless=true” to the JVMARGS command in 
/&lt;user_directory&gt;/.cisco_mds9000/bin/pm.sh.

</p>
<a name="wp1287769"> </a><p class="pFigureCaption">
Example&#160;6-1	Example Java Exception

</p>
<div class="pPreformattedRelative"><pre class="pPreformattedRelative">
in thread “main” java.lang.InternalError Can&#39;t connect to X11 window server using &#39;0.0&#39; as 
the value of the DISPLAY variable.<a name="wp1307330"> </a>
</pre></div>
<hr /><br><p class="pBody">Copyright 2010-2013, Cisco Systems, Inc. All rights reserved.</p> 

    </blockquote>

  </body>
</html>
