On Tue 16 Jan 2007 at 10:06PM, Arun wrote:> Can Dscripts be used to persist data on to a database? Or if not, does
d-script have any perl support to do it. I have a need to develop an application
that takes the data traced by dtrace and persist it on to a storage like a DB.
> Pls help me out in this regard.
>
At one point Eric and I whipped up a D script which emitted XML,
simply by using the printf() builtin, then used an XML stream
processor to parse the output and do something useful with it.
You might be able to do that. You could even have DTrace emit the
SQL statements you need, and then process those in order to stick the
data into the database.
There is an API, but if I recall correctly it isn''t public at this
time.
-dp
--
Daniel Price - Solaris Kernel Engineering - dp at eng.sun.com - blogs.sun.com/dp