Skip to content

vgno/bigip-query

Repository files navigation

F5 Bigip Query tool

This is a small tool to scratch an itch. To easily see what backends are behind a VIP and what policies and rules are attached. Default it lists all, but you can also query by adding a regex that will match name, ip or rules.

Install instructions

This code needs python3

Normal

$ pip3 install -r requirements.txt

VENV Virtual enviroment

$ python3 -mvenv .venv
$ source .venv/bin/activate
$ pip install -r requirements.txt

Configuration

Place a bigip-query.conf in either /etc/bigip-query.conf $HOME/.bigip-query.conf or a bigip-query.conf in the current directory

It has the following format

[DEFAULT]
hostname = bigip.int.somedomain.com
username = readonlyuser
password = FancyPasswordHorseStapleFish

Usage

List all VIPS

$ ./bigip-query.py 

Searchparameters are regexp

Query a VIP by IP address

$ ./bigip-query.py 1.2.3.4

Query a VIP by IP address

$ ./bigip-query.py <name>

Query VIPs by Irule

$ ./bigip-query.py <irulename>

Query all VIPS NOT having a irule

$ ./bigip-query.py -n <irulename>

TODO

  • Use tokens instead of users
  • Check actual certificates, not only ssl-profile
  • Create single binary for distribution

About

Tool to query bigip VIP's

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages