Link to home
Create AccountLog in
Avatar of Joseph Moody
Joseph MoodyFlag for United States of America

asked on

MAC Address from Switch with PowerShell

I am wanting to get the mac address table from a switch and send the output into powershell for searching.

My goal is to take an MAC address that a user inputs and be able to search multiple switches for it. I would then like to be able to see the Port and Switch that MAC is on.

How can I achieve this with PowerShell (or by using other tools with powershell)?
Avatar of agonza07
agonza07
Flag of United States of America image

What kind of switches do you have?

You're either going to have to do an SNMP query or actually telnet/ssh into the switches from Powershell and extract that info.

http://vwiki.co.uk/SNMP_and_PowerShell

http://www.maxtblog.com/2012/06/telnet-automation-with-powershell-made-simple/
Avatar of Joseph Moody

ASKER

We have HP procurve switches.  Their commands are nearly identical to Cisco though.

Have you done this before?

Thank you for the links!
ASKER CERTIFIED SOLUTION
Avatar of Qlemo
Qlemo
Flag of Germany image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Thank you for all of the help! I added this to my project list but I think I have a way to achieve this.