<!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:45:47" />
    <title>Viewing Inventory Information for Switches </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=491;
  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="wp1339841"> </a><h1 class="pTitle">



Viewing Inventory Information for Switches

</h1>
<div class="pSmartList1"><ol type="1" class="pSmartList1">
<a name="wp1339842"> </a><li class="pSmartList1">From the menu bar, choose <span style="font-weight: bold">Inventory &gt; Switches</span>.
</li>
<a name="wp1339843"> </a><p class="pListBodyLevel1">
You see the Switches window displaying a list of all the switches for a selected Scope. 

</p>
<a name="wp1339844"> </a><li class="pSmartList1">You can also view the following information.
</li>
<a name="wp1339845"> </a><li class="pSmartList1">In the Name column, select a switch to display the <a href="wc032.html">Switch Dashboard</a>. For more information about 
switch dashboard, see the <a href="wc031.html">Network</a> section.
</li>
<a name="wp1339846"> </a><li class="pSmartList1">Use the drop-down to view <span style="font-weight: bold">All, Warning</span> or <span style="font-weight: bold">Unmanaged</span> switches.
</li>
<a name="wp1349766"> </a><li class="pSmartList1">In the Health column, the switch health is calculated by the capacity manager based on the following 
formula in the <span style="font-weight: bold">server.properties</span> file. 
</li>
<a name="wp1353903"> </a><p class="pListBodyLevel1">
The function to implement is 

</p>
<a name="wp1353904"> </a><p class="pListBodyLevel1">
#                       calculate(x, x1, y, y1, z)

</p>
<a name="wp1353905"> </a><p class="pListBodyLevel1">
#                                   @param x : Total number of modules

</p>
<a name="wp1353782"> </a><p class="pListBodyLevel1">
#                                   @param x1: Total number of modules in warning

</p>
<a name="wp1353783"> </a><p class="pListBodyLevel1">
#                                   @param y: Total number of switch ports

</p>
<a name="wp1353784"> </a><p class="pListBodyLevel1">
#                                   @param y1: Total number of switch ports in warning

</p>
<a name="wp1353785"> </a><p class="pListBodyLevel1">
#                       @param z: Total number of events with severity of warning or above

</p>
<a name="wp1352995"> </a><li class="pSmartList1">The value in the Health column is calculated based on the following default equation.
</li>
<a name="wp1353005"> </a><p class="pListBodyLevel1">
<span style="font-weight: bold">((x-x1)*1.0/x) *0.4 + ((y-y1)*1.0/y)*0.3 + ((z*1.0/1000&gt;=1) ? 0: ((1000-z)*1.0/1000)*0.3</span>).

</p>
</ol></div>
<a name="wp1353013"> </a><p class="pBody">
In the above formula, the switch health value is calculated based on the following:

</p>
<div class="pSmartList1"><ul class="pSmartList1">
<div class="pSmartList2"><ul class="pSmartList2">
<a name="wp1353015"> </a><li class="pSmartList2">Percentage of Warning Modules (Contributes 40% of the total health).</li>
<a name="wp1353051"> </a><li class="pSmartList2">Percentage of Warning Ports (Contributes 30% of the total health)</li>
<a name="wp1353056"> </a><li class="pSmartList2">Percentage of events with severity of Warning or above (Contributes 30% of the total health. If there are more than 1000 warning events, the event health value is 0).</li>
</ul></div>
<a name="wp1354528"> </a><p class="pListBodyLevel1">
You may also have your own health calculation formula by implementing the common interface 
class<span style="font-weight: bold">:com.cisco.dcbu.sm.common.rif.HealthCalculatorRif</span>. Add the.jar file to the DCNM server and 
modify the <span style="font-weight: bold">health.calculator</span> property to point to the class name you have created.

</p>
<a name="wp1354529"> </a><p class="pListBodyLevel1">
The default Java class is defined 
as:<span style="font-weight: bold">health.calculator=com.cisco.dcbu.sm.common.util.HealthCalculator.
</span>
</p>
<div class="pSmartList2"><ul class="pSmartList2">
<a name="wp1354523"> </a><li class="pSmartList2">Capacity Manager calculates health only for the license switches. If the health column does not display a value, the switch either does not have a license or it has missed the capacity manager’s daily cycle.</li>
<a name="wp1352962"> </a><li class="pSmartList2">If the switch is unlicensed, in the DCNM License column click <span style="font-weight: bold">Unlicensed</span>. The <span style="font-weight: bold">Admin&gt;License</span> window appears which allows you to assign a license to the user.</li>
<a name="wp1354361"> </a><li class="pSmartList2">The capacity manager runs two hours after the DCNM server starts. So, if you discover a device after two hours of the DCNM start time, the health will be calculated 24 hours after this DCNM start time</li>
</ul></div>
</ul></div>
<hr /><br><p class="pBody">Copyright 2010-2013, Cisco Systems, Inc. All rights reserved.</p> 

    </blockquote>

  </body>
</html>
