Skip to main content

cfgrep is Cisco-like Config Context-aware Check grep

Project description

cfgrep

cfgrep(c4grep, ccccgrep) is Cisc-like Config Context-aware Check grep

Installing

pip install cfgrep

or

pip install wheel git+https://github.com/tk-hayashi/cfgrep

Usage

Regular expressions can be used as PATTERN similar to grep.

 > cfgrep -h
Overview:
    cfgrep(c4grep, ccccgrep) is Cisco Config Context-aware Check grep

Usage:
    cfgrep <PATTERN> <FILE> [-i | --interface] [-b | --bgp] [-d | --description]
    cfgrep -h | --help

Options:
    -i, --interface    interface mode
    -b, --bgp          bgp mode
    -d, --description  to specify PATTERN by description
    -h, --help         display help

options

See examples-xr.md and examples-ios.md for details of options

option description
-i Interface mode. To display a config related to ipv4 and ipv6 address of the interfaces.
-b BGP mode. To display a config related to route-policy(route-map) and bgp-group of the neighbors.
-d Description mode. To use a parent indent of description as PATTERN.

Authors

  • Toshiki Hayashi - Initial work

License

This project is licensed under the Apache License - see the LICENSE file for details

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cfgrep-1.0.3.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

cfgrep-1.0.3-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file cfgrep-1.0.3.tar.gz.

File metadata

  • Download URL: cfgrep-1.0.3.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.6.9

File hashes

Hashes for cfgrep-1.0.3.tar.gz
Algorithm Hash digest
SHA256 87aaa055f2877238042adae8e70876b86e598075a5a1de38ff581d03a3feb25f
MD5 e87395a24213f42298ad163b8d3d964a
BLAKE2b-256 fad1d288d42f6baa7fd6b3a9157e8d3a3444b876b37d7af3d504d8d3e3a5c4b1

See more details on using hashes here.

File details

Details for the file cfgrep-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: cfgrep-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 9.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.6.9

File hashes

Hashes for cfgrep-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d5485b20e4662d325d059b1dbd1dbbe45ee1bb2d258d9c439d098e6bada8c37e
MD5 c75e13590121078b731a6a58ecd294a7
BLAKE2b-256 e50a15157c1383e94617dae2f1a9ebd6b2c72c0da6e17ebcfeee7541e5cb6c4a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page