G***o 发帖数: 5158 | 1 which command shall i use to
grep a list of the names of all computers
on a unix network?
thanks. | j***y 发帖数: 87 | 2 Method 1:(only when you have enough time)
Sit at the first computer, login to a account, type 'hostname' under a shell
prompt. Write the name on a paper.
Sit at the next computer......
The above procedure is repeated until all the computers in the network are
traversed.
Input all the names on the paper to a computer, store as a test file "list.txt"
then list.txt contains all the computer names you need.
Method 2:
use nslookup to lookup the computer names of the ip address in the subnet
【在 G***o 的大作中提到】 : which command shall i use to : grep a list of the names of all computers : on a unix network? : thanks.
| h**h 发帖数: 132 | 3 Method 3,
nslookup
> server ns1.company.com
> ls company.com
then you will get a long list of all registered hostname
under company.com domain, then sort out the ip which you are
looking for.
Method 4
Some network devices provide broadcast ping, say Cisco
router
if you do a
ping 10.60.25.255 (assume that you are in 10.60.24.0/23)
it will give you a fairly completed list of devices on that
subnetwork, but not all NIC responds to broadcast ping. by
doing broadcast ping in cisco router, the ip addr
【在 j***y 的大作中提到】 : Method 1:(only when you have enough time) : Sit at the first computer, login to a account, type 'hostname' under a shell : prompt. Write the name on a paper. : Sit at the next computer...... : The above procedure is repeated until all the computers in the network are : traversed. : Input all the names on the paper to a computer, store as a test file "list.txt" : then list.txt contains all the computer names you need. : Method 2: : use nslookup to lookup the computer names of the ip address in the subnet
|
|