how to monitor  command execution in Solaris 10

Posted on 2011-10-31
Last Modified: 2012-05-12

I want to know what exactly happening after executing certain command in solaris 10 How can I do this ? is there any utility which can track the execution.?

because certain ESRI SDE commands taking 15 minutes which are suppose to do it in 15 seconds.

I have the process ID which shows me CPU utilization 1%  and rest is free doing nothing.

waiting for expert reply
Question by:sulu999
    LVL 19

    Accepted Solution

    You can use truss (syntax below)   Beware that this will generate a HUGE amount of debug, so I have set it up below to redirect to a file.

    I would say once you start the command below, switch to another window and do "tail -f /path/to/my/logfile"

    It may go too fast to spot anything while tailing it, but after you abort your original program, you can go back and inspect your logfile.  It takes some patience, but usually you can spot what went wrong with some perseverance.
    truss </path/to/your/command> 2>/path/to/my/logfile

    Open in new window


    Assisted Solution

    Another option with Solaris 10 is dtrace. You will have to do some scripting and truss may be easier if you've never used dtrace, but dtrace is much more powerful. There is a toolkit you can download here:

    It has many example scripts and probably has one that will do what you need. The advantage is that you can modify the scripts to consolidate and show just the data you need.

    Author Closing Comment

    The file generated was huge as said and dufficult to know in starting .

    the problem is ESRI SDE 10 is not supporting on Oracle solaris 10update10 with oct2011 CPU updates.

    it works well on SunOS 5.10 Generic_141414-10”  that is at level of 2009
    EIS sep 2009.

    I reinstalled the server till i get the proper solution. it took me 6 hours to do so.

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    Join & Write a Comment

    Introduction A previously published article on Experts Exchange ("Joins in Oracle", makes a statement about "Oracle proprietary" joins and mixes the join syntax with gen…
    How to Unravel a Tricky Query Introduction If you browse through the Oracle zones or any of the other database-related zones you'll come across some complicated solutions and sometimes you'll just have to wonder how anyone came up with them.  …
    This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
    This video shows how to recover a database from a user managed backup

    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

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now