Skip to content

python script to automate adding description to access switch ports based on computer name retrieved from active directory DNS server

License

Notifications You must be signed in to change notification settings

masoud-maghsoudi/python-cisco-switch-interfaces-descriptions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About Script

Aim

We want to automate the description setting on Cisco access switch user interfaces throughout the network.

Mechanism:

This script is written in Python using netmiko and dnspython. Using specified VLANs for access users and the switch IP addresses in configuration file it filters out user interfaces and resolves the active IP address on the port via ARP cache of the corresponding router specified in the same configuration file and queries an IP reveres lookup from Local DNS server declared in configuration file. after formatting the resolved name it will be set on corresponding switch interface.

For disabled interfaces, we set Disabled by Admin description. For ports with more than active 1 MAC address, in the case that it has no description we set Multi User description, otherwise we would not change the interface description, but list them all in a report file.

License

MIT

Author Information

Author Masoud Maghsoudi
Email masoud_maghsopudi@yahoo.com
Github https://github.com/masoud-maghsoudi

About

python script to automate adding description to access switch ports based on computer name retrieved from active directory DNS server

Topics

Resources

License

Stars

Watchers

Forks

Languages