How to get server status

Hi all,
     I want to know the server status,wether it is
started or restarted,through an application in java.
How is it possible.Send me some related code for this or some links for this.

Hi Guru,
You can try to use JStartup library from your NWDS installation (root\eclipse\plugins\com.sap.bc.proj.jstartup\lib\). Something like this :
import com.sap.bc.proj.jstartup.api.JStartupClusterController;
import com.sap.bc.proj.jstartup.api.JStartupClusterControllerFactory;
import com.sap.bc.proj.jstartup.api.JStartupClusterInstance;
import com.sap.bc.proj.jstartup.api.JStartupInitialFactory;
try {
     JStartupClusterControllerFactory clusCtrlFac = JStartupInitialFactory.getInitialFactory().getClusterControllerFactory();
     JStartupClusterController clusterController = clusCtrlFac.getClusterController("SERVER_NAME", SERVER_PORT);
     JStartupClusterInstance[] instances = clusterController.getInstances();
     for (int i = 0; i < instances.length; i++) {
          JStartupClusterInstance instance = instances<i>;
          System.out.println(instance.getHost());
          System.out.println(instance.getMessageType());
          System.out.println(instance.getName());
          System.out.println(instance.getState());
          System.out.println();
} catch (Exception e) {
     e.printStackTrace();
It gives all information like "J2EE Engine" view in NWDS does.
Best regards, Maksim Rashchynski.

Similar Messages

  • How to get system status and user status of service order

    Hi,
    I want to show user status and system status for service order in my report and i am using CRM_ORDER_READ function module to read the status, but it is returning lot of status records, could anyone please suggest how to get the system status and user status for service order.
    I did not find any clue for how to get user status, i can see the user status when i open the transaction using CRMD_ORDER.
    Regards,
    Kamesh Bathla

    Hi,
      Go to CRM_JEST table give your service order guid and get the status, pass this status into TJ02. You will get the status of your order.
    Regards
    Srinu

  • How to get the status of service in rac

    Dear all,
    how to get the status of service in rac.
    SQL> show parameters service;
    NAME                                 TYPE        VALUE
    service_names                        string      DEVDB, DEVDB1, devdb
    [oracle@rac1 ~]$ srvctl status service -d devdb -s devdb
    PRKO-2120 : The internal database service devdb cannot be managed with srvctl.

    user7244870 wrote:
    Dear all,
    how to get the status of service in rac.
    SQL> show parameters service;
    NAME                                 TYPE        VALUE
    service_names                        string      DEVDB, DEVDB1, devdb
    [oracle@rac1 ~]$ srvctl status service -d devdb -s devdb
    PRKO-2120 : The internal database service devdb cannot be managed with srvctl.
    Internal services cannot be managed with srvctl utility. Check if you have any user defined service in dba_services
    SQL> desc dba_services
    Name                                      Null?    Type
    SERVICE_ID                                         NUMBER
    NAME                                               VARCHAR2(64)
    NAME_HASH                                          NUMBER
    NETWORK_NAME                                       VARCHAR2(512)
    CREATION_DATE                                      DATE
    CREATION_DATE_HASH                                 NUMBER
    FAILOVER_METHOD                                    VARCHAR2(64)
    FAILOVER_TYPE                                      VARCHAR2(64)
    FAILOVER_RETRIES                                   NUMBER(10)
    FAILOVER_DELAY                                     NUMBER(10)
    MIN_CARDINALITY                                    NUMBER
    MAX_CARDINALITY                                    NUMBER
    GOAL                                               VARCHAR2(12)
    DTP                                                VARCHAR2(1)
    ENABLED                                            VARCHAR2(3)
    AQ_HA_NOTIFICATIONS                                VARCHAR2(3)
    CLB_GOAL                                           VARCHAR2(5)http://docs.oracle.com/cd/B19306_01/rac.102/b14197/srvctladmin.htm

  • How to get Invoice status value in oracle payable

    Hi guys,
    I am new in oracle apps plz tell me how to get invoice status value of prepayment invoice type in payable.
    Navigation ->Payables->Oracle Payables ->Invoices->Inquiry->Invoices ->go to Invoice status block and open to Status LOV
    plz provide me sql query to find those status lov values and accounted values for any supplier & invoice num.
    it's urgent plz .......................
    Thanks guys.......

    The invoice approval status does not come from any table / lookup.
    Instead, Oracle builds it by calling the ap_invoices_pkg.get_approval_status function.
    You can also call it by passing invoice_id, payment_status_flag and invoice_type_lookup_code.
    All these 4 columns are present on the ap_invoices_all record.
    Hope this helps
    Sandeep Gandhi
    Independent Consultant

  • How to get System status Check Boxes into Query selection screen

    Dear experts,
    Pleas help in knowing how to get System status Check Boxes into quick view query (SQVI), selectionscreen.
    Regards
    Jogeswara Rao
    Edited by: K Jogeswara Rao on Jul 6, 2010 7:26 PM

    Problem solved through other Forum
    (Checkboxes not possible, some alternative solution to my requirement found)

  • How to get system status and user status ?

    how to get system status and user status for the given production order?
    In which PP table we can
    find these?
    Thanks&Regards
    Satish

    Hi Ram,
    Use the FM "STATUS_READ" to read both the system and user statuses for an Order.
    Alternatively, the following tables store the user and system status info:
    JSTO- Status object information
    JEST- Individual Object Status
    Hope this helps.
    Let me know if u need further information.
    Regards,
    Sonal

  • How to get invoice status columns available in invoice general screen

    Dear All,
    How to get invoice status in oracle invoices
    Invoice Status --> Validated, Never Validated, Cancelled etc
    please advice me.
    Thanks
    Rehan
    Edited by: 877432 on Oct 9, 2012 3:52 AM

    for
    >
    which is not giving this function kindly where i find these status.
    >
    re-read
    >
    plz see http://www.shareoracleapps.com/2010/10/api-to-find-ap-invoice-status.html
    also Where Is The Invoice Validation Status Stored? How Is The Invoice Validation Status Determined? [ID 301806.1]
    >
    those notes point about statuses - 'Validated' , 'Never Validated' , 'Needs Revalidation'
    if you want 'Unpaid' , 'Fully Applied','Available' etc instead of 'UNPAID', 'FULL', 'AVAILABLE' etc you can use lookups
    see note in http://andyblg.wordpress.com/2012/10/09/approval-status-for-invoice-in-r12/

  • How to get acknowledgement status for PO

    Hi!
    I would like to write a program which gets the acknowledgement status from IDoc Processing for a given purchase order number.
    How can I do that? In which table can I find the link between IDoc and PO? How to get the status?
    Thanks in advance
    Christian

    EDIDS -- table
    Check in the below link to update the staus and find the application objectof an idoc
    http://www.sapgenie.com/sapedi/idoc_abap.htm#Getting%20IDocs%20linked%20to%20Application%20documents

  • How to get the status idoc from recieveing system

    Hi All,
    In our requirement we will be sending an idoc to the recieveing system. we are planning to get the staus of the idoc.
    How can you  recieve the status of the idoc that idoc has been is saftly reached to target server.
    Can any one share the solution if you have confirgured  the same before.
    We are planning to use : Middleware.

    Hi Anil,
    If get the status 03 means your idoc successfully send to receiving system port. But in the receiving system if there any issue in processing you can't get these updated status automatically from receiving system. You know Idoc works in asynchronous mode. To get the status you need send one idoc with status (error , success ot warning) from receiving system to sending system.
    Thanks
    Subhankar.

  • How to get the status of ASM intance in 11gr2

    hello all
    srvctl status asm -n <node name> gives the status of asm instance. with out using srvctl command how can we get the status of asm instance. ps can be help ful ? if so which is the process need to be checked for ?
    any other ways to do it?
    thanks in advance...

    You can query V$ASM_DISKGROUP,V$ASM_DISK or V$ASM_CLIENT.
    You can also check status of ASM background processes.
    http://download.oracle.com/docs/cd/B28359_01/server.111/b31107/asminst.htm#CHDCFCBJ

  • How to get temperature status by wmic

    Greetings
    I'm trying get temperature status from our server but I can't.
    I know that something is wrong in the command. Someone could help me get this info?
    wmic got this info:
    C:\Documents and Settings\Administrator>wmic /locale:ms_409 temperature
    No Instance(s) Available.
    C:\Documents and Settings\Administrator>wmic temperature
    No Instance(s) Available.
    C:\Documents and Settings\Administrator>
    Thanks

    You can query WMI from PowerShell. That gives you what you want in a script.
    I have a blog post and GitHub Gist that explains how:
    http://ammonsonline.com/is-it-hot-in-here-or-is-it-just-my-cpu/
    https://gist.github.com/jeffa00/9577816
    This gives you a module you can call in a PowerShell script by saying Get-Temperature.
    That will give you a string back with the temp in Celsius, Farenheit and Kelvin.
    Do note that it only works if the BIOS supports it, and you have to run as administrator to access the info.
    Hope this helps anyone coming here in the future with the same question.

  • LabVIEW DSC: How to get alarm status from the area?

    Colleagues,
    I have, lets say, 50 Shared Variables where alarming enabled. Some of these variables assigned to area, so I can get status of the entire area or acknowledge an entire area of alarms (prior to version 8.x there was groups of the tags).
    Now I would like to get alarm status from the entire area. How can I do it?
    In version 6 I was able to wire tag group to Get Alarm Summary Status. Now, in version 8, Alarm Status.vi can be wired to the array of the variables, but not to area. Is it possible to get all variables from the area?
    regards,
    Andrey.

    I am not sure if I should be posting my problem under this particular topic. I am having trouble understanding acknowledge alarm vi and what this vi is supposed to do is not clear to me yet.
    I have around 300 shared variables in my project and I have created a particular vi just to view the alarms that may pop up during runs. I created a main menu and this alarm vi can be accessed upon a button click in the main menu. Users get alarm alert based on sound configuration. Then he can navigate to the alarm vi and acknowledge the alarm. The alarm vi only contains alarm and event display found under DSC module.
    The problem is everytime I click the alarm button in the main menu, it takes around 2 minutes for the alarm vi to update which is very annoying and unsatisfactory in the middle of run. I am not sure why it happens and I haven't got any response from support yet. These shared variables are managed under 10 different library files that are set up based on different loops of the process (flow, pressure and so on).
    Then I looked into three alarm examples that ship with DSC module. None of these examples use acknowledge alarm vi. I implemented another vi similar to alarm demo vi in that example - containing multicolumn listbox. I created acknowledge event containing acknowledge button and used the acknowledge alarm vi under this event. Read vi alarm is under timeout event.
    When I click the acknowledge button  as soon as I see the alarm in multicolumn listbox, nothing happens - the color of font does not get changed to purple neither any alarms get acknowledged. I tried to aknowledge alarm by variable name or  alarms or alarm area, it does not give me anything. What is this acknowledge alarm supposed to do? I tried to find examples everywhere in the web that uses this particular vi and haven't found one yet. 

  • How to get invoice status column in ap_invoice_all table

    how to get the invoice_status column like "NEEDS RE VALIDATION"      in account payables tables.

    The invoice approval status does not come from any table / lookup.
    Instead, Oracle builds it by calling the ap_invoices_pkg.get_approval_status function.
    You can also call it by passing invoice_id, payment_status_flag and invoice_type_lookup_code.
    All these 4 columns are present on the ap_invoices_all record.
    Hope this helps
    Sandeep Gandhi
    Independent Consultant

  • How to get the status of the method

    Hi,
    I have created a services and method to start the processes.
    Method:
    #!/sbin/sh
    . /lib/svc/share/smf_include.sh
    case "$1" in
    'start')
    /usr/local/proce start
    sleep 10
    'stop')
    /usr/local/proce stop
    echo "Usage: $0 { start | stop }"
    exit 1
    esac
    exit $SMF_EXIT_OK
    Here am exit with SMF_EXIT_OK.
    How can I get the status of start and stop whether it is successful or failure.
    In the place of SMF_EXIT_OK I need to return the status of start and stop.
    Please help me in solving this.
    When i check in smf-include.sh , i got the following exit level
    SMF_EXIT_OK=0
    SMF_EXIT_ERR_FATAL=95
    SMF_EXIT_ERR_CONFIG=96
    SMF_EXIT_MON_DEGRADE=97
    SMF_EXIT_MON_OFFLINE=98
    SMF_EXIT_ERR_NOSMF=99
    SMF_EXIT_ERR_PERM=100
    Regards,
    Kalai

    ss

  • How to get user status in place of system status - B2C

    Hi,
    In our requirement for  B2C webshop, we need to replace the user stattus with the system status . In the standard B2C webshop, , we have only OPEN and COMPLETED orders, which related to system status - OPEN and COMPLETED.
    I want to get user status in place of system status.
    Please  help me how to proceed with the things.
    Regards
    Yaswanth.K

    Done using Custom RFC and jsp modifications!

Maybe you are looking for