Solved

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

Posted on 2011-02-17
2
1,745 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Looking for a program called HoneyMine. 3 117
IMAP copying tool 14 75
CentOS Backup Options 3 64
MySql Linux vs Windows: bad results for Windows but why? 10 69
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…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
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.
Suggested Courses

734 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