In the directory you are running the script, create a sub-directory called 'output'. The script is run by passing it the CSV as a parameter:
python3 tar_then_rcp.py -c <csv_file>
It will prompt you for a username and password for your network devices, then for username/password of the remote server you are RCP the archive to.
When the script runs it will iterate through the CSV, connect to the network device, scrape the 'sh run' output and write it to a file in ./output . Once all the CSV has been parsed, it will tar the contents of ./output and then RCP the file to the remote server.
You will probably want to clear the contents of the ./output directory after each run of the script.
Also please bear in mind there is very little error checking in the script so it will bomb out if it encounters something unexpected. That said it did a good job of processing the equipment I have at home! :)
We’re excited to announce new capabilities with Secure Endpoint that allow you to simplify your security and maximize your security operations: Unify your security stack and reduce agent fatigue with Cisco Secure Client; harness integrated risk-based vuln...
Listen: https://smarturl.it/CCRS8E47 Follow us: twitter.com/CiscoChampion
Ransomware, fileless malware, and zero-day attacks continue to target organizations around the world. In response, organizations have resorted to deploying a variety of di...
This is a general information page for Cisco Threat Centric (TC-NAC) with ISE
Threat Centric Network Access Control (TC-NAC) feature enables you to create authorization policies based on the threat and vulnerability attributes received from the th...
The 2021 IT Blog Awards, hosted by Cisco, is now open for submissions. Submit your blog, vlog or podcast today. For more information, including category details, the process, past winners and FAQs, check out: https://www.cisco.com/c/en/us/t...
Cisco Secure Endpoint (formerly AMP for Endpoints) will decommission legacy cloud servers, which results in Legacy Windows Connector Versions 3.x/4.x and Mac Connector Version 1.0.x ceasing to ...