Random thoughts of a warped mind…

April 18, 2012

A different take on the Knife Status command

Filed under: EC2,Linux,Ruby — Srinivas @ 16:58

I dont normally like the way Chefs “knife status” displays info – It displays the last checkin time in terms of XXX hours/days ago and I’d prefer not to have to convert hours/minutes/days ago to some thing else. I would rather just see the absolute time the nodes last checked in with my chef server. And hence this script…

knife_status - sorted by absolute time (ascending)

knife_status - sorted by absolute time (ascending)

Save the script as /pathto/knife_status.rb and execute via “knife exec /pathto/knife_status.rb”.

Powered by WordPress