Topics: AIX, System Admin

Truss

To get more information on what a specific process is doing, you can get the truss command. That may be very useful, for example when a process appears to be hanging.

For example, if you want to know what the "recover" process is doing, first look up the PID of this process:

# ps -ef | grep -i recover | grep -v grep
root 348468 373010   0 17:30:25  pts/1  0:00 recover -f -a /etc
Then, run the truss command using that PID:
cscnimmaster# truss -p 348468
kreadv(0, 0x00000000, 0, 0x00000000) (sleeping...)
This way, you can see the process is actually sleeping.



If you found this useful, here's more on the same topic(s) in our blog:


UNIX Health Check delivers software to scan Linux and AIX systems for potential issues. Run our software on your system, and receive a report in just a few minutes. UNIX Health Check is an automated check list. It will report on perfomance, capacity, stability and security issues. It will alert on configurations that can be improved per best practices, or items that should be improved per audit guidelines. A report will be generated in the format you wish, and the report includes the issues discovered and information on how to solve the issues as well.

Interested in learning more?