Advertisement
Guest User

Untitled

a guest
Jan 10th, 2014
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.30 KB | None | 0 0
  1. 2014-01-10 16:05:03,165 MRT task=48532264/48603437 object=cct01-ors-tabash (10.12.161.54 ) script=Cisco.IOS.get_inventory status=failed code=14 error=<class '
  2. noc.sa.script.exception.CLISyntaxError'>
  3. show inventory
  4. ^
  5. % Invalid input detected at '^' marker.
  6.  
  7.  
  8. START OF TRACEBACK
  9. ------------------------------------------------------------------------
  10. File: /opt/noc/sa/script/script.py (Line: 648)
  11. Function: cli
  12. 641 if isinstance(data, Exception):
  13. 642 # Exception captured
  14. 643 raise data
  15. 644 if not ignore_errors:
  16. 645 # Check for syntax error
  17. 646 if (self.profile.rx_pattern_syntax_error and
  18. 647 self.profile.rx_pattern_syntax_error.search(data)):
  19. 648 ==> raise self.CLISyntaxError(data)
  20. 649 # Then check for operaion error
  21. 650 if (self.profile.rx_pattern_operation_error and
  22. 651 self.profile.rx_pattern_operation_error.search(data)):
  23. 652 raise self.CLIOperationError(data)
  24. 653 # Echo cancelation
  25. 654 if self.strip_echo and data.lstrip().startswith(cmd):
  26. Variables:
  27. cmd = 'show inventory'
  28. cc = 'CLI:show inventory'
  29. bulk_lines = None
  30. cache = {}
  31. command_submit = '\n'
  32. cached = False
  33. from_cache = False
  34. file = None
  35. list_re = None
  36. ignore_errors = False
  37. data =
  38. "show inventory\n ^\n% Invalid input detected at '^' marker.\n\n"
  39. self = <Script(Thread-2940, started 139872202671872)>
  40. ------------------------------------------------------------------------
  41. File: /opt/noc/sa/profiles/Cisco/IOS/get_inventory.py (Line: 34)
  42. Function: execute
  43. 27
  44. 28 IGNORED_NAMES = set([
  45. 29 "c7201"
  46. 30 ])
  47. 31
  48. 32 def execute(self):
  49. 33 objects = []
  50. 34 ==> v = self.cli("show inventory")
  51. 35 for match in self.rx_item.finditer(v):
  52. 36 if match.group("name") in self.IGNORED_NAMES:
  53. 37 continue
  54. 38 type, number, part_no = self.get_type(
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement