Coder Social home page Coder Social logo

network_discovery's Introduction

Network Discovery

Install

pip install pyats[full]

pip install rest.connector

This script uses pyATS to get the ARP Caches from Layer 3 Network Gateway devices to discover what servers are active on the network.

The IPs owned by the network devices are discovered automatically where possible and excluded from the report that is generated since only unknown IPs are of interest.

The steps are as follows:

The IPs on every device in the testbed YAML file are discovered: Nexus, ASA (L3 Interfaces and HSRP), F5 (Self IPs, VIPs, SNATs). These IPs are excluded.

Each L3 Device, usually Routers/Switches and Firewalls have their local networks discovered and each IP in the range pinged to attempt to get an ARP entry.

The ARPs are retrieved from all L3 Gateway devices and the MAC addresses from all L2 devices (Nexus and IOS Switches).

A report of all the ARPs and MAC table entries is generated excluding the Network Device owned IPs, a list of excluded IPs (text file) and MACs to be excluded (list in the script).

A separate comments file is loaded in to allow comments made about IPs to be saved an then re-inputted to the report each time the script is run to maintain manual discovery work that has been done for previous iterations of the report.

Comments file (put the IP Address and any comments after) e.g.

10.0.0.1 Customer A Server 1

10.0.0.5 Customer A Server 2

network_discovery's People

Contributors

pbrehaut avatar

Watchers

 avatar

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.