In order to facilitate an easy method to extract data from Device42 and provide insightful visuals and metrics Device42 makes available a pre-built Power BI Dashboard file that contains visualizations and reports for multiple use cases that include transformation, security, inventory, and others.
In order to use the dashboard the following must be available.
- Ability to connect to the Device42 Main Appliance (HTTPS port 443)
- Access to a Device42 User with “Super User” enabled (Allows access to DOQL for all data)
- Device42 Main Appliance must be on version 17 or greater
- The Power BI Desktop Client installed
- Device42 ODBC Driver installed with a User DSN configured
This file will use data and tables supporting multiple use cases of Device42 which may mean not all installations will have this data in use or the required modules available.
The Power BI file will still be entirely functional though visualizations that do not have qualifying data will be blank.
For all visualizations and functions to be available make sure to configure or enable the following in Device42.
-
Enable Global Cloud Recommendation Engine Settings, this can be performed by navigating to Tools > Settings > Global Settings. Then Edit the Global Settings and Scroll to the bottom to find Global Cloud Recommendation Settings. At a minimum this must be enabled for AWS, but you can enable it for all CSP’s. It is also recommended to use the 95th Percentile as the RU Recommendation Metric. All other options and regions can be set by preference.
-
Many of the visuals and functions will also use **Device Tags **and Business Applications as slicers, it is possible to modify the dashboards to use other values, but it is recommended to apply relevant business tags or create Business Applications with your devices.
The Device42 Modules Currently Used:
- Software License Management
- Application Dependency Mapping
- Resource utilization
- Storage Discovery
Though the above are not required, more functionality will be available with them.
In order to connect Power BI to Device42 we will be using ODBC. The Device42 ODBC driver will be required to allow this ability.
Download the Device42 ODBC Driver here.
Run the ODBC Driver install after it has been downloaded, steps to install found here.
-
To create / pre-define a DSN (Data Source Name), open the Windows ODBC Data Source Administrator via the Windows Start Menu.
Windows 10: click Start -> Windows Administrative Tools -> ODBC Data Sources (64-bit); [note there is also a 32-bit version, which you can ignore].
Windows 7: Click Start -> All Programs -> Administrative Tools -> Data Sources (ODBC): \ -
Click the Add button to begin adding a new datasource. In the “Create New Data Source” window that is displayed, choose the “Device42 ODBC Driver” and click “Finish”: \
-
On the “Device42 ODBC Driver DSN Configuration” screen that is displayed, enter values as explained below: \
- DSN Name: The name to identify this DSN.
- Server Host: The host name of the Device42 server.
- Port: The port number that the Device42 server is servicing requests on. The default value is the standard SSL port of 443. If you leave this field blank, it will also default to 443.
- Username: The username you use to login to Device42.
- Password: The password you use to login to Device42.
-
Click the “Test” button to try connecting using the information you specified. You will receive a message if the connection could or could not be made. If the connection could not be made, verify that the information you entered is correct.
-
Click the “Save” button to save the changes you made to the DSN. Your changes will only be saved if the information entered results in a successful connection. If the connection could not be made, verify that the information you entered is correct.
Setup of the Device42 ODBC DSN is complete. You should now be able to utilize the pre-configured DSN throughout PowerBI.
Now that the prerequisites have been performed. The Power BI file can be downloaded and loaded for use.
- Download the Power BI .pbix file
- Open the file Device42_Data_Insights.pbix
- This file will open pre-loaded with data from a demo environment of Device42
- In order to load your Device42 data update the Data Source Settings by performing the following
- In the right side pane for Fields right click any table and** **select Edit query
- This will then open the** Power BI Query Editor**, click on Data Source Settings from the Home menu
- Select the currently listed DSN, then click Change Source, and select the **_Data Source name (DSN) _**drop down to the DSN configured in the previous steps above. Once done, click Ok, then click Close
- Finally, click on Close & Apply in the Home menu
- Power BI will then start to refresh and load the data into the dashboard. For all prompts to follow click “Run” or “Ok”
- There will be multiple prompts about running a Native Database Query this is normal and Run can be performed
- After some time the data and connection model will be updated with your data and all visualizations will reflect your Device42 data.