Advertisement
Guest User

Untitled

a guest
Feb 20th, 2015
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.95 KB | None | 0 0
  1. ERROR: 14
  2. <class 'noc.sa.script.exception.UnexpectedResultError'> START OF TRACEBACK ------------------------------------------------------------------------ File: sa/script/script.py (Line: 1017) Function: re_search 1010 Returns match object. 1011 rx can be string or compiled regular expression 1012 """ 1013 if isinstance(rx, basestring): 1014 rx = re.compile(rx, flags) 1015 match = rx.search(s) 1016 if match is None: 1017 ==> raise self.UnexpectedResultError() 1018 return match 1019 1020 def re_match(self, rx, s, flags=0): 1021 """ 1022 Match s against regular expression rx using re.match 1023 Raise UnexpectedResultError if regular expression is not matched. Variables: rx = <_sre.SRE_Pattern object at 0x181da90> s = 'Cisco IOS Software, s2t54 Software (s2t54-ADVIPSERVICESK9_NPE-M), Version 15.0(1)SY6, RELEASE SOFTWARE (fc4)\nTechnical Support: http://www.cisco.com/techsupport\nCopyright (c) 1986-2014 by Cisco Systems, Inc.\nCompiled Sat 01-Feb-14 04:46 by prod_rel_team\n\nROM: System Bootstrap, Version 12.2(50r)SYS2, RELEASE SOFTWARE (fc1)\n\n Core-WS-C6509-E uptime is 30 weeks, 5 days, 16 hours, 0 minutes\nUptime for this control processor is 30 weeks, 5 days, 15 hours, 57 minutes\nSystem returned to ROM by s/w reset\nSystem restarted at 23:45:04 MSK Sat Jul 19 2014\nSystem image file is "bootdisk:s2t54-advipservicesk9_npe-mz.SPA.150-1.SY6.bin"\nLast reload reason: Reload Command\n\n\n\nThis product contains cryptographic features and is subject to United\nStates and local country laws governing import, export, transfer and\nuse. Delivery of Cisco cryptographic products does not imply\nthird-party authority to import, export, distribute or use encryption.\nImporters, exporters, distributors and users are responsible for\ncompliance with U.S. and local country laws. By using this product you\nagree to comply with applicable laws and regulations. If you are unable\nto comply with U.S. and local laws, return this product immediately.\n\nA summary of U.S. laws governing Cisco cryptographic products may be found at:\nhttp://www.cisco.com/wwl/export/crypto/tool/stqrg.html\n\nIf you require further assistance please contact us by sending email to\[email protected].\n\ncisco WS-C6509-E (M8572) processor (revision ) with 1769472K/262144K bytes of memory.\nProcessor board ID SMC1611003B\n CPU: MPC8572_E, Version: 2.2, (0x80E80022)\n CORE: E500, Version: 3.0, (0x80210030)\n CPU:1500MHz, CCB:600MHz, DDR:600MHz\n L1: D-cache 32 kB enabled\n I-cache 32 kB enabled\n\nLast reset from s/w reset\n1232 Virtual Ethernet interfaces\n78 Gigabit Ethernet interfaces\n4 Ten Gigabit Ethernet interfaces\n2543K bytes of non-volatile configuration memory.\n\nConfiguration register is 0x2102\n\n' flags = 0 self = <Script(Thread-16, started 140428073862912)> match = None ------------------------------------------------------------------------ File: sa/profiles/Cisco/IOS/get_version.py (Line: 59) Function: execute 52 except self.snmp.TimeOutError: 53 pass 54 v = self.cli("show version", cached=True) 55 match = self.re_search(self.rx_ver, v) 56 platform = match.group("platform") 57 if self.re_search(self.rx_invalid_platforms, platform): 58 # Process IOS XE platform 59 ==> pmatch = self.re_search(self.rx_platform, v) 60 if pmatch: 61 platform = pmatch.group("platform") 62 if platform.startswith("WS-"): 63 platform = platform[3:] 64 return { 65 "vendor": "Cisco", Variables: platform = 's2t54' self = <Script(Thread-16, started 140428073862912)> match = <_sre.SRE_Match object at 0x7fb7f5830af8> v = 'Cisco IOS Software, s2t54 Software (s2t54-ADVIPSERVICESK9_NPE-M), Version 15.0(1)SY6, RELEASE SOFTWARE (fc4)\nTechnical Support: http://www.cisco.com/techsupport\nCopyright (c) 1986-2014 by Cisco Systems, Inc.\nCompiled Sat 01-Feb-14 04:46 by prod_rel_team\n\nROM: System Bootstrap, Version 12.2(50r)SYS2, RELEASE SOFTWARE (fc1)\n\n Core-WS-C6509-E uptime is 30 weeks, 5 days, 16 hours, 0 minutes\nUptime for this control processor is 30 weeks, 5 days, 15 hours, 57 minutes\nSystem returned to ROM by s/w reset\nSystem restarted at 23:45:04 MSK Sat Jul 19 2014\nSystem image file is "bootdisk:s2t54-advipservicesk9_npe-mz.SPA.150-1.SY6.bin"\nLast reload reason: Reload Command\n\n\n\nThis product contains cryptographic features and is subject to United\nStates and local country laws governing import, export, transfer and\nuse. Delivery of Cisco cryptographic products does not imply\nthird-party authority to import, export, distribute or use encryption.\nImporters, exporters, distributors and users are responsible for\ncompliance with U.S. and local country laws. By using this product you\nagree to comply with applicable laws and regulations. If you are unable\nto comply with U.S. and local laws, return this product immediately.\n\nA summary of U.S. laws governing Cisco cryptographic products may be found at:\nhttp://www.cisco.com/wwl/export/crypto/tool/stqrg.html\n\nIf you require further assistance please contact us by sending email to\[email protected].\n\ncisco WS-C6509-E (M8572) processor (revision ) with 1769472K/262144K bytes of memory.\nProcessor board ID SMC1611003B\n CPU: MPC8572_E, Version: 2.2, (0x80E80022)\n CORE: E500, Version: 3.0, (0x80210030)\n CPU:1500MHz, CCB:600MHz, DDR:600MHz\n L1: D-cache 32 kB enabled\n I-cache 32 kB enabled\n\nLast reset from s/w reset\n1232 Virtual Ethernet interfaces\n78 Gigabit Ethernet interfaces\n4 Ten Gigabit Ethernet interfaces\n2543K bytes of non-volatile configuration memory.\n\nConfiguration register is 0x2102\n\n' ------------------------------------------------------------------------ File: sa/script/script.py (Line: 463) Function: guarded_run 456 return result 457 except KeyError: 458 self.logger.debug("Not in call cache: %r, %r", 459 self.name, self.kwargs) 460 pass 461 # Calling script body 462 self._thread_id = thread.get_ident() 463 ==> result = self.execute(**self.kwargs) 464 # Enforce interface result checking 465 for i in self.implements: 466 result = i.script_clean_result(self.profile, result) 467 # Cache result when required 468 if self.cache and self.parent is not None: 469 self.logger.debug( Variables: i = <noc.sa.interfaces.igetversion.IGetVersion object at 0x7fb7f5910e10> self = <Script(Thread-16, started 140428073862912)> t0 = 1424436366.86444 ------------------------------------------------------------------------ File: sa/script/script.py (Line: 490) Function: run 483 484 def run(self): 485 """Script thread worker method""" 486 self.debug("Running") 487 result = None 488 try: 489 with self.cancelable(): 490 ==> result = self.guarded_run() 491 except self.TimeOutError: 492 self.error("Timed out") 493 self.e_timeout = True 494 except CancelledError: 495 self.error("Cancelled") 496 self.e_cancel = True Variables: self = <Script(Thread-16, started 140428073862912)> r = ["<class 'noc.sa.script.exception.UnexpectedResultError'>", ''] result = None v = UnexpectedResultError() tb = <traceback object at 0x7fb7f57bbfc8> t = <class 'noc.sa.script.exception.UnexpectedResultError'> ------------------------------------------------------------------------ END OF TRACEBACK
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement