473,396 Members | 1,938 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Check to see if a server is running

This is similar to another post I did where I would like to check one server
from another server programmatically (from a service) to see if it is
running and then act accordingly if it isn't. Send an email, for instance.

Is there an easy way to do this?

Thanks,

Tom
Aug 9 '06 #1
3 4102
SNMP

"tshad" <ts**********@ftsolutions.comwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
This is similar to another post I did where I would like to check one
server from another server programmatically (from a service) to see if it
is running and then act accordingly if it isn't. Send an email, for
instance.

Is there an easy way to do this?

Thanks,

Tom

Aug 9 '06 #2
This is about management right, so your target should be System.Management
and WMI.
The WMI class Win32_Service is just what you need, read the WMI docs in
MSDN for details on the class properties.

Willy.

"Kenan Kilictepe" <ke***@kilictepe.netwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
| SNMP
|
| "tshad" <ts**********@ftsolutions.comwrote in message
| news:%2****************@TK2MSFTNGP03.phx.gbl...
| This is similar to another post I did where I would like to check one
| server from another server programmatically (from a service) to see if
it
| is running and then act accordingly if it isn't. Send an email, for
| instance.
| >
| Is there an easy way to do this?
| >
| Thanks,
| >
| Tom
| >
|
|
Aug 11 '06 #3
Not really, "Windows" management uses WMI not SNMP as it's core
infrastructure.

Willy.

"Kenan Kilictepe" <ke***@kilictepe.netwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
| SNMP
|
| "tshad" <ts**********@ftsolutions.comwrote in message
| news:%2****************@TK2MSFTNGP03.phx.gbl...
| This is similar to another post I did where I would like to check one
| server from another server programmatically (from a service) to see if
it
| is running and then act accordingly if it isn't. Send an email, for
| instance.
| >
| Is there an easy way to do this?
| >
| Thanks,
| >
| Tom
| >
|
|
Aug 11 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Jason Miles | last post by:
Hi, I wrote this little script to check to see if our Lotus Notes servers are running, and from the command line it works fine if I type perl notescheck.pl When I invoke the script from a web...
4
by: Si | last post by:
Hi Guys I am using this code to execute an Access VBA function from ASP: strDbName = strDataSource & "data\webjobs.mdb" Set objAccess = Server.CreateObject("Access.Application")...
11
by: Wolfgang Kaml | last post by:
Hello All, I have been working on this for almost a week now and I haven't anything up my sleeves anymore that I could test in addition or change.... Since I am not sure, if this is a Windows...
4
by: Dr. StrangeDub | last post by:
I am part of a group that has developed an ASP.Net web application. I am looking for a way to determine whether or not the browser is actually running on the web server. For this case (when...
8
by: Nikolay Petrov | last post by:
How could I check if my app is running. I would like to check if my app is running for specified user, because it is used in Terminal Server. I want the program to somehow check if another...
12
by: tshad | last post by:
What would be a good way to check programmatically whether a service was running? We have a service that dies periodically and I need to check to see if this service is running. I know how to...
9
by: tshad | last post by:
This is similar to another post I did where I would like to check one server from another server programmatically (from a service) to see if it is running and then act accordingly if it isn't. ...
12
by: Shadlan | last post by:
Hi. I need to know if a service is running on my server. Is there any PHP instruction that I can use to do this?
0
by: Gordon | last post by:
On Oct 23, 9:43 am, Curtis <dye...@gmail.comwrote: if ($handle = fsockopen ('localhost', 80, $errnum, $errmsg, 1)) { echo ('A web server is running on this system<br>'); fclose ($handle); }...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.