Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

how to monitor  command execution in Solaris 10

Posted on 2011-10-31
3
Medium Priority
?
521 Views
Last Modified: 2012-05-12
Hi

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
0
Comment
Question by:sulu999
3 Comments
 
LVL 19

Accepted Solution

by:
xterm earned 1000 total points
ID: 37060835
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

0
 

Assisted Solution

by:nconklin
nconklin earned 1000 total points
ID: 37063137
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:

http://www.solarisinternals.com/wiki/index.php/DTraceToolkit

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.
0
 

Author Closing Comment

by:sulu999
ID: 37064167
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.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction This article is designed to assist GIS (Geographic Information System) and GPS (Global Positioning System) developers using ESRI ArcGIS and other spatial information management systems.   For the uninitiated the concept of projectio…
This post first appeared at Oracleinaction  (http://oracleinaction.com/undo-and-redo-in-oracle/)by Anju Garg (Myself). I  will demonstrate that undo for DML’s is stored both in undo tablespace and online redo logs. Then, we will analyze the reaso…
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.
Via a live example, show how to take different types of Oracle backups using RMAN.

572 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