0

I have bunch of ec2 nodes registered to chef server, more than half of them were terminated earlier. I still see them as nodes under knife node list. How do I delete them that are not pingable? My clients are not running chef-client periodically, it is adhoc.

Chucks
  • 521
  • 1
  • 7
  • 13
  • Looks like you're asking for [this fine knife hack](https://github.com/stevendanna/knife-hacks/blob/master/exec/clean-ec2-cruft.rb). – sr_ Jun 10 '14 at 12:33

1 Answers1

0

I suggest to run knife status as a built-in solution. It gives you your nodes ordered by last check-in time.

StephenKing
  • 952
  • 1
  • 8
  • 18