def check(self, args):
        parser = OptionParser(usage="machine check <options>")
        parser.add_option('-n', '--name',
                help='the name of the physical machine',
                action='store', dest='name')
        parser.add_option('-i', '--host',
                help='the ip of the physical machine',
                action='store', dest='host')
        parser.add_option('-a', '--all', help='check all machines',
                action='store_true', dest='a')
        (options, args) = parser.parse_args(args)
        all_true = options.a
        name = options.name
        host = options.host

        if not name and not host and not all_true:
            parser.print_help()
            return

        try:
            admin = self._context.getAdministrationService()
            if all_true:
                machines = admin.listMachines()
                log.debug("%s machines found." % str(len(machines)))
                [self._checkMachine for machine in machines]
                pprint_machines(machines)
            else:
                if name:
                    machine = admin.findMachine(MachinePredicates.name(name))
                else:
                    machine = admin.findMachine(MachinePredicates.ip(host))
                self._checkMachine(machine)
                pprint_machines([machine])
        except (AbiquoException, AuthorizationException), ex:
            print "Error %s" % ex.getMessage()
Returns a tag for the word at the given index.
dataset/ETHPy150Open nacx/kahuna/kahuna/plugins/machine.py/MachinePlugin.check--crossover with--dataset/ETHPy150Open markuskiller/textblob-de/textblob_de/ext/_pattern/text/tree.py/Sentence.get