Skip to content

Latest commit

 

History

History
42 lines (30 loc) · 1.24 KB

README.md

File metadata and controls

42 lines (30 loc) · 1.24 KB

simple_netfunc

It's my first try to do some automation stuff using python which I've started to learn recently.

These modules are used in scripts:

  • dataclasses
  • NAPALM
  • netmiko
  • getpass
  • netaddr

It's considered that all network devices are Cisco. It's also considered that you are able to get access to any device with the same credentials.

Main functions:

  1. Collecting information about network devices using cdp crawling.
  2. Finding mac addresses across the network using cdp
  3. Finding specified information in device inventory.
  4. Configure devices with sending commands with saving/no saving config after that, backaping config (needs improvements).

scripts:

  • devactions.py Classess and finctions

  • parseit.py Parsing some output like device and interface names

  • get_cdp_neighbors.py
    Crawling through network gathering devices with their cdp neighbors

  • find_mac_address.py
    Finding switch's inteface on wich given mac address(es) is/are

  • find_in_inventory.py
    Finding gicen information in devices inventory

  • nmk_send_conf_command.py
    Sending configuration connamds, saving config to memory and backuping it.

  • find_int_in_vlan.py Not usefull yet :)