Forum Discussion

Vinoth_96603's avatar
Vinoth_96603
Icon for Nimbostratus rankNimbostratus
Mar 16, 2010

How do identify whether a server is up or down?

Is there any specific iControl API to determine whether the server is up or down (means the server is in running state or shutdown)?
  • To be precise, I'm able to get the objects status and enabled status using the below code. Likewise, is it possible to get status of object whether its running (up) or shutdown (down)?

     

     

    Interfaces inter = box.getInterface(ipaddress, username, password);

     

    CommonEnabledState[] stat = inter.getGlobalLBWideIP().get_enabled_state(wideip);

     

    CommonObjectStatus[] obstatus = inter.getGlobalLBWideIP().get_object_status(wideip);