def command(self, command=None,
                timestamp=None, element=None, host=None, service=None, user=None, parameters=None):
        if cherrypy.request.method in ["POST"]:
            if not cherrypy.request.json:
                return {'_status': u'ERR',
                        '_message': u'You must POST parameters on this endpoint.'}
        if command is None:
            try:
                command = cherrypy.request.json.get('command', None)
                timestamp = cherrypy.request.json.get('timestamp', None)
                element = cherrypy.request.json.get('element', None)
                host = cherrypy.request.json.get('host', None)
                service = cherrypy.request.json.get('service', None)
                user = cherrypy.request.json.get('user', None)
                parameters = cherrypy.request.json.get('parameters', None)
            except AttributeError:
                return {'_status': u'ERR', '_message': u'Missing command parameters'}
        if not command:
            return {'_status': u'ERR', '_message': u'Missing command parameter'}
        fields = split_semicolon(command)
        command_line = command.replace(fields[0], fields[0].upper())
        if timestamp:
            try:
                timestamp = int(timestamp)
            except ValueError:
                return {'_status': u'ERR', '_message': u'Timestamp must be an integer value'}
            command_line = '[%d] %s' % (timestamp, command_line)
        if host or service or user:
            if host:
                command_line = '%s;%s' % (command_line, host)
            if service:
                command_line = '%s;%s' % (command_line, service)
            if user:
                command_line = '%s;%s' % (command_line, user)
        elif element:
            if '/' in element:
                element = element.replace('/', ';', 1)
            command_line = '%s;%s' % (command_line, element)
        if parameters:
            command_line = '%s;%s' % (command_line, parameters)
        logger.warning("Got an external command: %s", command_line)
        self.app.add(ExternalCommand(command_line))
        return {'_status': u'OK',
                '_message': u"Got command: %s" % command_line,
                'command': command_line}