Hye all. I have to get Dtrace Logs (on Solaris 10) to import them into MOM database (operations manager on Win Server 2003) For that I suppose it is necessary to use a Web Service (via JBoss) to get Dtrace informations and export them. But I don''t see any logs concerning Dtrace on Solaris. I tested some Dtrace Scripts found on Web who display IO disks etc...but by default Dtrace save informations in a file ? If yes where could I find the files ? and how recover theses logs using a Web Service ? A DTrace-Jboss Kit is available ? Thanks for all informations. :) This message posted from opensolaris.org
DTrace doesn''t enable any probes or record any traced data. It sounds like you need to determine the data you''re interested in recording, and construct a script that collects those data. You can have DTrace emit traced data in whatever format you like. Adam On Sun, Feb 18, 2007 at 02:43:57PM -0800, metan wrote:> Hye all. > > I have to get Dtrace Logs (on Solaris 10) to import them into MOM database (operations manager on Win Server 2003) > > For that I suppose it is necessary to use a Web Service (via JBoss) to get Dtrace informations and export them. > > But I don''t see any logs concerning Dtrace on Solaris. I tested some Dtrace Scripts found on Web who display IO disks etc...but by default Dtrace save informations in a file ? > > If yes where could I find the files ? and how recover theses logs using a Web Service ? > > A DTrace-Jboss Kit is available ? > Thanks for all informations. :) > > > This message posted from opensolaris.org > _______________________________________________ > dtrace-discuss mailing list > dtrace-discuss at opensolaris.org-- Adam Leventhal, Solaris Kernel Development http://blogs.sun.com/ahl
So what would be the procedure to follow if I want to export Dtrace infos and import them in MOM database ? It is possible ? what is the command to save logs with Dtrace ? JDtrace is used for what in fact ? Thanks for all anwers. This message posted from opensolaris.org
On Mon, Feb 19, 2007 at 05:50:55AM -0800, metan wrote:> So what would be the procedure to follow if I want to export Dtrace > infos and import them in MOM database ? It is possible ? > > what is the command to save logs with Dtrace ?There are not DTrace logs as such. Think of DTrace as truss(1) on steroids; truss doesn''t have log files either. Instead what you do is write DTrace scripts that gather the information that you want and you then run them and save/consume their output however you like. There''s no built-in "connector" to send DTrace output to your favorite DB -- writing one is up to you. Nico --
Ok thanks for anwser. Let''g go so :/ So first I have to write Dtrace scripts who save my informations of my IO disk etc, right ? It exists a command in Dtrace who permits to do that ? Then I will have to write a Web Service (the built-in "connector" whose you speak ?) to send DTrace output to my DB ? If you can tell me if the procedure seems to be correct or not, give me a way ^^. And in JDTrace in all that ? I use this for what ? Thanks in advance. :) This message posted from opensolaris.org
If you''re referring to the jdtrace test program that I wrote, its purpose is stated here: http://www.opensolaris.org/os/project/dtrace-chime/java_dtrace_api/jdtrace "jdtrace is a Java program that emulates dtrace(1M) using the Java DTrace API ... jdtrace makes it possible to test the Java DTrace API using the existing DTrace test suite. I hope it also provides useful examples of how to access common DTrace functionality using the API." If you''re thinking of writing a Java program to process the information you get from DTrace, the Java DTrace API should simplify your work. It currently requires Solaris 11. Tom This message posted from opensolaris.org
Hye, back. 1. So if I want to save logs from DTrace scripts, it would be more simple to use JDtrace & Solaris express ? 2. What is used to save logs in JDTrace ? I saw these lines : [i]To log PrintaRecord, set this environment variable: JDTRACE_LOGGING_LEVEL=FINE To log ProbeData, set JDTRACE_LOGGING_LEVEL=FINER[/i] It?s this argument who allow to save log? or it is used for what ? How can I do with JDTrace to save the output of a DTrace script ? If you can explain that it would be cool p. Thanks in advance. This message posted from opensolaris.org
On Thu, Mar 29, 2007 at 12:55:15PM -0700, metan wrote:> 1. So if I want to save logs from DTrace scripts, it would be more > simple to use JDtrace & Solaris express ?No. It''s very simple to both customize the output format and location from DTrace. Adam -- Adam Leventhal, Solaris Kernel Development http://blogs.sun.com/ahl