Results 1 to 3 of 3
Ok first off let me first say thanks to anyone willing to lend a hand. I'm working at a site which has mostly windows machine but there are a couple ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 08-22-2011 #1Just Joined!
- Join Date
- Aug 2011
- Posts
- 1
Need Help
Ok first off let me first say thanks to anyone willing to lend a hand. I'm working at a site which has mostly windows machine but there are a couple Linux boxes as well SUSE, red hat, Ubuntu. I have to get the inventory for all the servers in my farm and i need toMac address from the linux boxes is there any way to pull mac address from a linux box while i'm on a windows machine?
What i'm trying to say is is there a nbtstat for linux?
Sorry for any confusion and i'm horrible with linux so any help is much apprciated!!!
- 08-22-2011 #2
As a OneShot solution(tm) you could use a ssh multiplexer like pssh
But you would need a suitable base operating system for that. A fedora or ubuntu or <insert unix of your choice>.
Basically:
- get a fedora vm or physical machine
- yum install pssh
- setup ssh authorized key authentication on your unix machines
- then
A more general approach would be to use "facter" from the puppet system management.Code:pssh -h <HOSTLIST_FILE> -o <OUTPUT_DIR> -e <ERROR_DIR> "/sbin/ifconfig"
See at the bottom of this page: Documentation | Puppet Labs - Tools
Of course, you would need to introduce puppet first, which might be out of your current scope.You must always face the curtain with a bow.
- 08-23-2011 #3Trusted Penguin
- Join Date
- May 2011
- Posts
- 3,673
I use nmap to do this - but you have to be root when you run it, in order to get the MAC output. If my ip was 192.168.1.4, then I might do:
Note, if you have to router-hop to get to some machines, this won't work for them.Code:nmap -n -sP 192.168.1.0/24


Reply With Quote
