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
LES(8) Maintenance Commands LES(8)
NAME
les, bus - ATM LAN Emulation service demons
SYNOPSIS
les [-d module] [-m module] [-f configuration_file]
bus [-d module] [-m module] [-f configuration_file]
DESCRIPTION
LE Service consists of three components: LAN Emulation Configuration Server (lecs(8)), LAN Emulation Server (les) and Broadcast and Unknown
Server (bus).
Les performs the control coordination function for the emulated LAN. LE clients register MAC addresses and/or route descriptors they rep-
resent to les, and later query it when they want to resolve MAC addresses/route descriptors into ATM addresses. Other LE control messages
which are to be distributed to every client in ELAN are also sent to les. Les forwards these messages using Control Distribute VCC which it
has set up to every client in ELAN.
Bus handles data sent by clients to broadcast and multicast MAC addresses and some of the data directed to unicast addresses. LE Client has
a possibility to send data directed to some unicast address to the bus before target's ATM address has been resolved and the Data Direct
VCC has been established.
Configuration file example for les and bus:
[main]
memdebug=True
debug=True
[load]
#memdebug=True
#debug=True
[conn]
debug=True
#S1, LE Server's ATM address
#S1=:47:00:23:00:00:00:03:00:00:01:00:02:01:00:20:ea:00:05:aa:00
S1=:47:00:23:00:00:00:03:03:00:01:00:02:01:00:20:ea:00:0a:e9:01
#S2, LAN Type
S2="802.3"
#S3, Maximum Frame Size
S3=1516
#S4, Join Timeout, s
S4=15
#S5, Maximum Frame Age, s
S5=6
#S6, BUS Atm address
S6=:47:00:23:00:00:00:03:03:00:01:00:02:01:00:20:ea:00:0a:e9:02 #viulu
#S6=0,0,170
#ELANNAME="asdf"
The configuration file contains each modules name in brackets followed by variable definitions for that module. The definitions are of form
variable=value, where value can be either an integer, a truth value (True/False), a string enclosed in double quotes ("string") or an ATM
address in hexadecimal format. Variables that can be set are the debug/memdebug for each module and variables S1-S6 as defined in LE speci-
fication.
S1=Address of the LES. This address is used in ATM
signalling.
S2=Type of the emulated LAN. Valid values is "802.3".
S3=Maximum frame size. Valid value is 1516.
S4=Join Timeout. Time in seconds which LES waits for
LE_JOIN_REQUEST before tearing down a connection.
S5=Maximum frame Age. Currently not used.
S6=Address of the BUS. This address is used in ATM signalling.
ELANNAME= Name of the emulated LAN
SIGHUP causes restart of the server. All resources are released and server is started. SIGUSR1 causes the server to dump its internal
state. SIGUSR2 shuts down the server (hopefully) gracefully.
OPTIONS
-d module
Set debugging messages on for a module. "All" sets debugging on for all modules.
-m module
Set memory debugging messages on for a module. "All" sets debugging on for all modules.
-f configuration_file
Use the specified configuration file instead of .lanevars.
FILES
.lanevars configuration file
BUGS
Servers don't establish point-to-multipoint connections to LE clients as the specification states, which means that some LE clients won't
work with these servers.
Supports only IEEE 802.3 / Ethernet type of ELANs.
This manual page is confusing.
AUTHOR
Marko Kiiskila, TUT <carnil@cs.tut.fi>
SEE ALSO
lecs(8), atmsigd(8), zeppelin(8)
Linux Sep 11, 1996 LES(8)