?
Solved

Writing a script for ping command

Posted on 2000-04-13
5
Medium Priority
?
314 Views
Last Modified: 2013-12-23
I need a script, which can be ping my terminals automaticaly, when I write on the screen only the terminals name.
At the sample
Terminal 1 = x.x.x.x
     .
     .
terminal n = y.y.y.y
(Becouse my IP adresses are confidential,you can write like these.
 
0
Comment
Question by:ayildirim
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
5 Comments
 

Expert Comment

by:saile01
ID: 2715044
yours terminals have a static or dynamic ip address ?
0
 

Author Comment

by:ayildirim
ID: 2715316
static
0
 
LVL 3

Accepted Solution

by:
cbo120897 earned 300 total points
ID: 2715326
Try this batch:


---------------------------------------
@echo off
rem security ping
rem use: secping Tx
rem where Tx ist resolved to a IP-Adresse
rem ---------------------
rem the command who find the IP an make a ping
rem
for /f "tokens=1-2 delims= " %%a in ('type secping.bat ^| find "%1 " /I') do ping %%b
rem
rem ---------------------
rem
rem the database
rem
goto :END
T00 10.45.191.0
T01 10.45.191.1
T02 10.45.191.2
T03 10.45.191.3
T04 10.45.191.4
T05 10.45.191.5
T06 10.45.191.6
T07 10.45.191.7
T08 10.45.191.8
T09 10.45.191.9
T10 10.45.191.10
:END
---------------------------------------
In the batchfile you must define your terminals. But during the ping you can see the confidential addresses!

cbo

0
 
LVL 3

Expert Comment

by:cbo120897
ID: 2715331
Name the batch secure.bat and call ist like:

secping T09

cbo
0
 
LVL 3

Expert Comment

by:cbo120897
ID: 2715334
No, no name it secping.bat :-)
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever set up your wireless router at home or in the office to find that you little pop-up bubble in the bottom right-hand corner of Windows read "IP Conflict - One of more computers on the network have been assigned the following IP address"…
Are you one of those front-line IT Service Desk staff fielding calls, replying to emails, all-the-while working to resolve end-user technological nightmares? I am! That's why I have put together this brief overview of tools and techniques I use in o…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question