It is currently Sat, 30 May 2015 09:22:10 GMT

Author Message
 truss command

Does anyone know of an AIX equivalent of the
Solaris truss command. I have a process that
seems to be hung and I want to find out what it
is doing.


Sent via http://www.**-**.com/
Before you buy.

 Tue, 24 Sep 2002 03:00:00 GMT   
 truss command

Not as nice as truss, but available free with AIX is the kernel
de{*filter*}. Install it and then enable it using bosboot, and when the
process gets stuck, press control-alt-keypad4.

This halts the machine and control is in the hands of the kernel
de{*filter*} which can be controlled from a 9600 baud terminal attached to
the first native serial port on the AIX box. Enter the command >stack to
see what commands are in the current execution stream. It may give you a
hint as to what is happening as most of the routines in the stack trace
will have names, some of which may look familiar.

Obviously, this is only an option if you do this with as few processes
running (and no real users!). Everything on the machine is halted while
you use the kernel de{*filter*}. Be careful!
-Bob Rubendunst
Soft Machines http://www.**-**.com/
"Everything serial from start to stop"

 Wed, 02 Oct 2002 03:00:00 GMT   
 truss command

Thanks Nicholas, can we put that testimonial on our web site?  Maybe we
could use "not pathetic" as our new advertising tag line. :-)

Really, I'm sure you know the effort required to create, support, and
distribute commercial software.  I can tell you with complete authority
that no one is getting rich off of SCTrace.  It's not easy to do things
like SCTrace, and in fact most companies wouldn't consider it worth
their effort.

It's not a coincidence that there aren't other tools like this available
on AIX--it took one of the finest programmers I know a lot of time to
cook up SCTrace, and we've spent a lot more time dealing with all the
peculiarities of AIX, handling every change IBM makes to the OS,
supporting every customer who has a problem with it, etc.  Knowing what
that kind of technical talent goes for these days, I would hope you
would think that at $895 a license SCTrace is actually quite a bargain.

However, I would still encourage everyone to try to convince their IBM
reps that IBM really should ship something like SCTrace with every AIX
box.  Gee, maybe they could just ship SCTrace itself with every box!
Now there's an idea....

That's my understanding.  Basically they're taking things like the
loader, executable format, and debugging interface from UnixWare (sysV),
which includes using /proc instead of ptrace().  So doing something like
truss on Monterey should be a bit easier (we're planning to port SCTrace
of course). has
details on porting applications to Monterey (though it doesn't help us
much with something as system-dependent as SCTrace--there's that cost
thing again!).

Peter Jeffe                   512.433.3346
The Kernel Group, Inc.               
  >>> Bare Metal Restore adds Disaster Recovery to ADSM/TSM! <<<

 Thu, 03 Oct 2002 03:00:00 GMT   
 truss command

As long as you quote me in toto. :)

I realize it must have taken a lot of work to write and I don't
doubt that it takes a great deal of work to adjust for IBM's
changes in AIX, but it's really aggravating not to be able
to solve problems on AIX as quickly as I often can on Linux
and Solaris.  

At work, if we're able to replicate a problem on Solaris that
was originally reported on another platform, we use Solaris
to track down the bug.  Why?  Because it has better native
debugging tools.  (Just look at all those nifty toys in
/usr/proc/bin! pmap?!?  Oh, my!)  Again, I guess all good
things come to those who wait.

| When you really look for me, you will see me instantly --     |
| you will find me in the tiniest house of time.                |
|                                               - Kabir         |
| nick dronen      (unsigned char *) "ndronen at frii dot com"  |

 Fri, 04 Oct 2002 03:00:00 GMT   
 truss command
AIX does have a "watch" command, unfortunately I am not sure of the
versions it is impemented in, and it is not as complete as "truss"...
Hope its a hint...

 Wed, 16 Oct 2002 03:00:00 GMT   
   [ 5 post ] 

Similar Threads

1. truss command

2. truss command...

3. -D option in truss command

4. Help for truss command...

5. truss command and multiple threads

6. truss command | more


8. truss command

9. truss command

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software