[Bro-Dev] #665: broctl and check/install/(re)start dance refinement

Bro Tracker bro at tracker.bro-ids.org
Sun Dec 11 22:37:48 PST 2011


#665: broctl and check/install/(re)start dance refinement
-------------------------+-----------------
  Reporter:  seth        |      Owner:
      Type:  Problem     |     Status:  new
  Priority:  Normal      |  Milestone:
 Component:  BroControl  |    Version:
Resolution:              |   Keywords:
-------------------------+-----------------

Comment (by eddyg):

 A thought... since this has been irking me of late (when I forget to
 install).

 You could use the equivalent of  "ls -lR | md5sum" on the share/bro
 directory to store the current checksum of the configuration, store that
 in the spool dir after every "install". Then on every "start" check the
 checksum and perform an implicit "install".

 Of course you can use python libs for this if you don't want to depend on
 Unix commands (a sensible approach), so that would be os.walk() (or some
 recursion), os.lstat() to dump some text into a buffer then md5 it.

-- 
Ticket URL: <http://tracker.bro-ids.org/bro/ticket/665#comment:1>
Bro Tracker <http://tracker.bro-ids.org/bro>
Bro Issue Tracker



More information about the bro-dev mailing list