python and LAN

E

Egor Bolonev

Hello, All!

I wish to write a programs for LAN, but I don't know where to begin.

For example I have to get a hostlist of my network:
....
192.168.1.35 acca
192.168.3.38 alligator
192.168.1.1 alpha
192.168.2.31 andp-duha
192.168.5.76 angel
192.168.2.49 anny
192.168.3.26 antracit
192.168.3.35 array
192.168.5.39 arsen
192.168.4.64 asperansa
192.168.2.44 assasin
192.168.5.17 asterix
192.168.4.53 baggins
192.168.2.38 bars
192.168.4.24 basilio
192.168.4.28 batchhq
192.168.5.46 bazuka
192.168.2.27 benladen
192.168.2.48 bigmag
192.168.4.39 bilya
....

How can I do it with python?

With best regards, Egor Bolonev. E-mail: (e-mail address removed)
 
T

Thomas Guettler

Am Sat, 03 Jan 2004 20:16:09 +1000 schrieb Egor Bolonev:
Hello, All!

I wish to write a programs for LAN, but I don't know where to begin.

For example I have to get a hostlist of my network:
...
192.168.1.35 acca
192.168.3.38 alligator

What operating system do you use?

Some systems answer ping to the
broadcast address, but not all

ping 255.255.255.255

If you network is not switched, you
can listen to the wire by setting
the ethernet card to promiscuous mode.
Google for tcpdump.

But this has nothing to do with python.

thomas
 
E

Egor Bolonev

Hello, Thomas!
You wrote on Mon, 05 Jan 2004 16:09:42 +0100:

TG> What operating system do you use?

winXP, LAN consists of ~300 pc's, 5 segment, Iam not admin

TG> Some systems answer ping to the
TG> broadcast address, but not all

Is there any modules for LAN in python? How to get list of pc's now working?
....['\\\\delta\\upload\\RAdmin', '\\\\delta\\upload\\Norton AntiVirus 2002',
'\\\\delta\\upload\\htm', '\\\\delta\\upload\\K&M',
'\\\\delta\\upload\\AVP', '\\\\delta\\upload\\From DemoN',
'\\\\delta\\upload\\From Merkava_Mk4 \xec\xf3\xeb\xfc\xf2\xfb',
'\\\\delta\\upload\\Max Payne 2 Bonus', '\\\\delta\\upload\\Demoscene',
'\\\\delta\\upload\\3DAnalyze',
....

With best regards, Egor Bolonev. E-mail: (e-mail address removed)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,772
Messages
2,569,593
Members
45,111
Latest member
KetoBurn
Top