Gather information from switches to create documentation in excel.
Project description
cisco-documentation
Documentation Method for Cisco Devices using excel.
Requirements
- python3 (3.9)
- pip
- cisco-documentation
Installation
python3.9 -m pip install cisco-documentation
Updating
pip install --upgrade --upgrade-strategy eager cisco-documentation
Usage
For CiscoDocumentation
- Update switch-list.txt with a complete list of switches.
- Device types supported include cisco_ios (ssh), cisco_ios_telnet (telnet)
- Cisco s300 will need additional changes before it will work.
- Run the .exe, or run python3.9 ./CiscoDocumentation.py
- Select 'y' to use the switch-list.txt as input.
- This will output the arp tables from the switches, as well as the devices connected to each port, and port statuses to output.csv
For RunCommands
- This is a simple script to run multiple commands on the switches in switch_list.txt
- Note: RunCommands.py does not use multiprocessing, and RunCommands2.py has not been maintained, but should still be operational.
- Run python3.9 ./RunCommands.py
- Enter commands separated by ~.
- For example, to configure spanning-tree mode on all switches in switch_list.txt you could run
conf t~spanning-tree mode mst~end~wr
- For example, to configure spanning-tree mode on all switches in switch_list.txt you could run
Updating the Excel Spreadsheet
- Update the ARP sheet with the output from arp_output.txt. Also add the output from arp-scan if there are devices missing (if a device isn't communicating over the l3 switch, or there is no l3 switch in the network, these devices will not exist in the arp table.)
- If devices don't communicate over the gateway, their arp entries will not exist on the l3 switch. Using nmap beforehand from a separate subnet will populate the arp table on this switch - assuming devices are properly programed with a default gateway.
- Copy the output from output.txt into the SWITCHES sheet. This will update formulas used to the right of the output to look up device information from each sheet.
- Device information should be contained in a sheet named after each l2 network.
- L2 networks should be named, vlans/ranges assigned on the OVERVIEW sheet.
Building and installing from source
python3.9 -m pip uninstall cisco-documentation
rm dist/cisco_documentation-*-py2.py3-none-any.whl
python3.9 setup.py bdist_wheel --universal
python3.9 -m pip install dist/cisco_documentation-*-py2.py3-none-any.whl
# To upload to pypi
twine upload dist/*
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for cisco_documentation-0.0.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 888f7d56e4d89b300a1a9535b5fbc6584b38ec8c6021ede672ae1f7d09992a6a |
|
MD5 | a688bc256696a64355a3c0a9ab759e5e |
|
BLAKE2b-256 | 01e5fd571252d5e2ceae554dabbb88aaadd89dfff3a9351ff8346e9a037dad93 |