10-01-2005
Script to get IP addresses of LAN computers
I need a shell script for OS X, one that can find IP addresses of machines connected to my LAN, get the names of the computer associated with those addresses, then display them like so in a list: "Bob's L33T Boxx: #.#.#.#" Something like the network scanner in Apple Remote Desktop is what I'm looking to recreate. Is there a way to do this? Thanks a lot!
9 More Discussions You Might Find Interesting
1. IP Networking
This might be a silly question....
I was wondering what would happen if a user connected on a LAN set up their IP address to match the IP of an existing computer on the LAN. Particularly if both computers were hosting web servers.
Is there a way to change the system boot of a comp to make... (2 Replies)
Discussion started by: LilHasher
2 Replies
2. UNIX for Advanced & Expert Users
Im old to Unix but new to scripting
I have a MacBook running osx that I want to use as an nfs client. The server will be a linux box with a wake on lan card. Here's the idea. Run a cron command on the mac every minute that checks if I am on my home wireless network (the linux box is wired to... (0 Replies)
Discussion started by: anon0mus
0 Replies
3. Shell Programming and Scripting
m old to Unix but new to scripting
I have a MacBook running osx that I want to use as an nfs client. The server will be a linux box with a wake on lan card. Here's the idea. Run a cron command on the mac every minute that checks if I am on my home wireless network (the linux box is wired to... (6 Replies)
Discussion started by: anon0mus
6 Replies
4. Solaris
Hi ,
I am trying to configure a private LAN and corporate LAN on the same machien on Solaris 10.
How can I achieve this?
Thanks (1 Reply)
Discussion started by: deedee
1 Replies
5. Shell Programming and Scripting
Hello all.
I have built a cluster of 9 Macs for computational chemistry and I need a shell script that I can use from one computer to all the rest to shutdown.
I have modified all of the Macs so that there is pass-wordless ssh. As well, I have modified each "visudo" file on each machine by... (1 Reply)
Discussion started by: marcozd
1 Replies
6. IP Networking
Hi,
We have a website running on a local centos 5.4 surfer, static IP.
The domain.com uses no-ip.com to take care of the DNS, it forwards all to my server.
My router receives the port 80 call, routes it to my server and the world can see domain.com perfectly fine.
However, we cannot see... (3 Replies)
Discussion started by: lawstudent
3 Replies
7. Fedora
Hi All, I am pretty new to unix type languages. At work we have a server room with about 50 windows computers in one system and 50 in a unix system. We sometimes have power outages and I don't like the power slam. I wrote a windows batch file using sysinternals help to shutdown the windows... (4 Replies)
Discussion started by: Jeff Rollins
4 Replies
8. Shell Programming and Scripting
#!/bin/bash
for ((n=0 ; n < 254 ; n+=1))
do
ip=192.168.0.$n
if ping -c 1 -w 1 $ip > /dev/null 2> /dev/null >> /etc/logping.txt; then
echo "${ip} is up" # output up
# sintax >> /etc/logping.txt log with .txt format
else
echo "${ip} is down" # output... (4 Replies)
Discussion started by: Roggy
4 Replies
9. Shell Programming and Scripting
Hy over there,
Lets make it simple :)
Using a bash script, how to grep only the ip address and the mac address and put them in a file:.
for example from the dhcp.conf file we got such things:
The script will end up with two columns IP's and MAC adresses as it is showed below:
... (9 Replies)
Discussion started by: hermouche
9 Replies
WAKE(8) BSD System Manager's Manual WAKE(8)
NAME
wake -- send Wake on LAN frames to hosts on a local Ethernet network
SYNOPSIS
wake [interface] lladdr [lladdr ...]
DESCRIPTION
The wake program is used to send Wake on LAN (WoL) frames over a local Ethernet network to one or more hosts using their link layer (hard-
ware) addresses. WoL functionality is generally enabled in a machine's BIOS and can be used to power on machines from a remote system with-
out having physical access to them.
interface is an Ethernet interface of the local machine and is used to send the Wake on LAN frames over it. If there is only one Ethernet
device available that is up and running, then the interface argument can be omitted. lladdr is the link layer address of the remote machine.
This can be specified as the actual hardware address (six hexadecimal numbers separated by colons) or as a hostname entry in /etc/ethers.
wake accepts multiple lladdr addresses. Link layer addresses can be determined and set using ifconfig(8).
FILES
/etc/ethers Ethernet host name data base.
SEE ALSO
ethers(5), ifconfig(8)
AUTHORS
wake was written by Marc Balmer <marc@msys.ch>.
BSD
December 27, 2009 BSD