cfgrep
cfgrep(c4grep, ccccgrep) is Cisco-like Config Context-aware Check grep
Installing
pip from PyPI
pip install cfgrep
, or pip from github
pip install wheel git+https://github.com/tk-hayashi/cfgrep
, or running setup.py
git clone https://github.com/tk-hayashi/cfgrep
cd cfgrep
python setup.py install
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
Release files for cfgrep 1.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cfgrep-1.0.5.tar.gz | 4.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cfgrep-1.0.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.7 kB
Release files / cfgrep-1.0.5.tar.gz
| Download URL | cfgrep-1.0.5.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
35167412d7ba9f8ccb9b81d8c5fc3917cf9ac6d4e231fd8a7b3ba71424e62f54
|
|
BLAKE2b-256 checksum How to use checksums |
4b6489877fe453701f1040b483f4793a4cc9507d0350f58233a2ccc0f9e195bc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / cfgrep-1.0.5-py3-none-any.whl
| Download URL | cfgrep-1.0.5-py3-none-any.whl |
|---|---|
| Size | 9.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
96db13d067f83cb9c9bf06f32339055bd4ba1b5f112b8b531fc2f1e5313956a6
|
|
BLAKE2b-256 checksum How to use checksums |
4e99bb71eed522cf6e0a9041ad4ecc523ec06f36223618523b005e23d9c8c8e9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|