GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - yugan6669/macaddress_restapi: This Repository contains python code and containerized python application in order to obtain Company Name for required MAC Addresses

BranchesTags
Open more actions menu

Latest commit

 

History

19 Commits
19 Commits

Folders and files

NameName
Last commit message
Last commit date
Dockerfile
Dockerfile
 
 
README.md
README.md
 
 
mac_addrs.py
mac_addrs.py
 
 
mac_addrs.sh
mac_addrs.sh
 
 
mac_addrs.txt
mac_addrs.txt
 
 

Repository files navigation

Project Title:

Fetching the data like Company Name for the Required MAC Addresses through hitting the REST API(https://macaddress.io)

Details of used Language and Tools

Programming Language Scripting Language Containerization_Tool Created_By Creation_Date
python3 shell scripting docker Ugander Dabbara 2019-06-18

Description:

Scripting a python code using (macaddress.io/api) (REST API database) and it should display output as in the database and then dockerized.(Using mutli-satge Dockerfile and create the Docker Image and run the image and get proper output)

Pre-Requisites:

  • RESTAPI databse (https://macaddress.io/)
  • Operating System (Linux)
  • Install python3
  • Install docker

Process of Execution:

  • This script has two arguments i.e., argument1 is API_KEY and argument2 is MAC_ADDRESS.

  • Generate the API_KEY from https://macaddress.io/ .

  • Write the python script with two runtime arguments and display the output of macAddressDetails.
    Execute the python script like i.e.,

                  $ python3 mac_addrs.py <API_KEY> <MAC_ADDRESS> 
    
    
  • Write the multli-stage dockerfile.

  • Build the Image using Dockerfile and then Run the Image like i.e., (This step is optional, not the part of this execution process and it is showing individually how to build the Image and running the container , we can go for next step)

                  $ docker build -t <tagname> <path of dockerfile>
                  $ docker run -it <tagname>/<ImageID> <API_KEY> <MAC_ADDRESS>
    
    
  • Create bash script mac_addrs.sh and execute.

  • Execute the bash script.

    • build the image
    • create one text file like mac_addrs.txt and maintain all MacAddresses in this file.
    • execute the script and display the output according to that MAC_ADDRESS found in mac_addrs.txt file if mac_addrs.txt file not found it will display README.md.
                  $ bash docker-script.sh
                  Enter API Key: <API_KEY>
                  
                  Output is like this:
                  
                  Below details are vendorDetails:
                  Company Name is: Cumulus Networks, Inc
                  Comapany Address is: 650 Castro Street, suite 120-245 Mountain View  CA  94041 US
                  CountryCode is: US
                  oui is: 443839
                  MacAddress is: 44:38:39:ff:ef:57
    

About

This Repository contains python code and containerized python application in order to obtain Company Name for required MAC Addresses

Resources

Readme
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.