Tayls Posted March 12, 2018 Share Posted March 12, 2018 (edited) Hey IT people. I want to run a constant google ping check on a machine, but have it output to a text file, with the date and time. Esentially, I have a bunch of users who seem to be losing connection regularly on their surface pros and want to see what is going on - some of the users of which are wired in into the network. They mainly spot it when coming out of NAV and trying to go back into it - it asks to restart. Does anyone know th correct way to setup a batch file so it runs this constant ping? Eventually I’ll probably set one up on one of the main severs and have it archive at the end of each day before running a new one on a schedule. Edited March 12, 2018 by Tayls Link to comment Share on other sites More sharing options...
limpid Posted March 12, 2018 Administrator Share Posted March 12, 2018 What info can you pull from the wifi controller? As you suggest, you should be monitoring this centrally, not from all the endpoints. 1 Link to comment Share on other sites More sharing options...
Tegis Posted March 12, 2018 VT Supporter Share Posted March 12, 2018 (edited) Quick and dirty you can use f-ping which is ping with more options. If you use windows you can download it here: http://www.softpedia.com/get/Network-Tools/IP-Tools/Fping.shtml It has among other things, built in logging and timestamps. Edited March 12, 2018 by Tegis Link to comment Share on other sites More sharing options...
PieFacE Posted March 12, 2018 VT Supporter Share Posted March 12, 2018 (edited) Can't you just use... ping -t www.google.com > file.txt In a command prompt Edited March 12, 2018 by PieFacE 1 Link to comment Share on other sites More sharing options...
Tegis Posted March 12, 2018 VT Supporter Share Posted March 12, 2018 1 hour ago, PieFacE said: Can't you just use... ping -t www.google.com > file.txt In a command prompt and echo %TIME% for a timestamp, but you have to loop it. 1 Link to comment Share on other sites More sharing options...
Tayls Posted March 12, 2018 Author Share Posted March 12, 2018 I could run that on cmd, but I want to run it on a single users surface first, because I want to see if they are losing connection to the network whilst being plugged into the floor. I don’t want to leave cmd open on their session all day because, well, users are users. So I ideally need to create a txt file so I can take a look through it and see if there are any drops. How should it look on the text doc? I want to be able to open it and be able to refresh it to see new lines. I definitely want the time and then the info that ping www.google.com -t would give next to each other. Link to comment Share on other sites More sharing options...
Tegis Posted March 13, 2018 VT Supporter Share Posted March 13, 2018 (edited) 1 hour ago, Tayls said: I could run that on cmd, but I want to run it on a single users surface first, because I want to see if they are losing connection to the network whilst being plugged into the floor. I don’t want to leave cmd open on their session all day because, well, users are users. So I ideally need to create a txt file so I can take a look through it and see if there are any drops. How should it look on the text doc? I want to be able to open it and be able to refresh it to see new lines. I definitely want the time and then the info that ping www.google.com -t would give next to each other. Something like this in a .bat file. Just don't name it ping.bat or the system will have a fit, as it is a existing command. @ECHO OFF :LOOPSTART echo %time% >> c:\temp\filename.txt ping 8.8.8.8 -n 1 >> c:\temp\filename.txt timeout /t 5 GOTO LOOPSTART Just start it with the task scheduler as another user (yourself?) and set it to run whether the user is logged in or not. Remember, you have to stop it yourself, or it will continue until restart or the log fills the harddrive Edited March 13, 2018 by Tegis Link to comment Share on other sites More sharing options...
limpid Posted March 13, 2018 Administrator Share Posted March 13, 2018 12 hours ago, Tayls said: I could run that on cmd, but I want to run it on a single users surface first, because I want to see if they are losing connection to the network whilst being plugged into the floor. I don’t want to leave cmd open on their session all day because, well, users are users. So I ideally need to create a txt file so I can take a look through it and see if there are any drops. . I'd monitor connections from the switch. You are making your life harder trying to do this from a user's device. Link to comment Share on other sites More sharing options...
Recommended Posts