Code Monkey home page Code Monkey logo

macaddy-fixer's Introduction

MacAddy-Fixer

This is a simple python script that accepts an input file of mac addresses in the form of 00AABBCCDDEE and provides an output with colons (00:AA:BB:CC:DD:EE). Useful in many network administration tasks, such as adding mac-addresses to whitelists after scanning them.

Usage

macaddy-fixer.py <macaddress-file> <output-file>

Sample mac-address file:

40AAD752405B
FA0944B25F17
76AD4DEC87C9
7E7FA74ED165
C86D8102AA10
67B06A947A50

Sample output file:

40:AA:D7:52:40:5B
FA:09:44:B2:5F:17
76:AD:4D:EC:87:C9
7E:7F:A7:4E:D1:65
C8:6D:81:02:AA:10
67:B0:6A:94:7A:50

Usecase and inspiration for the script

While scanning the mac-addresses for a large deployment of Aruba Remote APs, I found the the mac-addresses were missing the colons. Unfortunately, to whitelist the APs in the Aruba controller, I needed to have the mac-address with the colons. I took the script a step further and made the output be the list of commands to whitelist each mac-address in the controller.

macaddy-fixer's People

Contributors

steaksauce- avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.