{"id":22979999,"url":"https://github.com/masoud-maghsoudi/python-cisco-switch-interfaces-descriptions","last_synced_at":"2025-04-02T09:22:00.899Z","repository":{"id":179366473,"uuid":"663369692","full_name":"masoud-maghsoudi/python-cisco-switch-interfaces-descriptions","owner":"masoud-maghsoudi","description":"python script to automate adding description to access switch ports based on computer name retrieved from active directory DNS server","archived":false,"fork":false,"pushed_at":"2023-10-04T12:05:05.000Z","size":10,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-08T00:28:31.330Z","etag":null,"topics":["cisco","netmiko","python","yaml-configuration"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/masoud-maghsoudi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-07-07T06:30:05.000Z","updated_at":"2023-09-21T07:16:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"682ed77a-1ba2-4920-ba9e-0a6bf9bdd463","html_url":"https://github.com/masoud-maghsoudi/python-cisco-switch-interfaces-descriptions","commit_stats":null,"previous_names":["masoud-maghsoudi/python-cisco-switch-interfaces-descriptions"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masoud-maghsoudi%2Fpython-cisco-switch-interfaces-descriptions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masoud-maghsoudi%2Fpython-cisco-switch-interfaces-descriptions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masoud-maghsoudi%2Fpython-cisco-switch-interfaces-descriptions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masoud-maghsoudi%2Fpython-cisco-switch-interfaces-descriptions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/masoud-maghsoudi","download_url":"https://codeload.github.com/masoud-maghsoudi/python-cisco-switch-interfaces-descriptions/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246785597,"owners_count":20833534,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cisco","netmiko","python","yaml-configuration"],"created_at":"2024-12-15T01:36:35.831Z","updated_at":"2025-04-02T09:22:00.866Z","avatar_url":"https://github.com/masoud-maghsoudi.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# About Script\n\n## Aim\n\nWe want to automate the description setting on Cisco access switch user interfaces throughout the network.\n\n## Mechanism:\n\nThis script is written in Python using [netmiko](https://github.com/ktbyers/netmiko) and [dnspython](https://github.com/rthalley/dnspython). Using specified **VLANs** for access users and the **switch** IP addresses in [configuration file](./config.yml) 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.\n\nFor disabled interfaces, we set _Disabled by Admin_ description.\nFor 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.\n\n## License\n\nMIT\n\n## Author Information\n\n| Author | Masoud Maghsoudi                      |\n| ------ | ------------------------------------- |\n| Email  | \u003cmasoud_maghsopudi@yahoo.com\u003e         |\n| Github | \u003chttps://github.com/masoud-maghsoudi\u003e |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmasoud-maghsoudi%2Fpython-cisco-switch-interfaces-descriptions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmasoud-maghsoudi%2Fpython-cisco-switch-interfaces-descriptions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmasoud-maghsoudi%2Fpython-cisco-switch-interfaces-descriptions/lists"}