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

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

  • 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.

  • How to check whether weblogic server is in DEBUG mode or not

    Hi
    I want to check in my OSB proxy whether weblogic server is in Debug mode or not?
    IF abv thing is not possible ,
    I have check whether server is in development mode or production mode from my OSB proxy service?
    I m not able to find any doc on this??Please let me know how it can be done?
    Thanks

    There isnt any other way except for doing a Java Callout. In the callout method you can access the Domain/Server MBean for the information that you seek. Based on the callout result you can go ahead with the logic in your PS..
    Here is a sample Java Code to get the Server Log Level and ascertain whether the server is in Production Mode or not.
    package com.dell.mbean;
    import java.io.IOException;
    import java.net.MalformedURLException;
    import java.util.Hashtable;
    import javax.management.MBeanServerConnection;
    import javax.management.MalformedObjectNameException;
    import javax.management.ObjectName;
    import javax.management.remote.JMXConnector;
    import javax.management.remote.JMXConnectorFactory;
    import javax.management.remote.JMXServerErrorException;
    import javax.management.remote.JMXServiceURL;
    import javax.naming.Context;
    public class MyConnection {
         private static MBeanServerConnection connection;
         private static JMXConnector connector;
         private static final ObjectName service;
         static {
              try {
              service = new ObjectName("com.bea:Name=DomainRuntimeService,Type=weblogic.management.mbeanservers.domainruntime.DomainRuntimeServiceMBean");
              catch (MalformedObjectNameException e) {
              throw new AssertionError(e.getMessage());
         * Initialize connection to the Domain Runtime MBean Server.
         @SuppressWarnings("unchecked")
         public static void initConnection(String hostname, String portString,
         String username, String password) throws IOException,
         MalformedURLException {
         String protocol = "t3";
         Integer portInteger = Integer.valueOf(portString);
         int port = portInteger.intValue();
         String jndiroot = "/jndi/";
         String mserver = "weblogic.management.mbeanservers.domainruntime";
         JMXServiceURL serviceURL = new JMXServiceURL(protocol, hostname, port,
         jndiroot + mserver);
         Hashtable h = new Hashtable();
         h.put(Context.SECURITY_PRINCIPAL, username);
         h.put(Context.SECURITY_CREDENTIALS, password);
         h.put(JMXConnectorFactory.PROTOCOL_PROVIDER_PACKAGES,"weblogic.management.remote");
         h.put("jmx.remote.x.request.waiting.timeout", new Long(10000));
         try {
         connector = JMXConnectorFactory.connect(serviceURL, h);
         connection = connector.getMBeanServerConnection();
         } catch(JMXServerErrorException jmxSE)
              jmxSE.printStackTrace();
         catch(Exception ex)
              ex.printStackTrace();
         public static String getLogSeverity(String hostName, String portName, String userName, String password) throws Exception {
              initConnection(hostName, portName, userName,password);
              connector.close();
              ObjectName domainConfig = (ObjectName) connection.getAttribute(service,
              "DomainConfiguration");
              ObjectName logMbean =(ObjectName) connection.getAttribute(domainConfig, "Log");
              String logFileFilter = (String) connection.getAttribute(logMbean, "LogFileSeverity");
              System.out.println("Log File Filter= "+ logFileFilter.toString());
              return logFileFilter;
         public static boolean isProductionModeEnabled(String hostName, String portName, String userName, String password) throws Exception {
              initConnection(hostName, portName, userName,password);
              connector.close();
              ObjectName domainConfig = (ObjectName) connection.getAttribute(service,
              "DomainConfiguration");
              boolean prodEnabled= (Boolean) connection.getAttribute(domainConfig, "ProductionModeEnabled");
              System.out.println("Is Production Mode Enabled=" +prodEnabled);
              return prodEnabled;
    Make sure you have wlclient.jar and wljmxclient.jar as your dependent libraries.

  • 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

  • Check whether HTTP server supports "Range" request header

    Hi,
    I'm trying to develop a multi-threaded download manager which downloads several parts of the file concurrently using the "Range" HTTP request header field. However, I find that it is possible for servers to ignore that field.
    As per HTTP specs, checking the "Accept-Ranges" field doesn't seem to be very reliable. How do I check whether the HTTP server of the URL supports range requests. This is essential for both multi-threaded downloads and pausing and resuming downloads.

    I suspect that the only reliable way would be via testing. Second most reliable would be via documentation for the site (but a poor second to the first.)
    Then once you have the information put it in a configuration file so the app can use it.

  • 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\

  • 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 check whether the Application Server directory exits or not

    Hi,
    I have a selection screen in which I give the Application server file name(UNIX file) as input. Here, I would like to check whether the Server directory exists or not.
    Let us say, the path I gave in the selection screen is /usr/sap/tmp/testfile.txt . Here, the file name is testfile.txt and the server directory is /usr/sap/tmp . I would like to check whether this directory /usr/sap/tmp exists in the server or not. I am not bothered about the file name as I am going to write data into the file. I am mainly concerned about whether the directory exists in the server or not. and one more thing... this is the Application Server path not the Local path.
    Can anyone help me on the same how to check whether the server directory exists or not.
    Thanks in advance.
    Best Regards,
    Pradeep.

    Also you can use the FM EPS_GET_DIRECTORY_LISTING for this purpose.
      Store the directory name
        l_dpath = p_file+0(l_no).
      Validate the directory of the application server
        CALL FUNCTION 'EPS_GET_DIRECTORY_LISTING'
          EXPORTING
            dir_name               = l_dpath
          TABLES
            dir_list               = l_i_dlist
          EXCEPTIONS
            invalid_eps_subdir     = 1
            sapgparam_failed       = 2
            build_directory_failed = 3
            no_authorization       = 4
            read_directory_failed  = 5
            too_many_read_errors   = 6
            empty_directory_list   = 7
            OTHERS                 = 8.
      If any problem occurs with the directory then display proper
      error message
        IF sy-subrc <> 0.
        Display error message
          MESSAGE e018 WITH 'Problem with directory entered'(008).
        ENDIF. " sy-subrc <> 0
    Regards,
    Joy.

  • Checking if server is running.

    How can I check if specified server is running?

    atch7 wrote:
    So is there one definite way of checking if server specified by host is running?What good would that information do?
    What difference does it make if the server is up, but you can't connect to it?
    What difference does it make if the server is up, but the concrete service isn't running?
    What difference does it make if the server is up, the service is running, but it doesn't accept your specific connection is not accepted.
    The net result is the same: you don't have access to the servers service.

  • How to check whether socket or servlet mode?

    HI
    What are the various ways to check whether forms server is in socket mode or servlet mode.
    Thanks
    JIL

    You can check context file also
    you can confirm form server is set at servlet mode by
    -bash-3.00$ grep s_frmConnectMode $CONTEXT_FILE
    <forms_connect oa_var="s_frmConnectMode">servlet</forms_connect>
    -bash-3.00$
    socket mode by,
    -bash-2.05b$ grep socket $CONTEXT_FILE
    <forms_connect oa_var="s_frmConnectMode">socket</forms_connect>
    -bash-2.05b$ grep
    Suresh
    http://applicationsdba.blogspot.com

  • Exchange upgrade failing on Pre-Req check with error that a server is running exchange 2000 or 2003.

    I currently have an Exchange 2010 single server running in the domain.
    I beleive it was migrated from a 2003 exchange years ago, and that has been re-purposed.
    When want to migrate to exchange 2013 and install a DAG, but on the readiness checks, it fails on the new server saying one or more server in the existing orginisation are running exchange 2000 or exchange server 2003.
    The link says how to uninstall exchange, but it is not there any longer to uninstall.
    I have been looking for how to clean up AD, but not finding anything definitive as to what to delete to have the install succeed.

    Hi,
    Please run the following command to check the Exchange server in your organization:
    Get-ExchangeServer
    Check whether there is any legacy Exchange server listed. We can double confirm the Excahnge server in the following path:
    1. In ADSI Edit, navigate to Configuration >
    CN=Configuration,CN=<domain> > CN=Services >
    CN=Microsoft Exchange > CN=<Exchange organization name> >
    CN=Address Lists Container > CN=Recipient Update Services.
    2. In the result pane, right-click Recipient Update Service (Enterprise Configuration), click
    Delete, and then click Yes to confirm the deletion.
    3. Uninstall Exchange 2003 by using Add or Remove Programs from
    Control Panel.
    If there is no Exchange 2003 in your organization, please collect any error logs in Event Viewer for further troubleshooting.
    Regards,
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]
    Winnie Liang
    TechNet Community Support

  • How to check jms server is running or not

    Hi,
    Is there any to check whether defined jms sever in a weblogic domain,10.3, is running or not?
    thanks

    Hi bala
    T code for checking your ABAP and Java ports is SMICM.
    Then select GOTO --> Parameters --> Find the parameter given below for ABAP port.
    icm/server_port_0 = PROT=HTTP,PORT=8000,TIMEOUT=30,PROCTIMEOUT=600
    Java Port:
    icm/j2ee_0 gives you Java port.
    Refer the point no 8 of the web log it states about  start the J2EE server.
    /people/krishna.moorthyp/blog/2006/07/23/http-errors-in-xi
    Regds
    Abhishek

  • 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)

  • How to check whether a file is present in the UNIX directory of app. server

    Hi,
            I am creating files in the UNIX directory in the application server using :
                       CONCATENATE '/sapmnt/RD1/interfaces/client670/'
                       p_fname '.CSV' INTO w_filename.
               OPEN DATASET w_filename FOR OUTPUT IN TEXT MODE.
              LOOP AT t_output1.
                      TRANSFER t_output1 TO w_filename.
              ENDLOOP.
             CLOSE DATASET w_filename.
    I am unable to check whether a file with the same name exists or not. How to check the duplicate state of the file.

    You can use the following fm
    RZL_READ_FILE
    or
    use OPEN DATASET FOR INPUT.

Maybe you are looking for

  • How to call a popup with BDT?

    Hi anyone, I used the BDT to expand the a transaction with a few tabstraps. Now I'm trying add a Pop-Up to that transaction that should be called by pressing a button at one of my tabs. Therefore I create a Dynpro and all nessecary objects such as fi

  • Urgent, please help, new Ipod 30 GB Video!!

    Dear community, I have a problem with a 30 GB new ipod video that I bought 6 weeks ago. I used it with no problems yesterday, and today when I started it, it is hanging forever with a dark screen and little small white box in the top left of the scre

  • Replicating the PersistenceMgrSO

    In our Forte application, so far, we had single instance of PersitenceMgrSO. Now we have replicated (replication count is 3) it for load balancing. W.r.t. the replication, I have a question here. When we make a call to PersitenceMgrSO, it will go to

  • A number will no - work on -his compu-er anymore.

    af er S and before U. Le --er _ will no- work anymore. I hope you can read -his. do you know how I can fix -his

  • How uninstall flash player 9

    Previously i  have used flash player 9 recently ihave installed flash player 10.  But when i opened swf files these are opened in flash player 9. And how it opend  always in flash player heighest  version.