To check whether a service is running in a remote machine

My problem is to test whether a service is running in a
machine or not.
I have done a simple socket program.It just takes the IP and the port at which the service is supposed to run.
My algo is to check whether it fails to make a connection or not.
If there is a success the service is running.
Is this
sufficient???

Technically there are more failure points (and presuming configuration failures are ignored.)
If the connection is through a router/gateway then that could fail and the server/service could still be running.
The service could be written in such a way that its functionality is handled in a seperate thread from the connection thread. And that thread blocks/stops. So the connection succeeds even though the service is in a failure state.

Similar Messages

  • LMS 3.1 JRM Service could be down. Check whether JRM services are running.

    Hi all
    Jrm service is showing down in LMS 3.1.
    When i select RME tab its showing the error " JRM Service could be down. Check whether JRM services are running."
    I checked the services.But its running.
    We have not changed the host name.
    Pls find attached the lms service status as well.
    If any one faced the same issue pls reply me at the earliest.
    Thanks and regards
    Danish

    Based on these services, this appears to be LMS 2.x, not 3.1.  Post the output of the pdshow command.
    Please support CSC Helps Haiti
    https://supportforums.cisco.com/docs/DOC-8895
    https://supportforums.cisco.com

  • JRM Service could be down. Check whether JRM services are running

    I keep seeing this message when ever I open RME
    LMS 2.6 on A Windows 2003 platform
    3.0.5 common services
    4.0.6 campus manager
    6.1.5 Ciscoview
    2.0.6 DFM
    2.6.0 IPM
    4.0.5 RME
    pdshow against CTMJrmServer - waiting to initialize, then it will become administratively shutdown
    JRM and the other dependencies are up and working
    Under CTMJrmServer.log - I keep seeing what looks like authentication errors
    Error in execPOST: Server returned HTTP response code: 403 for URL: http://localhost:1741/CSCOnm/servlet/com.cisco.nm.cmf.servlet.SecretManagerServlet?command=put&alias=admin&secret=R2Dc7YpBXJLzlQ%3D%3D
    1:11 GMT 2010 ],INFO ,[main],com.cisco.nm.rmeng.jrmwrapper.server.JobManagerExt,getJRM,217,Retrying 0
    [ Wed Jan 13  10:31:21 GMT 2010 ],FATAL,[main],com.cisco.nm.rmeng.jrmwrapper.server.JobManagerExt,getJRM,207,Error during authentication:5,null
    [ Wed Jan 13  10:31:21 GMT 2010 ],INFO ,[main],com.cisco.nm.rmeng.jrmwrapper.server.JobManagerExt,getJRM,217,Retrying 1
    [ Wed Jan 13  10:31:31 GMT 2010 ],FATAL,[main],com.cisco.nm.rmeng.jrmwrapper.server.JobManagerExt,getJRM,207,Error during authentication:5,null
    [ Wed Jan 13  10:31:31 GMT 2010 ],INFO ,[main],com.cisco.nm.rmeng.jrmwrapper.server.JobManagerExt,getJRM,217,Retrying 2
    [ Wed Jan 13  10:31:41 GMT 2010 ],FATAL,[main],com.cisco.nm.rmeng.jrmwrapper.server.JobManagerExt,getJRM,234,Unable to obtain session. Terminating
    [ Wed Jan 13  10:31:41 GMT 2010 ],ERROR,[main],com.cisco.nm.rmeng.jrmwrapper.server.CTMJobManagerServer,<init>,66,Null JRM. Exiting
    Any help with this would be very much appreciated
    Simon

    hostname - sm01ms002
    C:\\>pdreg -l CTMJrmServer
            Process      = CTMJrmServer
            Path         = d:\\PROGRA~1\\CSCOpx\\bin\\cwjava.exe
            Flags        = -cw d:\\PROGRA~1\\CSCOpx -cw:jre lib/jre -cp:p MDC/tomcat/webapps/rme/WEB-INF/classes,MDC/tomcat/webapps/rme/WEB-INF/lib/ctm.jar,MDC/tomcat\/webapps/rme/WEB-INF/lib/log4j.jar com.cisco.nm.rmeng.jrmwrapper.server.CTMJobManagerServer sm01ms002
            Startup      = Started automatically at boot.
            Dependencies = RMEDbMonitor jrm TomcatMonitor RMECSTMServer
    \f1 NMSROOT=d:/PROGRA~1/CSCOpx\
    PX_BINDIR=d:/PROGRA~1/CSCOpx/bin\
    PX_CGIDIR=d:/PROGRA~1/CSCOpx/cgi-bin\
    PX_LOGDIR=d:/PROGRA~1/CSCOpx/log\
    PX_TMPDIR=d:/PROGRA~1/CSCOpx/temp\
    PX_DATADIR=d:/PROGRA~1/CSCOpx/files\
    PX_DOCDIR=d:/PROGRA~1/CSCOpx/htdocs\
    PX_CLASSDIR=d:/PROGRA~1/CSCOpx/www/classpath\
    PX_CGIURL=/cgi-bin\
    PX_DOCURL=/\
    PX_CLASSURL=/CSCOnm/classpath\
    PX_SCLASSDIR=d:/PROGRA~1/CSCOpx/lib/classpath\
    PX_DATASTORE=DSN=rme\
    PX_CLASSPATH=d:/PROGRA~1/CSCOpx/lib/classpath;d:/PROGRA~1/CSCOpx/www/classpath;d:/PROGRA~1/CSCOpx/campus/www/classpath;d:/PROGRA~1/CSCOpx/campus/lib/classpath\
    PX_APPDIR=d:/PROGRA~1/CSCOpx/objects\
    PX_CONFDIR=d:/PROGRA~1/CSCOpx/conf\
    PX_CTRBDIR=d:/PROGRA~1/CSCOpx/contrib\
    PX_HLPDIR=d:/PROGRA~1/CSCOpx/help\
    PX_LIBDIR=d:/PROGRA~1/CSCOpx/lib\
    PX_USER=casuser\
    PX_GROUP=casusers\
    PX_STOP_DELAY=3000\
    PX_SYS_CHECK=1\
    PX_OSA_PORT=42342\
    OSAGENT_PORT=42342\
    PX_HOST=sm01ms002\
    PX_FQDN=sm01ms002\
    ASANY=d:/PROGRA~1/CSCOpx/objects/db\
    SQLANY=d:/PROGRA~1/CSCOpx/objects/db\
    CORE_SECURE_PORT=443\
    CORE_NONSECURE_PORT=1741\
    PX_PROTOCOL=http\
    PX_PORT=1741\
    PX_WEB_PORT=1741\
    MAX_RAM=2048\
    MAX_SWAP=4096\
    MAX_CPU=1600\
    PX_ANI_PORT=42344\
    SYS_NO_OF_CPUS=4\
    SYS_RAM=4094\
    SYS_CPU=2666\
    SYS_SWAP=4092\
    \f0\

  • Check if a service is running on remote IP using java

    Hi all,
    hope I'm posting to the right section of the forum anyway I was wondering if anybody would have an idea how I could go about doing the following:
    I have added a dialog to our application, when i hit the Launch button is opens up a web browser with a url that gets passed in the code.
    The url is the ip address followed by : followed by port number. The web page then displays that web page with login screen for the application running on that IP address.
    Before I pass the url above to the code that opens the web page I want to be able to check that a service is running at the IP address and if it's not I dont want to open the web browser with the passed url. The reason I need to do this is that if the service has been unstalled from that IP I dont want to open a web browser.
    Would anybody know how I could check if that service is running on that IP address remotely?
    Thanks for your help in advance,
    Valerie

    The only way to determine if a remote service is not running is by waiting for an exception to occur when you're trying to connect to it. You could make your service so that it supports an is-alive request of some sort.

  • Install SQL Server 2012 SP1 on a Windows Server 2012 R2 Failover Cluster - hangs at "Running discovery on remote machine" on VMWare VSphere 5.5 Update 1

    <p>Hi,</p><p>I'm trying to install SQL Server 2012 SP1 on the first node of a Windows Server 2012 R2 failover cluster.</p><p>The install hangs whilst displaying the "Please wait while Microsoft SQL Server 2012 Servce
    Pack 1 Setup processes the current operation." message.</p><p>The detail.txt log file shows as follows:</p><p>(01) 2014-07-17 15:36:35 Slp: -- PidInfoProvider : Use cached PID<br />(01) 2014-07-17 15:36:35 Slp: -- PidInfoProvider
    : NormalizePid is normalizing input pid<br />(01) 2014-07-17 15:36:35 Slp: -- PidInfoProvider : NormalizePid found a pid containing dashes, assuming pid is normalized, output pid<br />(01) 2014-07-17 15:36:35 Slp: -- PidInfoProvider : Use cached
    PID<br />(01) 2014-07-17 15:36:35 Slp: Completed Action: FinalCalculateSettings, returned True<br />(01) 2014-07-17 15:36:35 Slp: Completed Action: ExecuteBootstrapAfterExtensionsLoaded, returned True<br />(01) 2014-07-17 15:36:35 Slp: ----------------------------------------------------------------------<br
    />(01) 2014-07-17 15:36:35 Slp: Running Action: RunRemoteDiscoveryAction<br />(01) 2014-07-17 15:36:36 Slp: Running discovery on local machine<br />(01) 2014-07-17 15:36:36 Slp: Discovery on local machine is complete<br />(01) 2014-07-17
    15:36:36 Slp: Running discovery on remote machine: XXX-XXX-01</p><p>After about 4 hours and 10 minutes, the step seems to time out and move on, however it doesn't seem to have discovered what it needs to and the setup subsuently fails</p><p></p>

    Hi,
    Sorry Information you provided did not helped can you post content of both summary file and details,txt file on shared location for analysis.
    Can you download Service pack again and try once more
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it.
    My TechNet Wiki Articles

  • Check whether a transaction is running

    I need to know if there is a function I can use to check whether a transaction is being run by a specific user.

    hi,
    there is some stand teransaction called STAT(not sure abt the name ) which gives u the details abt the last reun transaction run pls chekc that out... or go to table TSTC and give STA* it will disply u some transaction just read the help info to find out the transaction..
    check also the transaction STAD..
    Thanks
    Ashu

  • Checking for running applications on remote machines

    I am trying to check for application running on remote machine - it could be LV or some other application.
    I have Server and Client applications (developed in LV) running as .exe on separate computers. Only LV-Runtime is installed. They exchange data via Datasockets. The problem I have is that if Client is launched before the server the (Client) takes ownership of certain sockets which causes Server to fail on startup. All the remote Clients have to be shotdown before Server can be started again properly.
    I was wondering if anyone has run into a similar problem.

    Hi Slawek,
    I would suggest using Remote Front Panels in LabVIEW. Remote front panels allow you to view and control a VI front panel remotely, either from within LabVIEW or from within a web browser, by connecting to the LabVIEW built-in web server. There is a tutorial Developer Zone: Remote Panels in LabVIEW -- Distributed Application Development that will provide you with more information.
    Also, there are example programs in LabVIEW that walk you through how to programmatically connect to a remote front panel. Go to LabVIEW >> Help >> Find Examples >> Networking >> General >> RemotePanelMethods-Client/Server.vi.
    Hope
    this helps and good luck!
    Kileen C.
    Applications Engineer
    National Instruments

  • Running powershell on remote machine

    how do I run a script that is currently on my desktop to multiple remote machines? Does the script needs to be on the remote machine before it can be executed? wsman is already enabled on all remote machines

    Hi Jon,
    I’m writing to just check in to see if the suggestions were helpful. If you need further help, please feel free to reply this post directly so we will be notified to follow it up.
    If you have any feedback on our support, please click here.
    Best Regards,
    Anna Wang
    TechNet Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Checking whether a server is running

    Hi all,
    I have a form that should submit its xdp to a server side component. However if the server is down the user is left with a Error 404.
    I am submitting through the following code:
    myDoc.submitForm({
        cURL: submitUrl ,
        cSubmitAs: "XDP",
        aPackets: ["*", "pdf"],
        cCharset: "utf-8",
    I am wondering if there is any way you can do a test before I do the actual submit to see if the server is up and if it is then do the submit?
    Anyone with an idea how to do this?
    Thanks in advance
    Sincerely
    Kim Christensen
    Dafolo A/S

    No. But, I have written a script which will read the application custom xml to retrieve the weblogic server IP address, port number, username and password and start & stop the weblogic servers

  • TO check whether import is running

    Hi how to check
    whether import is running or not.I am using oracle 8.1.7 in solaris 8 .I used ps -ef | grep imp
    in os level its showing its running
    i am importing the indexes only no data,When i am checking the freespace in index tablespace its not reducing.i checked the transaction it showing 1 transaction running.
    How i confirm wheter import is running fine.The log also not updating ( i am using split and compress) after completing the job only i think it will update
    How i check whether this process is running
    with regards
    ramya

    Hello !
    You can try this:
    select substr(sql_text,instr(sql_text,'INTO "'),30) table_name,
    rows_processed,
    round((sysdate-to_date(first_load_time,'yyyy-mm-dd hh24:mi:ss'))*24*60,1) minutes,
    trunc(rows_processed/((sysdate-to_date(first_load_time,'yyyy-mm-dd hh24:mi:ss'))*24*60)) rows_per_min
    from sys.v_$sqlarea
    where sql_text like 'INSERT %INTO "%'
    and command_type = 2
    and open_versions > 0;
    Regards,
    Jean-Luc

  • How to run Labview exectuable on remote machine?

    I am trying to use VI Server to launch a built Labview application (.exe) residing on a remote PC from a CRIO.  I need to run this .exe programmatically and I would like to do this with only the LV Run-Time Engine installed on the remote PC (Windows XP).  I am currently able to do this successfully, but only if I have the LV Development Enviroment splash screen is open on teh remote PC.  I assume this has somehting to do with the LV VI Server not running when the LV DE is closed. 
    I have also tried to build a dummy LV application that runs on the remote machine indefinitely (infinite while loop) hoping this would initiate the VI Server but it doesn't seem to work either, I get Error 63.
    Anyone done this before?
    Thanks
    Dan

    Thanks, I've seen this one already.  I will be using a CRIO as my host so I believe ActiveX cannot be used to launch Labview on the remote PC.
    I have been troubleshooting this issue bu using a PC (Win XP) for my host and client.  I have managed to get a Labview application to run as a Windows service on my remote PC and this application runs an inifinte while loop.  But even with this application running I receive Error 66 while trying to open an application reference to a VI on the client PC form the host PC.  Everyhting works fine if I have the LV splash screen open on the remote machine though. 

  • How to check the "APPWIZ.CPL" of a remote machine ?

    Hi All,
    I would like to know is there a way to check the programs and features options of a remote machine[Server] from a local system[Server].
    I tried the following step but that is not accurate since it was showing huge differences in the installed programs
    From the local system[Server] , i call the remote machines [Server]C drive [\\machine id\C$]
    Once i landed in C drive , then navigate to Windows---System32---Then Appwiz.cpl[C:\Windows\System32\appwiz.cpl]
    It will open the programs and features .
    Is there any other accurate way for checking the programs list of a remote machine or Server ?
    Thanks In Advance 
    Madhu Madhavan

    Hello,
    The Windows Desktop Perfmon and Diagnostic tools forum is to discuss performance monitor (perfmon), resource monitor (resmon), and task manager, focusing on HOW-TO, Errors/Problems, and usage scenarios.
    As the question is off topic here, I am moving it to the
    Where is the Forum... forum.
    Karl
    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
    My Blog: Unlock PowerShell
    My Book:
    Windows PowerShell 2.0 Bible
    My E-mail: -join ('6F6C646B61726C406F75746C6F6F6B2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}})

  • I have a prpblem in enabling webserver i get message labview webserver not running error 54 , i checked IIS Manager and www the services r running ok ..can anybody tell what might be error ,,,iam on labview 6.1 and win 2003 server.,

    i have a problem in enabling webserver i get message labview webserver not running error 54 , i checked IIS Manager and www the services r running ok ..can anybody tell what might be error ,,,iam on labview 6.1 and win 2003 server.,

    If you already have IIS web server running, you need to run the LabVIEW web server on a different port to avoid conflicts. It probably won't start because the port 80 is already in use.
    Check options.."Web Server: Configuration" within LabVIEW.
    LabVIEW Champion . Do more with less code and in less time .

  • How to check whether MRP run has been executed for a sales order or not

    Dear Experts,
    In Strategy:20, Make to Order scenario, I have run MRP for sales order in T Code:MD50,
    then how can I check whether MRP run has been executed for a sales order or not.  Is there any report where I can find some indication?
    Thanks and regards,
    Vikas

    Dear,
    In MTO scenario with Planning strategy group 20 in material master .
    After sales order is created, Run MRP , then planned order will be created then go to planned order details in MD04 or MD12 you will get sales order number in assigment tab.
    or check the Table PLAF field  PALTR ,and field name KDAUF its sales order, for all created planned order.
    Regards,
    R.Brahmankar

  • How to check whether JVM is running in interpreted mode

    I have launched JVM with -Xint option , but thread dump file doesn't include Monitor cache dump. AppServer is starting with -Xint but it is not logging Monitor Cache Dump. How will I check whether JVM is running in interpreyed mode or any other way to get Monitor Cache dump in Thread dump?

    Add -showversion to the command line and look for
    java -Xint -showversion Hello
    java version "1.6.0"
    Java(TM) SE Runtime Environment (build 1.6.0-b105)
    Java HotSpot(TM) Server VM (build 1.6.0-b105, interpreted mode)
    If you're running with the JIT, you'll see something like
    java -showversion Hello
    java version "1.6.0"
    Java(TM) SE Runtime Environment (build 1.6.0-b105)
    Java HotSpot(TM) Server VM (build 1.6.0-b105, mixed mode)

Maybe you are looking for