Advertisement
Guest User

Untitled

a guest
Nov 16th, 2012
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.66 KB | None | 0 0
  1. {'text': u'\nlogging 77.40.0.12\n ^\n% Invalid input detected at \'^\' marker.\n\n\nSTART OF TRACEBACK\n------------------------------------------------------------------------\nFile: /opt/noc/sa/script/script.py (Line: 628)\nFunction: cli\n 621 if isinstance(data, Exception):\n 622 # Exception captured\n 623 raise data\n 624 if not ignore_errors:\n 625 # Check for syntax error\n 626 if (self.profile.rx_pattern_syntax_error and\n 627 self.profile.rx_pattern_syntax_error.search(data)):\n 628 ==> raise self.CLISyntaxError(data)\n 629 # Then check for operaion error\n 630 if (self.profile.rx_pattern_operation_error and\n 631 self.profile.rx_pattern_operation_error.search(data)):\n 632 raise self.CLIOperationError(data)\n 633 # Echo cancelation\n 634 if self.strip_echo and data.lstrip().startswith(cmd):\nVariables:\n cmd = \'logging 77.40.0.12\'\n cc = \'CLI:logging 77.40.0.12\'\n bulk_lines = None\n cache = {}\n command_submit = \'\\n\'\n cached = False\n from_cache = False\n file = None\n list_re = None\n ignore_errors = False\n data = "logging 77.40.0.12\\n ^\\n% Invalid input detected at \'^\' marker.\\n\\n"\n self = \n------------------------------------------------------------------------\nFile: /opt/noc/sa/profiles/Generic/commands.py (Line: 30)\nFunction: execute\n 23 def safe_cli(c):\n 24 try:\n 25 return self.cli(c)\n 26 except self.CLISyntaxError, why:\n 27 return "%%ERROR: %s" % str(why)\n 28 \n 29 cli = safe_cli if ignore_cli_errors else self.cli\n 30 ==> return [cli(c) for c in commands]\n\nVariables:\n c = \'logging 77.40.0.12\'\n cli = >\n self = \n commands = [\'rere:tyth\', \'en\', \'rere:tyth\', \'\', \'logging 77.40.0.12\', \'snmp-server enable traps tty\', \'snmp-server enable traps\', \'exit\']\n _[1] = [\'% Unknown command or computer name, or unable to find computer address\\n\', \'\', \'% Unknown command or computer name, or unable to find computer address\\n\', \'\']\n ignore_cli_errors = False\n safe_cli = \n------------------------------------------------------------------------\nFile: /opt/noc/sa/script/script.py (Line: 417)\nFunction: guarded_run\n 410 return result\n 411 except KeyError:\n 412 self.debug("Not in call cache: %r, %r" % (self.name,\n 413 self.kwargs))\n 414 pass\n 415 # Calling script body\n 416 self._thread_id = thread.get_ident()\n 417 ==> result = self.execute(**self.kwargs)\n 418 # Enforce interface result checking\n 419 for i in self.implements:\n 420 result = i.script_clean_result(self.profile, result)\n 421 # Cache result when required\n 422 if self.cache and self.parent is not None:\n 423 self.debug("Write to call cache: %s, %s, %r" % (self.name,\nVariables:\n i = \n self = \n------------------------------------------------------------------------\nFile: /opt/noc/sa/script/script.py (Line: 440)\nFunction: run\n 433 \n 434 def run(self):\n 435 """Script thread worker method"""\n 436 self.debug("Running")\n 437 result = None\n 438 try:\n 439 with self.cancelable():\n 440 ==> result = self.guarded_run()\n 441 except self.TimeOutError:\n 442 self.error("Timed out")\n 443 self.e_timeout = True\n 444 except CancelledError:\n 445 self.error("Cancelled")\n 446 self.e_cancel = True\nVariables:\n self = \n r = ["", "logging 77.40.0.12\\n ^\\n% Invalid input detected at \'^\' marker.\\n\\n"]\n result = None\n v = CLISyntaxError("logging 77.40.0.12\\n ^\\n% Invalid input detected at \'^\' marker.\\n\\n",)\n tb = \n t = \n------------------------------------------------------------------------\nEND OF TRACEBACK', 'code': 14}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement