Skip to content

Instantly share code, notes, and snippets.

View macleod-ee's full-sized avatar
🤖
Replicant? More likely than you would think.

Macleod Sawyer macleod-ee

🤖
Replicant? More likely than you would think.
View GitHub Profile
@supercheetah
supercheetah / Get-SwitchMACInfo.ps1
Last active October 9, 2024 02:56
A PowerShell script to get the MAC address tables from Cisco routers/switches
<#
.SYNOPSIS
This script gets MAC address tables from Cisco routers/switches running IOS using the SSH protocol.
.DESCRIPTION
There's a newer version of this here: https://github.com/supercheetah/winsysadmintools
The script uses the Plink (command line version of PuTTY, http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html)
to get the output of the command "show mac address-table" and put into a object array (i.e. table) that is outputted to
Out-GridView, and can optionally be saved to a CSV file.