Add a tick-10s probe to the end and do an exit. Just note that tick-10s will fire in about 10 sec and this is not exactly at 10s.

Here is what you need to add.

tick-10s
{
        exit(0);
}

-Angelo

On Oct 19, 2009, at 12:39 PM, Roman Naumenko wrote:

Hello,

I'm building some simple monitoring tools to watch zfs storage servers.

Is this possible to run dtrace script for example 10 seconds? (Of course it is, I just trying to figure out how). Right know it has to be stopped by "CTRL-C"

I'm particulary interested in scripts like iscsiio.d, iscsiwho.d from http://www.solarisinternals.com/wiki/index.php/DTrace_Topics_iSCSI

Thanks in advance,
Roman Naumenko
ro...@frontline.ca
--
This message posted from opensolaris.org
_______________________________________________
dtrace-discuss mailing list
dtrace-discuss@opensolaris.org

_______________________________________________
dtrace-discuss mailing list
dtrace-discuss@opensolaris.org

Reply via email to