[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Writing a script for ping command

Posted on 2000-04-13
5
Medium Priority
?
316 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

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

A brief overview to explain gateways, default gateways and static routes OR NO - you CANNOT have two default gateways on the same server, PC or other Windows-based network device. In simple terms a gateway is formed when a computer such as a serv…
I'm a big fan of Windows' offline folder caching and have used it on my laptops for over a decade.  One thing I don't like about it, however, is how difficult Microsoft has made it for the cache to be moved out of the Windows folder.  Here's how to …
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…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…

649 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