Please be more specific. Are you trying to capture and report some
subset of the
data prstat reports? If so, what data are you interested in tracking
(and why is
prstat not suitable)?
Or are you simply trying to create a D script that reports data at some
interval? You can do that using the tick provider, and having it display
data collected in other probes.
If you want to do something more sophisticated, consider using a shell
or Perl wrapper around D. Brendan Gregg made an art of this,
and his DTrace ToolKit is a great place to get examples.
http://www.brendangregg.com/dtrace.html#DTraceToolkit
/jim
Vineet Goel wrote:> Hi Guys,
>
> Is it possible to write a dtrace script to get output like prstat at a
> given time interval.
> I will appreciate if you would give me some leads on that.
>
> I tried writing script using proc and plockstat provider but landed
> some where.
>
> Thanks
> Vineet
>
>
>
>
>
> ------------------------------------------------------------------------
> Change is good. See what''s different about Windows Live Hotmail.
Check
> it out!
>
<www.windowslive-hotmail.com/learnmore/default.html?locale=en-us&ocid=RMT_TAGLM_HMWL_reten_changegood_0507>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> dtrace-discuss mailing list
> dtrace-discuss at opensolaris.org
>