> Is there command in Linux , like "net view" command in Windows command
> line ?
smbtree?
> Or how could I find all computers on my network ?
Follow the wires? Or try nmap?
> How could I find what does they share ? share access ?
Information underload error!
--
Andy.
if you are connected to a hub, doing an 'arp -a' could list off a few of
them. also, a 'tcpdump' could show all the traffic that is being sent over
the network. again, you would have to be on a hub, not a switch network..
could also try a broadcast ping.. ex. your ip is 192.168.1.12 on a
255.255.255.0 subnet:
ping 192.168.1.255
or
ping 192.168.1.255 -b
every reply back would be a machine on the network.. not all OS will respond
to that..
If you run samba you should be able to connect, and be aware of, your M$
machines. Please do remember, Linux is not M$!
there is no UNIVERSALLY RELIABLE way to query your network to determine
what machines are on the network in an ethernet/TCPIP environment. The
SMB based queries that windoze machines respond to is a windoze specific
service and not generally recognized by posix machines unless they
happen to be running a compatibility daemon such as SAMBA.
There are lots of ifs, ands and buts, so that in some environments you
can query machines on the network but this is VERY environment specific.
As others have stated somtimes things like arp work, or if on an ATM
network and you have access to the ethernet layer management software
you can determine what MACs (media access converter id, not apples) are
active on the network...Some well managed environment run SNMP on all
their machines and that can provide hooks to remotely query and manage
the machines.
arp -a wont actually list the hubs, it may list some of the computers on the
network.