def buildOptions(self): super(ZenActionD, self).buildOptions() maintenanceBuildOptions(self.parser) workersBuildOptions(self.parser, 1) default_max_commands = 10 self.parser.add_option('--maxcommands', dest="maxCommands", type="int", default=default_max_commands, help='Max number of action commands to perform concurrently (default: %d)' % \ default_max_commands) default_url = getDefaultZopeUrl() self.parser.add_option( '--zopeurl', dest='zopeurl', default=default_url, help="http path to the root of the zope server (default: %s)" % default_url) self.parser.add_option( "--monitor", dest="monitor", default=DEFAULT_MONITOR, help="Name of monitor instance to use for heartbeat " " events. Default is %s." % DEFAULT_MONITOR) self.parser.add_option( '--maintenance-window-cycletime', dest='maintenceWindowCycletime', default=60, type="int", help= "How often to check to see if there are any maintenance windows to execute" )
def buildOptions(self): super(ZenActionD, self).buildOptions() maintenanceBuildOptions(self.parser) workersBuildOptions(self.parser, 1) default_max_commands = 10 self.parser.add_option('--maxcommands', dest="maxCommands", type="int", default=default_max_commands, help='Max number of action commands to perform concurrently (default: %d)' % \ default_max_commands) default_max_pagingworkers = 1 self.parser.add_option('--maxpagingworkers', dest="maxPagingWorkers", type="int", default=default_max_pagingworkers, help='max number of paging workers to perform concurrently (default: %d)' % \ default_max_pagingworkers) default_pagingworkers_timeout = 30 self.parser.add_option('--pagingworkerstimeout', dest="pagingWorkersTimeout", type="int", default=default_pagingworkers_timeout, help='Timeout, in seconds, for paging workers (default: %d)' % \ default_pagingworkers_timeout) default_url = getDefaultZopeUrl() self.parser.add_option( '--zopeurl', dest='zopeurl', default=default_url, help="http path to the root of the zope server (default: %s)" % default_url) self.parser.add_option( "--monitor", dest="monitor", default=DEFAULT_MONITOR, help="Name of monitor instance to use for heartbeat " " events. Default is %s." % DEFAULT_MONITOR) self.parser.add_option( '--maintenance-window-cycletime', dest='maintenceWindowCycletime', default=60, type="int", help= "How often to check to see if there are any maintenance windows to execute" ) self.parser.add_option( '--maintenance-window-batch-size', dest='maintenceWindowBatchSize', default=200, type="int", help= "How many devices update per one transaction on maintenance windows execution" ) self.parser.add_option( '--strip-email-body-tags', dest='stripEmailBodyTags', default=True, action="store_false", help="Strip HTML/XML tags from plaintext email notifications?") self.parser.add_option("--workerid", dest='workerid', type='int', default=None, help="ID of the worker instance.")
def buildOptions(self): ZCmdBase.buildOptions(self) self.parser.add_option('--cycletime', dest='cycletime', default=60, type="int", help="check events every cycletime seconds") self.parser.add_option( '--zopeurl', dest='zopeurl', default=getDefaultZopeUrl(), help="http path to the root of the zope server") self.parser.add_option("--monitor", dest="monitor", default=DEFAULT_MONITOR, help="Name of monitor instance to use for heartbeat " " events. Default is %s." % DEFAULT_MONITOR)
def buildOptions(self): super(ZenActionD, self).buildOptions() maintenanceBuildOptions(self.parser) workersBuildOptions(self.parser, 1) default_max_commands = 10 self.parser.add_option('--maxcommands', dest="maxCommands", type="int", default=default_max_commands, help='Max number of action commands to perform concurrently (default: %d)' % \ default_max_commands) default_url = getDefaultZopeUrl() self.parser.add_option('--zopeurl', dest='zopeurl', default=default_url, help="http path to the root of the zope server (default: %s)" % default_url) self.parser.add_option("--monitor", dest="monitor", default=DEFAULT_MONITOR, help="Name of monitor instance to use for heartbeat " " events. Default is %s." % DEFAULT_MONITOR) self.parser.add_option('--maintenance-window-cycletime', dest='maintenceWindowCycletime', default=60, type="int", help="How often to check to see if there are any maintenance windows to execute")
def buildOptions(self): super(ZenActionD, self).buildOptions() maintenanceBuildOptions(self.parser) workersBuildOptions(self.parser, 1) default_max_commands = 10 self.parser.add_option('--maxcommands', dest="maxCommands", type="int", default=default_max_commands, help='Max number of action commands to perform concurrently (default: %d)' % \ default_max_commands) default_max_pagingworkers = 1 self.parser.add_option('--maxpagingworkers', dest="maxPagingWorkers", type="int", default=default_max_pagingworkers, help='max number of paging workers to perform concurrently (default: %d)' % \ default_max_pagingworkers) default_pagingworkers_timeout = 30 self.parser.add_option('--pagingworkerstimeout', dest="pagingWorkersTimeout", type="int", default=default_pagingworkers_timeout, help='Timeout, in seconds, for paging workers (default: %d)' % \ default_pagingworkers_timeout) default_url = getDefaultZopeUrl() self.parser.add_option('--zopeurl', dest='zopeurl', default=default_url, help="http path to the root of the zope server (default: %s)" % default_url) self.parser.add_option("--monitor", dest="monitor", default=DEFAULT_MONITOR, help="Name of monitor instance to use for heartbeat " " events. Default is %s." % DEFAULT_MONITOR) self.parser.add_option('--maintenance-window-cycletime', dest='maintenceWindowCycletime', default=60, type="int", help="How often to check to see if there are any maintenance windows to execute") self.parser.add_option('--maintenance-window-batch-size', dest='maintenceWindowBatchSize', default=200, type="int", help="How many devices update per one transaction on maintenance windows execution") self.parser.add_option('--strip-email-body-tags', dest='stripEmailBodyTags', default=True, action="store_false", help="Strip HTML/XML tags from plaintext email notifications?") self.parser.add_option("--workerid", dest='workerid', type='int', default=None, help="ID of the worker instance.")