I am trying to write a Monthly 95th Percentile Utilisation report for each WAN interface on my network. Is this possible within Orion Report Writer? Or do I have to run a custom report on each node each month?
Andy,
This is great but you may want to get that lunch back from your SQL Guru (or a least a replacement). This particular format will leave out the last day of data from last quarter as it produces a timestamp of midnight on the last day of the quarter. That means that all of the data between from 00:01 to 23:59 on that last day would get left out. To pick up that last day of the quarter you would need to use:
SET @StartDate = DATEADD(qq,DATEDIFF(qq,0,GETDATE())-1,0)
SET @EndDate = DATEADD(qq,DATEDIFF(qq,-1,GETDATE())-1,0)
Of course if you have already summarized your data to daily averages it won't matter. I know it's picky but that last day could be a deal maker/breaker.
Just for reference for the other folks out there, you can change all references to qq above to any of the items in the table below to come up with the last "whatever" you are looking for. I've tested them all and they seem to work fine but please check yourself before you run to the boss with a shiny new report with all the wrong data! I struggled with this for a while so I hope it helps someone else.
year
yy, yyyy
quarter
qq, q
month
mm, m
dd, d
To be sure I understand, you want one report for all WAN IFs or do you want one report per IF?
Ideally I would like one report which contained all the interfaces listed in order of highest to lowest.
Follow these steps
I've followed the instructions to the letter and it works but it's not quite what I'm looking for. The report is monthly and I'm really after quarterly, but more importantly this report needs to show 95th percentile utilisation as a percentage figure - the report above shows it as BPS. Any ideas? - Thanks for the help so far.