Usage is calling the script with an argument that is a mac address or partial mac address to search for like this

./getmac.pl 68:cd

or

./getmac.pl 00:27:13:68:ce:9c

and the output will be something like

00:27:13:68:ce:9c is found on port Gi 0/1

or

Your Mac Address Was Not Found

In order for it to work you have to set two variables at the top of the script for the switch username and password.