Sponsored Content
Top Forums Shell Programming and Scripting Script to get IP addresses of LAN computers Post 85327 by Kelam_Magnus on Tuesday 4th of October 2005 03:10:56 PM
Old 10-04-2005
You could search every IP in your domain... then perform an nslookup on them. If that is available in os x...
 

9 More Discussions You Might Find Interesting

1. IP Networking

Duplicate IP addresses on a LAN

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

Wake on Lan script

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

Wake on LAN script

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

How to configure private LAN and coporate LAN on the same machine-Solaris10

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

Shell script to Shutdown Computers on Cluster

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

Local Lan, no-ip directed DNS forward, surf within lan

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

Script for shutting down 48 computers

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

Can i see wich Computers are up in my network with a script

#!/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

Script getting IP's and MAC addresses

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
atmelan(8)						      System Manager's Manual							atmelan(8)

NAME
atmelan - Configures LAN-Emulation clients as network interfaces. SYNOPSIS
/usr/sbin/atmelan command arguments OPTIONS
This section is organized by the tasks you can perform with the atmelan command. Each task subsection provides the atmelan command syntax and the arguments to use to complete the tasks. Creating a LAN-Emulation Client Syntax: /usr/sbin/atmelan create driver=name [type=type] [mtu=mtu] [name=elan_name] [lecs=addr [,addr, addr, addr] | les=addr] [unit=unit_number | elan=unit_number] Creates a new LAN-Emulation Client (LEC) and configures it as a network interface. If no additional arguments are specified, the defaults are 802.3 type and an MTU of 1516 bytes. Specifies the physical interface with which to associate the new LEC. Specifies the interface type. The following types are supported: Ethernet/802.3. Specifies the message transfer unit (MTU) size. The following MTU sizes are sup- ported: 1516, 4544, 9234, and 18190. When specified with the name option, the emulated LAN must already be configured on the ATM switch to support the specified MTU size. If it is not configured for the specified MTU size, the request is ignored. Specifies the name of the emulated LAN to join. The emulated LAN name must already be configured on the ATM switch. If the name is not configured on the ATM switch, the LEC joins the default emulated LAN. Note You can join an emulated LAN on a switch only once for each adapter; do not join the same elan multiple times from the same adapter. If you want to join the same emulated LAN on the same switch, you must install another adapter and join the emulated LAN from it. Specifies that the LEC connect to the LAN-Emulation Configuration Server (LECS) at the ATM address specified by the addr arguments for the emulated LAN configuration. You can specify up to 4 addresses. The LEC tries the addresses in order until a successful configuration has been completed. If all addresses fail, the "well known address" is tried before the process begins again. If no lecs option is specified (default), the LEC connects to the LECS at the "well known address". Do not use the lecs option with the les option. Specifies that the LEC go directly to the LAN-Emulation Server (LES) at the ATM address specified by addr argument and bypass the configuration phase. If this argument is not specified, the LEC contacts a LAN-Emulation Configuration Server (LECS) to obtain a LES address. Do not use the les option with the lecs option. Specifies a LEC interface unit number. Specifies an ELAN unit number. For example, to create an emulated LAN interface using Ethernet frame format and Fiber Distributed Data Interface (FDDI) frame sizes, enter: # atmelan create driver=lta0 mtu=4544 To create an emulated LAN interface that bypasses the configuration phase and directly contacts a LAN-Emulation Server (LES), enter: # atmelan create les=LES_A The ATM address is an alias that is in the /etc/atmhosts file. Detaching a LEC Interface from an ATM Network Syntax: /usr/sbin/atmelan detach unit=unit_number | elan=unit_number Detaches a LEC interface specified by either unit or elan arguments from an ATM network. Specifies a LEC interface unit number. The unit_number is obtained by the netstat -i command. Specifies an ELAN unit number. The unit_number is obtained by the netstat -i command. Attaching a LEC Interface to an ATM Network Syntax: /usr/sbin/atmelan attach driver=name unit=unit_number | elan=unit_number [lecs=addr [,addr, addr, addr] | les=addr] [name=elan_name] [type=type] [mtu=mtu] Attaches the specified, previously detached LEC network interface to an ATM network. After the LEC interface is attached, issue the ifcon- fig elanx up command to configure the interface. Specifies the physical interface with which to associate the LEC. Specifies a LEC inter- face unit number. This is the unit number that was previously detached. Specifies an ELAN unit number. This is the unit number that was previously detached. Specifies that the LEC connect to the LAN-Emulation Configuration Server (LECS) at the ATM address specified by the addr arguments for the emulated LAN configuration. You can specify up to 4 addresses. The LEC tries the addresses in order until a suc- cessful configuration has been completed. If all addresses fail, the "well known address" is tried before the process begins again. If no lecs option is specified (default), the LEC connects to the LECS at the "well known address". Do not use the lecs option with the les option. Specifies that the LEC go directly to the LAN-Emulation Server (LES) at the ATM address specified by addr argument and bypass the configuration phase. If this argument is not specified, the LEC contacts a LAN-Emulation Configuration Server (LECS) to obtain a LES address. Do not use the les option with the lecs option. Specifies the name of the emulated LAN to join. The emulated LAN name must already be configured on the ATM switch. If the name is not configured on the ATM switch, the LEC joins the default emulated LAN. Speci- fies the interface type. The following types are supported: Ethernet/802.3. Specifies the message transfer unit (MTU) size. The following MTU sizes are supported: 1516, 4544, 9234, and 18190. When specified with the name option, the emulated LAN must already be configured on the ATM switch to support the specified MTU size. If it is not configured for the specified MTU size, the request is ignored. Displaying State and Counters for an LEC Interface Syntax: /usr/sbin/atmelan show | status [unit=unit_number] Shows the state and counters for a LEC interface. If no unit number is specified, information for LEC unit 0 (elan0) is displayed. Shows the state and counters for a LEC interface. If no unit number is specified, information for LEC unit 0 (elan0) is displayed. Specifies a LEC interface unit number, if you want to display LEC information for LEC unit numbers other than unit 0 (elan0). The unit_number is obtained by the netstat -i command. For example, unit 0 is elan0, unit 1 is elan1, and so on. DESCRIPTION
The atmelan command creates and configures LAN-Emulation Clients (LEC) as network interfaces. The first interface created appears as elan0, the second as elan1, and so on. The atmelan command can also show counters, parameters, and the state of each LEC. SEE ALSO
Commands: atmconfig(8), atmsig(8), learp(8) Files: atmhosts(4) Asynchronous Transfer Mode Network Administration atmelan(8)
All times are GMT -4. The time now is 08:00 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy