Display Machine Name & Ip Address

Dear Sir,

I need how many computer(name or Ip addr) on-line in the same network. suppose machine shutdown or disconnect from network no need to display(Should).

Pls...Pls...Pls.  V.V. V. V.V. Urgent


Best Regards,

M. Rafeek
md_yasheenAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mugman21Commented:
I see no way to do this other than pinging each machine at a set interval.

Mugman
0
PorT_Ph0b0sCommented:
I want a program to do that?
I don't know if this help... But if you go to MSDos Console (--> "Start" --> "Run" --> "cmd" - Ok) On WIndows XP, and if you type "net view", you can see the computers on your network. If they disconect, ou shutdown, they aren't listed.

Ph0b0s
0
DrWarezzCommented:
NET VIEW  is probably your best bet, and is available on all Win NT machines (and a few more I believe)..
However, if you already have a LIST of all machines on the network, like the following (for example):

MachineName1
MachineName2
...

Then you can check each one to find out whether or not they're connected (ie; not shutdown/disconnected), like so:

:-------8<-------------------------------- FileName.bat ---------------------------------------------:
@ECHO OFF
PUSHD %CD%
TITLE Machine Verifier
SET OnlineFile=OnlineMachines.txt
ECHO Machines Online: >> %OnlineFile% & ECHO. >> %OnlineFile%

ECHO.
:GET_FILE
SET /P File="File containing Machine Names: "

IF /I [%File%]==[] (
    ECHO.
    ECHO You must input a file name.
    ECHO.
    GOTO :GET_FILE
)

IF NOT EXIST "%FILE%" (
    ECHO.
    ECHO The specified file: %File% could not be located.
    ECHO.
    SET File=
    GOTO :GET_FILE
)

FOR /F "tokens=* delims=" %%M in (%File%) do call :PROCESS "%%M"
ECHO.
ECHO Complete.
POPD
EXIT /B

:PROCESS
SET Machine=%~1
SET Machine=%Machine: =%
PING -n 1 %Machine% >>NUL
IF %ERRORLEVEL% EQU 0 ECHO %Machine% >>"%OnlineFile%"
EXIT /B
:-------8<-------------------------------- FileName.bat ---------------------------------------------:

HTH :-)

gL,
[r.D]
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Programming

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.