The tool collects configuration file of multiple routers
Project description
===========
ConfigCollector
===========
This tool collects configuration file of multiple routers.
Support router OS
==============
* IOS
* IOS-XE
* IOS-XR
* JUNOS
Install
=====
Install using pip.
::
pip install configcolletctor
How to use
==============
Use following format.
::
configcollector -i [inventory_file] -o [output_dirctory]
* inventory_file
Router infomation file using Json format.
The router OS is select from the below list. ::
* JUNOS
* IOS
* IOS-XE
* IOS-XR
Sample inventory file
::
[
{
"hostname" : "router1",
"username" : "user1",
"password" : "aaabbbccc",
"ipv4" : "192.168.0.1",
"os" : "JUNOS"
},
{
"hostname" : "router2",
"username" : "user2",
"password" : "aaabbbccc",
"ipv4" : "192.168.0.2",
"os" : "IOS-XR"
},
{
"hostname" : "router3",
"username" : "user3",
"password" : "aaabbbccc",
"ipv4" : "192.168.0.3",
"os" : "IOS"
}
]
* output_directory
The directory placed router configuration output files by ConfigCollector.
Defalt : Current directory
Example
=======
Example to get router config files using ConfigCollector.
::
% mkdir router_config
% python configcollector.py -i sample_routers.json -o router_config/
Accessing router: router1...
Writing output file "router_config/router1"...
Success : "router_config/router1"!
Accessing router: router2...
Writing output file "router_config/router2"...
Success : "router_config/router2"!
Accessing router: router3...
Writing output file "router_config/router3"...
Success : "router_config/router3"!
% ls router_config
router1.txt router2.txt router3.txt
% less router1.txt
show configuration | no-more
## Last commit: 2015-05-01 17:00:00 JST by user1
version x.x.x;
system {
host-name router1;
time-zone Asia/Tokyo;
(snip)
ConfigCollector
===========
This tool collects configuration file of multiple routers.
Support router OS
==============
* IOS
* IOS-XE
* IOS-XR
* JUNOS
Install
=====
Install using pip.
::
pip install configcolletctor
How to use
==============
Use following format.
::
configcollector -i [inventory_file] -o [output_dirctory]
* inventory_file
Router infomation file using Json format.
The router OS is select from the below list. ::
* JUNOS
* IOS
* IOS-XE
* IOS-XR
Sample inventory file
::
[
{
"hostname" : "router1",
"username" : "user1",
"password" : "aaabbbccc",
"ipv4" : "192.168.0.1",
"os" : "JUNOS"
},
{
"hostname" : "router2",
"username" : "user2",
"password" : "aaabbbccc",
"ipv4" : "192.168.0.2",
"os" : "IOS-XR"
},
{
"hostname" : "router3",
"username" : "user3",
"password" : "aaabbbccc",
"ipv4" : "192.168.0.3",
"os" : "IOS"
}
]
* output_directory
The directory placed router configuration output files by ConfigCollector.
Defalt : Current directory
Example
=======
Example to get router config files using ConfigCollector.
::
% mkdir router_config
% python configcollector.py -i sample_routers.json -o router_config/
Accessing router: router1...
Writing output file "router_config/router1"...
Success : "router_config/router1"!
Accessing router: router2...
Writing output file "router_config/router2"...
Success : "router_config/router2"!
Accessing router: router3...
Writing output file "router_config/router3"...
Success : "router_config/router3"!
% ls router_config
router1.txt router2.txt router3.txt
% less router1.txt
show configuration | no-more
## Last commit: 2015-05-01 17:00:00 JST by user1
version x.x.x;
system {
host-name router1;
time-zone Asia/Tokyo;
(snip)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
configcollector-0.1.1.tar.gz
(3.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file configcollector-0.1.1.tar.gz.
File metadata
- Download URL: configcollector-0.1.1.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f85666ceab0bfb282d2eeea1feb0097343972918da0466c5c2999cc54aee4ab3
|
|
| MD5 |
eb1acbb94d3a521cd8f8bce0b11f2123
|
|
| BLAKE2b-256 |
d1041826f8790356d58e4f031282f5275e232ece2807ac31015a05c609b60eec
|
File details
Details for the file configcollector-0.1.1-py2-none-any.whl.
File metadata
- Download URL: configcollector-0.1.1-py2-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d129180166e9b80f8d3f0291ed9a8f0173b40f1a983547fc500e6048f8c8f571
|
|
| MD5 |
29b5ca860735befdfcc74aaf5c8a216e
|
|
| BLAKE2b-256 |
526e2cf52a9ea14fdc2f61bb73c8b34253e93d00328f4bfacd4fd557223f48fa
|