No description, website, or topics provided.
Switch branches/tags
Nothing to show
Pull request Compare This branch is 23 commits behind jgoulah:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


A plugin for Chef::Knife which displays node metadata about the last chef run.


Supply a node name to get metrics from the last chef run

% knife node lastrun
Status                     success
Elapsed Time               74.198614
Start Time                 2012-02-22 00:39:04 +0000
End Time                   2012-02-22 00:40:18 +0000

Recipe                        Action                        Resource Type                 Resource
bigdata::default              run                           bash                          check for bashrc

Backtrace            none
Exception            none
Formatted Exception  none


Gem install

knife-lastrun is available on - if you have that source in your gemrc, you can simply use:

gem install knife-lastrun

Configure the Handler

in /etc/chef/client.rb

require "lastrun_update"
handler =
report_handlers    << handler
exception_handlers << handler