home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Ask a Tech Support Question (free)!

Need bat file or script...

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 1240
Discussions: 200,929, Posts: 2,379,147, Members: 246,296
Old April 13th, 2007, 06:51 PM   Digg it!   #1 (permalink)
BBA
Ultimately BBA
 
BBA's Avatar
 
Join Date: Oct 2001
Location: Jax, Fl
Posts: 5,048
Send a message via ICQ to BBA
Need bat file or script...

Just need to run a ping on a series of IP addresses and record the result in a text file.

Thx
__________________
BBA
BBA is offline   Reply With Quote
Old April 15th, 2007, 09:45 PM     #2 (permalink)
Junior Member
 
Join Date: Jan 2007
Posts: 10
easily sorted....just take a scan round google.....u will find ur answer in 2 secs
marylund2323 is offline   Reply With Quote
Old April 16th, 2007, 12:38 AM     #3 (permalink)
BBA
Ultimately BBA
 
BBA's Avatar
 
Join Date: Oct 2001
Location: Jax, Fl
Posts: 5,048
Send a message via ICQ to BBA
Found nothing useful on google...bunch of BS actually, unless you want to get into programming.

What worked was taking the list of IP's in excel, adding a column before the IP's column and filling the ping command in, then adding a column after the IP column and adding >>c:\result.log. After this is done, removing all blank spaces in the spreadsheet with find and replace "alt+255" for the ascii space character, and replacing it with nothing at all, to get rid of errors in syntax from the spreadsheet formatting, then selecting all three columns, copying that selection to a blank notepad file, saving it as pinlglist.cmd and running the file.

Basically the resulting pinglist.cmd file look like this:

ping 10.x.x.10 >>c:\result.log
ping 10.x.x.20 >>c:\result.log
ping 10.x.x.30 >>c:\result.log
ping 10.x.x.40 >>c:\result.log

It pings every IP in the list and appends the result to the result.log file.
After it completes, all I have to do is import the results and filter by 100% packet loss to show all the machines that were no longer present.

If you havent guessed something like why I am doing this, it's to help figure out and verify servers in our inventory actually exist.


Thanks

Last edited by BBA : April 16th, 2007 at 12:41 AM.
BBA is offline   Reply With Quote
Old April 16th, 2007, 01:07 AM     #4 (permalink)
A hero in training
 
GroundZero3's Avatar
 
Join Date: Oct 2001
Location: Norfolk, VA
Posts: 26,820
Blog Entries: 15
Hey BBA im not sure about a bat solution, but how about you just scan the network for available ip addresses?

http://www.famatech.com/download/index.php

try advance ip scanner, you should know what ip addresses and subnets you have, just input it into the program and let it scan the network. from there it will show what addresses are alive and which are dead.

Marylund, if you don't have any useful information please don't post at all. Telling someone to search Google doesn't help.
GroundZero3 is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar Threads
Thread Thread Starter Forum Replies Last Post
A bat file to shutdown Vista? EXreaction Applications and Operating Systems 5 June 20th, 2009 12:55 PM
Help with writing .bat file MitaDC Applications and Operating Systems 1 June 21st, 2006 03:50 PM
Create a .bat file shotokan General Tech Discussion 10 May 28th, 2003 10:13 AM
autoexec.bat file isup General Tech Discussion 16 October 24th, 2002 04:20 PM
how do I get a .bat file to run in whatever directory it's in? zskillz Technical Support 18 October 17th, 2002 12:59 AM


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Is It Just Me? (2868)
Obama the Muslim (14)
California Passes Anti-Flat-HDTV Le.. (39)
Is the PSU I received dead? (10)
windows vista security holes (9)
HIS HD5770 graphic card question (15)
Print spooler problem (13)
Foreign voltage (10)
Install XP pro and a Vista laptop ?.. (10)
Dept. of HS: NSA 'Helped' Develop V.. (15)
A good PSU? (10)
Ideal cheap graph card for PC-Gamin.. (16)
New Computer wont recognize XP disc (7)
EVGA 9800 gtx help with finding a g.. (8)
Recent Discussions
Regular Build (3)
solutions for virtical white lines on.. (0)
Ideal cheap graph card for PC-Gaming? (16)
Graphics Card Upgrade Question (0)
Fire in DVD (2)
Modern Warfare For the PC (33)
radeon x850xt platinum & shader 3 (3)
Have you switched yet? (84)
Install XP pro and a Vista laptop ?? (10)
Wireless Router+Cable Modems and Much.. (0)
Optical Audio A-B Switch (1)
windows vista security holes (9)
The NTDVM CPU has encountered an ille.. (24)
[F@H SPAM 11/16/09] ! 1/2 months to r.. (34)
Wireless speakers for PC? (11)
Print spooler problem (13)
Help getting around port 80 for camer.. (2)
Display shows 3x5 inch in middle of s.. (3)
monitor will not turn on at all, (1)
World's largest Monopoly Game using G.. (331)
Foreign voltage (10)
FiOS modem/router interfering with ne.. (7)
Browsers wont load websites (2)
Virus Doctor Popup? (1)
Dept. of HS: NSA 'Helped' Develop Vis.. (15)


All times are GMT -4. The time now is 04:17 AM.
TechIMO Copyright 2009 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28