How do I copy the interface traffic Inbound traffic TOP N report in UR and change it to use the new CDM Inbound traffic QOS?

Document ID : KB000044489
Last Modified Date : 14/02/2018
Show Technical Document Details

Problem:

How do I copy the interface traffic Inbound traffic TOP N report in UR and change it to use the new CDM Inbound traffic QOS?
 
 

Solution:

 Below are the steps to copy the report and make the necessary changes.
 
NOTE: This assumes that Ireport client is already installed and configured correctly.
 

n

1) create a new folder in I report client called test.
2) find the interface traffic report inbound in the following location
/public/NimsoftMonitor/network/Interfaces by Bandwidth Inbound
3) Rick click and copy
4) paste into the new test folder created above

5) Right click ad choose properties and change the name of the report and hit ok.

6) expand the base report folder so that you can see the main jrxml file
7) rich click on the main jrxml and choose open in editor.
8) click on the xml tab
 
9) find the following section and make the below changes:
from:
<parameter name="qos" class="java.lang.String" isForPrompting="false">
        <defaultValueExpression><![CDATA["QOS_INTERFACE_TRAFFIC_PERC"]]></defaultValueExpression>
    </parameter>
to:
<parameter name="qos" class="java.lang.String" isForPrompting="false">
        <defaultValueExpression><![CDATA["QOS_NETWORK_INBOUND_TRAFFIC"]]></defaultValueExpression>
    </parameter>
 
10) find the following section and make the below changes:
from:
    <queryString language="NimsoftJSONTopN">
        <![CDATA[{"topNReportDefinition":{
      "numberOfBars":$P{topNInput},
      "statistics":["avg", "max", "min"],
      "qos":$P{qos},
      "target":$P{target},        ( This is being removed)
      "period":$P{periodLength},
      "periodUnits":$P{periodInput},
      "groupFirstBy":"source"
    }
 }]]>
    </queryString>
To:
       <queryString language="NimsoftJSONTopN">
        <![CDATA[{"topNReportDefinition":{
      "numberOfBars":$P{topNInput},
      "statistics":["avg", "max", "min"],
      "qos":$P{qos},
      "period":$P{periodLength},
      "periodUnits":$P{periodInput},
      "groupFirstBy":"source"
       }
       }]]>
       </queryString>
11) Choose Designer tab
12) click on the compile button
13) right click on the main jrxml and do replace with current document to save back to the database.