I'm running WinXP, and need to ping some of the local services on my computer - specifically, SQL Server. Is there a ping command that allows me to ping services that are running locally? Can this be done for any service that appears in the "Services" mmc?
thanks!
DOS ping question
Re: DOS ping question
Originally posted by grundy
I'm running WinXP, and need to ping some of the local services on my computer - specifically, SQL Server. Is there a ping command that allows me to ping services that are running locally? Can this be done for any service that appears in the "Services" mmc?
thanks!
Why in the hell would you want to "PING" a service running Locally on the Machine?
Furthermore it can't be done since "PING" uses the ECHO request of ICMP.
Reference RFC 792 for more information.
http://www.faqs.org/rfcs/rfc792.html
Respect it.
Re: Re: DOS ping question
Originally posted by agentbeast Why in the hell would you want to "PING" a service running Locally on the Machine?
I work for a software company; a large part of my job is demonstrating our software. This runs into highly unrealistic situations where, in the real world, one would have a database server, an application server, and a client, I have everything running off of my laptop.
I'm setting up a job chain, where the first job would be to ping the database server. If that is succesful, perform job B. If not, perform job C, etc. Thus, I'm trying to find a way to "PING" a serviice running locally on the machine.
Are you using "ping" as an example ?
I'm confused.
Are you really trying to find out if a particular service is running or not, so you can have a program make a decision depending on the answer?
If service x is running, do this?
If service x is not running, do that?
I don't know the answer, buit I am trying to make your question more clear. Am I correct?
I'm confused.
Are you really trying to find out if a particular service is running or not, so you can have a program make a decision depending on the answer?
If service x is running, do this?
If service x is not running, do that?
I don't know the answer, buit I am trying to make your question more clear. Am I correct?
Thanks Norm, that's exactly right. sorry for the confusing reply, I'm working on something else and didn't think that one through.
I'm working with a database-specific job scheduling engine that we produce. One of the tool has what we call a "visual job editor" which allows the user to represent jobs graphically, to draw relationship lines between the jobs, and to set criteria for the relationship based on the results of the jobs (ie success=do this, failure=do that).
I'm setting up a simplistic job set that would be:
Start: ping the database server
- if ping is succesful, execute query
- if ping fails, execute command to resart db server
- if restart is succesful, execute query
- if restart fails, execute...
this is very easy to understand through the visual editor. I'd include a screenshot, but I don't have any webhosting at the moment.
I'm trying to set up an example where I would stop services on MS SQL Server. Then, when I execute the job set, the initial "Ping" should fail (I want this to be a DOS command, but I know very little DOS - it doesn't need to be a ping, just a DOS command that tests whether that service is running). The hob set should then proceed to restart the service, which should succeed, then execute a query, then email a success notification.
All of this works, with the exception of the Ping. I know that this is possible for oracle using tnsping, but I don't know of an MS command to replicate this. I can't run this example using Oracle, because the Scheduler's repository is running off of my Oracle instance. If I knock down Oracle, I loose the app that I'm demoing.
I'm working with a database-specific job scheduling engine that we produce. One of the tool has what we call a "visual job editor" which allows the user to represent jobs graphically, to draw relationship lines between the jobs, and to set criteria for the relationship based on the results of the jobs (ie success=do this, failure=do that).
I'm setting up a simplistic job set that would be:
Start: ping the database server
- if ping is succesful, execute query
- if ping fails, execute command to resart db server
- if restart is succesful, execute query
- if restart fails, execute...
this is very easy to understand through the visual editor. I'd include a screenshot, but I don't have any webhosting at the moment.
I'm trying to set up an example where I would stop services on MS SQL Server. Then, when I execute the job set, the initial "Ping" should fail (I want this to be a DOS command, but I know very little DOS - it doesn't need to be a ping, just a DOS command that tests whether that service is running). The hob set should then proceed to restart the service, which should succeed, then execute a query, then email a success notification.
All of this works, with the exception of the Ping. I know that this is possible for oracle using tnsping, but I don't know of an MS command to replicate this. I can't run this example using Oracle, because the Scheduler's repository is running off of my Oracle instance. If I knock down Oracle, I loose the app that I'm demoing.
Gundy, I don't have the answer, but was intrigued by the question.
I'm in a hurry to leave for a wedding, but try this link http://www.rivernorthsoftware.com/start ... anual.aspx
quote "Query - Allows you to query the status of a service. This button will be enabled when you click on a service."
It's a software solution, but may give you some tips.
I'll bet there is a 'query' command in the OS you can use.
Look in Help and search for the list of 'Command-Line reference'
I'll bet you'll find something in there to query a remote service, and you can take it from there.
I'm in a hurry to leave for a wedding, but try this link http://www.rivernorthsoftware.com/start ... anual.aspx
quote "Query - Allows you to query the status of a service. This button will be enabled when you click on a service."
It's a software solution, but may give you some tips.
I'll bet there is a 'query' command in the OS you can use.
Look in Help and search for the list of 'Command-Line reference'
I'll bet you'll find something in there to query a remote service, and you can take it from there.
I'm in a rush, hope this link helps.
http://www.microsoft.com/technet/treevi ... rocess.asp
It's for XP, but probably works on any NT system.
Good luck.
http://www.microsoft.com/technet/treevi ... rocess.asp
It's for XP, but probably works on any NT system.
Good luck.