Monday Jul 04, 2011
Tuesday May 31, 2011
By bleonard on May 31, 2011
About a year and a half ago I wrote about a nifty little D script I came across while working with the now defunct Crossbow Virtual Wire Demo Tool. However, the script stopped compiling somewhere between the release of OpenSolaris 2009.06 and Solaris 11 Express.Solaris 11 Express also included the addition of two new DTrace providers, TCP and UDP. These new providers make it possible to simplify the script and Solaris Systems Architect Andrew Gabriel did this.[Read More]
Tuesday Nov 10, 2009
By Brian Leonard on Nov 10, 2009
Wednesday Oct 28, 2009
By Brian Leonard on Oct 28, 2009
Friday Oct 23, 2009
By Brian Leonard on Oct 23, 2009
Wednesday Oct 21, 2009
By Brian Leonard on Oct 21, 2009
A hidden little gem that comes included with your installation of OpenSolaris is the DTrace Toolkit. You'll find it installed at /opt/DTT.
The DTrace Toolkit is a collection of tools written by volunteers of the DTrace community, led by Brendan Gregg. What I find most impressive is how well it has been put together. There are 230 executable DTrace scripts, each with their own man page. The scripts are organized by type (CPU analysis, I/O analysis, etc.) so they are easy to study, but they've all been symlinked into a Bin directory, so they are easy to put on your path. I've added the following to my ~/.bashrc file:
# # DTrace Toolkit # PATH=$PATH:/opt/DTT/Bin MANPATH=$MANPATH:/opt/DTT/Man
In addition to their man pages, all of the scrips have a -h help option, for example:
bleonard@os200906:~$ execsnoop -h USAGE: execsnoop [-a|-A|-ehjsvZ] [-c command] execsnoop # default output -a # print all data -A # dump all data, space delimited -e # safe output, parseable -j # print project ID -s # print start time, us -v # print start time, string -Z # print zonename -c command # command name to snoop eg, execsnoop -v # human readable timestamps execsnoop -Z # print zonename execsnoop -c ls # snoop ls commands only
Note, if you want to run the DTrace scripts from your user account,
run the following command to add the needed privileges, substituting in
your user name:
pfexec usermod -K defaultpriv=basic,dtrace_user,dtrace_proc,dtrace_kernel <user>
With this toolkit there's probably little need to write a DTrace script from scratch - it's literally a treasure chest of material that I've only begun to explore.
Wednesday Jul 29, 2009
Friday Jul 24, 2009
Saturday Apr 11, 2009
By Roman Strobl on Apr 11, 2009
Nick Solter and Dave Miner (authors of OpenSolaris Bible) presented a session called Becoming an OpenSolaris Power User, which covers topics such as ZFS, DTrace and networking at Community One. Source: Nick Solter's blog.
Tuesday Mar 03, 2009
By Roman Strobl on Mar 03, 2009
Thursday Feb 05, 2009
By Roman Strobl on Feb 05, 2009
A friend of mine from CZOSUG sent me a link to this amazing video - realtime analysis of vibrations caused by sound with DTrace and FishWorks on the Sun 7000 storage (based on OpenSolaris). Lesson learned: shouting can be dangerous to your data!
Friday Aug 29, 2008
By Roman Strobl on Aug 29, 2008
DTrace is very cool. I was skeptical first - because I hate learning a new language for a task, but learning D language is worth it, you can get so much information from the system...
Tuesday Aug 26, 2008
By Gregg Sporar on Aug 26, 2008
I wanted to learn more about DTrace, so I started at the beginning: Chapter 1 of the Solaris Dynamic Tracing Guide. Using my installation of OpenSolaris 2008.05, I typed in the first command described, but it did not work. This is because in order to use DTrace, my account needs additional
privileges that were not specified when the account was created.
Tuesday Aug 05, 2008
By Roman Strobl on Aug 05, 2008
A new version (0.4) of NetBeans DTrace GUI plug-in is ready for download from NetBeans Update Center.
New features include:
- Chime (the DTrace output visualization) is embedded into the NetBeans
DTrace GUI Plugin. Chime is fully integrated with NB DTrace GUI.
- New & enhanced UI.
- An Open-Sourced project at netbeans.org. Developers can participate in future implementations such as DTrace Editor which includes Dtrace code completion, syntax checking and code folding.
- Works with Sun Studio IDE Express releases.
- Works with NetBeans IDE 6.0, 6.1, and 6.5.
For more information, see:
- Next OTN Virtual Sysadmin Day: January 28th, 2014
- Building a "developer cloud" with Oracle Solaris 11
- Security Experts Spill the Beans on Oracle Solaris 11.1
- Oracle Solaris 11.1: Compliance Reporting with SCAP
- Oracle Solaris 10 1/13: Improved Secure File Copy Performance
- Oracle Solaris 11 pkg fix
- Oracle Solaris 11.1
- Using Ops Center to Provision Solaris using a Card-Based NIC
- Oracle Solaris Live Chat This Wednesday (June 27, 8-11A PT)
- Liveinstall Solaris 11 from Solaris 10