+ Post New Thread
Page 2 of 2 FirstFirst 12
Results 16 to 23 of 23
Windows Server 2008 R2 Thread, Application to Show if Server re up or Down in Technical; Originally Posted by dhicks What's an hta? HTML applications (aka .hta) it's just a phrase for html files with scripting ...
  1. #16

    Steve21's Avatar
    Join Date
    Feb 2011
    Location
    Swindon
    Posts
    2,824
    Thank Post
    372
    Thanked 544 Times in 507 Posts
    Rep Power
    184
    Quote Originally Posted by dhicks View Post
    What's an hta?
    HTML applications (aka .hta) it's just a phrase for html files with scripting inside of them.

    Like having vbscript in a html file, can be saved as a .hta file

    e.g. (stolen from ze Web)

    Code:
    <HTML>
    <HEAD>
    <HTA:APPLICATION ID="HelloExample" 
       BORDER="thick" 
       BORDERSTYLE="complex"/>
    <TITLE>HTA - Hello World</TITLE>
    <SCRIPT LANGUAGE="VBScript">
    window.resizeto 300, 150
    Sub Hello
       MsgBox "Hello, world!"
    End Sub
    </SCRIPT>
    </HEAD>
     
    <BODY>
    <CENTER>
    <H2>HTA - Hello World</H2>
    <INPUT TYPE="button" VALUE="Click Me (vb)" NAME="run_button"  ONCLICK="Hello">
    <INPUT TYPE="button" VALUE="Click Me (js)" ID="run_button_hello">
    <SCRIPT LANGUAGE="JScript">
      run_button_hello.onclick = 
         function(){alert("from (" + this.value + "): Hello, world!");};
    </SCRIPT>
    </CENTER>
    </BODY>
    </HTML>


    Steve

  2. Thanks to Steve21 from:

    dhicks (30th May 2011)

  3. #17

    dhicks's Avatar
    Join Date
    Aug 2005
    Location
    Knightsbridge
    Posts
    5,772
    Thank Post
    1,308
    Thanked 804 Times in 698 Posts
    Rep Power
    247
    Quote Originally Posted by Steve21 View Post
    HTML applications (aka .hta) it's just a phrase for html files with scripting inside of them.
    Oh, I see. Is HTML/JavaScript going to be suitible for server monitoring - can you convince JavaScript to do ping (or SSH, etc) without some kind of server-side help?

  4. #18

    Steve21's Avatar
    Join Date
    Feb 2011
    Location
    Swindon
    Posts
    2,824
    Thank Post
    372
    Thanked 544 Times in 507 Posts
    Rep Power
    184
    Quote Originally Posted by dhicks View Post
    Oh, I see. Is HTML/JavaScript going to be suitible for server monitoring - can you convince JavaScript to do ping (or SSH, etc) without some kind of server-side help?
    In terms of a pure "ping" no, however you can be cheesy and emulate same kind of behaviour. (JS cant anyway, not pure pings, VB can I think(

    an example:

    Code:
    var ImageObject = new Image(); 
    ImageObject.src = "http://www.edugeek.net/image/bluelight_logo.png"; 
    
    if (ImageObject.height > 0) { 
    // Yay it's alive! Do random magic/put pretty pics up!
    }
    Simple example, but if you want it explained. Tests image on server, if it's larger than 0, aka it exists, server is online. Else it isn't.

    Steve

  5. Thanks to Steve21 from:

    dhicks (30th May 2011)

  6. #19

    dhicks's Avatar
    Join Date
    Aug 2005
    Location
    Knightsbridge
    Posts
    5,772
    Thank Post
    1,308
    Thanked 804 Times in 698 Posts
    Rep Power
    247
    Quote Originally Posted by Steve21 View Post
    Simple example, but if you want it explained. Tests image on server, if it's larger than 0, aka it exists, server is online. Else it isn't.
    Handy, but it's only going to work for HTTP servers.

  7. #20

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    10,053
    Thank Post
    3,585
    Thanked 1,123 Times in 1,025 Posts
    Rep Power
    377
    Quote Originally Posted by Steve21 View Post
    In terms of a pure "ping" no, however you can be cheesy and emulate same kind of behaviour. (JS cant anyway, not pure pings, VB can I think(

    an example:

    Code:
    var ImageObject = new Image(); 
    ImageObject.src = "http://www.edugeek.net/image/bluelight_logo.png"; 
    
    if (ImageObject.height > 0) { 
    // Yay it's alive! Do random magic/put pretty pics up!
    }
    Simple example, but if you want it explained. Tests image on server, if it's larger than 0, aka it exists, server is online. Else it isn't.

    Steve
    You can either use WMI to do the ping for you or you can do it through a command prompt and grab the reply info from the command prompt

    There is a term for it but cant remember the name for it

    WMI Method

    http://www.robvanderwoude.com/vbstech_network_ping.php

    Shell'ing the command prompt ping command and getting the output that way

    http://hacktivision.com/index.php/20...-a-host?blog=2
    Last edited by mac_shinobi; 31st May 2011 at 09:27 AM.

  8. #21

    Steve21's Avatar
    Join Date
    Feb 2011
    Location
    Swindon
    Posts
    2,824
    Thank Post
    372
    Thanked 544 Times in 507 Posts
    Rep Power
    184
    Quote Originally Posted by mac_shinobi View Post
    You can either use WMI to do the ping for you or you can do it through a command prompt and grab the reply info from the command prompt
    True, but I took the assumption from the way it was asked, it want's it for end users to see. aka, just pretty display etc :P

    Could do a VBS/html page I guess, but either way :P Lot of options, just depends how you want it setup/what servers/who's using

    Steve

  9. #22

    Join Date
    Dec 2009
    Posts
    914
    Thank Post
    98
    Thanked 185 Times in 160 Posts
    Rep Power
    55
    Whats Up Gold is another option?

  10. #23

    SpuffMonkey's Avatar
    Join Date
    Jul 2005
    Posts
    2,268
    Thank Post
    55
    Thanked 285 Times in 191 Posts
    Rep Power
    136
    I use this

    Features of PeerMonitor

    Its very small and tidy



SHARE:
+ Post New Thread
Page 2 of 2 FirstFirst 12

Similar Threads

  1. How do I set up an application server?
    By marsdenprimary in forum Network and Classroom Management
    Replies: 4
    Last Post: 16th May 2011, 05:28 PM
  2. Replies: 0
    Last Post: 24th May 2010, 03:38 PM
  3. Exambase 2 Testing/Application Server Software
    By dweiums in forum Educational Software
    Replies: 0
    Last Post: 29th August 2009, 08:01 PM
  4. HP t5135 published application server settings?
    By Geoff in forum Thin Client and Virtual Machines
    Replies: 1
    Last Post: 28th September 2007, 09:14 AM
  5. Application Server
    By woody in forum Hardware
    Replies: 2
    Last Post: 6th March 2006, 11:58 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •