[PR #4] [MERGED] Get Switch name and port via LLDP query #324

Closed
opened 2026-03-14 01:15:28 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/amidaware/community-scripts/pull/4
Author: @yaroz
Created: 2/11/2022
Status: Merged
Merged: 2/11/2022
Merged by: @silversword411

Base: mainHead: main


📝 Commits (1)

  • 7ea5eff Get Switch name and port via LLDP query

📊 Changes

1 file changed (+24 additions, -0 deletions)

View changed files

scripts_wip/Win_LLDPInfo.ps1 (+24 -0)

📄 Description

This script uses https://github.com/lahell/PSDiscoveryProtocol module to get switch name, port, and description and outputs it as "Switch: $($lldp.Device) - Port: $($lldp.port) - Port Description: $($lldp.portdescription)"

The do..until loop will run the command until the result is not a polycom phone.. useful if you're daisy chained through an IP phone.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/amidaware/community-scripts/pull/4 **Author:** [@yaroz](https://github.com/yaroz) **Created:** 2/11/2022 **Status:** ✅ Merged **Merged:** 2/11/2022 **Merged by:** [@silversword411](https://github.com/silversword411) **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (1) - [`7ea5eff`](https://github.com/amidaware/community-scripts/commit/7ea5eff1d00a50137b1f492c1671b8364f335b11) Get Switch name and port via LLDP query ### 📊 Changes **1 file changed** (+24 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `scripts_wip/Win_LLDPInfo.ps1` (+24 -0) </details> ### 📄 Description This script uses https://github.com/lahell/PSDiscoveryProtocol module to get switch name, port, and description and outputs it as "Switch: $($lldp.Device) - Port: $($lldp.port) - Port Description: $($lldp.portdescription)" The do..until loop will run the command until the result is not a polycom phone.. useful if you're daisy chained through an IP phone. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-14 01:15:28 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/community-scripts#324
No description provided.