Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- └─[$] <> ./noc debug-script get_lldp_neighbors jsw01-vil-ltc -o /tmp/4200EX
- /opt/noc/lib/python2.6/site-packages/Crypto/Util/number.py:57: PowmInsecureWarning: Not using mpz_powm_sec. You should rebuild using libgmp >= 5 to avoid timing attack vulnerability.
- _warn("Not using mpz_powm_sec. You should rebuild using libgmp >= 5 to avoid timing attack vulnerability.", PowmInsecureWarning)
- 2014-01-28 15:39:06,925 SSH: Using gmpy
- /opt/noc/lib/python2.6/site-packages/django/utils/translation/__init__.py:63: DeprecationWarning: Translations in the project directory aren't supported anymore. Use the LOCALE_PATHS setting instead.
- DeprecationWarning)
- 2014-01-28 15:39:07,126 Using JSON library: cjson
- 2014-01-28 15:39:07,312 Loading PeriodicRegistry
- 2014-01-28 15:39:07,320 Loading DownloaderRegistry
- 2014-01-28 15:39:07,360 Loading ProfileRegistry
- 2014-01-28 15:39:08,189 Loading ScriptRegistry
- 2014-01-28 15:39:08,581 Setting up 'select' polling method
- 2014-01-28 15:39:08,582 Activating 'select' poller
- 2014-01-28 15:39:08,582 Loading private ssh key from 'etc/ssh/id_rsa'
- 2014-01-28 15:39:08,582 Loading public ssh key from 'etc/ssh/id_rsa.pub'
- access_profile {
- profile: "Juniper.JUNOS"
- scheme: TELNET
- address: "10.12.165.20"
- user: "noc"
- password: "rere:tyth"
- super_password: "rere:tyth"
- path: "jsw01-vil-ltc"
- attrs {
- key: "platform"
- value: "ex4200-24f"
- }
- attrs {
- key: "vendor"
- value: "Juniper"
- }
- attrs {
- key: "version"
- value: "11.4R1.6"
- }
- }
- object_name: "jsw01-vil-ltc"
- script: "Juniper.JUNOS.get_lldp_neighbors"
- 2014-01-28 15:39:08,586 Running script thread
- 2014-01-28 15:39:08,586 Running socket factory (SelectPoller)
- 2014-01-28 15:39:08,586 Creating transaction id=1755549032 method=None callback=None
- 2014-01-28 15:39:08,588 [Juniper.JUNOS.get_lldp_neighbors(jsw01-vil-ltc, 10.12.165.20)] Running
- 2014-01-28 15:39:08,588 [Juniper.JUNOS.get_lldp_neighbors(jsw01-vil-ltc, 10.12.165.20)] Running script: Juniper.JUNOS.get_lldp_neighbors ({})
- 2014-01-28 15:39:08,589 [Juniper.JUNOS.get_version(jsw01-vil-ltc, 10.12.165.20)] Running script: Juniper.JUNOS.get_version ({})
- 2014-01-28 15:39:08,589 [Juniper.JUNOS.get_version(jsw01-vil-ltc, 10.12.165.20)] Not in call cache: 'Juniper.JUNOS.get_version', {}
- 2014-01-28 15:39:08,589 [Juniper.JUNOS.get_version(jsw01-vil-ltc, 10.12.165.20)] cli(show version)
- 2014-01-28 15:39:08,589 [Juniper.JUNOS.get_lldp_neighbors(jsw01-vil-ltc, 10.12.165.20)] Running new provider
- 2014-01-28 15:39:08,590 [TELNET: 10.12.165.20] ==> START
- 2014-01-28 15:39:08,590 [TELNET: 10.12.165.20] set_patterns([('([Uu]sername|[Ll]ogin):', 'USERNAME'), ('[Pp]assword:', 'PASSWORD'), ('^(({master(?::\\d+)}\\n)?\\S+>)|(({master(?::\\d+)})?\\[edit.*?\\]\\n\\S+#)|(\\[Type \\^D at a new line to end input\\])', 'PROMPT'), ('(^---\\(more.*?\\)---)', 'PAGER')])
- 2014-01-28 15:39:08,592 [TELNET: 10.12.165.20] set_timeout(600)
- 2014-01-28 15:39:08,592 register_socket(<CLITelnetSocket(0x4be9110, 10.12.165.20:23, )>,None)
- 2014-01-28 15:39:09,588 Tick
- 2014-01-28 15:39:09,588 3 TICKS TO EXIT
- 2014-01-28 15:39:09,588 [TELNET: 10.12.165.20] Initializing socket
- 2014-01-28 15:39:09,588 [TELNET: 10.12.165.20] Connecting 10.12.165.20:23
- 2014-01-28 15:39:09,608 [TELNET: 10.12.165.20] Connected
- 2014-01-28 15:39:09,641 [TELNET: 10.12.165.20] Received IAC DO TTYPE (253 24)
- 2014-01-28 15:39:09,641 [TELNET: 10.12.165.20] Sending IAC WILL TTYPE (251 24)
- 2014-01-28 15:39:09,641 [TELNET: 10.12.165.20] Received IAC DO TSPEED (253 32)
- 2014-01-28 15:39:09,642 [TELNET: 10.12.165.20] Sending IAC WONT TSPEED (252 32)
- 2014-01-28 15:39:09,642 [TELNET: 10.12.165.20] Received IAC DO XDISPLOC (253 35)
- 2014-01-28 15:39:09,642 [TELNET: 10.12.165.20] Sending IAC WONT XDISPLOC (252 35)
- 2014-01-28 15:39:09,642 [TELNET: 10.12.165.20] Received IAC DO NEW_ENVIRON (253 39)
- 2014-01-28 15:39:09,642 [TELNET: 10.12.165.20] Sending IAC WONT NEW_ENVIRON (252 39)
- 2014-01-28 15:39:09,642 [TELNET: 10.12.165.20] Received IAC DO OLD_ENVIRON (253 36)
- 2014-01-28 15:39:09,642 [TELNET: 10.12.165.20] Sending IAC WONT OLD_ENVIRON (252 36)
- 2014-01-28 15:39:09,653 [TELNET: 10.12.165.20] Received SB '\x18\x01'
- 2014-01-28 15:39:09,653 [TELNET: 10.12.165.20] Sending SB '\xff\xfa\x18\x00XTERM\xff\xf0'
- 2014-01-28 15:39:09,675 [TELNET: 10.12.165.20] Received IAC WILL SGA (251 3)
- 2014-01-28 15:39:09,675 [TELNET: 10.12.165.20] Sending IAC DO SGA (253 3)
- 2014-01-28 15:39:09,676 [TELNET: 10.12.165.20] Received IAC DO ECHO (253 1)
- 2014-01-28 15:39:09,676 [TELNET: 10.12.165.20] Sending IAC WILL ECHO (251 1)
- 2014-01-28 15:39:09,676 [TELNET: 10.12.165.20] Received IAC DO LINEMODE (253 34)
- 2014-01-28 15:39:09,676 [TELNET: 10.12.165.20] Sending IAC WONT LINEMODE (252 34)
- 2014-01-28 15:39:09,676 [TELNET: 10.12.165.20] Received IAC DO NAWS (253 31)
- 2014-01-28 15:39:09,676 [TELNET: 10.12.165.20] Sending IAC WILL NAWS (251 31)
- 2014-01-28 15:39:09,676 [TELNET: 10.12.165.20] Sending SB '\xff\xfa\x1f\xff\xff\xff\xff\xff\xf0'
- 2014-01-28 15:39:09,676 [TELNET: 10.12.165.20] Received IAC WILL STATUS (251 5)
- 2014-01-28 15:39:09,676 [TELNET: 10.12.165.20] Sending IAC DONT STATUS (254 5)
- 2014-01-28 15:39:09,676 [TELNET: 10.12.165.20] Received IAC DO LFLOW (253 33)
- 2014-01-28 15:39:09,677 [TELNET: 10.12.165.20] Sending IAC WONT LFLOW (252 33)
- 2014-01-28 15:39:09,690 [TELNET: 10.12.165.20] Received IAC DONT ECHO (254 1)
- 2014-01-28 15:39:09,691 [TELNET: 10.12.165.20] Sending IAC WONT ECHO (252 1)
- 2014-01-28 15:39:09,691 [TELNET: 10.12.165.20] Received IAC WILL ECHO (251 1)
- 2014-01-28 15:39:09,691 [TELNET: 10.12.165.20] Sending IAC DO ECHO (253 1)
- 2014-01-28 15:39:09,702 [TELNET: 10.12.165.20] on_read: '+Welcom+\r\n! Authorized Use ONLY !\r\n!!!!\r\n\r\n\r\r\njsw01-vil-ltc (ttyp3)\r\r\n\r\r\n'
- 2014-01-28 15:39:09,752 [TELNET: 10.12.165.20] on_read: 'login: '
- 2014-01-28 15:39:09,752 [TELNET: 10.12.165.20] Starting synchronous FSM check
- 2014-01-28 15:39:09,752 [TELNET: 10.12.165.20] match '([Uu]sername|[Ll]ogin):'
- 2014-01-28 15:39:09,752 [TELNET: 10.12.165.20] event(USERNAME)
- 2014-01-28 15:39:09,752 [TELNET: 10.12.165.20] ==> USERNAME
- 2014-01-28 15:39:09,752 [TELNET: 10.12.165.20] set_patterns([('[Pp]assword:', 'PASSWORD'), ('^(({master(?::\\d+)}\\n)?\\S+>)|(({master(?::\\d+)})?\\[edit.*?\\]\\n\\S+#)|(\\[Type \\^D at a new line to end input\\])', 'PROMPT')])
- 2014-01-28 15:39:09,752 [TELNET: 10.12.165.20] submit(u'noc', bulk_lines=None, streaming=False)
- 2014-01-28 15:39:09,762 [TELNET: 10.12.165.20] on_read: 'noc\r\n'
- 2014-01-28 15:39:09,813 [TELNET: 10.12.165.20] on_read: 'Password:'
- 2014-01-28 15:39:09,813 [TELNET: 10.12.165.20] Starting synchronous FSM check
- 2014-01-28 15:39:09,813 [TELNET: 10.12.165.20] match '[Pp]assword:'
- 2014-01-28 15:39:09,814 [TELNET: 10.12.165.20] event(PASSWORD)
- 2014-01-28 15:39:09,814 [TELNET: 10.12.165.20] ==> PASSWORD
- 2014-01-28 15:39:09,814 [TELNET: 10.12.165.20] set_patterns([('^(({master(?::\\d+)}\\n)?\\S+>)|(({master(?::\\d+)})?\\[edit.*?\\]\\n\\S+#)|(\\[Type \\^D at a new line to end input\\])', 'PROMPT'), ('([Uu]sername|[Ll]ogin):', 'USERNAME'), ('[Pp]assword:', 'PASSWORD'), ('(^---\\(more.*?\\)---)', 'PAGER')])
- 2014-01-28 15:39:09,814 [TELNET: 10.12.165.20] submit(u'rere:tyth', bulk_lines=None, streaming=False)
- 2014-01-28 15:39:09,825 [TELNET: 10.12.165.20] on_read: '\r\n'
- 2014-01-28 15:39:09,877 [TELNET: 10.12.165.20] on_read: '\r\n--- JUNOS 11.4R1.6 built 2011-11-15 11:14:01 UTC\r\n'
- 2014-01-28 15:39:10,168 [TELNET: 10.12.165.20] on_read: '{master:0}\r\n'
- 2014-01-28 15:39:10,178 [TELNET: 10.12.165.20] on_read: 'noc@jsw01-vil-ltc> '
- 2014-01-28 15:39:10,178 [TELNET: 10.12.165.20] Starting synchronous FSM check
- 2014-01-28 15:39:10,178 [TELNET: 10.12.165.20] match '^(({master(?::\d+)}\n)?\S+>)|(({master(?::\d+)})?\[edit.*?\]\n\S+#)|(\[Type \^D at a new line to end input\])'
- 2014-01-28 15:39:10,178 [TELNET: 10.12.165.20] event(PROMPT)
- 2014-01-28 15:39:10,178 [TELNET: 10.12.165.20] ==> PROMPT
- 2014-01-28 15:39:10,178 [TELNET: 10.12.165.20] on_PROMPT_enter
- 2014-01-28 15:39:10,178 [TELNET: 10.12.165.20] Using prompt pattern: ^(({master(?::\d+)}\n)?\S+>)|(({master(?::\d+)})?\[edit.*?\]\n\S+#)|(\[Type \^D at a new line to end input\])
- 2014-01-28 15:39:10,179 [TELNET: 10.12.165.20] set_patterns([('^(({master(?::\\d+)}\\n)?\\S+>)|(({master(?::\\d+)})?\\[edit.*?\\]\\n\\S+#)|(\\[Type \\^D at a new line to end input\\])', 'PROMPT'), ('(^---\\(more.*?\\)---)', 'PAGER')])
- 2014-01-28 15:39:10,214 [Juniper.JUNOS.get_lldp_neighbors(jsw01-vil-ltc, 10.12.165.20)] CLI Provider is ready
- 2014-01-28 15:39:10,215 [Juniper.JUNOS.get_lldp_neighbors(jsw01-vil-ltc, 10.12.165.20)] Disable paging
- 2014-01-28 15:39:10,215 [Juniper.JUNOS.get_lldp_neighbors(jsw01-vil-ltc, 10.12.165.20)] cli(set cli screen-length 0)
- 2014-01-28 15:39:10,215 [TELNET: 10.12.165.20] submit('set cli screen-length 0', bulk_lines=None, streaming=False)
- 2014-01-28 15:39:11,180 Tick
- 2014-01-28 15:39:11,180 Resetting wait ticks
- 2014-01-28 15:39:11,192 [TELNET: 10.12.165.20] on_read: 's'
- 2014-01-28 15:39:11,205 [TELNET: 10.12.165.20] on_read: 'et cli screen-length 0 \r\n'
- 2014-01-28 15:39:11,217 [TELNET: 10.12.165.20] on_read: 'Screen length set to 0\r\n\r\n{master:0}\r\nnoc@jsw01-vil-ltc> '
- 2014-01-28 15:39:11,217 [TELNET: 10.12.165.20] Starting synchronous FSM check
- 2014-01-28 15:39:11,217 [TELNET: 10.12.165.20] match '^(({master(?::\d+)}\n)?\S+>)|(({master(?::\d+)})?\[edit.*?\]\n\S+#)|(\[Type \^D at a new line to end input\])'
- 2014-01-28 15:39:11,217 [TELNET: 10.12.165.20] Starting synchronous FSM check
- 2014-01-28 15:39:11,217 [TELNET: 10.12.165.20] event(PROMPT)
- 2014-01-28 15:39:11,219 [Juniper.JUNOS.get_lldp_neighbors(jsw01-vil-ltc, 10.12.165.20)] cli(set cli screen-length 0) returns:
- ===[ set cli screen-length 0 ]==========================================
- ' \nScreen length set to 0\n\n'
- ========================================================================
- 2014-01-28 15:39:11,219 [TELNET: 10.12.165.20] submit('show version', bulk_lines=None, streaming=False)
- 2014-01-28 15:39:12,218 Tick
- 2014-01-28 15:39:12,219 Resetting wait ticks
- 2014-01-28 15:39:12,231 [TELNET: 10.12.165.20] on_read: 'show'
- 2014-01-28 15:39:12,243 [TELNET: 10.12.165.20] on_read: ' version '
- 2014-01-28 15:39:12,256 [TELNET: 10.12.165.20] on_read: '\r\n'
- 2014-01-28 15:39:12,469 [TELNET: 10.12.165.20] on_read: 'fpc0:\r\n--------------------------------------------------------------------------\r\n'
- 2014-01-28 15:39:12,483 [TELNET: 10.12.165.20] on_read: 'Hostname: jsw01-vil-ltc\r\nModel: ex4200-24f\r\nJUNOS Base OS boot [11.4R1.6]\r\nJUNOS Base OS Software Suite [11.4R1.6]\r\nJUNOS Kernel Software Suite [11.4R1.6]\r\nJUNOS Crypto Software Suite [11.4R1.6]\r\nJUNOS Online Documentation [11.4R1.6]\r\nJUNOS Enterprise Software Suite [11.4R1.6]\r\nJUNOS Packet Forwarding Engine Enterprise Software Suite [11.4R1.6]\r\nJUNOS Routing Software Suite [11.4R1.6]\r\nJUNOS Web Management [11.4R1.6]\r\n'
- 2014-01-28 15:39:12,493 [TELNET: 10.12.165.20] on_read: '\r\n{master:0}\r\nnoc@jsw01-vil-ltc> '
- 2014-01-28 15:39:12,494 [TELNET: 10.12.165.20] Starting synchronous FSM check
- 2014-01-28 15:39:12,494 [TELNET: 10.12.165.20] match '^(({master(?::\d+)}\n)?\S+>)|(({master(?::\d+)})?\[edit.*?\]\n\S+#)|(\[Type \^D at a new line to end input\])'
- 2014-01-28 15:39:12,494 [TELNET: 10.12.165.20] Starting synchronous FSM check
- 2014-01-28 15:39:12,494 [TELNET: 10.12.165.20] event(PROMPT)
- 2014-01-28 15:39:12,534 [Juniper.JUNOS.get_version(jsw01-vil-ltc, 10.12.165.20)] cli(show version) returns:
- ===[ show version ]=====================================================
- ' \nfpc0:\n--------------------------------------------------------------------------\nHostname: jsw01-vil-ltc\nModel: ex4200-24f\nJUNOS Base OS boot [11.4R1.6]\nJUNOS Base OS Software Suite [11.4R1.6]\nJUNOS Kernel Software Suite [11.4R1.6]\nJUNOS Crypto Software Suite [11.4R1.6]\nJUNOS Online Documentation [11.4R1.6]\nJUNOS Enterprise Software Suite [11.4R1.6]\nJUNOS Packet Forwarding Engine Enterprise Software Suite [11.4R1.6]\nJUNOS Routing Software Suite [11.4R1.6]\nJUNOS Web Management [11.4R1.6]\n\n'
- ========================================================================
- 2014-01-28 15:39:12,534 [Juniper.JUNOS.get_version(jsw01-vil-ltc, 10.12.165.20)] Write to call cache: Juniper.JUNOS.get_version, {}, {'platform': 'ex4200-24f', 'version': '11.4R1.6', 'vendor': 'Juniper'}
- 2014-01-28 15:39:12,534 [Juniper.JUNOS.get_version(jsw01-vil-ltc, 10.12.165.20)] Script returns with result: {'platform': 'ex4200-24f', 'version': '11.4R1.6', 'vendor': 'Juniper'}
- 2014-01-28 15:39:12,534 [Juniper.JUNOS.get_lldp_neighbors(jsw01-vil-ltc, 10.12.165.20)] cli(show lldp local-information)
- 2014-01-28 15:39:12,535 [TELNET: 10.12.165.20] submit('show lldp local-information', bulk_lines=None, streaming=False)
- 2014-01-28 15:39:13,495 Tick
- 2014-01-28 15:39:13,496 Resetting wait ticks
- 2014-01-28 15:39:13,507 [TELNET: 10.12.165.20] on_read: 'show'
- 2014-01-28 15:39:13,522 [TELNET: 10.12.165.20] on_read: ' lldp local-information \r\n'
- 2014-01-28 15:39:13,533 [TELNET: 10.12.165.20] on_read: '\r\nLLDP Local Information details\r\n\r\nChassis ID : 54:e0:32:f4:d3:00\r\nSystem name : jsw01-vil-ltc\r\nSystem descr : Juniper Networks, Inc. ex4200-24f , version 11.4R1.6 Build date:\r\n 2011-11-15 11:32:59 UTC \r\n\r\nSystem Capabilities\r\n Supported : Bridge Router \r\n Enabled : Bridge Router \r\n\r\nInterface name Parent Interface SNMP Index Interface description Status Tunneling\r\nme0.0 - 34 - Down Disabled \r\nge-0/0/13.0 - 532 ge-0/0/13.0 Up Disabled \r\nge-0/0/1.0 - 508 ge-0/0/1.0 Up Disabled \r\nge-0/0/2.0 - 510 ge-0/0/2.0 Up Disabled \r\nge-0/0/3.0 - 512 ge-0/0/3.0 Up Disabled \r\nge-0/0/4.0 - 514 - Down Disabled \r\nge-0/0/5.0 - 516 - Down Disabled \r\nge-0/0/6.0 - 518 - Down Disabled \r\nge-0/0/7.0 - 520 - Down Disabled \r\n'
- 2014-01-28 15:39:13,545 [TELNET: 10.12.165.20] on_read: 'ge-0/0/8.0 - 522 - Down Disabled \r\nge-0/0/9.0 - 524 - Down Disabled \r\nge-0/0/10.0 - 526 ge-0/0/10.0 Up Disabled \r\nge-0/0/11.0 - 528 - Down Disabled \r\nge-0/0/12.0 - 530 ge-0/0/12.0 Down Disabled \r\nxe-0/1/0.0 - 552 xe-0/1/0.0 Up Disabled \r\nxe-0/1/1.0 - 554 xe-0/1/1.0 Up Disabled \r\n\r\n{master:0}\r\nnoc@jsw01-vil-ltc> '
- 2014-01-28 15:39:13,545 [TELNET: 10.12.165.20] Starting synchronous FSM check
- 2014-01-28 15:39:13,545 [TELNET: 10.12.165.20] match '^(({master(?::\d+)}\n)?\S+>)|(({master(?::\d+)})?\[edit.*?\]\n\S+#)|(\[Type \^D at a new line to end input\])'
- 2014-01-28 15:39:13,545 [TELNET: 10.12.165.20] Starting synchronous FSM check
- 2014-01-28 15:39:13,545 [TELNET: 10.12.165.20] event(PROMPT)
- 2014-01-28 15:39:13,551 [Juniper.JUNOS.get_lldp_neighbors(jsw01-vil-ltc, 10.12.165.20)] cli(show lldp local-information) returns:
- ===[ show lldp local-information ]======================================
- ' \n\nLLDP Local Information details\n\nChassis ID : 54:e0:32:f4:d3:00\nSystem name : jsw01-vil-ltc\nSystem descr : Juniper Networks, Inc. ex4200-24f , version 11.4R1.6 Build date:\n 2011-11-15 11:32:59 UTC \n\nSystem Capabilities\n Supported : Bridge Router \n Enabled : Bridge Router \n\nInterface name Parent Interface SNMP Index Interface description Status Tunneling\nme0.0 - 34 - Down Disabled \nge-0/0/13.0 - 532 ge-0/0/13.0 Up Disabled \nge-0/0/1.0 - 508 ge-0/0/1.0 Up Disabled \nge-0/0/2.0 - 510 ge-0/0/2.0 Up Disabled \nge-0/0/3.0 - 512 ge-0/0/3.0 Up Disabled \nge-0/0/4.0 - 514 - Down Disabled \nge-0/0/5.0 - 516 - Down Disabled \nge-0/0/6.0 - 518 - Down Disabled \nge-0/0/7.0 - 520 - Down Disabled \nge-0/0/8.0 - 522 - Down Disabled \nge-0/0/9.0 - 524 - Down Disabled \nge-0/0/10.0 - 526 ge-0/0/10.0 Up Disabled \nge-0/0/11.0 - 528 - Down Disabled \nge-0/0/12.0 - 530 ge-0/0/12.0 Down Disabled \nxe-0/1/0.0 - 552 xe-0/1/0.0 Up Disabled \nxe-0/1/1.0 - 554 xe-0/1/1.0 Up Disabled \n\n'
- ========================================================================
- 2014-01-28 15:39:13,551 [Juniper.JUNOS.get_lldp_neighbors(jsw01-vil-ltc, 10.12.165.20)] cli(show lldp neighbors)
- 2014-01-28 15:39:13,551 [TELNET: 10.12.165.20] submit('show lldp neighbors', bulk_lines=None, streaming=False)
- 2014-01-28 15:39:14,547 Tick
- 2014-01-28 15:39:14,547 Resetting wait ticks
- 2014-01-28 15:39:14,560 [TELNET: 10.12.165.20] on_read: 'show'
- 2014-01-28 15:39:14,573 [TELNET: 10.12.165.20] on_read: ' lldp neighbors \r\n'
- 2014-01-28 15:39:14,584 [TELNET: 10.12.165.20] on_read: 'Local Interface Parent Interface Chassis Id Port info System Name\r\nxe-0/1/1.0 - 08:81:f4:8c:2c:b0 *** jsw01-koz-ltc-XE-0/1/1 *** jnr01-koz-ltc \r\nge-0/0/3.0 - 54:89:98:da:f1:03 GigabitEthernet0/0/1 Sadovaya 19-2 \r\n\r\n{master:0}\r\nnoc@jsw01-vil-ltc> '
- 2014-01-28 15:39:14,585 [TELNET: 10.12.165.20] Starting synchronous FSM check
- 2014-01-28 15:39:14,585 [TELNET: 10.12.165.20] match '^(({master(?::\d+)}\n)?\S+>)|(({master(?::\d+)})?\[edit.*?\]\n\S+#)|(\[Type \^D at a new line to end input\])'
- 2014-01-28 15:39:14,585 [TELNET: 10.12.165.20] Starting synchronous FSM check
- 2014-01-28 15:39:14,585 [TELNET: 10.12.165.20] event(PROMPT)
- 2014-01-28 15:39:14,615 [Juniper.JUNOS.get_lldp_neighbors(jsw01-vil-ltc, 10.12.165.20)] cli(show lldp neighbors) returns:
- ===[ show lldp neighbors ]==============================================
- ' \nLocal Interface Parent Interface Chassis Id Port info System Name\nxe-0/1/1.0 - 08:81:f4:8c:2c:b0 *** jsw01-koz-ltc-XE-0/1/1 *** jnr01-koz-ltc \nge-0/0/3.0 - 54:89:98:da:f1:03 GigabitEthernet0/0/1 Sadovaya 19-2 \n\n'
- ========================================================================
- 2014-01-28 15:39:14,615 [Juniper.JUNOS.get_lldp_neighbors(jsw01-vil-ltc, 10.12.165.20)] cli(show lldp neighbors interface xe-0/1/1.0)
- 2014-01-28 15:39:14,616 [TELNET: 10.12.165.20] submit('show lldp neighbors interface xe-0/1/1.0', bulk_lines=None, streaming=False)
- 2014-01-28 15:39:15,586 Tick
- 2014-01-28 15:39:15,586 Resetting wait ticks
- 2014-01-28 15:39:15,597 [TELNET: 10.12.165.20] on_read: 'show'
- 2014-01-28 15:39:15,619 [TELNET: 10.12.165.20] on_read: ' lldp neighbors interface'
- 2014-01-28 15:39:15,628 [TELNET: 10.12.165.20] on_read: ' xe-0/1/1.0'
- 2014-01-28 15:39:15,703 [TELNET: 10.12.165.20] on_read: ' '
- 2014-01-28 15:39:15,715 [TELNET: 10.12.165.20] on_read: '\r\nLLDP Neighbor Information:\r\nLocal Information:\r\nIndex: 4 Time to live: 1200 Time mark: Tue Jan 28 12:07:15 2014 Age: 248 secs \r\nLocal Interface : xe-0/1/1.0\r\nParent Interface : -\r\nLocal Port ID : 554\r\nAgeout Count : 0\r\n\r\nNeighbour Information:\r\nChassis type : Mac address\r\nChassis ID : 08:81:f4:8c:2c:b0\r\nPort type : Locally assigned\r\nPort ID : 512\r\nPort description : *** jsw01-koz-ltc-XE-0/1/1 ***\r\nSystem name : jnr01-koz-ltc\r\n \r\nSystem Description : Juniper Networks, Inc. mx80 , version 12.1R5.5 Build date: 2013-01-17 08:10:23 UTC \r\n\r\nSystem capabilities \r\n Supported : Bridge Router \r\n Enabled : Bridge Router \r\n\r\nOrganization Info\r\n OUI : 0.12.f\r\n Subtype : 1\r\n Index : 1\r\n Info : 0180000000 \r\n\r\nOrganization Info\r\n OUI : 0.12.f\r\n Subtype : 3\r\n Index : 2\r\n Info : 0100000000 \r\n'
- 2014-01-28 15:39:15,725 [TELNET: 10.12.165.20] on_read: '\r\nOrganization Info\r\n OUI : 0.12.f\r\n Subtype : 4\r\n Index : 3\r\n Info : 238C \r\n\r\nOrganization Info\r\n OUI : 0.80.c2\r\n Subtype : 1\r\n Index : 4\r\n Info : 0811 \r\n\r\nOrganization Info\r\n OUI : 0.80.c2\r\n Subtype : 3\r\n Index : 5\r\n Info : 081109766C616E2D32303635 \r\n\r\nOrganization Info\r\n OUI : 0.80.c2\r\n Subtype : 3\r\n Index : 6\r\n Info : 019208766C616E2D343032 \r\n\r\nOrganization Info\r\n OUI : 0.80.c2\r\n Subtype : 3\r\n Index : 7\r\n Info : 01E808766C616E2D343838 \r\n\r\nOrganization Info\r\n OUI : 0.80.c2\r\n Subtype : 3\r\n Index : 8\r\n Info : 027608766C616E2D363330 \r\n\r\nOrganization Info\r\n OUI : 0.80.c2\r\n Subtype : 3\r\n Index : 9\r\n Info : 027B08766C616E2D363335 \r\n\r\n{master:0}\r\nnoc@jsw01-vil-ltc> '
- 2014-01-28 15:39:15,726 [TELNET: 10.12.165.20] Starting synchronous FSM check
- 2014-01-28 15:39:15,726 [TELNET: 10.12.165.20] match '^(({master(?::\d+)}\n)?\S+>)|(({master(?::\d+)})?\[edit.*?\]\n\S+#)|(\[Type \^D at a new line to end input\])'
- 2014-01-28 15:39:15,726 [TELNET: 10.12.165.20] Starting synchronous FSM check
- 2014-01-28 15:39:15,726 [TELNET: 10.12.165.20] event(PROMPT)
- 2014-01-28 15:39:15,731 [Juniper.JUNOS.get_lldp_neighbors(jsw01-vil-ltc, 10.12.165.20)] cli(show lldp neighbors interface xe-0/1/1.0) returns:
- ===[ show lldp neighbors interface xe-0/1/1.0 ]=========================
- ' \nLLDP Neighbor Information:\nLocal Information:\nIndex: 4 Time to live: 1200 Time mark: Tue Jan 28 12:07:15 2014 Age: 248 secs \nLocal Interface : xe-0/1/1.0\nParent Interface : -\nLocal Port ID : 554\nAgeout Count : 0\n\nNeighbour Information:\nChassis type : Mac address\nChassis ID : 08:81:f4:8c:2c:b0\nPort type : Locally assigned\nPort ID : 512\nPort description : *** jsw01-koz-ltc-XE-0/1/1 ***\nSystem name : jnr01-koz-ltc\n \nSystem Description : Juniper Networks, Inc. mx80 , version 12.1R5.5 Build date: 2013-01-17 08:10:23 UTC \n\nSystem capabilities \n Supported : Bridge Router \n Enabled : Bridge Router \n\nOrganization Info\n OUI : 0.12.f\n Subtype : 1\n Index : 1\n Info : 0180000000 \n\nOrganization Info\n OUI : 0.12.f\n Subtype : 3\n Index : 2\n Info : 0100000000 \n\nOrganization Info\n OUI : 0.12.f\n Subtype : 4\n Index : 3\n Info : 238C \n\nOrganization Info\n OUI : 0.80.c2\n Subtype : 1\n Index : 4\n Info : 0811 \n\nOrganization Info\n OUI : 0.80.c2\n Subtype : 3\n Index : 5\n Info : 081109766C616E2D32303635 \n\nOrganization Info\n OUI : 0.80.c2\n Subtype : 3\n Index : 6\n Info : 019208766C616E2D343032 \n\nOrganization Info\n OUI : 0.80.c2\n Subtype : 3\n Index : 7\n Info : 01E808766C616E2D343838 \n\nOrganization Info\n OUI : 0.80.c2\n Subtype : 3\n Index : 8\n Info : 027608766C616E2D363330 \n\nOrganization Info\n OUI : 0.80.c2\n Subtype : 3\n Index : 9\n Info : 027B08766C616E2D363335 \n\n'
- ========================================================================
- [f[f2014-01-28 16:21:50,599 [Juniper.JUNOS.get_lldp_neighbors(jsw01-vil-ltc, 10.12.165.20)] Unhandled exception
- 2014-01-28 16:21:50,606 Tick
- 2014-01-28 16:21:50,610 Resetting wait ticks
- 2014-01-28 16:21:50,610 Closing stale socket <CLITelnetSocket(0x4be9110, 10.12.165.20:23, connected)>
- 2014-01-28 16:21:50,611 [TELNET: 10.12.165.20] Closing socket
- 2014-01-28 16:21:50,611 unregister_socket(<CLITelnetSocket(0x4be9110, 10.12.165.20:23, closing, stale)>)
- 2014-01-28 16:21:50,617 [Juniper.JUNOS.get_lldp_neighbors(jsw01-vil-ltc, 10.12.165.20)] Script traceback:
- <class 'noc.sa.script.exception.UnexpectedResultError'>
- START OF TRACEBACK
- ------------------------------------------------------------------------
- File: /opt/noc/sa/script/script.py (Line: 961)
- Function: re_search
- 954 Returns match object.
- 955 rx can be string or compiled regular expression
- 956 """
- 957 if isinstance(rx, basestring):
- 958 rx = re.compile(rx, flags)
- 959 match = rx.search(s)
- 960 if match is None:
- 961 ==> raise self.UnexpectedResultError()
- 962 return match
- 963
- 964 def re_match(self, rx, s, flags=0):
- 965 """
- 966 Match s against regular expression rx using re.match
- 967 Raise UnexpectedResultError if regular expression is not matched.
- Variables:
- rx = <_sre.SRE_Pattern object at 0x419ffd0>
- s =
- ' \nLLDP Neighbor Information:\nLocal Information:\nIndex: 4 Time to live: 1200 Time mark: Tue Jan 28 12:07:15 2014 Age: 248 secs \nLocal Interface : xe-0/1/1.0\nParent Interface : -\nLocal Port ID : 554\nAgeout Count : 0\n\nNeighbour Information:\nChassis type : Mac address\nChassis ID : 08:81:f4:8c:2c:b0\nPort type : Locally assigned\nPort ID : 512\nPort description : *** jsw01-koz-ltc-XE-0/1/1 ***\nSystem name : jnr01-koz-ltc\n \nSystem Description : Juniper Networks, Inc. mx80 , version 12.1R5.5 Build date: 2013-01-17 08:10:23 UTC \n\nSystem capabilities \n Supported : Bridge Router \n Enabled : Bridge Router \n\nOrganization Info\n OUI : 0.12.f\n Subtype : 1\n Index : 1\n Info : 0180000000 \n\nOrganization Info\n OUI : 0.12.f\n Subtype : 3\n Index : 2\n Info : 0100000000 \n\nOrganization Info\n OUI : 0.12.f\n Subtype : 4\n Index : 3\n Info : 238C \n\nOrganization Info\n OUI : 0.80.c2\n Subtype : 1\n Index : 4\n Info : 0811 \n\nOrganization Info\n OUI : 0.80.c2\n Subtype : 3\n Index : 5\n Info : 081109766C616E2D32303635 \n\nOrganization Info\n OUI : 0.80.c2\n Subtype : 3\n Index : 6\n Info : 019208766C616E2D343032 \n\nOrganization Info\n OUI : 0.80.c2\n Subtype : 3\n Index : 7\n Info : 01E808766C616E2D343838 \n\nOrganization Info\n OUI : 0.80.c2\n Subtype : 3\n Index : 8\n Info : 027608766C616E2D363330 \n\nOrganization Info\n OUI : 0.80.c2\n Subtype : 3\n Index : 9\n Info : 027B08766C616E2D363335 \n\n'
- flags = 0
- self = <Script(Thread-2, started 140241877194496)>
- match = None
- ------------------------------------------------------------------------
- File: /opt/noc/sa/profiles/Juniper/JUNOS/get_lldp_neighbors.py (Line: 54)
- Function: execute_ex
- 47 "local_interface": match.group("local_if"),
- 48 "neighbors": [],
- 49 } for match in self.rx_neigh.finditer(v)]
- 50 for i in ifs:
- 51 if i["local_interface"] in local_port_ids:
- 52 i["local_interface_id"] = local_port_ids[i["local_interface"]]
- 53 v = self.cli("show lldp neighbors interface %s" % i["local_interface"])
- 54 ==> match = self.re_search(self.rx_detail, v)
- 55 n = {"remote_chassis_id_subtype": 4}
- 56 if match:
- 57 n["remote_port_subtype"] = {
- 58 "Mac address": 3,
- 59 "Interface alias": 1,
- 60 "Interface name": 5,
- Variables:
- ifs =
- [{'local_interface': 'xe-0/1/1.0', 'neighbors': []},
- {'local_interface': 'ge-0/0/3.0', 'neighbors': []}]
- i = {'neighbors': [], 'local_interface': 'xe-0/1/1.0'}
- self = <Script(Thread-2, started 140241877194496)>
- local_port_ids = {}
- r = []
- v =
- ' \nLLDP Neighbor Information:\nLocal Information:\nIndex: 4 Time to live: 1200 Time mark: Tue Jan 28 12:07:15 2014 Age: 248 secs \nLocal Interface : xe-0/1/1.0\nParent Interface : -\nLocal Port ID : 554\nAgeout Count : 0\n\nNeighbour Information:\nChassis type : Mac address\nChassis ID : 08:81:f4:8c:2c:b0\nPort type : Locally assigned\nPort ID : 512\nPort description : *** jsw01-koz-ltc-XE-0/1/1 ***\nSystem name : jnr01-koz-ltc\n \nSystem Description : Juniper Networks, Inc. mx80 , version 12.1R5.5 Build date: 2013-01-17 08:10:23 UTC \n\nSystem capabilities \n Supported : Bridge Router \n Enabled : Bridge Router \n\nOrganization Info\n OUI : 0.12.f\n Subtype : 1\n Index : 1\n Info : 0180000000 \n\nOrganization Info\n OUI : 0.12.f\n Subtype : 3\n Index : 2\n Info : 0100000000 \n\nOrganization Info\n OUI : 0.12.f\n Subtype : 4\n Index : 3\n Info : 238C \n\nOrganization Info\n OUI : 0.80.c2\n Subtype : 1\n Index : 4\n Info : 0811 \n\nOrganization Info\n OUI : 0.80.c2\n Subtype : 3\n Index : 5\n Info : 081109766C616E2D32303635 \n\nOrganization Info\n OUI : 0.80.c2\n Subtype : 3\n Index : 6\n Info : 019208766C616E2D343032 \n\nOrganization Info\n OUI : 0.80.c2\n Subtype : 3\n Index : 7\n Info : 01E808766C616E2D343838 \n\nOrganization Info\n OUI : 0.80.c2\n Subtype : 3\n Index : 8\n Info : 027608766C616E2D363330 \n\nOrganization Info\n OUI : 0.80.c2\n Subtype : 3\n Index : 9\n Info : 027B08766C616E2D363335 \n\n'
- match = <_sre.SRE_Match object at 0x4bef4e0>
- ------------------------------------------------------------------------
- File: /opt/noc/sa/script/script.py (Line: 513)
- Function: execute
- 506 """
- 507 if self._execute_chain and not self.name.endswith(".get_version"):
- 508 # Get version information
- 509 v = self.scripts.get_version()
- 510 # Find and execute proper handler
- 511 for c, f in self._execute_chain:
- 512 if c(self, v):
- 513 ==> return f(self, **kwargs)
- 514 # Raise error
- 515 raise NotSupportedError()
- 516
- 517 def cli_queue_get(self):
- 518 """
- 519 Request CLI provider's queue
- Variables:
- kwargs = {}
- c = <function <lambda> at 0x415f398>
- v = {'platform': 'ex4200-24f', 'version': '11.4R1.6', 'vendor': 'Juniper'}
- self = <Script(Thread-2, started 140241877194496)>
- f = <function execute_ex at 0x415f2a8>
- ------------------------------------------------------------------------
- File: /opt/noc/sa/script/script.py (Line: 422)
- Function: guarded_run
- 415 return result
- 416 except KeyError:
- 417 self.debug("Not in call cache: %r, %r" % (self.name,
- 418 self.kwargs))
- 419 pass
- 420 # Calling script body
- 421 self._thread_id = thread.get_ident()
- 422 ==> result = self.execute(**self.kwargs)
- 423 # Enforce interface result checking
- 424 for i in self.implements:
- 425 result = i.script_clean_result(self.profile, result)
- 426 # Cache result when required
- 427 if self.cache and self.parent is not None:
- 428 self.debug("Write to call cache: %s, %s, %r" % (self.name,
- Variables:
- i =
- <noc.sa.interfaces.igetlldpneighbors.IGetLLDPNeighbors object at 0x2a5eb90>
- self = <Script(Thread-2, started 140241877194496)>
- ------------------------------------------------------------------------
- File: /opt/noc/sa/script/script.py (Line: 445)
- Function: run
- 438
- 439 def run(self):
- 440 """Script thread worker method"""
- 441 self.debug("Running")
- 442 result = None
- 443 try:
- 444 with self.cancelable():
- 445 ==> result = self.guarded_run()
- 446 except self.TimeOutError:
- 447 self.error("Timed out")
- 448 self.e_timeout = True
- 449 except CancelledError:
- 450 self.error("Cancelled")
- 451 self.e_cancel = True
- Variables:
- self = <Script(Thread-2, started 140241877194496)>
- r = ["<class 'noc.sa.script.exception.UnexpectedResultError'>", '']
- result = None
- v = UnexpectedResultError()
- tb = <traceback object at 0x4beccf8>
- t = <class 'noc.sa.script.exception.UnexpectedResultError'>
- ------------------------------------------------------------------------
- END OF TRACEBACK
- 2014-01-28 16:21:50,621 [Juniper.JUNOS.get_lldp_neighbors(jsw01-vil-ltc, 10.12.165.20)] Closing
- 2014-01-28 16:21:50,621 Requesting call: <bound method CLITelnetSocket.close of <CLITelnetSocket(0x4be9110, 10.12.165.20:23, closing, stale)>>(*(), **{'flush': True})
- 2014-01-28 16:21:51,617 Tick
- 2014-01-28 16:21:51,618 Calling delayed <bound method CLITelnetSocket.close of <CLITelnetSocket(0x4be9110, 10.12.165.20:23, closing, stale)>>(*(), **{'flush': True})
- 2014-01-28 16:21:51,618 3 TICKS TO EXIT
- 2014-01-28 16:21:52,621 Tick
- 2014-01-28 16:21:52,622 2 TICKS TO EXIT
- 2014-01-28 16:21:53,623 Tick
- 2014-01-28 16:21:53,623 1 TICKS TO EXIT
- 2014-01-28 16:21:54,626 Tick
- 2014-01-28 16:21:54,626 EXIT
- 2014-01-28 16:21:54,629 Writing session test to /tmp/4200EX
- 2014-01-28 16:21:54,630 Shutting down the factory
- 2014-01-28 16:21:54,630 0 TICKS TO EXIT
- 2014-01-28 16:21:54,630 Stopping socket factory
- ┌─[root@oel] - [/opt/noc] - [Tue Jan 28, 04:21]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement