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")
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")
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")
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")
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
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")
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")
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
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")
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")
def __init__(self): subparser = SubcommandOptionParser(subcommands=(AccountCommand(),NodeCommand(),)) Subcommand.__init__(self,'show',subparser,'show inventory')
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")
def __init__(self): subparser = SubcommandOptionParser(subcommands=(StartCommand(),StopCommand(),StatusCommand())) Subcommand.__init__(self,'tcpdump',subparser,'running tcpdump')
def __init__(self): subparser = SubcommandOptionParser(subcommands=( AccountCommand(), NodeCommand(), )) Subcommand.__init__(self, 'show', subparser, 'show inventory')
def __init__(self): subparser = SubcommandOptionParser(subcommands=(StartCommand(), StopCommand(), StatusCommand())) Subcommand.__init__(self, 'remote', subparser, 'remote execute')
def __init__(self): subparser = SubcommandOptionParser(subcommands=(StartCommand(), StopCommand(), StatusCommand())) Subcommand.__init__(self, "remote", subparser, "remote execute")
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
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")
def __init__(self): subparser = SubcommandOptionParser(subcommands=(StartCommand(), StopCommand(), StatusCommand())) Subcommand.__init__(self, 'tcpdump', subparser, 'running tcpdump')