# Pastebin znye0ZCj 2015-12-02 15:40:22,646 [TELNET: 10.100.9.12] on_read: '\r\n\r\r\n' 2015-12-02 15:40:22,687 [TELNET: 10.100.9.12] on_read: "\rExtremeXOS\r\nCopyright (C) 1996-2015 Extreme Networks. All rights reserved.\r\nThis product is protected by one or more US patents listed at http://www.extremenetworks.com/patents along with their foreign counterparts.\r\n==============================================================================\r\n\r\nPress the or '?' key at any time for completions.\r\nRemember to save your configuration changes.\r\n\r\n\r\n" 2015-12-02 15:40:23,049 [TELNET: 10.100.9.12] on_read: 'Slot-1 kubik-4a-asw1.1 # ' 2015-12-02 15:40:23,049 [TELNET: 10.100.9.12] Starting synchronous FSM check 2015-12-02 15:40:23,049 [TELNET: 10.100.9.12] match '^(\S+\s)?\S+? #' 2015-12-02 15:40:23,049 [TELNET: 10.100.9.12] event(PROMPT) 2015-12-02 15:40:23,049 [TELNET: 10.100.9.12] ==> PROMPT 2015-12-02 15:40:23,050 [TELNET: 10.100.9.12] on_PROMPT_enter 2015-12-02 15:40:23,050 [TELNET: 10.100.9.12] Using prompt pattern: ^(\S+\s)?\S+? # 2015-12-02 15:40:23,050 [TELNET: 10.100.9.12] set_patterns([('^(\\S+\\s)?\\S+? #', 'PROMPT'), ('(^Press to continue or to quit:)', 'PAGER')]) 2015-12-02 15:40:23,078 CLI Provider is ready 2015-12-02 15:40:23,078 Disable paging 2015-12-02 15:40:23,078 cli(disable clipaging) 2015-12-02 15:40:23,078 [TELNET: 10.100.9.12] submit('disable clipaging', bulk_lines=None, streaming=False) 2015-12-02 15:40:23,080 [TELNET: 10.100.9.12] on_read: 'd' 2015-12-02 15:40:23,121 [TELNET: 10.100.9.12] on_read: 'isable clipaging\r\n\rSlot-1 kubik-4a-asw1.2 # ' 2015-12-02 15:40:23,122 [TELNET: 10.100.9.12] Starting synchronous FSM check 2015-12-02 15:40:23,122 [TELNET: 10.100.9.12] match '^(\S+\s)?\S+? #' 2015-12-02 15:40:23,122 [TELNET: 10.100.9.12] Starting synchronous FSM check 2015-12-02 15:40:23,122 [TELNET: 10.100.9.12] event(PROMPT) 2015-12-02 15:40:23,143 cli(disable clipaging) returns: ===[ disable clipaging ]================================================ '' ======================================================================== 2015-12-02 15:40:23,143 [TELNET: 10.100.9.12] submit('debug hal show version', bulk_lines=None, streaming=False) 2015-12-02 15:40:23,145 [TELNET: 10.100.9.12] on_read: 'd' 2015-12-02 15:40:23,186 [TELNET: 10.100.9.12] on_read: 'ebug hal show version\r\n\r\x07%% Incomplete command\r\n\rSlot-1 kubik-4a-asw1.3 # ' 2015-12-02 15:40:23,186 [TELNET: 10.100.9.12] Starting synchronous FSM check 2015-12-02 15:40:23,187 [TELNET: 10.100.9.12] match '^(\S+\s)?\S+? #' 2015-12-02 15:40:23,187 [TELNET: 10.100.9.12] Starting synchronous FSM check 2015-12-02 15:40:23,187 [TELNET: 10.100.9.12] event(PROMPT) 2015-12-02 15:40:23,208 cli(debug hal show version) returns: ===[ debug hal show version ]=========================================== '%% Incomplete command\n' ======================================================================== 2015-12-02 15:40:23,208 Unhandled exception 2015-12-02 15:40:23,210 Script traceback: 'NoneType' object has no attribute 'group' START OF TRACEBACK ------------------------------------------------------------------------ File: local/sa/profiles/Extreme/XOS/get_version.py (Line: 27) Function: execute 20 class Script(noc.sa.script.Script): 21 name = "Extreme.XOS.get_version" 22 cache = True 23 implements = [IGetVersion] 24 25 def execute(self): 26 v = self.cli("debug hal show version") 27 ==> platform = rx_platform.search(v).group("platform") 28 version = rx_version.search(v).group("version") 29 return { 30 "vendor": "Extreme", 31 "platform": platform, 32 "version": version 33 } Variables: self = v = '%% Incomplete command\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 = self = t0 = 1449060021.310359 ------------------------------------------------------------------------ File: sa/script/script.py (Line: 490) Function: run 483 484 def run(self): 485 """Script thread worker method""" 486 self.logger.debug("Running") 487 result = None 488 try: 489 with self.cancelable(): 490 ==> result = self.guarded_run() 491 except self.TimeOutError: 492 self.logger.error("Timed out") 493 self.e_timeout = True 494 except CancelledError: 495 self.logger.error("Cancelled") 496 self.e_cancel = True Variables: self = r = ["", "'NoneType' object has no attribute 'group'"] result = None v = AttributeError("'NoneType' object has no attribute 'group'",) tb = t = ------------------------------------------------------------------------ END OF TRACEBACK 2015-12-02 15:40:23,211 Closing 2015-12-02 15:40:23,211 Requesting call: >(*(), **{'flush': True}) 2015-12-02 15:40:24,188 Tick 2015-12-02 15:40:24,188 Calling delayed >(*(), **{'flush': True}) 2015-12-02 15:40:24,188 [CLITelnetSocket 10.100.9.12:23] Closing socket 2015-12-02 15:40:24,189 Unregister socket CLITelnetSocket 10.100.9.12:23 2015-12-02 15:40:24,189 2 TICKS TO EXIT 2015-12-02 15:40:25,189 Tick