From: "Carles Torres Nuñez" <carles@pymag.com>
To: lartc@vger.kernel.org
Subject: [LARTC] Host names scan into a LAN
Date: Thu, 18 Dec 2003 08:19:15 +0000 [thread overview]
Message-ID: <marc-lartc-107173633107097@msgid-missing> (raw)
I'm developing an aplication to search into a range of IPs on the LAN for
NetBios names of the windows running machines. To do it, I'm using a Samba
tool called "nmblookup". It returns a huge amount of netbios information
about a machine, just running it with the IP as a parameter.
The way I'm looking for, is to do the same, for the linux machines. I will
like to get the host name for each linux running machine on the LAN. As you
do "hostname" on the prompt, and it returns its local name, but being able
to ask for any ip on the LAN. Doen't not run for me any GUI software, I just
need a command line utlility. Does any one an idea, where to find this?, Or
may be, if it exists?
Thank you in advance,
Carles Torres
-----Mensaje original-----
De: Carles Torres Nuñez [mailto:carles@pymag.com]
Enviado el: jueves, 18 de diciembre de 2003 9:04
Para: Lista Correo Español
Asunto: capturar los host names de una LAN
Estoy construyendo una aplicacion que busca por el rango de IPs de la LAN
los nombre de NetBios de las maquinas windows que estan en funcionamiento en
ese momento. Para ello utilizo la herramienta de linea de comandos que lleva
samba "nmblookup", que me permite interrogar por una IP, y me retorna mucha
informacion netbios sobre la maquina "escaneada".
Ahora me gustaria poder obtener tambien los host names de los PCs que tienen
linux instalados. Existe alguna manera de lanzar un comando de linea al
estilo de hostname, que solo funciona si estas localmente en la maquina,
pero que se le pueda indicar las ip que debe mirar y retorne el nombre de
host asignado. Necesitaria que fuera un programita de linea de comandos, no
me sirve software con entorno grafico, por que no lo podria llamar desde mi
programa.
Hasta pronto,
Carles Torres
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
next reply other threads:[~2003-12-18 8:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-12-18 8:19 Carles Torres Nuñez [this message]
2003-12-18 10:06 ` [LARTC] Host names scan into a LAN Ben Efros
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=marc-lartc-107173633107097@msgid-missing \
--to=carles@pymag.com \
--cc=lartc@vger.kernel.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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.