ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Vitaly Lipatov <lav@altlinux.ru>
To: ALT Devel discussion list <devel@lists.altlinux.org>
Subject: Re: [devel] NETBIOS machines list
Date: Thu, 21 Jun 2007 01:22:24 +0400
Message-ID: <200706210122.25705.lav@altlinux.ru> (raw)
In-Reply-To: <002e01c7b337$98bfac60$ca3f0520$@ru>

On 20 июня 2007, Gennady Kovalev wrote:
> Никто не в курсе как "правильнее" определять список NETBIOS
> машин в сети на питоне? Можно соединяться к master browser
> server...
>
> Парсить вывод smbclient -L мне кажется не совсем прямым, а вот
> как это сделать с помощью биндингов python-module-samba хоть
> тресни не нашел.
>
>
> Есть идеи?
Вы сможете это сделать, если вызовете функцию cli_NetServerEnum.
Она есть в libsmbclient:
$ objdump -T libsmbclient.so.0 | grep cli_NetServerEnum
000a1d20 g    DF .text  000003c0  Base        cli_NetServerEnum

В заголовочных файлах нет.

-- 
Lav
Виталий Липатов
Санкт-Петербург
GNU! ALT Linux Team! WINE! LaTeX! LyX! http://freesource.info


  reply	other threads:[~2007-06-20 21:22 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-20 12:36 Gennady Kovalev
2007-06-20 21:22 ` Vitaly Lipatov [this message]
2007-06-21  4:46   ` Alexander Bokovoy
2007-06-21  7:44     ` Gennady Kovalev
2007-06-21  8:05       ` Gennady Kovalev
2007-06-21 11:54         ` Igor Zubkov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200706210122.25705.lav@altlinux.ru \
    --to=lav@altlinux.ru \
    --cc=devel@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git