Tuesday, December 5, 2017

Finding out what port devices are plugged into: Cisco

Telnet to switch
login,
(it would be a good idea to enable logging before running these)
enable

switch#>sh arp

this will give the mac/ip list

switch#>show mac address-table

This will give mac/port

I enabled logging so I had a notepad with all the data.
Manually went in and made it a CSV, there might be a way to do this automatically, but I didn't do it that way...

In the end, after manipulating the data in excel, I ended up with a workable list of IP, MAC, and Port numbers.  I figured nslookup is easy enough to find out what the device is via the IP, but I guess you could go to DNS/DHCP also.

No comments:

Post a Comment

Pulling local admin accounts on a windows system WITH POWERSHELL

 There’s a couple ways to get them, I’m sure you’ve been around the internet looking. The Powershell scripts I use: Get-LocalGroupMember -Gr...