## Viewing Inventory Information for Switches

1. From the menu bar, choose Inventory > Switches.

You see the Switches window displaying a list of all the switches for a selected Scope.

2. You can also view the following information.

• In the Name column, select a switch to display the Switch Dashboard. For more information about switch dashboard, see the Network section.

• Use the drop-down to view All, Warning or Unmanaged switches.

3. In the Health column, the switch health is calculated by the capacity manager based on the following formula in the server.properties file.

The function to implement is

# calculate(x, x1, y, y1, z)

# @param x : Total number of modules

# @param x1: Total number of modules in warning

# @param y: Total number of switch ports

# @param y1: Total number of switch ports in warning

# @param z: Total number of events with severity of warning or above

4. The value in the Health column is calculated based on the following default equation.

((x-x1)*1.0/x) *0.4 + ((y-y1)*1.0/y)*0.3 + ((z*1.0/1000>=1) ? 0: ((1000-z)*1.0/1000)*0.3).

In the above formula, the switch health value is calculated based on the following:

• Percentage of Warning Modules (Contributes 40% of the total health).

• Percentage of Warning Ports (Contributes 30% of the total health)

• 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).

You may also have your own health calculation formula by implementing the common interface class:com.cisco.dcbu.sm.common.rif.HealthCalculatorRif. Add the.jar file to the DCNM server and modify the health.calculator property to point to the class name you have created.

The default Java class is defined as:health.calculator=com.cisco.dcbu.sm.common.util.HealthCalculator.

• 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.

• If the switch is unlicensed, in the DCNM License column click Unlicensed. The Admin>License window appears which allows you to assign a license to the user.

• 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