...
Now, run the below queries in order to obtain the (%) values. The results need to be inserted in the "report_utilization" table for the specific month and year:
"
select a.service_type, a.base_type, a.base_absid, a.utilization_in/1000000 as 'utili in Mbps',b.speed as 'Speed in Mbps', year,a.month, round(utilization_in / (b.speed* 1000000),2) as 'avg_capacity_in',
round(utilization_out/ (b.speed* 1000000),2) as 'avg_capacity_out', round(peak_in/ (b.speed* 1000000),2) as 'Max_capacity_in',
round(peak_out/(b.speed* 1000000),2) as 'Max_capacity_out',
a.utilization_in, a.utilization_out, a.peak_in, a.peak_out, a.95th_percentile_in,
a.95th_percentile_out, a.volume_in, a.volume_out,a.assymetry
from report_utilization a
inner join opsdb_circuit b on (b.circuit_absid = a.base_absid)
where a.year = 2018
and a.month = 8 12
and a.service_type = 'LMD'
and b.status = 'Operational'
AND and b.new_service_type = 'geant lambda'
and (a.base_absid = 24091 or a.base_absid = 24241 or a.base_absid = 24147 or a.base_absid = 22211 or a.base_absid = 24167 or a.base_absid = 41759 or a.base_absid = 42367
or a.base_absid = 27069 or a.base_absid = 36741 or a.base_absid = 28565 or a.base_absid = 19095 or a.base_absid = 37917 or a.base_absid = 24193 or a.base_absid = 23603
or a.base_absid = 23661 or a.base_absid = 43729 or a.base_absid = 34043 or a.base_absid = 34041 or a.base_absid = 5765 5765 or a.base_absid = 40143 or a.base_absid = 40435) order by base_absid;"
Export the results to a CSV (from workbench export record set to an external file)
The 4 columns returned above (avg_capacity_in/out, max_capacity_in/out) need to be inserted manually into report_utilization table (very carefully). Make sure to match the absid , year and month.
...