You are on page 1of 3

Based on Counter (32/64)

D_Rx Oct*8/900

| 31252862984426932 | Inbound Utilization - old |


if(ifHighSpeed>100)then((D_ifHCInOctets*8*100)/(1000*1000*object_collection_interva
l*ifHighSpeed))
else((D_ifInOctets*8*100)/(object_collection_interval*ifSpeed))

| 31425215871570961 | Inbound Utilization - old |


if(ifHighSpeed>100)then((D_ifHCInOctets*8*100)/(1000*1000*object_collection_interva
l*ifHighSpeed))else
((D_ifInOctets*8*100)/(object_collection_interval*ifSpeed))

mysql> select * from mib_table where counter_name='ifHighSpeed'


-> ;
+--------------+----------------------+-----------------+----------
+-------------------------+------------+----------------+
| counter_name | mib_parent_oid | mib_parent_name | oid_type | mib_child_oid
| table_name | mib_table_name |
+--------------+----------------------+-----------------+----------
+-------------------------+------------+----------------+
| ifHighSpeed | 1.3.6.1.2.1.31.1.1 | IF-MIB.txt.txt | Tablaur |
1.3.6.1.2.1.31.1.1.1.15 | IF-MIB | ifXTable |
| ifHighSpeed | 1.3.6.1.2.1.31.1.1.1 | IF-MIB.txt.txt | Tablaur |
1.3.6.1.2.1.31.1.1.1.15 | IF-MIB | IF-MIB |
+--------------+----------------------+-----------------+----------
+-------------------------+------------+----------------+
2 rows in set (0.00 sec)

mysql> ^C

mysql> select * from mib_table where counter_name='ifSpeed';


+--------------+-------------------+-----------------+----------
+---------------------+-------------+----------------+
| counter_name | mib_parent_oid | mib_parent_name | oid_type | mib_child_oid
| table_name | mib_table_name |
+--------------+-------------------+-----------------+----------
+---------------------+-------------+----------------+
| ifSpeed | 1.3.6.1.2.1.2.2 | RFC1213-MIB.txt | Tablaur |
1.3.6.1.2.1.2.2.1.5 | RFC1213-MIB | ifTable |
| ifSpeed | 1.3.6.1.2.1.2.2.1 | RFC1213-MIB.txt | Tablaur |
1.3.6.1.2.1.2.2.1.5 | RFC1213-MIB | RFC1213-MIB |
+--------------+-------------------+-----------------+----------
+---------------------+-------------+----------------+
2 rows in set (0.01 sec)

mysql>
mysql> select kpi_id,kpi_name,kpi_status,vendor_id,display_formula from
kpi_information where display_formula like '%IfHCOutOctets%' and display_formula
like '%ifHighSpeed%' and display_formula like '%ifSpeed%';
+-------------------+---------------------------+------------+-----------
+----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------
-------------------------------------------------------------------+
| kpi_id | kpi_name | kpi_status | vendor_id |
display_formula
|
+-------------------+---------------------------+------------+-----------
+----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------
-------------------------------------------------------------------+
| 31257727361598946 | Outbound Utilization | 1 | 2 |
if(ifHighSpeed>100)then((D_ifHCOutOctets*8*100)/(1000*1000*object_collection_interv
al*ifHighSpeed))else((D_ifOutOctets*8*100)/(object_collection_interval*ifSpeed))
|
| 31262286406618714 | Total Utilization | 0 | 2 |
if(ifHighSpeed>100)then(max(((D_ifHCInOctets*8*100)/(1000*1000*object_collection_in
terval*ifHighSpeed)),((D_ifHCOutOctets*8*100)/
(1000*1000*object_collection_interval*ifHighSpeed))))else(max(((D_ifInOctets*8*100)
/(object_collection_interval*ifSpeed)),((D_ifOutOctets*8*100)/
(object_collection_interval*ifSpeed)))) |
| 31348262572060661 | Total Utilization test | 0 | 2 |
if(ifHighSpeed>100)then(max(((D_ifHCInOctets*8*100)/(1000*1000*object_collection_in
terval*ifHighSpeed))),(D_ifHCOutOctets*8*100)/
(1000*1000*object_collection_interval*ifHighSpeed))else(max((D_ifInOctets*8*100)/
(object_collection_interval*ifSpeed)),((D_ifOutOctets*8*100)/
(object_collection_interval*ifSpeed)))) |
| 31686238920030469 | Outbound Utilization | 0 | 5 |
if(ifHighSpeed>100)then((D_ifHCOutOctets*8*100)/(1000*1000*object_collection_interv
al*ifHighSpeed))else((D_ifOutOctets*8*100)/(object_collection_interval*ifSpeed))
|
| 31689933786806654 | Total Utilization | 0 | 5 |
if(ifHighSpeed>100)then(max(((D_ifHCInOctets*8*100)/(1000*1000*object_collection_in
terval*ifHighSpeed)),((D_ifHCOutOctets*8*100)/
(1000*1000*object_collection_interval*ifHighSpeed))))else(max(((D_ifInOctets*8*100)
/(object_collection_interval*ifSpeed)),((D_ifOutOctets*8*100)/
(object_collection_interval*ifSpeed)))) |
+-------------------+---------------------------+------------+-----------
+----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------
-------------------------------------------------------------------+
5 rows in set (0.00 sec)

mysql> select display_formula from kpi_information where display_formula like


'%IfHCOutOctets%' limit 1;

if(ifConnectorPresent==1&&ifHighSpeed>100)then((D_ifHCInOctets*8*100)/
(1000*1000*object_collection_interval*ifHighSpeed))

elseif(ifConnectorPresent==1)then

((D_ifInOctets*8*100)/(object_collection_interval*ifSpeed))

IF-MIB::ifConnectorPresent.542 = INTEGER: false(2)


IF-MIB::ifConnectorPresent.554 = INTEGER: true(1)
IF-MIB::ifConnectorPresent.555 = INTEGER: true(1)
IF-MIB::ifConnectorPresent.557 = INTEGER: true(1)
IF-MIB::ifConnectorPresent.558 = INTEGER: true(1)
IF-MIB::ifConnectorPresent.559 = INTEGER: true(1)
IF-MIB::ifConnectorPresent.560 = INTEGER: true(1)
IF-MIB::ifConnectorPresent.561 = INTEGER: true(1)
IF-MIB::ifConnectorPresent.562 = INTEGER: true(1)
IF-MIB::ifConnectorPresent.563 = INTEGER: true(1)
IF-MIB::ifConnectorPresent.565 = INTEGER: true(1)
IF-MIB::ifConnectorPresent.577 = INTEGER: false(2)
IF-MIB::ifConnectorPresent.579 = INTEGER: false(2)
IF-MIB::ifConnectorPresent.580 = INTEGER: false(2)
IF-MIB::ifConnectorPresent.581 = INTEGER: false(2)

IF-MIB::ifHighSpeed.542 = Gauge32: 0
IF-MIB::ifHighSpeed.554 = Gauge32: 1000
IF-MIB::ifHighSpeed.555 = Gauge32: 1000
IF-MIB::ifHighSpeed.557 = Gauge32: 1000
IF-MIB::ifHighSpeed.558 = Gauge32: 1000
IF-MIB::ifHighSpeed.559 = Gauge32: 1000
IF-MIB::ifHighSpeed.560 = Gauge32: 1000
IF-MIB::ifHighSpeed.561 = Gauge32: 1000
IF-MIB::ifHighSpeed.562 = Gauge32: 1000
IF-MIB::ifHighSpeed.563 = Gauge32: 1000
^C
[root@CBTCNBIGDC1 ~]#

IF-MIB::ifHCInOctets.541 = Counter64: 2007033698854461


IF-MIB::ifHCInOctets.542 = Counter64: 0
IF-MIB::ifHCInOctets.554 = Counter64: 0
IF-MIB::ifHCInOctets.555 = Counter64: 0
IF-MIB::ifHCInOctets.557 = Counter64: 0
IF-MIB::ifHCInOctets.558 = Counter64: 0

You might also like