SlideShare a Scribd company logo
How To List All MAC Address and IP Address with Vendor Info
Overview
The purpose of this document is to identify to list all the active MAC Address, IP Address and the hardware
vendor information associated with IEEE.
This script will collects information from arp command. Also the script will provide a link to the hardware
vendor of the NIC card; which is first 3 octets of MAC Address.
 IP Address
 MAC Address
 Hyperlink to Hardware Vendor
Applies To
CentOS 7, RHEL 7
Pre-requisites
 arp
Shell Script Snippet
#!/bin/bash
(
printf "<HTML>n<TITLE>LAN IPs, MAC Address and Hardware Information </TITLE>n"
printf "<BODY><H1> LAN IPs, MAC Address and Hardware Information</H1>n"
printf "<TABLE border=1>"
arp -a | awk '{print $2,$4}' | awk -F'[().: ]' '{print "<TR><TD><B>IP Address:</B> </TD><TD
width=120px>" $2"."$3"."$4"."$5,"</TD><TD><B>MAC Address: </B></TD><TD
width=120px>",$7":"$8":"$9":"$10":"$11":"$12,"</TD>""<TD width=280px><a
href="http://standards.ieee.org/cgi-bin/ouisearch?"$7$8$9"">IEEE Hardware Vendor Lookup "$7"-
"$8"-"$9"</a></TD></TR>"}'
printf "</TABLE>n"
printf "n</BODY>n</HTML>n"
) | tee ${0##*/}.html # Send Standard Output to file
# Send E-Mail Notification - Snippet
(
echo From: ReceiptsEMailAddress@domain.com
echo To: SendersEMailAddress@domain.com
echo "Content-Type: text/html; "
echo Subject: IP Address - MAC Address and Hardware Vendor Information
echo
cat ${0##*/}.html # Set Cat output as a body of the email
How To List All MAC Address and IP Address with Vendor Info
) | sendmail -t
A Sample HTML Output

More Related Content

PDF
Bash Script Disk Space Utilization Report and EMail
PDF
File Space Usage Information and EMail Report - Shell Script
PPTX
Commit2015 kharchenko - python generators - ext
PPTX
2015 555 kharchenko_ppt
DOCX
serverstats
PDF
KubeCon EU 2016: Custom Volume Plugins
PDF
R版Getopt::Longを作ってみた
PPTX
Process monitoring in UNIX shell scripting
Bash Script Disk Space Utilization Report and EMail
File Space Usage Information and EMail Report - Shell Script
Commit2015 kharchenko - python generators - ext
2015 555 kharchenko_ppt
serverstats
KubeCon EU 2016: Custom Volume Plugins
R版Getopt::Longを作ってみた
Process monitoring in UNIX shell scripting

What's hot (20)

PDF
Ethiopian multiplication in Perl6
PPTX
Cis 216 – shell scripting
PDF
Workshop on command line tools - day 2
PDF
Workshop on command line tools - day 1
PDF
Redis as a message queue
PDF
Unix cheatsheet
PPT
Hands on Hadoop
PDF
Git Tutorial Yang Yang
PDF
Angular Refactoring in Real World
PDF
GHCソースコード読みのススメ
PDF
PPTX
CouchDB Day NYC 2017: Full Text Search
PDF
PuppetDB, Puppet Explorer and puppetdbquery
PPTX
Creating a keystroke logger in unix shell scripting
PDF
Apache Hadoop for System Administrators
TXT
Crack.ba
PDF
Productivity tips for developers
KEY
Tres Gemas De Ruby
PDF
Bash Scripting Workshop
PDF
Redis & ZeroMQ: How to scale your application
Ethiopian multiplication in Perl6
Cis 216 – shell scripting
Workshop on command line tools - day 2
Workshop on command line tools - day 1
Redis as a message queue
Unix cheatsheet
Hands on Hadoop
Git Tutorial Yang Yang
Angular Refactoring in Real World
GHCソースコード読みのススメ
CouchDB Day NYC 2017: Full Text Search
PuppetDB, Puppet Explorer and puppetdbquery
Creating a keystroke logger in unix shell scripting
Apache Hadoop for System Administrators
Crack.ba
Productivity tips for developers
Tres Gemas De Ruby
Bash Scripting Workshop
Redis & ZeroMQ: How to scale your application
Ad

Viewers also liked (20)

PDF
Shell Script Disk Usage Report and E-Mail Current Threshold Status
PDF
DNF Failed To Open Cache
PDF
How To Audit Server Login and Shutdown or Reboot Activity
PDF
Installation CentOS 6.3
PDF
How to Install and Configure AWS CLI on RHEL 7
PDF
How To Manage Yum Packages Interactive Shell
PDF
How To Install OpenFire in CentOS 7
PDF
How To Create RDS Database for WordPress in AWS on RHEL 7 or CentOS 7
PDF
How To Install and Configure AWS CLI on RHEL 7
PDF
Bash Script - How To Monitor Application Error Logs and Send Notification
PDF
How to Troubleshoot SELinux Audit2Allow unable to open (null)
PDF
How To Manage Yum Packages - Group Packages
PDF
How To Install and Configure Splunk on RHEL 7 in AWS
PDF
How To Manage Services on RHEL 7 or CentOS 7
PDF
How To Manage Yum History
PDF
How To Manage Yum Repositories
PDF
How To List YUM Packages
PDF
How To Manage Yum Cache
PDF
How to Manage journalctl Logging System on RHEL 7
PDF
Install Active Directory PowerShell Module on Windows 10
Shell Script Disk Usage Report and E-Mail Current Threshold Status
DNF Failed To Open Cache
How To Audit Server Login and Shutdown or Reboot Activity
Installation CentOS 6.3
How to Install and Configure AWS CLI on RHEL 7
How To Manage Yum Packages Interactive Shell
How To Install OpenFire in CentOS 7
How To Create RDS Database for WordPress in AWS on RHEL 7 or CentOS 7
How To Install and Configure AWS CLI on RHEL 7
Bash Script - How To Monitor Application Error Logs and Send Notification
How to Troubleshoot SELinux Audit2Allow unable to open (null)
How To Manage Yum Packages - Group Packages
How To Install and Configure Splunk on RHEL 7 in AWS
How To Manage Services on RHEL 7 or CentOS 7
How To Manage Yum History
How To Manage Yum Repositories
How To List YUM Packages
How To Manage Yum Cache
How to Manage journalctl Logging System on RHEL 7
Install Active Directory PowerShell Module on Windows 10
Ad

Similar to Shell Script to Extract IP Address, MAC Address Information (20)

PPTX
Linux networking
PDF
The ifconfig Command
PDF
Network commands
DOCX
PDF
Boost your network troubleshooting skills with Top Usefeul IP Commands for wi...
PDF
Top IP Commands for Windows : Boost your network troubleshooting skills with ...
PDF
Explore Top IP Commands for Windows - InfosecTrain.pdf
PDF
𝐓𝐨𝐩 𝐈𝐏 𝐂𝐨𝐦𝐦𝐚𝐧𝐝𝐬 𝐟𝐨𝐫 𝐖𝐢𝐧𝐝𝐨𝐰𝐬
PDF
Top Useful IP Commands for Windows.pdf
PDF
nwlab-ex1.pdf
PPTX
Network configuration
ODP
Securing the network for VMs or Containers
DOCX
Lab view the switch mac address table lab - view the switch
PPT
dokumen.tips_linux-networking-commands.ppt
DOCX
Useful Linux commands
PDF
11 mac address table characteristic configuration
PPT
Linux Networking Commands
PDF
Aruba OS 6.4 Command Line Interface Reference Guide
PDF
tep 2 Display the switch MAC address .pdf
PDF
Complete Nmap Scanning Commands CheatSheet by Hackopedia Utkarsh Thakur
Linux networking
The ifconfig Command
Network commands
Boost your network troubleshooting skills with Top Usefeul IP Commands for wi...
Top IP Commands for Windows : Boost your network troubleshooting skills with ...
Explore Top IP Commands for Windows - InfosecTrain.pdf
𝐓𝐨𝐩 𝐈𝐏 𝐂𝐨𝐦𝐦𝐚𝐧𝐝𝐬 𝐟𝐨𝐫 𝐖𝐢𝐧𝐝𝐨𝐰𝐬
Top Useful IP Commands for Windows.pdf
nwlab-ex1.pdf
Network configuration
Securing the network for VMs or Containers
Lab view the switch mac address table lab - view the switch
dokumen.tips_linux-networking-commands.ppt
Useful Linux commands
11 mac address table characteristic configuration
Linux Networking Commands
Aruba OS 6.4 Command Line Interface Reference Guide
tep 2 Display the switch MAC address .pdf
Complete Nmap Scanning Commands CheatSheet by Hackopedia Utkarsh Thakur

More from VCP Muthukrishna (20)

PDF
How to Fix Duplicate Packages in YUM on CentOS 7
PDF
How To Install and Configure GNome on CentOS 7
PDF
How To Connect to Active Directory User Validation
PDF
How To Connect To Active Directory PowerShell
PDF
How To List Files on Remote Server - PowerShell
PDF
How To List Files and Display In HTML Format
PDF
How To Check and Delete a File via PowerShell
PDF
Zimbra Troubleshooting - Mails not being Delivered or Deferred or Connection ...
PDF
How To Setup SSH Keys on CentOS 7
PDF
How To Install and Configure Open SSH Server on Ubuntu
PDF
Windows PowerShell Basics - How To List PSDrive Info
PDF
How To List Nginx Modules Installed / Complied on CentOS 7
PDF
Windows PowerShell Basics – How To Create powershell for loop
PDF
How To Construct IF and Else Conditional Statements
PDF
How To Create PowerShell Function Mandatory Parameter and Optional Parameter
PDF
How To Create Power Shell Function Mandatory Parameter Value
PDF
How To Create PowerShell Function
PDF
How To Disable IE Enhanced Security Windows PowerShell
PDF
How To Check IE Enhanced Security Is Enabled Windows PowerShell
PDF
How To Configure Nginx Load Balancer on CentOS 7
How to Fix Duplicate Packages in YUM on CentOS 7
How To Install and Configure GNome on CentOS 7
How To Connect to Active Directory User Validation
How To Connect To Active Directory PowerShell
How To List Files on Remote Server - PowerShell
How To List Files and Display In HTML Format
How To Check and Delete a File via PowerShell
Zimbra Troubleshooting - Mails not being Delivered or Deferred or Connection ...
How To Setup SSH Keys on CentOS 7
How To Install and Configure Open SSH Server on Ubuntu
Windows PowerShell Basics - How To List PSDrive Info
How To List Nginx Modules Installed / Complied on CentOS 7
Windows PowerShell Basics – How To Create powershell for loop
How To Construct IF and Else Conditional Statements
How To Create PowerShell Function Mandatory Parameter and Optional Parameter
How To Create Power Shell Function Mandatory Parameter Value
How To Create PowerShell Function
How To Disable IE Enhanced Security Windows PowerShell
How To Check IE Enhanced Security Is Enabled Windows PowerShell
How To Configure Nginx Load Balancer on CentOS 7

Recently uploaded (20)

PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PPTX
MYSQL Presentation for SQL database connectivity
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
KodekX | Application Modernization Development
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PPTX
Big Data Technologies - Introduction.pptx
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
Dropbox Q2 2025 Financial Results & Investor Presentation
MYSQL Presentation for SQL database connectivity
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Unlocking AI with Model Context Protocol (MCP)
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Reach Out and Touch Someone: Haptics and Empathic Computing
KodekX | Application Modernization Development
20250228 LYD VKU AI Blended-Learning.pptx
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
NewMind AI Weekly Chronicles - August'25 Week I
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Per capita expenditure prediction using model stacking based on satellite ima...
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Big Data Technologies - Introduction.pptx
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Advanced methodologies resolving dimensionality complications for autism neur...
Digital-Transformation-Roadmap-for-Companies.pptx

Shell Script to Extract IP Address, MAC Address Information

  • 1. How To List All MAC Address and IP Address with Vendor Info Overview The purpose of this document is to identify to list all the active MAC Address, IP Address and the hardware vendor information associated with IEEE. This script will collects information from arp command. Also the script will provide a link to the hardware vendor of the NIC card; which is first 3 octets of MAC Address.  IP Address  MAC Address  Hyperlink to Hardware Vendor Applies To CentOS 7, RHEL 7 Pre-requisites  arp Shell Script Snippet #!/bin/bash ( printf "<HTML>n<TITLE>LAN IPs, MAC Address and Hardware Information </TITLE>n" printf "<BODY><H1> LAN IPs, MAC Address and Hardware Information</H1>n" printf "<TABLE border=1>" arp -a | awk '{print $2,$4}' | awk -F'[().: ]' '{print "<TR><TD><B>IP Address:</B> </TD><TD width=120px>" $2"."$3"."$4"."$5,"</TD><TD><B>MAC Address: </B></TD><TD width=120px>",$7":"$8":"$9":"$10":"$11":"$12,"</TD>""<TD width=280px><a href="http://standards.ieee.org/cgi-bin/ouisearch?"$7$8$9"">IEEE Hardware Vendor Lookup "$7"- "$8"-"$9"</a></TD></TR>"}' printf "</TABLE>n" printf "n</BODY>n</HTML>n" ) | tee ${0##*/}.html # Send Standard Output to file # Send E-Mail Notification - Snippet ( echo From: ReceiptsEMailAddress@domain.com echo To: SendersEMailAddress@domain.com echo "Content-Type: text/html; " echo Subject: IP Address - MAC Address and Hardware Vendor Information echo cat ${0##*/}.html # Set Cat output as a body of the email
  • 2. How To List All MAC Address and IP Address with Vendor Info ) | sendmail -t A Sample HTML Output