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
- PhilShannon_334Nimbostratus
Yes. And I just deleted everything, started over, cleared cache, replaced all 4 of these directories with the new ones, still don't have any search or export or site prefs showing. Tried 3 different browsers, also tried from 2 other computers. I'm baffled how that is even possible.
I do get an error via email:
The following exceptions was thrown during script execution CategoryLinenumberLineStacktrace FileNotFoundException0
Wait, you don't see the site preferences either? What's your previous version?
Would you mind sharing your configuration file (exclude user/password and device IPs etc) via ie. pastebin?
/Patrik
Could you also verify that the files (json/html) has been updated? If you run the script manually, can you get a more detailed error?
/Patrik
- PhilShannon_334Nimbostratus
I don't have a pastebin account? Can I email it? Also, how do I "verify that the files (json/html) has been updated"? I completely deleted css, js, json, & images folders multiple times, and copied the new 4.7.2 ones over. thanks
- PhilShannon_334Nimbostratus
- PhilShannon_334Nimbostratus
I always run it manually, here is all of the output
PS C:\Users\Administrator\Documents\BigIpReport> .\bigipreport-4.7.2.ps1 Successfully loaded the config file 2017-12-21 10:51:12 Configuring the console window 2017-12-21 10:51:12 Pre-execution checks 2017-12-21 10:51:12 Pre execution checks was successful 2017-12-21 10:51:12 Enabling TLS1.2 2017-12-21 10:51:13 Getting data from 10.60.88.15 2017-12-21 10:51:13 iControl session successfully established 2017-12-21 10:51:13 Getting hostname 2017-12-21 10:51:13 Hostname is cardc-f5devl1.rpega.com 2017-12-21 10:51:13 Caching LTM information from cardc-f5devl1.rpega.com 2017-12-21 10:51:13 Fetching information about the device 2017-12-21 10:51:13 Caching monitors 2017-12-21 10:51:13 Caching data group lists 2017-12-21 10:51:13 Caching Pools 2017-12-21 10:51:13 Caching iRules 2017-12-21 10:51:13 Caching Virtual servers 2017-12-21 10:51:14 Adding orphaned pools to the virtual server list 2017-12-21 10:51:14 Verifying load balancer data to make sure that no load balancer is missing 2017-12-21 10:51:14 No missing loadbalancer data was detected, compiling the report 2017-12-21 10:51:15 Writing report temporary file to C:\Inetpub\wwwroot\default.html.tmp 2017-12-21 10:51:15 Writing temporary pools json object to C:\Inetpub\wwwroot\json\pools.json.tmp 2017-12-21 10:51:15 Writing temporary monitor json object to C:\Inetpub\wwwroot\json\monitors.json.tmp 2017-12-21 10:51:15 Writing temporary virtual server json object to C:\Inetpub\wwwroot\json\virtualservers.json.tmp 2017-12-21 10:51:15 Writing temporary irules json object to C:\Inetpub\wwwroot\json\irules.json.tmp 2017-12-21 10:51:15 Writing temporary data group list json object to C:\Inetpub\wwwroot\json\datagrouplists.json.tmp 2017-12-21 10:51:15 Successfully wrote the temporary files 2017-12-21 10:51:25 Updating the report with the new data 2017-12-21 10:51:25 The report has been successfully been updated 2017-12-21 10:51:25 There were errors while generating the report 2017-12-21 10:51:25 Sending report
Ok, now I've tried your configuration file (you might want to change your password unless you obfuscated it :) ), and it worked fine on my side.
A few things that I could think of that could have happened.
- Do you have two html files in the root perhaps? I'm thinking that the script in your configuration file writes to default.html, while the old configuration file might write to default.htm. That would explain the same result from different browsers.
- The old ps1 could still be executed by mistake.
- There could be a be another script scheduled somewhere to overwrite the html file?
You can verify that the html file contains the necessary code by checking the head section of it (right click and choose "View page source" and look for the following:
Btw, I'm in the Singapore time zone so our time zones might be a bit off. :)
/Patrik
- PhilShannon_334Nimbostratus
Thanks Patrik. I hope you enjoy the holiday season in Singapore. This isn't very urgent at all, I appreciate the help. I do see the ShowExportLink = true; so this remains a mystery. No other .htm or .html files I've actually deleted all the files from any/all previous versions on the report. On this system all that is there is the 4.7.2 files, what a freaking mystery! At least all the other info is there and accurate so again no rush on this, but the mystery is very dramatic so I will continue to chip away today, may even setup a brand new vm and move everything there.
- PhilShannon_334Nimbostratus
p.s. yes that's a fake password I typed in there at pastebin and I put fake IP's as well
It's almost like javascript has been turned off. You don't see the column toggles either. Let me generate a new demo and upload it. See if you can see it there?
/Patrik