Description

Dump a process stack for a specific session.

Note: As with the classic OpenEdge Appserver, you can generate a stack for PAS for OpenEdge by using a debugging tool. For the classic Appserver, you can also run the proGetStack utility to generate stack traces. For PAS for OpenEdge and its multi-session agent, this REST call is analogous to proGetStack.

HTTP Operation

GET

URI

//host_name:port/oemanager/applications/ABL_app_name/agents/agentPID/sessions/sessionid/stacks
Note: Agent PID (for example, 1144) or agent ID (for example, W9UI_6dJQ-qSsk-o25mWAw) can be used to identify the multi-session agent. Both values can be obtained using the List agents API.

Media type

Application/vnd.progress+json

Response codes

200 Success
500 Unexpected Server Error

Command-line example

curl -X GET -u username:password -v "http://localhost:8810/oemanager/applications/oepas1/agents/P9PDwujXQqeFoGgnL7wZfw/sessions/7/stacks"

ABL HTTP client example

define variable resp as OpenEdge.Net.HTTP.IHttpResponse.

resp = OpenEdge.Net.HTTP.ClientBuilder:Build():Client
   :Execute(OpenEdge.Net.HTTP.RequestBuilder
      :Get('http://localhost:8810/oemanager/applications/oepas1/agents/P9PDwujXQqeFoGgnL7wZfw/sessions/7/stacks')
      :UsingCredentials(new OpenEdge.Net.HTTP.Credentials('', 'username', 'password'))
      :Request
   ).

Request body example

NA

Response body examples

Success

{
   "outcome":"SUCCESS",
   "errmsg":"",
   "versionStr":"v11.7.1 ( 2017-06-09)",
   "versionNo":1,
   "operation":"GET SESSION RUNTIME STACKS",
   "result":{
      "ABLStacks":[
         {
            "AgentSessionId":7,
            "StartupParams":"-pf
      \/usr1\/example\/117\/dlc\/startup.pf, -cpinternal ISO8859-1,-cpstream ISO8859-1,-cpcoll
      Basic,-cpcase Basic, -d mdy,-numsep 44,-numdec 46,(end .pf),-logginglevel 2,
      -logfile \/usr1\/example\/117\/wrk\/oepas1\/logs\/oepas1.agent.log, -uburl
      AppServerDC:\/\/0.0.0.0:52511\/, -logname oepas1,-logentrytypes
      ASPlumbing,DB.Connects, -ubpropfile
      \/usr1\/example\/117\/wrk\/oepas1\/conf\/openedge.properties, -ASID 1,-ipver IPv4,-sectok
      XXXXXXXXXXXXXXXXXXXXXX, -T \/usr1\/example\/117\/wrk\/oepas1\/temp, -db
      \/usr1\/example\/117\/wrk\/sports2000",
            "Propath":…(more)

Failure

{
   "outcome":"FAILURE",
   "errmsg":"Communication layer message: General Error:READPACKET IOException : 
java.io.EOFException (null). (7175)",
   "versionStr":"v11.7.1( 2017-06-09 )",
   "versionNo":1,
   "operation":"GET SESSION RUNTIME STACKS",
   "result":""
}