BigIP Report Old
Problem this snippet solves:
This codeshare has been deprecated due to a hosting platform corruption. I have moved code and conversation to a new record (on the same original URL) https://devcentral.f5.com/s/articles/bigip-report
can be Overview
This is a script which will generate a report of the BigIP LTM configuration on all your load balancers making it easy to find information and get a comprehensive overview of virtual servers and pools connected to them.
This information is used to relay information to our NOC and developers to give them insight in where things are located and to be able to plan patching and deploys. I also use it myself as a quick way get information or gather data used as a foundation for RFC's, ie get a list of all external virtual servers without compression profiles.
The script has been running on 13 pairs of load balancers, indexing over 1200 virtual servers for several years now and the report is widely used across the company and by many companies and governments across the world.
It's easy to setup and use and only requires guest permissions on your devices.
Demo/Preview
Please note that it takes time to make these so sometimes they're a bit outdated and they only cover one HA pair. However, they still serve the purpose of showing what you can expect from the report.
Interactive demo
http://loadbalancing.se/bigipreportdemo/
Screen shots
The main report:
The device overview:
Certificate details:
How to use this snippet:
This codeshare has been deprecated due to a hosting platform corruption. I have moved code and conversation to a new record (on the same original URL) https://devcentral.f5.com/s/articles/bigip-report
Installation instructions
BigipReport REST
This is the only branch we're updating since middle of 2020 and it supports 12.x and upwards (maybe even 11.6).
Download: https://loadbalancing.se/downloads/bigipreport-v5.5.4.zip
Documentation, installation instructions and troubleshooting: https://loadbalancing.se/bigipreport-rest/
Docker support
This will be the recommended way of running bigipreport in the near future. It's still undergoing testing but it's looking really good so far.
https://loadbalancing.se/2021/01/05/running-bigipreport-on-docker/
BigipReport (Legacy)
Older version of the report that only runs on Windows and is depending on a Powershell plugin originally written by Joe Pruitt (F5).
BigipReport (Stable):
https://loadbalancing.se/downloads/bigipreport-5.3.1.zip
BigipReport (BETA): https://loadbalancing.se/downloads/bigipreport-5.4.0-beta.zip
iControl Snapin: https://loadbalancing.se/downloads/f5-icontrol.zip
Documentation and installation instructions:
https://loadbalancing.se/bigip-report/
Upgrade instructions
Protect the report using APM and active directory
Written by DevCentral member Shann_P:
https://loadbalancing.se/2018/04/08/protecting-bigip-report-behind-an-apm-by-shannon-poole/
Got issues/problems/feedback?
Still have issues? Drop a comment below. We usually reply quite fast. Any bugs found, issues detected or ideas contributed makes the report better for everyone, so it's always appreciated.
---
Also trying out a Discord channel now. You're welcome to hang out with us there:
Code :
85931,86647,90730
Tested this on version:
13.0
974 Comments
- TimRiker
Cirrocumulus
Sweet! Holler if I broke anything.
- Nate83_280180
Nimbostratus
Hi guys,
I am a newbie on here, and trying to get this report to display using version 5.0.9. I can successfully run the script, collect the data, but not display it. Running this in Chrome web server, the page loads, but nothing gets displayed(fig.1), however, dragging the HTML file to the web address, generates .json errors but data is displayed (fig.2)
I am probably missing something, but i cannot figure it out. Any help would be appreciated.
Thanks, Nate83
Hi Nate You're trying to load the files locally and Chrome does not support local ajax requests. Try using a web server instead and it should work.
/Patrik
- TimRiker
Cirrocumulus
Nate,
It looks like you already have IIS installed. If you have the default configuration, you should be able to hit and get the BigIPReport page.
I use Chrome with local file support enabled for development. That works except for the "update check" as there is no datestamp emulated on file requests. To do this, I create a link to Chrome on the desktop and edit the link to include the file option. ie:
"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --allow-file-access-from-filesThen close all Chrome instances and apps, and launch again from that icon.
I do not recommend the file-access option for production. File access is normally disabled in Chrome so that remote web sites can not run scripts that access local files. Using a local web server running on is the recommended way to go.
- Nate83_280180
Nimbostratus
Hi guys,
Thanks very much for responding, am now getting what looks like a loop error, see below:
![alt text] AND ![alt text] LASTLY ![alt text]
It seems as if the data is looping and then times out.
Thanks again for the help so far!
Regards, Nathan.
- TimRiker
Cirrocumulus
Nathan,
It's a feature, not a bug. :)
This is the Update Check I referred to. It does a HEAD request. It's adding a get parameter to insure that the result is not cached. It's looking at the Last-Modified to determine if it should alert the user that there is an update.
As this is a static file, the HEAD request should be trivial overhead. The comment indicates it checks every 30 minutes, but the 3000 value shows it's actually checking every 3 seconds. 3 seconds is probably shorter than it could be, but 30 minutes is probably too long.
Tim
Hi! I wonder where the middle screenshot comes from. "content.js" is not from BigIPReport v5.0.9 at least. Do you have some Chrome extension? Can you try another browser?
/Patrik
- Nate83_280180
Nimbostratus
Hey Tim & Patrik,
Along with a collegue of mine, we got it sorted! Turns out the loadbalancer data was returning a null value for some reason, but once that was resolved, hey presto! we got a report.
We're facing a similar pesky issue on the defined irules console, but what we have is AMAZING!
Thanks for this guys, it really is one awesome piece of code.
Nathan
Hey guys!
Going to Agility in Boston next week. It'd be fun to meet some of the "QA testers" in this thread and shake hands. :) Look me up on the F5 event app if you want to have a coffee or something like that.
/Patrik
- christiancruz88
Nimbostratus
i cant use report:
PS C:\inetpub\wwwroot> .\bigipreport-5.1.9.ps1 Successfully loaded the config file: C:\inetpub\wwwroot\bigipreportconfig.xml 2018-08-22 02:57:37 Configuring the console window 2018-08-22 02:57:37 Pre-execution checks 2018-08-22 02:57:37 iControl Snapin could not be found, aborting 2018-08-22 02:57:37 There were errors during the config file sanity check 2018-08-22 02:57:37 Exiting PS C:\inetpub\wwwroot>
and ps1:
PS C:\Program Files\F5 Networks\iControlSnapIn> .\setupSnapin.ps1 Registering iControlSnapin.dll on platform '' .NET v4 present Utilidad de instalación de Microsoft (R) .NET Framework, versión 4.7.2556.0 Copyright (C) Microsoft Corporation. Todos los derechos reservados.
Registering iControlSnapin.dll on platform '64' .NET v4 present Utilidad de instalación de Microsoft (R) .NET Framework, versión 4.7.2556.0 Copyright (C) Microsoft Corporation. Todos los derechos reservados.
PS C:\Program Files\F5 Networks\iControlSnapIn>
after instal snapin:
PS C:\inetpub> .\bigipreport-5.1.9.ps1 Successfully loaded the config file: C:\inetpub\bigipreportconfig.xml 2018-08-22 03:27:19 Configuring the console window 2018-08-22 03:27:19 Pre-execution checks 2018-08-22 03:27:19 Loaded F5 iControl snapin 2018-08-22 03:27:19 Pre execution checks was successful 2018-08-22 03:27:19 Enabling TLS1.2 2018-08-22 03:27:19 Getting data from 10.249.3.63 2018-08-22 03:27:19 The script failed to connect to 10.249.3.63, run the report manually to determine if this was due to a timeout of bad credentials 2018-08-22 03:27:19 Anulada la solicitud: No se puede crear un canal seguro SSL/TLS. 2018-08-22 03:27:19 Getting data from 10.249.3.63 2018-08-22 03:27:19 The script failed to connect to 10.249.3.63, run the report manually to determine if this was due to a timeout of bad credentials 2018-08-22 03:27:19 Anulada la solicitud: No se puede crear un canal seguro SSL/TLS. 2018-08-22 03:27:19 Verifying load balancer data to make sure that no load balancer is missing 2018-08-22 03:27:19 Missing data from device group containing 10.249.3.63, 10.249.3.63. 2018-08-22 03:27:19 Missing load balancer data, writing report anyway 2018-08-22 03:27:19 There were errors while generating the report 2018-08-22 03:27:19 No error mail reporting enabled/configured 2018-08-22 03:27:19 Status vips detected in the configuration, simplified icons will be used for the whole report 2018-08-22 03:27:19 Writing temporary report file to c:/Inetpub/index.html.tmp 2018-08-22 03:27:19 Writing temporary file c:/Inetpub/json/pools.json.tmp 2018-08-22 03:27:19 Writing temporary file c:/Inetpub/json/monitors.json.tmp 2018-08-22 03:27:19 Writing temporary file c:/Inetpub/json/loadbalancers.json.tmp 2018-08-22 03:27:19 Writing temporary file c:/Inetpub/json/virtualservers.json.tmp 2018-08-22 03:27:19 Writing temporary file c:/Inetpub/json/certificates.json.tmp 2018-08-22 03:27:19 Writing temporary file c:/Inetpub/json/devicegroups.json.tmp 2018-08-22 03:27:19 Writing temporary file c:/Inetpub/json/loggederrors.json.tmp 2018-08-22 03:27:19 Writing temporary file c:/Inetpub/json/asmpolicies.json.tmp 2018-08-22 03:27:19 Writing temporary file c:/Inetpub/json/nat.json.tmp 2018-08-22 03:27:19 Writing temporary file c:/Inetpub/json/irules.json.tmp 2018-08-22 03:27:19 Writing temporary file c:/Inetpub/json/datagroups.json.tmp 2018-08-22 03:27:19 Successfully wrote the temporary files 2018-08-22 03:27:30 Updating the report with the new data 2018-08-22 03:27:30 The report has been successfully been updated 2018-08-22 03:27:30 There were errors while generating the report 2018-08-22 03:27:30 No error mail reporting enabled/configured 2018-08-22 03:27:30 Done. G:1 LB:1 VS:0 R:0 DG:0 P:0 M:0 C:0 ASM:0
help please!!
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)