A C# .Net 8 Console App, which uses pktmon.exe (Windows 10 and above) to capture LLDP data, then parses that data.
- Uses pktmon.exe to filter and capture LLDP data.
- Parse and output the captured LLDP data.
- Default 30 second capture period, with -t to increase capture time. Accepts 30-60 Seconds.
- Filters out ethernet devices which have wireless, wi-fi or bluetooth in their name.
- Needs to be run as Administrator in the console
- .Net 8
- pktmon.exe (Windows 10 and above)
- Writes to C:\temp<lldp.etl and lldp.txt>, will clean up the files once done.
- Copy the files where you want to and run clldp.exe, will also require .Net 8
.\bin\Release\net8.0>clldp.exe
Component ID: 868, Name: ASIX AX88772B USB2.0 to Fast Ethernet Adapter
Enter the Component ID to capture on:
868
Capturing... 0 seconds remaining
Parsed LLDP Data:
Chassis ID: 68-FF-7B-B2-02-34
Port ID: GigabitEthernet1/0/4
Time to Live: TTL 120s
System Name: T1500G-8T
System Description: JetStream 8-Port Gigabit Smart Switch
Management Address: 192.168.1.53
Port Description: GigabitEthernet1/0/4 Interface
VLANs:
VLAN ID: 1 VLAN Name: System-VLAN
- See if it's possible to capture CDP and parse it for CISCO switches.