Exemplo n.º 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")
Exemplo n.º 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")
Exemplo n.º 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")
Exemplo n.º 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")
Exemplo n.º 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
Exemplo n.º 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")
Exemplo n.º 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")
Exemplo n.º 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
Exemplo n.º 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")
Exemplo n.º 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")
Exemplo n.º 11
0
 def __init__(self):
     subparser = SubcommandOptionParser(subcommands=(AccountCommand(),NodeCommand(),))
     Subcommand.__init__(self,'show',subparser,'show inventory')
Exemplo n.º 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")
Exemplo n.º 13
0
 def __init__(self):
     subparser = SubcommandOptionParser(subcommands=(StartCommand(),StopCommand(),StatusCommand()))
     Subcommand.__init__(self,'tcpdump',subparser,'running tcpdump')
Exemplo n.º 14
0
 def __init__(self):
     subparser = SubcommandOptionParser(subcommands=(
         AccountCommand(),
         NodeCommand(),
     ))
     Subcommand.__init__(self, 'show', subparser, 'show inventory')
Exemplo n.º 15
0
 def __init__(self):
     subparser = SubcommandOptionParser(subcommands=(StartCommand(),
                                                     StopCommand(),
                                                     StatusCommand()))
     Subcommand.__init__(self, 'remote', subparser, 'remote execute')
Exemplo n.º 16
0
 def __init__(self):
     subparser = SubcommandOptionParser(subcommands=(StartCommand(), StopCommand(), StatusCommand()))
     Subcommand.__init__(self, "remote", subparser, "remote execute")
Exemplo n.º 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
Exemplo n.º 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")
Exemplo n.º 19
0
 def __init__(self):
     subparser = SubcommandOptionParser(subcommands=(StartCommand(),
                                                     StopCommand(),
                                                     StatusCommand()))
     Subcommand.__init__(self, 'tcpdump', subparser, 'running tcpdump')