<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Custom Report / XML &amp; MySQL in ExtremeCloud IQ- Site Engine Management Center</title>
    <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/custom-report-xml-mysql/m-p/19010#M821</link>
    <description>In the process of creating a custom report that aggregates multiple reports into one, namely the ability to produce the results of the average availability of all switches over a custom period of time.&lt;BR /&gt;
&lt;BR /&gt;
Have managed to formulate the MySQL query below:&lt;BR /&gt;
SELECT rpt_target.objectIDName AS Switch_IP, from_unixtime(rpt_default_day.time_stamp / 1000) AS 'Date', rpt_default_day.average  &lt;BR /&gt;
FROM  rpt_default_day &lt;BR /&gt;
INNER JOIN rpt_target on rpt_target.targetID=rpt_default_day.targetID&lt;BR /&gt;
AND statisticID = 11 &lt;BR /&gt;
AND time_stamp &amp;gt;= 1491174000000 &lt;BR /&gt;
AND time_stamp &amp;lt;= 1493766000000&lt;BR /&gt;
ORDER BY average ASC  LIMIT 1000This does the job, and all I need to do is change the dates to get the schedule I want. But what I would like to be able to do is create a 'MyReport', similar to the one shown in this post:&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="https://community.extremenetworks.com/extreme/topics/oneview-top-interfaces-reports" target="_blank" rel="nofollow noreferrer noopener"&gt;https://community.extremenetworks.com/extreme/topics/oneview-top-interfaces-reports&lt;/A&gt; &lt;BR /&gt;
&lt;BR /&gt;
The problem is I don't understand how the XML code is formatted, and wondered if anyone could help or point me in the right direction?&lt;BR /&gt;
&lt;BR /&gt;
Many thanks in advance</description>
    <pubDate>Wed, 03 May 2017 18:38:00 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-05-03T18:38:00Z</dc:date>
    <item>
      <title>Custom Report / XML &amp; MySQL</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/custom-report-xml-mysql/m-p/19010#M821</link>
      <description>In the process of creating a custom report that aggregates multiple reports into one, namely the ability to produce the results of the average availability of all switches over a custom period of time.&lt;BR /&gt;
&lt;BR /&gt;
Have managed to formulate the MySQL query below:&lt;BR /&gt;
SELECT rpt_target.objectIDName AS Switch_IP, from_unixtime(rpt_default_day.time_stamp / 1000) AS 'Date', rpt_default_day.average  &lt;BR /&gt;
FROM  rpt_default_day &lt;BR /&gt;
INNER JOIN rpt_target on rpt_target.targetID=rpt_default_day.targetID&lt;BR /&gt;
AND statisticID = 11 &lt;BR /&gt;
AND time_stamp &amp;gt;= 1491174000000 &lt;BR /&gt;
AND time_stamp &amp;lt;= 1493766000000&lt;BR /&gt;
ORDER BY average ASC  LIMIT 1000This does the job, and all I need to do is change the dates to get the schedule I want. But what I would like to be able to do is create a 'MyReport', similar to the one shown in this post:&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="https://community.extremenetworks.com/extreme/topics/oneview-top-interfaces-reports" target="_blank" rel="nofollow noreferrer noopener"&gt;https://community.extremenetworks.com/extreme/topics/oneview-top-interfaces-reports&lt;/A&gt; &lt;BR /&gt;
&lt;BR /&gt;
The problem is I don't understand how the XML code is formatted, and wondered if anyone could help or point me in the right direction?&lt;BR /&gt;
&lt;BR /&gt;
Many thanks in advance</description>
      <pubDate>Wed, 03 May 2017 18:38:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/custom-report-xml-mysql/m-p/19010#M821</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-03T18:38:00Z</dc:date>
    </item>
    <item>
      <title>RE: Custom Report / XML &amp; MySQL</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/custom-report-xml-mysql/m-p/19011#M822</link>
      <description>Hello Martin,&lt;BR /&gt;
&lt;BR /&gt;
in my opinion, the easiest way to start is to look at existing reports. &lt;BR /&gt;
The reports are stored in &lt;I&gt;"/usr/local/Extreme_Networks/NetSight/appdata/OneView/Reports"&lt;/I&gt;. &lt;BR /&gt;
&lt;BR /&gt;
For example the report "&lt;I&gt;IdentityAndAccessOverviewDailyReport.xml"&lt;/I&gt; contains an SQL query. Search in the report for&lt;I&gt; "&lt;QUERY&gt;"&lt;/QUERY&gt;&lt;/I&gt;. The SQL query starts there.&lt;BR /&gt;
&lt;BR /&gt;
Your own reports need to be stored in the directory &lt;I&gt;"/usr/local/Extreme_Networks/NetSight/appdata/OneView/MyReports"&lt;/I&gt;.&lt;BR /&gt;
&lt;BR /&gt;
Create a own report via the web gui to see what happens in this folder to adapt this for your hand made report.&lt;BR /&gt;
&lt;BR /&gt;
Hop this helps for your next step.&lt;BR /&gt;
&lt;BR /&gt;
Regards&lt;BR /&gt;
Stephan</description>
      <pubDate>Thu, 04 May 2017 01:51:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/custom-report-xml-mysql/m-p/19011#M822</guid>
      <dc:creator>StephanH</dc:creator>
      <dc:date>2017-05-04T01:51:00Z</dc:date>
    </item>
    <item>
      <title>RE: Custom Report / XML &amp; MySQL</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/custom-report-xml-mysql/m-p/19012#M823</link>
      <description>Hi Stephan,&lt;BR /&gt;
&lt;BR /&gt;
Thanks for the info. Managed to create the XML, which is great, but there is a couple of things extra I would like to do.&lt;BR /&gt;
&lt;BR /&gt;
First would be to add an icon that allows me to download it as an Excel, and the other is be able to dynamically add a date range in rather than use what's fixed in the query?&lt;BR /&gt;
&lt;BR /&gt;
Any ideas how to do that?&lt;BR /&gt;
&lt;BR /&gt;
As one example there is a report under Device -&amp;gt; Port Usage. If you load that you get a Excel icon in the top right corner. I couldn't find that report, but if I could, I could probably work it out?&lt;BR /&gt;
&lt;BR /&gt;
There is also examples of where you can dynamically add a date range, like Devices -&amp;gt; Device Availability Summary, which I found but can't workout how to make use of utilising the same code?&lt;BR /&gt;
&lt;BR /&gt;
Many thanks,&lt;BR /&gt;
&lt;BR /&gt;
Martin&lt;BR /&gt;</description>
      <pubDate>Thu, 04 May 2017 12:57:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/custom-report-xml-mysql/m-p/19012#M823</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-04T12:57:00Z</dc:date>
    </item>
    <item>
      <title>RE: Custom Report / XML &amp; MySQL</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/custom-report-xml-mysql/m-p/19013#M824</link>
      <description>With a bit of support, I got the answer:&lt;BR /&gt;
&lt;BR /&gt;
To create a table that is searchable, filterable and allows CSV exporting: &lt;BR /&gt;
 &lt;BR /&gt;
&lt;GRID&gt;&lt;BR /&gt;
    &lt;TOOLBAR&gt;&lt;BR /&gt;
        &lt;I&gt;&lt;FILL&gt;&lt;/FILL&gt;&lt;/I&gt;&lt;/TOOLBAR&gt;&lt;BR /&gt;
    &lt;/GRID&gt;&lt;BR /&gt;
    &lt;TITLE&gt;Test Report&lt;/TITLE&gt;&lt;BR /&gt;
    &lt;CSV&gt;true&lt;/CSV&gt;&lt;BR /&gt;
    &lt;LOCALFILTERING&gt;true&lt;/LOCALFILTERING&gt;&lt;BR /&gt;
    &lt;SEARCHABLE&gt;true&lt;/SEARCHABLE&gt;&lt;BR /&gt;
    &lt;SEARCHTIP&gt;Help for what fields are searchable&lt;/SEARCHTIP&gt;&lt;BR /&gt;
    &lt;COLUMNS&gt;&lt;BR /&gt;
 &lt;BR /&gt;
To get multiple forms within one report you could use tabs for example.:&lt;BR /&gt;
 &lt;BR /&gt;
&lt;BR /&gt;
        none&lt;/COLUMNS&gt;&lt;BR /&gt;
            &lt;I&gt;&lt;BR /&gt;
                &lt;FILL&gt;&lt;/FILL&gt;&lt;BR /&gt;
                &lt;B&gt;&lt;BR /&gt;
                    &lt;TYPE&gt;pdf&lt;/TYPE&gt;&lt;BR /&gt;
                &lt;BR /&gt;
            &lt;BR /&gt;
         --&amp;gt;&lt;BR /&gt;
        &lt;I&gt;&lt;BR /&gt;
            &lt;TABPANEL&gt;&lt;BR /&gt;
                &lt;TAB&gt; &lt;!-- Tab: Overview --&gt;&lt;BR /&gt;
                    &lt;TABTITLE&gt;Overview&lt;/TABTITLE&gt;&lt;BR /&gt;
                      &lt;!-- Overview --&gt;&lt;BR /&gt;
                        &lt;LAYOUT&gt;vbox&lt;/LAYOUT&gt;&lt;BR /&gt;
                        &lt;I&gt;&lt;BR /&gt;
                            &lt;BR /&gt;
                                &lt;LAYOUT&gt;hbox&lt;/LAYOUT&gt;&lt;BR /&gt;
                                &lt;I&gt;&lt;BR /&gt;
                                     &lt;!-- Table with count by server type and hypervisor technology --&gt;&lt;BR /&gt;
&lt;BR /&gt;
Look at this report to get an idea:&lt;BR /&gt;
/usr/local/Extreme_Networks/NetSight/appdata/OneView/Reports/DataCenterManagerAllHypervisors_IA.xml&lt;BR /&gt;
 &lt;BR /&gt;
To display a date-time picker you can use this:&lt;BR /&gt;
&lt;BR /&gt;
&lt;TAB&gt; &lt;!-- Level 1 Tab: All Calls --&gt;&lt;BR /&gt;
                                  &lt;TABTITLE&gt;All Calls&lt;/TABTITLE&gt;&lt;BR /&gt;
                                  &lt;BR /&gt;
                                        &lt;TITLE&gt;All Calls&lt;/TITLE&gt;&lt;BR /&gt;
                                        &lt;SHOWTITLE&gt;false&lt;/SHOWTITLE&gt;&lt;BR /&gt;
                                        &lt;LAYOUT&gt;fit&lt;/LAYOUT&gt;&lt;BR /&gt;
                                        &lt;TOOLBAR&gt;&lt;BR /&gt;
                                               &lt;I&gt;&lt;BR /&gt;
                                                      &lt;TIMERANGE&gt;&lt;BR /&gt;
                                                             &lt;STARTLABEL&gt;Start:&lt;/STARTLABEL&gt;&lt;BR /&gt;
                                                             &lt;ENDLABEL&gt;End:&lt;/ENDLABEL&gt;&lt;BR /&gt;
                                                             &lt;STARTDATE&gt;&lt;BR /&gt;
                                                                   &lt;NAME&gt;startDate&lt;/NAME&gt;&lt;BR /&gt;
                                                                   &lt;I&gt;startDate&lt;/I&gt;&lt;/STARTDATE&gt;&lt;BR /&gt;
                                                                   &lt;I&gt;1&lt;/I&gt;&lt;/TIMERANGE&gt;&lt;BR /&gt;
                                                                    &lt;TIMEINCREMENT&gt;60&lt;/TIMEINCREMENT&gt;&lt;BR /&gt;
                                                             &lt;/I&gt;&lt;/TOOLBAR&gt;&lt;BR /&gt;
                                                             &lt;ENDDATE&gt;&lt;BR /&gt;
                                                                   &lt;NAME&gt;endDate&lt;/NAME&gt;&lt;BR /&gt;
                                                                   &lt;I&gt;endDate&lt;/I&gt;&lt;/ENDDATE&gt;&lt;BR /&gt;
                                                                   &lt;I&gt;1&lt;/I&gt;&lt;/TAB&gt;&lt;BR /&gt;
                                                                    &lt;TIMEINCREMENT&gt;60&lt;/TIMEINCREMENT&gt;&lt;BR /&gt;
                                                             &lt;/I&gt;&lt;/I&gt;&lt;/TAB&gt;&lt;BR /&gt;
                                                      &lt;/TABPANEL&gt;&lt;BR /&gt;
                                                      &lt;FILL&gt;&lt;/FILL&gt;&lt;BR /&gt;
                                                      &lt;B&gt;&lt;BR /&gt;
                                                             &lt;TYPE&gt;refresh&lt;/TYPE&gt;&lt;BR /&gt;
                                                      &lt;BR /&gt;
                                               &lt;BR /&gt;
                                                                                                                                         &lt;BR /&gt;
                                        &lt;I&gt;&lt;BR /&gt;
 &lt;BR /&gt;
&lt;BR /&gt;&lt;/I&gt;&lt;/B&gt;&lt;/I&gt;&lt;/B&gt;&lt;/I&gt;</description>
      <pubDate>Thu, 04 May 2017 19:21:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/custom-report-xml-mysql/m-p/19013#M824</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-04T19:21:00Z</dc:date>
    </item>
  </channel>
</rss>

