Advertisement
Guest User

Untitled

a guest
Feb 20th, 2015
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.45 KB | None | 0 0
  1. <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 0x7f5fe4a62e40> s = 'C2960' flags = 0 self = <Script(Thread-42, started 140049739929344)> match = None ------------------------------------------------------------------------ File: sa/profiles/Cisco/IOS/get_version.py (Line: 57) Function: execute 50 } 51 } 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:] Variables: platform = 'C2960' self = <Script(Thread-42, started 140049739929344)> match = <_sre.SRE_Match object at 0x7f5fe4786480> v = 'Cisco IOS Software, C2960 Software (C2960-LANLITEK9-M), Version 12.2(55)SE8, RELEASE SOFTWARE (fc2)\nTechnical Support: http://www.cisco.com/techsupport\nCopyright (c) 1986-2013 by Cisco Systems, Inc.\nCompiled Wed 26-Jun-13 11:34 by prod_rel_team\nImage text-base: 0x00003000, data-base: 0x01400000\n\nROM: Bootstrap program is C2960 boot loader\nBOOTLDR: C2960 Boot Loader (C2960-HBOOT-M) Version 12.2(53r)SEY3, RELEASE SOFTWARE (fc1)\n\nRUM_1A_4_8P_142 uptime is 1 year, 7 weeks, 3 days, 2 hours, 14 minutes\nSystem returned to ROM by power-on\nSystem restarted at 17:00:26 MSK Mon Dec 30 2013\nSystem image file is "flash:c2960-lanlitek9-mz.122-55.SE8.bin"\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-C2960-48TC-S (PowerPC405) processor (revision M0) with 65536K bytes of memory.\nProcessor board ID FCQ1649X0EV\nLast reset from power-on\n2 Virtual Ethernet interfaces\n48 FastEthernet interfaces\n2 Gigabit Ethernet interfaces\nThe password-recovery mechanism is enabled.\n\n64K bytes of flash-simulated non-volatile configuration memory.\nBase ethernet MAC Address : 68:86:A7:24:66:00\nMotherboard assembly number : 73-12596-06\nPower supply part number : 341-0097-03\nMotherboard serial number : FCQ16480FV5\nPower supply serial number : ALD1642B1E5\nModel revision number : M0\nMotherboard revision number : A0\nModel number : WS-C2960-48TC-S\nSystem serial number : FCQ1649X0EV\nTop Assembly Part Number : 800-32804-02\nTop Assembly Revision Number : A0\nVersion ID : V06\nCLEI Code Number : COMSG00ARC\nHardware Board Revision Number : 0x0B\n\n\nSwitch Ports Model SW Version SW Image \n------ ----- ----- ---------- ---------- \n* 1 50 WS-C2960-48TC-S 12.2(55)SE8 C2960-LANLITEK9-M \n\n\nConfiguration register is 0xF\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 0x7f5fe499fe50> self = <Script(Thread-42, started 140049739929344)> t0 = 1424449533.822437 ------------------------------------------------------------------------ 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-42, started 140049739929344)> r = ["<class 'noc.sa.script.exception.UnexpectedResultError'>", ''] result = None v = UnexpectedResultError() tb = <traceback object at 0x7f5fe4843a70> t = <class 'noc.sa.script.exception.UnexpectedResultError'> ------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement