The Improved version of Network Gathering Tool (NGTv1) for https://github.com/Dino-s26/Network_Gathering_tool
π This new improved version has new feature such as :
- ++ Exception for unhandled error in previous NGTv1, that make the script stop / not working if unhandled error occured.
- ++ Improved clean code, better readability and separated function for better troubleshooting.
- ++ As the previous NGTv1 using hard coded source (separated source file for username, hostname, command, etc) that are time consuming to update related script, now introducing local database using excel file, so no need to recompile the code (unless you want to change the output filename), you just need to edit the excel file (template file provided) if there is any changes within your environment (ip, username, command, etc).
- ++ Generate log file when exception are happen to make it easy to troubleshoot.
- *currently still improving this version, and adding more feature to make it easier for Network Engineer usage.
π How to use ?
- Install related library before compile into .exe or run it as .py. The related library as follows :
- paramiko
- openpyxl
- pathlib / pathlib2
- pyinstaller (if you need to compile into .exe file)
- Update the template file to your needs :
- Filename for the excel source file (filename section)
- Device purpose (create_log function)
- Download the excel file template and update it to your need and save the file into name you want and update it on filename section of the .py file, aslo put the file within the .py script for convinience.
- Run the .py file :)
- (optional) For .exe compile you can use "pyinstaller -F --clean <.py file>", this will compile the script into .exe file and later can be use for task scheduler in windows (windows only) or if you don't want to run it as .py file :)
That's all, I hope this new version could ease our job as Network Engineer and cheers π». Let me know if you facing issue, maybe I could help to resolved it π.
-- End of Readme.md -- There's nothing after this line π²