def get_host_list(dmbip) use an IP and pass it to smbclient
/usr/bin/smbclient -N -L //192.168.1.101 2>/dev/null
but result of this is not a list of hosts in the domain, but a list of shares in ONE host (PC).
May be my english is bad or the name of this function is not well chosen.
Sharename Type Comment
--------- ---- -------
PDFCreator Printer eDoc Printer
Vu Disk
IPC$ IPC IPC distant
D$ Disk Partage par défaut
Documents Disk
print$ Disk Pilotes d'imprimantes
ADMIN$ Disk Administration à distance
C$ Disk Partage par défaut
session request to 192.168.1.101 failed (Called name not present)
session request to 192 failed (Called name not present)
For informations in pysmb.py
def get_host_ list(dmbip) use an IP and pass it to smbclient
/usr/bin/smbclient -N -L //192.168.1.101 2>/dev/null
but result of this is not a list of hosts in the domain, but a list of shares in ONE host (PC).
May be my english is bad or the name of this function is not well chosen.
kagou@satori:~$ /usr/bin/smbclient -N -L //192.168.1.101 2>/dev/null
Sharename Type Comment
--------- ---- -------
PDFCreator Printer eDoc Printer
Vu Disk
IPC$ IPC IPC distant
D$ Disk Partage par défaut
Documents Disk
print$ Disk Pilotes d'imprimantes
ADMIN$ Disk Administration à distance
C$ Disk Partage par défaut
session request to 192.168.1.101 failed (Called name not present)
session request to 192 failed (Called name not present)
Server Comment
--------- -------
Workgroup Master
--------- -------