Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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 '
- noc.sa.script.exception.CLISyntaxError'>
- show inventory
- ^
- % Invalid input detected at '^' marker.
- START OF TRACEBACK
- ------------------------------------------------------------------------
- File: /opt/noc/sa/script/script.py (Line: 648)
- Function: cli
- 641 if isinstance(data, Exception):
- 642 # Exception captured
- 643 raise data
- 644 if not ignore_errors:
- 645 # Check for syntax error
- 646 if (self.profile.rx_pattern_syntax_error and
- 647 self.profile.rx_pattern_syntax_error.search(data)):
- 648 ==> raise self.CLISyntaxError(data)
- 649 # Then check for operaion error
- 650 if (self.profile.rx_pattern_operation_error and
- 651 self.profile.rx_pattern_operation_error.search(data)):
- 652 raise self.CLIOperationError(data)
- 653 # Echo cancelation
- 654 if self.strip_echo and data.lstrip().startswith(cmd):
- Variables:
- cmd = 'show inventory'
- cc = 'CLI:show inventory'
- bulk_lines = None
- cache = {}
- command_submit = '\n'
- cached = False
- from_cache = False
- file = None
- list_re = None
- ignore_errors = False
- data =
- "show inventory\n ^\n% Invalid input detected at '^' marker.\n\n"
- self = <Script(Thread-2940, started 139872202671872)>
- ------------------------------------------------------------------------
- File: /opt/noc/sa/profiles/Cisco/IOS/get_inventory.py (Line: 34)
- Function: execute
- 27
- 28 IGNORED_NAMES = set([
- 29 "c7201"
- 30 ])
- 31
- 32 def execute(self):
- 33 objects = []
- 34 ==> v = self.cli("show inventory")
- 35 for match in self.rx_item.finditer(v):
- 36 if match.group("name") in self.IGNORED_NAMES:
- 37 continue
- 38 type, number, part_no = self.get_type(
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement