Skip to main content

cfgrep is Cisco Config Context-aware Check grep

Project description

cfgrep

cfgrep(c4grep, ccccgrep) is Cisco 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 in PATTERN like 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 indent parent 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.2.tar.gz (4.0 kB view hashes)

Uploaded Source

Built Distribution

cfgrep-1.0.2-py3-none-any.whl (9.0 kB view hashes)

Uploaded Python 3

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