LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Closed Thread
  Search this Thread
Old 09-10-2009, 01:58 AM   #1
usagi32
LQ Newbie
 
Registered: Sep 2009
Posts: 4

Rep: Reputation: 0
script to get HWaddr of all nodes on a cluster?


Hi,

I need to create a list of all the hostnames and their HWaddr (hardware addresses [also called MAC address]) for all the nodes on my Linux cluster.

I know that all the hostnames can be found in /etc/hosts, but there doesn't seem to be a list of HWaddr numbers.

I guess one can write a script to ssh into all the hostnames found in /etc/hosts and execute the command

/sbin/ifconfig | grep 'HWaddr'

on each node and concatenate this into a single text file. My Linux skills are not good enough to do this though.

Does anyone know if there is a list of HWaddr numbers in a system directory, or alternatively, does someone know how to write a script to generate the HWaddr lists?

Thanks,
Bryan
 
Old 09-10-2009, 03:32 AM   #2
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
This is a duplicate of http://www.linuxquestions.org/questi...luster-754062/. Please, follow discussion there. This one reported for closure.
 
  


Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Hwaddr of all nodes on a cluster usagi32 Linux - Server 4 09-11-2009 12:21 AM
Cluster....which distro is best for the Nodes? KaptinKABOOM Linux - Software 7 06-14-2004 09:34 PM
rsh on Cluster nodes rudy3107 Linux - Software 0 07-22-2003 07:53 AM
How do i create an a/c at all nodes in the cluster dogma Linux - Networking 4 05-19-2003 11:21 AM
rsh between 2 nodes on a Linux Cluster marxsmann Linux - General 2 01-26-2003 05:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration