示例#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")
示例#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")
示例#3
0
文件: show.py 项目: notlcry/dms_sa_hy
 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")
示例#4
0
文件: remote.py 项目: codebang/dms-sa
 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")
示例#5
0
文件: remote.py 项目: codebang/dms-sa
 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
示例#6
0
文件: show.py 项目: notlcry/dms_sa_hy
 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")
示例#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")
示例#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
示例#9
0
文件: remote.py 项目: codebang/dms-sa
 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")
示例#10
0
文件: show.py 项目: codebang/dms-sa
 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")
示例#11
0
文件: show.py 项目: codebang/dms-sa
 def __init__(self):
     subparser = SubcommandOptionParser(subcommands=(AccountCommand(),NodeCommand(),))
     Subcommand.__init__(self,'show',subparser,'show inventory')
示例#12
0
文件: show.py 项目: codebang/dms-sa
 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")
示例#13
0
 def __init__(self):
     subparser = SubcommandOptionParser(subcommands=(StartCommand(),StopCommand(),StatusCommand()))
     Subcommand.__init__(self,'tcpdump',subparser,'running tcpdump')
示例#14
0
文件: show.py 项目: notlcry/dms_sa_hy
 def __init__(self):
     subparser = SubcommandOptionParser(subcommands=(
         AccountCommand(),
         NodeCommand(),
     ))
     Subcommand.__init__(self, 'show', subparser, 'show inventory')
示例#15
0
 def __init__(self):
     subparser = SubcommandOptionParser(subcommands=(StartCommand(),
                                                     StopCommand(),
                                                     StatusCommand()))
     Subcommand.__init__(self, 'remote', subparser, 'remote execute')
示例#16
0
文件: remote.py 项目: codebang/dms-sa
 def __init__(self):
     subparser = SubcommandOptionParser(subcommands=(StartCommand(), StopCommand(), StatusCommand()))
     Subcommand.__init__(self, "remote", subparser, "remote execute")
示例#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
示例#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")
示例#19
0
 def __init__(self):
     subparser = SubcommandOptionParser(subcommands=(StartCommand(),
                                                     StopCommand(),
                                                     StatusCommand()))
     Subcommand.__init__(self, 'tcpdump', subparser, 'running tcpdump')