Solved

This is in AIX 5.3..need a command

Posted on 2011-09-11
2
1,399 Views
Last Modified: 2012-05-12
This is in AIX 5.3..need a command

What is the equivalent command for pstack in AIX please also provide the syntax of the command
0
Comment
Question by:aixtutorial
  • 2
2 Comments
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 250 total points
ID: 36521173
Hi,

if you just want to see the stack of a process you can use

procstack PID

to print the hexadecimal addresses and symbolic names for all the threads in the process.

If you need a real trace the command to use is

dbx

It has lots of options and parameters, too many to explain here.
The basic format is

dbx -a PID

You will get a prompt. "h" gives you a list of subcommands.

There is a neat wrapper script to dbx from IBM called stackit.ksh

You can get this script as well as usage information here:

http://www-01.ibm.com/support/docview.wss?uid=swg21179404

Basically you'll have to run

stackit.ksh -p PID

wmp
0
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 36521178
If you want to see system calls, dynamically loaded user level function calls, received signals, and incurred machine faults
of a process then

truss -p PID

would be an option.
0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
OpenView NNM: Global Manager to Regional Manager connection fails 7 75
Reset Root Password on CentOS 6 4 56
expectj telnet failing 5 37
Can't ping New Linux Servers 40 68
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question