This python 3.7 - 3.9 app be used for network survey, or any other operation or maintenance tasks. Tested with 3.9 version.
It can:
- connect using SSHv2 to number of network devices
- execute series of show commands on network devices
- write output of executed commands into files in one folder
YAUCC not tested for configuration commands, but there are no any special restrictions for them.
It created based on Scrapli python library and support it's core platforms:
- Cisco IOS-XE - cisco_iosxe
- Cisco NX-OS - cisco_nxos
- Cisco IOS-XR - cisco_iosxr
- Arista EOS - arista_eos
- Juniper JunOS - juniper_junos
** More platforms from Scraply-community will be added later.
It use only transport ssh2 -- scrapli wrapper around ssh2-python library. For using YACC you need:
- Install python 3.7+ (latest - best choice) and reqiured libraries
- Rename '.env_init' file into '.env' file and change environment variables in it - see below (this file will remains locally)
- Put actual devices information into 'devices.txt' file (see below)
- Create file and put show commands you'd like to execute into 'commands.txt' or 'cisco_commands.txt' file (see below)
- Run script using:# <YAUCC_PATH>\python.exe -u -O <YAUCC_PATH>\main.py -d devices.txt -c commands.txt
- Look at console messages for errors and progress.
- Get results in folder: <YAUCC_PATH>\output\cnf_- It is text file with records for each device:
device platform;device IP;device username;device password;device enable password;
Minimum form of a record:
;device IP;;;;
In this case device platform should be autodetected by app, login and password values (if absent) should be get from .env file. Add line for each device you like to survey. File name, extension and location can be any - it passed as CLI value. Example of devices file included into repo: 'devices_sample.txt'
###File 'commands.txt' It is text file with 'show' command lines that should be executed in each device. Minimum form of a record is one command, for example:
show running-config
show ver
File name, extension and location can be any - it passed as CLI value. Example of commands file included into repo: 'cisco_commands.txt'