problems with pysmb

S

Serj K.

Hi, all.

i'm having some problems with 'pysmb' module.
What i'm trying to do is to get list of all available shares (servers)
on local ethernet. The net is quite big, and there is no way to know
to how many subnets (sub domains) it is divided. So, what's the best
method to do this?

After calling 'gethostbyname' with '__MSBROWSE__' I have the ip of
master_browse.
But to use the 'smb.SMB(remote_name, remote_host... )' I need to know
the netBiosName of the host, which i don't know (and the reverse
function, name based on ip, is not working, even 'nmblookup -T
xx.xx.xx.xx is not working).

The question is why smb.SMB() needs both the ip and netBIOSName?
And if there is another way to do things? There has to be, 'couse
programms like
LinNeighborhood somehow manage to work.

PS The problem probably is that I don't really understand the whole
concept of netBIOS stuff. In this case can someone please point me to
some brief intriduction?

thanx in advance
 

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

No members online now.

Forum statistics

Threads
474,202
Messages
2,571,057
Members
47,667
Latest member
DaniloB294

Latest Threads

Top