A simple tool for collecting network device configurations
-
Clone this repo
git clone https://github.com/xtronix2000/config_dump.git -
Navigate to the directory
cd config_dump -
Create a virtual environment for this project
python3 -m venv venv -
Load the virtual environment
source venv/bin/activate -
Run
pip install -r requirements.txt -
Open the
commands.jsonfile and add a new dictionary element with the device vendor string as the key and command as the value.
7.Open the devices.json file and enter the device information in the format "ip_address": ["type", "login", "password"]. Pay attention to the "type" field, it must be at least one key from the commands.json file.
-
Run the main.py script
python3 main.py -
The result of the program execution will appear in the folder
results/config_dump_YYYY-MM-DD_HH.MM.SS/host address
P.S. https://github.com/paramiko/paramiko