Example #1
0
 def __init__(self):
     Subcommand.__init__(self,'start',OptionParser(option_class=MultipleOption,usage='%prog [OPTIONS]'),'running tcpdump on all the nodes of one account')
     self.parser.add_option('-a','--account',action="store",dest="accountId")
     self.parser.add_option('-f','--firewall',action = "extend",dest="firewall_interface")
     self.parser.add_option('-i','--ipsecvpn',action = "extend",dest="ipsecvpn_interface")
     self.parser.add_option('-d','--dns',action = "extend",dest="dns_interface")
     self.parser.add_option('-v','--vrouter',action = "extend",dest="vrouter_interface")
Example #2
0
 def __init__(self):
     Subcommand.__init__(
         self, 'start',
         OptionParser(option_class=MultipleOption, usage='%prog [OPTIONS]'),
         'running tcpdump on all the nodes of one account')
     self.parser.add_option('-a',
                            '--account',
                            action="store",
                            dest="accountId")
     self.parser.add_option('-f',
                            '--firewall',
                            action="extend",
                            dest="firewall_interface")
     self.parser.add_option('-i',
                            '--ipsecvpn',
                            action="extend",
                            dest="ipsecvpn_interface")
     self.parser.add_option('-d',
                            '--dns',
                            action="extend",
                            dest="dns_interface")
     self.parser.add_option('-v',
                            '--vrouter',
                            action="extend",
                            dest="vrouter_interface")
Example #3
0
 def __init__(self):
     Subcommand.__init__(self, "nodes",
                         OptionParser(usage='%prog [OPTION]'),
                         'show nodes under one account')
     self.parser.add_option('-a',
                            '--accountId',
                            action='store',
                            dest="accountId")
Example #4
0
 def __init__(self):
     Subcommand.__init__(
         self,
         "status",
         OptionParser(option_class=MultipleOption, usage="%prog [OPTIONS]"),
         "check the tasks staus running under customer",
     )
     self.parser.add_option("-a", "--account", action="store", dest="accountId")
Example #5
0
 def __init__(self):
     Subcommand.__init__(
         self,
         "stop",
         OptionParser(option_class=MultipleOption, usage="%prog [OPTIONS]"),
         "stop tcpdump running on the nodes",
     )
     self.parser.add_option("-a", "--account", action="store", dest="accountId")
     pass
Example #6
0
 def __init__(self):
     Subcommand.__init__(self, "account",
                         OptionParser(usage='%prog [OPTION]'),
                         'show account info')
     self.parser.add_option('-a',
                            '--accountId',
                            action='store',
                            dest="accountId",
                            default="all")
Example #7
0
 def __init__(self):
     Subcommand.__init__(
         self, 'status',
         OptionParser(option_class=MultipleOption, usage='%prog [OPTIONS]'),
         'check the tasks staus running under customer')
     self.parser.add_option('-a',
                            '--account',
                            action="store",
                            dest="accountId")
Example #8
0
 def __init__(self):
     Subcommand.__init__(
         self, 'stop',
         OptionParser(option_class=MultipleOption, usage='%prog [OPTIONS]'),
         'stop tcpdump running on the nodes')
     self.parser.add_option('-a',
                            '--account',
                            action="store",
                            dest="accountId")
     pass
Example #9
0
 def __init__(self):
     Subcommand.__init__(
         self,
         "start",
         OptionParser(option_class=MultipleOption, usage="%prog [OPTIONS]"),
         "running tcpdump on all the nodes of one account",
     )
     self.parser.add_option("-a", "--account", action="store", dest="accountId")
     self.parser.add_option("-f", "--firewall", action="extend", dest="firewall_interface")
     self.parser.add_option("-i", "--ipsecvpn", action="extend", dest="ipsecvpn_interface")
     self.parser.add_option("-d", "--dns", action="extend", dest="dns_interface")
     self.parser.add_option("-v", "--vrouter", action="extend", dest="vrouter_interface")
Example #10
0
 def __init__(self):
     Subcommand.__init__(self,"account",OptionParser(usage='%prog [OPTION]'),'show account info')
     self.parser.add_option('-a','--accountId',action='store',dest="accountId",default="all")
Example #11
0
 def __init__(self):
     subparser = SubcommandOptionParser(subcommands=(AccountCommand(),NodeCommand(),))
     Subcommand.__init__(self,'show',subparser,'show inventory')
Example #12
0
 def __init__(self):
     Subcommand.__init__(self,"nodes",OptionParser(usage='%prog [OPTION]'),'show nodes under one account')
     self.parser.add_option('-a','--accountId',action='store',dest="accountId")
Example #13
0
 def __init__(self):
     subparser = SubcommandOptionParser(subcommands=(StartCommand(),StopCommand(),StatusCommand()))
     Subcommand.__init__(self,'tcpdump',subparser,'running tcpdump')
Example #14
0
 def __init__(self):
     subparser = SubcommandOptionParser(subcommands=(
         AccountCommand(),
         NodeCommand(),
     ))
     Subcommand.__init__(self, 'show', subparser, 'show inventory')
Example #15
0
 def __init__(self):
     subparser = SubcommandOptionParser(subcommands=(StartCommand(),
                                                     StopCommand(),
                                                     StatusCommand()))
     Subcommand.__init__(self, 'remote', subparser, 'remote execute')
Example #16
0
 def __init__(self):
     subparser = SubcommandOptionParser(subcommands=(StartCommand(), StopCommand(), StatusCommand()))
     Subcommand.__init__(self, "remote", subparser, "remote execute")
Example #17
0
 def __init__(self):
     Subcommand.__init__(self,'stop',OptionParser(option_class=MultipleOption,usage='%prog [OPTIONS]'),'stop tcpdump running on the nodes')
     self.parser.add_option('-a','--account',action="store",dest="accountId")
     pass
Example #18
0
 def __init__(self):
     Subcommand.__init__(self,'status',OptionParser(option_class=MultipleOption,usage='%prog [OPTIONS]'),'check the tasks staus running under customer')
     self.parser.add_option('-a','--account',action="store",dest="accountId")
Example #19
0
 def __init__(self):
     subparser = SubcommandOptionParser(subcommands=(StartCommand(),
                                                     StopCommand(),
                                                     StatusCommand()))
     Subcommand.__init__(self, 'tcpdump', subparser, 'running tcpdump')