Advanced

HowTo find the port on a switch that a host belongs to, the easy way, part 2

Posted by asanabria6910 on · Post a comment
linuxdynasty.org; By Allen Sanabria
Mail this story
Print this story

In my previous HowTO, I created the get_port.py script. Now this script did the job, but had a few faults in it. This script has been heavily tested on Cisco Core Switches and on Cisco Catalyst Switches. So far no issues like in the previous one. This script has fixed all the issues in the prior script as well as added functionality. See some below.. Major fault was the fact that the script could not match multiple MAC Addresses per port Also if the port had multiple MAC Addresses it usually would fail while doing the search Better error checking. For example if you searched by IP Address before, the error was ambiguous. Now the error will say the IP Address you are looking for is not in the ARP Table

Full Story

  Nav
» Read more about: Story Type: Tutorial; Groups: Community, Linux, Red Hat, Slackware, Ubuntu

» Get new stories by e-mail: nightly or as they are published

« Return to the newswire homepage

  Related stories
» More like this

Comments

No comments yet. Be the first.

Post a comment

A free account is needed to post. Write your comment here first: your text is kept in this browser while you sign up or log in, and is waiting for you when you come back.

Your message:
|||||
10
Markdown: **bold**, *italic*, [text](https://link), - lists, > quotes, $x^2$ for math. Formatting help

Sign up and post (it is free)  or  Log in and post