Exemple #1
0
 def __init__(self):
     CommandLineUtility.__init__(self, self.HELP)
     self.register_command("properties", self.properties,
                           "Display the properties for the current " +
                           "environment.",
                           ["props"])
     return
Exemple #2
0
 def __init__(self, argv=None):
     CommandLineUtility.__init__(self, self.HELP, argv)
     # register the "mpxadmin passwd" command handler.
     # NOTE:  This is here for reverse compatibility.
     User_Passwd(self, "passwd")
     # register the "mpxadmin user" command handler.
     User(self, "user")
     # register the "mpxadmin log" command handler.
     # NOTE:  The "mpxadmin log" command is simply a place holder for more
     #        specific sub-commands.
     log = self.register_command("log", self.log, "Manage log files.", [])
     # register the "mpxadmin log info" command handler.
     log.register_command("info", self.log_info,
                          "Output general information about a log", [])
     # register the "mpxadmin log list" command handler.
     list = log.register_command("list", self.log_list,
                                 "List existing logs", ["ls"])
     # register the "mpxadmin log list --all" option.
     list.register_option(
         '--all', self.log_list_all,
         "List all logs, including potentially corrupt"
         " logs.", ['-a'])
     self._log_list_all = 0  # By default, do not list potentially corrupt
     # logs.
     self._force_remove = 0
     force = 'Force backfill operation, even if log is msglog or invalid.'
     count = 'Number of rows to backfill into log.'
     period = 'Timespan between consecutive rows of backfill.'
     offset = 'Hours away from 12:00 to synchronized timestamp to.'
     self._backfill_options = {
         '--force': {
             'aliases': ['-f'],
             'value': 0,
             'help': force
         },
         '--count': {
             'aliases': ['-c'],
             'value': 1,
             'help': count
         },
         '--period': {
             'aliases': ['-p'],
             'value': 1,
             'help': period
         },
         '--offset': {
             'aliases': ['-o'],
             'value': 0,
             'help': offset
         }
     }
     return
Exemple #3
0
 def __init__(self, argv=None):
     CommandLineUtility.__init__(self, self.HELP, argv)
     # register the "mpxadmin passwd" command handler.
     # NOTE:  This is here for reverse compatibility.
     User_Passwd(self, "passwd")
     # register the "mpxadmin user" command handler.
     User(self,"user")
     # register the "mpxadmin log" command handler.
     # NOTE:  The "mpxadmin log" command is simply a place holder for more
     #        specific sub-commands.
     log = self.register_command("log", self.log,
                                 "Manage log files.",
                                 [])
     # register the "mpxadmin log info" command handler.
     log.register_command("info", self.log_info,
                          "Output general information about a log",
                          [])
     # register the "mpxadmin log list" command handler.
     list = log.register_command("list", self.log_list,
                                 "List existing logs",
                                 ["ls"])
     # register the "mpxadmin log list --all" option.
     list.register_option('--all', self.log_list_all,
                          "List all logs, including potentially corrupt"
                          " logs.",
                          ['-a'])
     self._log_list_all = 0 # By default, do not list potentially corrupt
                            # logs.
     self._force_remove = 0
     force = 'Force backfill operation, even if log is msglog or invalid.'
     count = 'Number of rows to backfill into log.'
     period = 'Timespan between consecutive rows of backfill.'
     offset = 'Hours away from 12:00 to synchronized timestamp to.'
     self._backfill_options = {'--force':{'aliases':['-f'],
                                          'value':0,'help':force},
                               '--count':{'aliases':['-c'],
                                          'value':1,'help':count},
                               '--period':{'aliases':['-p'],
                                           'value':1,'help':period},
                               '--offset':{'aliases':['-o'],
                                           'value':0,'help':offset}
                               }
     return
Exemple #4
0
 def __init__(self, argv=None):
     CommandLineUtility.__init__(self, self.HELP, argv)
     MergeReport(self, "merge_report")
     return
Exemple #5
0
 def __init__(self,  argv=None):
     CommandLineUtility.__init__(self, self.HELP, argv)
     MergeReport(self, "merge_report")
     return