Coder Social home page Coder Social logo

micyew / automate-creation-of-dnac-template-to-enable-packet-capture-on-ios-xe Goto Github PK

View Code? Open in Web Editor NEW

This project forked from abhijith-r/automate-creation-of-dnac-template-to-enable-packet-capture-on-ios-xe

0.0 0.0 0.0 7.74 MB

A python script to automate the packet capture on IOS-XE, create a pcap file and copy it to local machine using secure copy.

License: Other

Python 100.00%

automate-creation-of-dnac-template-to-enable-packet-capture-on-ios-xe's Introduction

published

Packet_Capture_Automation_IOS-XE

A python script to automate the packet capture on IOS-XE, create a pcap file and copy it to local machine using secure copy and also automate the creation of a DNAC template to configure packet capture on a switch and push the pcap file to a remote ftp server for further processing. This script can be used to configure packet capture on multiple switches registered in DNAC.

Author:


Prerequisites

  • Python 2.7
  • PyCharm/Any text editor
  • Make sure SCP is enabled on the remote device ip scp server enable if controller.py is used.

Steps to Reproduce

  • Download/clone the repository
  • Install the requirements using requirements.txt using pip install -r requirements.txt
  • There are two python files which can be executed for two different requirements
  • controller.py - Python script which connects to the switch with the credentials using ssh, creates a capture and copies pcap file from the switch to the local machine
  • dnac_template.py - Python script with the help of DNAC REST API automates the creation of a template, commit and deploy the template to configure packet capture on the switch registered with DNAC and copies the pcap file to a ftp server for further processing.
  • Execute controller.py/dnac_template.py using a text editor such as pycharm
  • Terminal can also be used to run the script. python controller/dnac_template.py

Screenshots

alt text

alt text

API Reference/Documentation:

DISCLAIMER:

Please note: This script is meant for demo purposes only. All tools/ scripts in this repo are released for use "AS IS" without any warranties of any kind, including, but not limited to their installation, use, or performance. Any use of these scripts and tools is at your own risk. There is no guarantee that they have been through thorough testing in a comparable environment and we are not responsible for any damage or data loss incurred with their use. You are responsible for reviewing and testing any scripts you run thoroughly before use in any non-testing environment.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.