Example output from the ping utility

The following examples illustrate the kind of information that the server generates for the different server scenarios:
  • Successful server start
  • Failed server start
  • Server transition between run levels
  • Planned server shutdown

Successful server start

The following code is an example of the ping utility return values if the PolicyCenter server starts successfully.
{
  "runLevelCode": 50,
  "runLevelName": "MULTIUSER",
  "runLevelOrdinal": 5,
  "serverId": "PolicyCenterServer1",
  "uptimeSeconds": 45
}

Failed server start

The following code is an example of the ping utility return values if the PolicyCenter development server fails to start.
{
  "runLevelCode": 40,
  "runLevelName": "NODAEMONS",
  "runLevelOrdinal": 3,
  "serverId": "PolicyCenterServer1",
  "startupException": "java.lang.RuntimeException: Test Startup Exception\n\tat
        com.guidewire.pl.system.server.PingServerServletTest.
        testInitTabStateJSONObjectShowsStartupException(PingServerServletTest.java:52)\n\tat... ",
  "uptimeSeconds": 40
}
The following code is an example of the ping utility return values if the PolicyCenter production server fails to start. By default, PolicyCenter does not show the actual exception text and instead replaces the text with <not null>.
{
  "runLevelCode": 40,
  "runLevelName": "NODAEMONS",
  "runLevelOrdinal": 3,
  "serverId": "PolicyCenterServerPROD1",
  "startupException": "<not null>",
  "uptimeSeconds": 40
}

Server transition between run levels

The following code is an example of the ping utility return values on a development server while it is transitioning from one run level to another. In this example, the server is transitioning from MULTIUSER run level to the DAEMONS run level.
{
  "attemptingTransition": {
    "fromRunLevelName": "MULTIUSER",
    "fromRunLevelOrdinal": 5,
    "threadStackTrace": "Thread-142:TIMED_WAITING\n\tat  sun.misc.Unsafe.park(Native Method)\n\tat
          java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215)\n\tat...”,
    "toRunLevelName": "NODAEMONS",
    "toRunLevelOrdinal": 3
},
  "runLevelCode": 45,
  "runLevelName": "DAEMONS",
  "runLevelOrdinal": 4,
  "serverId": "PolicyCenterServer1",
  "uptimeSeconds": 6814
}
Note: Use system_tools command options to transition a PolicyCenter server from one run level to another.

Planned server shutdown

The following code is an example of the ping utility return values.

{
  "runLevelCode": 50, 
  "runLevelName": "MULTIUSER",
  "runLevelOrdinal": 5, 
  "serverId": "testsrv1", 
  "uptimeSeconds": 1820
}

The following code is an example of the ping utility return values after starting a planned server shutdown from the (Server Tools) Info Pages > Cluster Members page.

{ 
  "plannedShutdownStatus": "activated",
  "runLevelCode": 50,
  "runLevelName": "MULTIUSER", 
  "runLevelOrdinal": 5, 
  "serverId":  
  "testsrv1",
  "uptimeSeconds": 1825
}

The following code is an example of the ping utility return values after the server shutdown completes.

{ 
  "plannedShutdownStatus": "ready", 
  "runLevelCode": 50,
  "runLevelName":  "MULTIUSER", 
  "runLevelOrdinal": 5, 
  "serverId": "testsrv1",
  "uptimeSeconds": 1830
}

See also