Auto scan d'un réseau

Closed
fsts
Posts
25
Registration date
Friday June 13, 2008
Status
Member
Last seen
October 17, 2010
- Dec 11, 2009 at 04:30 AM
fsts
Posts
25
Registration date
Friday June 13, 2008
Status
Member
Last seen
October 17, 2010
- Dec 11, 2009 at 06:10 AM
bonjour,

je suis entrain de developper un script shell pour détecter les machines connectés dans un réseau et j'arrive a recuperer les adresses ip des machines alive mais je n'arrive pas a trouver le hostname.
quel qu'un peut m'aider svp.

NB: je suis sous linux

5 replies

Blocked Profile
Dec 11, 2009 at 04:59 AM
Dear Sir,

Please express yourself in clear English Language so that

we get to understand the problem that you are facing and

hence help you.

Thanks in advance.
0
fsts
Posts
25
Registration date
Friday June 13, 2008
Status
Member
Last seen
October 17, 2010

Dec 11, 2009 at 05:06 AM
hi,
i'm sorry for using french.
i'm workin on a script to detect all computers and routers... on my network, and i can find the ip of the alive hosts but i can't find the hoste name.

thanks for your help.

PS: i'm using linux.
0
fsts
Posts
25
Registration date
Friday June 13, 2008
Status
Member
Last seen
October 17, 2010

Dec 11, 2009 at 05:46 AM
help plz
0
closeup22
Posts
8925
Registration date
Friday May 15, 2009
Status
Member
Last seen
October 7, 2010
2,108
Dec 11, 2009 at 05:54 AM
Dear Sir,

Please add the following in your script to have the names

of the host:

Option Explicit

Dim WSHShell
Dim objNTInfo
Dim GetComputerName

Set objNTInfo = CreateObject("WinNTSystemInfo")
GetComputerName = lcase(objNTInfo.ComputerName)

Set WSHShell = WScript.CreateObject("WScript.Shell")
WSHShell.Popup(GetComputerName)

WScript.Quit

Hope that the information provided solves the matter.

Thanks.
0

Didn't find the answer you are looking for?

Ask a question
fsts
Posts
25
Registration date
Friday June 13, 2008
Status
Member
Last seen
October 17, 2010

Dec 11, 2009 at 06:10 AM
sorry but can you more explain your script for example dim? and the objects

thanks
0