Get Ping status along with Server Uptime - HTML Report

Introduction: This script is used to check Ping status of the server. If server is up and running then it will retrive uptime of the server. Script will generate HTML report as output. It will also highlight list of servers which are down.Before you start:This script expect text

3.5 Star
7,821 times
Add to favorites
E-mail Twitter Digg Facebook
  • Time since last update
    2 Posts | Last post March 14, 2019
    • Hi,
      Just discovered your script and am really happy with it.  I would like to add a line just below the table showing the last time it was updated.  I am outputting the html page to an intranet site for our users to see if any services are offline and it would really benefit if it showed the time of the last scan.  Can you assist with that code?  Thanks so much.
    • I got it, piece of cake.
  • Customize HTML Output
    1 Posts | Last post October 15, 2018
    • Hi Bhavik Solanki
      Your script work wonderful and i am using it for my environment. I would like to check if there is any failed ping, whether the failed output in the html can be on the top of the page and success output follows. Since i am pinging multiple ip address and i need to scroll down time to time to check which ip address is down. Please let me know if this is doable.
  • how to make it work across trusted domain.
    1 Posts | Last post April 03, 2018
    • Hello, Bhavik 
      it is only working in local domain. cannot check system on trusted domain.
      specifically the Tim does not work across the trusted domains.
      can you help please. it is a very nice util. 
  • After generating report need to send in mail
    1 Posts | Last post October 23, 2017
    • Hello, Bhavik your script generating HTML report, now I need to send that report to a specific group via Mail on periodically, what parameter need to add to your script.
  • Even Offline Machines are showing Ping status "Success"
    1 Posts | Last post December 25, 2015
    • Even Offline Machines are showing Ping status as "Success" , please Update the script with proper code & update the new one in download , it will be very very useful for us. thank you
  • Add condition
    1 Posts | Last post March 31, 2015
    • Hello, 
      Can you please help me to add a condition.
      I want to add a column to tell if the servers have more one week are not compliant.
      Thank you in advance.
  • Hi, Can we add few options in your report
    1 Posts | Last post July 03, 2014
    • hi,
      thanks a lot for nice report, i want the few changes in it if possible, can we add the  
      disk space column in it. 
      2. how can i get the report in email.
      3. can i send output data to my sql server.
  • how to send email of the html report?
    1 Posts | Last post May 27, 2014
    • Bhavik,
                Thanks for the script. Could you please implement a mechanism to either do the following:
      1. Create a counter of offline servers, and if the count (i.e. $i > 0) is greater than 0, send an e-mail of all the offline servers only ..perhaps using send-MailMessage cmdlet as I am looking to use this in our environment to only notify my team if any of the servers are unreachable.
  • Not able to get uptime in the Output.htm file.
    1 Posts | Last post December 21, 2013
    • Throws the follwoing error:- 
      Exception calling "ToDateTime" with "1" argument(s): "Specified argument was out of the range of valid values.
      Parameter name: dmtfDate"
      At C:\Users\tcsadmin\Documents\SHYAM\SUD Docs\Scripts\Under Testing\PingStatusWithUptime.ps1:42 char:2
      +     $Uptime = (Get-Date) - [System.Management.ManagementDateTimeconverter]::ToDateT ...
      +    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
          + FullyQualifiedErrorId : ArgumentOutOfRangeException
  • Getting Invalid Online Status for Machines Turned off
    1 Posts | Last post August 15, 2013
    • Ran this script and for some machines that were turned off it is coming back with the IP Address blank.  But in the Status Column it is showing as Online, which is invalid.  If you were to ping these few machines from command prompt you would get "Ping request could not find host [host name].  Please check the name and try again.  Any reason for that?
      Everything this else appears to work fine.
1 - 10 of 13 Items