Solved

This is in AIX 5.3..how to evaluate the output of truss

Posted on 2011-02-17
2
1,665 Views
Last Modified: 2012-06-21
i ran this command on a running process

truss -aef -o output.txt -p 654890

and it generated a file output.txt...But it is tough for me to analyse the output..Is there any command where we can make the report of that file so we could know where it is erroring out or failing and also are there any tools to evaluate the truss output..If none of the above works can you please let me know what to look for in the output file so that I could say here it is failing
0
Comment
Question by:aixtutorial
2 Comments
 
LVL 68

Accepted Solution

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

unfortunately there is no anylyzer for truss.

Here is an article which describes a bit what you can see in the "truss" output:

http://www.ibm.com/developerworks/aix/library/au-unix-tracingapps.html

Basically, truss "displays the calls that an application makes to external libraries and the kernel. These calls give the application access to the network, the file system, and the display. By watching the calls and their results, you can get some idea of what the application "expects", which can lead to a solution."

To fully understand it you will make yourself comfortable with system calls, what parameters they expect and what they would return.
Here is the complete IBM documentation on AIX system calls, the IBM denomination being "Runtime Services":
http://publib.boulder.ibm.com/infocenter/pseries/v5r3/index.jsp?topic=/com.ibm.aix.doc/doc/base/alphbeticallistofaixruntimeservices.htm

wmp
0
 
LVL 34

Expert Comment

by:Duncan Roe
ID: 34935118
truss is like Linux strace. Generally I analyse the output from strace by going to the bottom of the file and looking back for failed system calls (return code -1).
That is assuming the program crashed.
What sort of problem are you trying to solve?
Can you post the output from man truss executed on the AIX system please?
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Block sender e-mail address in Postfix 4 64
bash while loop reading input from data section in script 7 62
nagios remote hosts 9 42
Control Number of Log Files -Perl 7 52
If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

914 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now