3 from monitor import parser as parsermodule
4 from findbad import main as findbad_main
5 from findbadpcu import main as findbadpcu_main
6 from sitebad import main as sitebad_main
9 if __name__ == '__main__':
11 parser = parsermodule.getParser(['nodesets'])
13 parser.set_defaults( increment=False, dbname="findbad", cachenodes=False,
14 force=False, pcuselect=None, pcuid=None)
15 parser.add_option("", "--cachenodes", action="store_true",
16 help="Cache node lookup from PLC")
17 parser.add_option("", "--dbname", dest="dbname", metavar="FILE",
18 help="Specify the name of the database to which the information is saved")
19 parser.add_option("-i", "--increment", action="store_true", dest="increment",
20 help="Increment round number to force refresh or retry")
21 parser.add_option("", "--force", action="store_true", dest="force",
22 help="Force probe without incrementing global 'round'.")
24 parser = parsermodule.getParser(['defaults'], parser)
26 cfg = parsermodule.parse_args(parser)
32 except Exception, err:
34 print traceback.print_exc()
35 print "Exception: %s" % err
36 print "Saving data... exitting."