Redian新闻
>
How do i get a list of all computers?
avatar
How do i get a list of all computers?# Unix - 噫吁兮,危乎高哉
G*o
1
which command shall i use to
grep a list of the names of all computers
on a unix network?
thanks.
avatar
j*y
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.

avatar
h*h
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

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。