Create Python script that will login to a Cisco network devices, runs a command to get SysLog/Logging host IPs and parse out details to an excel spreadsheet. its works for both Cisco ios and NX-OS.
Use python 3, and make sure netmiko, openpyxl installed in the machine (Windows/Unix/MAC).
Device_logging_info.xlsx, find_logging_host_v1.py, inventory.txt has to be in the same folder.
inventory file should contain the IP address/ device name (including Domain or full DNS name) example included:
10.10.10.10 10.10.10.xx xyz.ns.xxxx
- *don't open the spreadsheet during execution of the code.
- to execute of code do following:
python3 find_logging_host.py
- once completed, open the spreadsheet for the output.