Coder Social home page Coder Social logo

f5grep's Introduction

f5grep

Script that uses `grep' to search F5 BigIP configuration files.

Download `f5grep.py' and edit BIGIP_HOSTS to list all the F5 BigIP servers you want to search.

Co-requirements

Uses the "pexpect" module.

Usage

	usage: f5grep.py [-h] [-E] [-i] [-ll {DEBUG,INFO,WARNING,ERROR,CRITICAL}]
	                 pattern

	Script to run grep against the BigIP config files.

	positional arguments:
	  pattern               Look for a pattern in BigIP configuration files

	optional arguments:
	  -h, --help            show this help message and exit
	  -E, --extended-regexp
	                        Interpret the pattern as an extended regular
	                        expression (ERE)
	  -i, --ignore-case     Ignore case distinctions in both the pattern and the
	                        input files
	  -ll {DEBUG,INFO,WARNING,ERROR,CRITICAL}, --loglevel {DEBUG,INFO,WARNING,ERROR,CRITICAL}
	                        Set the logging level

Example

Example using Basic Regular Expressions (BRE).

$ f5grep.py -E '192.168.50.1\>'
F5 userid to use [bopeep]?
F5 password for bopeep?

Found matches on xb15.local:
        /config/bigip.conf:142:    address 192.168.50.1
        /config/bigip.conf:259:            address 192.168.50.1

Found matches on xb16.local:
        /config/bigip.conf:142:    address 192.168.50.1
        /config/bigip.conf:259:            address 192.168.50.1

Found matches on xb17.local:
        /config/bigip.conf:5607:    address 192.168.50.1
        /config/bigip.conf:5649:            address 192.168.50.1

Found matches on xb18.local:
        /config/bigip.conf:5625:    address 192.168.50.1
        /config/bigip.conf:5667:            address 192.168.50.1

f5grep's People

Contributors

gogasvig avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.