# ./noc debug-script Juniper.JUNOS.get_lldp_neighbors 10.64.117.107
/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)
2013-10-24 15:30:10,157 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)
2013-10-24 15:30:10,710 Using JSON library: cjson
2013-10-24 15:30:11,096 Loading PeriodicRegistry
2013-10-24 15:30:11,112 Loading DownloaderRegistry
2013-10-24 15:30:11,187 Loading ProfileRegistry
2013-10-24 15:30:12,557 Loading ScriptRegistry
2013-10-24 15:30:13,351 Setting up 'select' polling method
2013-10-24 15:30:13,353 Activating 'select' poller
2013-10-24 15:30:13,353 Loading private ssh key from 'etc/ssh/id_rsa'
2013-10-24 15:30:13,354 Loading public ssh key from 'etc/ssh/id_rsa.pub'
access_profile {
profile: "Juniper.JUNOS"
scheme: TELNET
address: "10.64.117.107"
user: ""
password: ""
super_password: ""
attrs {
key: "platform"
value: "ex4200-24f"
}
attrs {
key: "vendor"
value: "Juniper"
}
attrs {
key: "version"
value: "11.2R1.2"
}
}
object_name: "10.64.117.107"
script: "Juniper.JUNOS.get_lldp_neighbors"
2013-10-24 15:30:13,376 Running script thread
2013-10-24 15:30:13,377 Running socket factory (SelectPoller)
2013-10-24 15:30:13,378 Creating transaction id=1071676491 method=None callback=None
2013-10-24 15:30:13,390 [Juniper.JUNOS.get_lldp_neighbors(10.64.117.107, 10.64.117.107)] Running
2013-10-24 15:30:13,391 [Juniper.JUNOS.get_lldp_neighbors(10.64.117.107, 10.64.117.107)] Running script: Juniper.JUNOS.get_lldp_neighbors ({})
2013-10-24 15:30:13,392 [Juniper.JUNOS.get_version(10.64.117.107, 10.64.117.107)] Running script: Juniper.JUNOS.get_version ({})
2013-10-24 15:30:13,392 [Juniper.JUNOS.get_version(10.64.117.107, 10.64.117.107)] Not in call cache: 'Juniper.JUNOS.get_version', {}
2013-10-24 15:30:13,392 [Juniper.JUNOS.get_version(10.64.117.107, 10.64.117.107)] cli(show version)
2013-10-24 15:30:13,393 [Juniper.JUNOS.get_lldp_neighbors(10.64.117.107, 10.64.117.107)] Running new provider
2013-10-24 15:30:13,394 [TELNET: 10.64.117.107] ==> START
2013-10-24 15:30:13,394 [TELNET: 10.64.117.107] 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')])
2013-10-24 15:30:13,400 [TELNET: 10.64.117.107] set_timeout(600)
2013-10-24 15:30:13,401 register_socket(<CLITelnetSocket(0x49c6cd0, 10.64.117.107:23, )>,None)
2013-10-24 15:30:14,380 3 TICKS TO EXIT
2013-10-24 15:30:14,380 [TELNET: 10.64.117.107] Initializing socket
2013-10-24 15:30:14,380 [TELNET: 10.64.117.107] Connecting 10.64.117.107:23
2013-10-24 15:30:14,416 [TELNET: 10.64.117.107] Connected
2013-10-24 15:30:14,442 [TELNET: 10.64.117.107] Received IAC DO TTYPE (253 24)
2013-10-24 15:30:14,443 [TELNET: 10.64.117.107] Sending IAC WILL TTYPE (251 24)
2013-10-24 15:30:14,443 [TELNET: 10.64.117.107] Received IAC DO TSPEED (253 32)
2013-10-24 15:30:14,444 [TELNET: 10.64.117.107] Sending IAC WONT TSPEED (252 32)
2013-10-24 15:30:14,444 [TELNET: 10.64.117.107] Received IAC DO XDISPLOC (253 35)
2013-10-24 15:30:14,444 [TELNET: 10.64.117.107] Sending IAC WONT XDISPLOC (252 35)
2013-10-24 15:30:14,444 [TELNET: 10.64.117.107] Received IAC DO NEW_ENVIRON (253 39)
2013-10-24 15:30:14,444 [TELNET: 10.64.117.107] Sending IAC WONT NEW_ENVIRON (252 39)
2013-10-24 15:30:14,445 [TELNET: 10.64.117.107] Received IAC DO OLD_ENVIRON (253 36)
2013-10-24 15:30:14,445 [TELNET: 10.64.117.107] Sending IAC WONT OLD_ENVIRON (252 36)
2013-10-24 15:30:14,453 [TELNET: 10.64.117.107] Received SB '\x18\x01'
2013-10-24 15:30:14,454 [TELNET: 10.64.117.107] Sending SB '\xff\xfa\x18\x00XTERM\xff\xf0'
2013-10-24 15:30:14,471 [TELNET: 10.64.117.107] Received IAC WILL SGA (251 3)
2013-10-24 15:30:14,471 [TELNET: 10.64.117.107] Sending IAC DO SGA (253 3)
2013-10-24 15:30:14,471 [TELNET: 10.64.117.107] Received IAC DO ECHO (253 1)
2013-10-24 15:30:14,471 [TELNET: 10.64.117.107] Sending IAC WILL ECHO (251 1)
2013-10-24 15:30:14,471 [TELNET: 10.64.117.107] Received IAC DO LINEMODE (253 34)
2013-10-24 15:30:14,472 [TELNET: 10.64.117.107] Sending IAC WONT LINEMODE (252 34)
2013-10-24 15:30:14,472 [TELNET: 10.64.117.107] Received IAC DO NAWS (253 31)
2013-10-24 15:30:14,472 [TELNET: 10.64.117.107] Sending IAC WILL NAWS (251 31)
2013-10-24 15:30:14,472 [TELNET: 10.64.117.107] Sending SB '\xff\xfa\x1f\xff\xff\xff\xff\xff\xf0'
2013-10-24 15:30:14,472 [TELNET: 10.64.117.107] Received IAC WILL STATUS (251 5)
2013-10-24 15:30:14,473 [TELNET: 10.64.117.107] Sending IAC DONT STATUS (254 5)
2013-10-24 15:30:14,473 [TELNET: 10.64.117.107] Received IAC DO LFLOW (253 33)
2013-10-24 15:30:14,473 [TELNET: 10.64.117.107] Sending IAC WONT LFLOW (252 33)
2013-10-24 15:30:14,489 [TELNET: 10.64.117.107] Received IAC DONT ECHO (254 1)
2013-10-24 15:30:14,489 [TELNET: 10.64.117.107] Sending IAC WONT ECHO (252 1)
2013-10-24 15:30:14,489 [TELNET: 10.64.117.107] Received IAC WILL ECHO (251 1)
2013-10-24 15:30:14,489 [TELNET: 10.64.117.107] Sending IAC DO ECHO (253 1)
2013-10-24 15:30:14,498 [TELNET: 10.64.117.107] on_read: '\r\r\nasw2-0-vol (ttyp0)\r\r\n\r\r\n'
2013-10-24 15:30:14,546 [TELNET: 10.64.117.107] on_read: 'login: '
2013-10-24 15:30:14,546 [TELNET: 10.64.117.107] Starting synchronous FSM check
2013-10-24 15:30:14,546 [TELNET: 10.64.117.107] match '([Uu]sername|[Ll]ogin):'
2013-10-24 15:30:14,547 [TELNET: 10.64.117.107] event(USERNAME)
2013-10-24 15:30:14,547 [TELNET: 10.64.117.107] ==> USERNAME
2013-10-24 15:30:14,547 [TELNET: 10.64.117.107] set_patterns([('[Pp]assword:', 'PASSWORD'), ('^(({master(?::\\d+)}\\n)?\\S+>)|(({master(?::\\d+)})?\\[edit.*?\\]\\n\\S+#)|(\\[Type \\^D at a new line to end input\\])', 'PROMPT')])
2013-10-24 15:30:14,547 [TELNET: 10.64.117.107] submit(u'', bulk_lines=None, streaming=False)
2013-10-24 15:30:14,557 [TELNET: 10.64.117.107] on_read: '\r\n'
2013-10-24 15:30:14,605 [TELNET: 10.64.117.107] on_read: 'Password:'
2013-10-24 15:30:14,605 [TELNET: 10.64.117.107] Starting synchronous FSM check
2013-10-24 15:30:14,606 [TELNET: 10.64.117.107] match '[Pp]assword:'
2013-10-24 15:30:14,606 [TELNET: 10.64.117.107] event(PASSWORD)
2013-10-24 15:30:14,606 [TELNET: 10.64.117.107] ==> PASSWORD
2013-10-24 15:30:14,606 [TELNET: 10.64.117.107] 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')])
2013-10-24 15:30:14,607 [TELNET: 10.64.117.107] submit(u'', bulk_lines=None, streaming=False)
2013-10-24 15:30:14,616 [TELNET: 10.64.117.107] on_read: '\r\n'
2013-10-24 15:30:14,812 [TELNET: 10.64.117.107] on_read: '\r\n'
2013-10-24 15:30:14,820 [TELNET: 10.64.117.107] on_read: '--- JUNOS 11.2R1.2 built 2011-06-22 02:55:58 UTC\r\n'
2013-10-24 15:30:15,068 [TELNET: 10.64.117.107] on_read: '{master:0}\r\n'
2013-10-24 15:30:15,076 [TELNET: 10.64.117.107] on_read: 'admin@asw2-0-vol> '
2013-10-24 15:30:15,076 [TELNET: 10.64.117.107] Starting synchronous FSM check
2013-10-24 15:30:15,076 [TELNET: 10.64.117.107] match '^(({master(?::\d+)}\n)?\S+>)|(({master(?::\d+)})?\[edit.*?\]\n\S+#)|(\[Type \^D at a new line to end input\])'
2013-10-24 15:30:15,077 [TELNET: 10.64.117.107] event(PROMPT)
2013-10-24 15:30:15,077 [TELNET: 10.64.117.107] ==> PROMPT
2013-10-24 15:30:15,077 [TELNET: 10.64.117.107] on_PROMPT_enter
2013-10-24 15:30:15,077 [TELNET: 10.64.117.107] Using prompt pattern: ^(({master(?::\d+)}\n)?\S+>)|(({master(?::\d+)})?\[edit.*?\]\n\S+#)|(\[Type \^D at a new line to end input\])
2013-10-24 15:30:15,077 [TELNET: 10.64.117.107] set_patterns([('^(({master(?::\\d+)}\\n)?\\S+>)|(({master(?::\\d+)})?\\[edit.*?\\]\\n\\S+#)|(\\[Type \\^D at a new line to end input\\])', 'PROMPT'), ('(^---\\(more.*?\\)---)', 'PAGER')])
2013-10-24 15:30:15,118 [Juniper.JUNOS.get_lldp_neighbors(10.64.117.107, 10.64.117.107)] CLI Provider is ready
2013-10-24 15:30:15,119 [Juniper.JUNOS.get_lldp_neighbors(10.64.117.107, 10.64.117.107)] Disable paging
2013-10-24 15:30:15,119 [Juniper.JUNOS.get_lldp_neighbors(10.64.117.107, 10.64.117.107)] cli(set cli screen-length 0)
2013-10-24 15:30:15,119 [TELNET: 10.64.117.107] submit('set cli screen-length 0', bulk_lines=None, streaming=False)
2013-10-24 15:30:16,092 [TELNET: 10.64.117.107] on_read: 's'
2013-10-24 15:30:16,100 [TELNET: 10.64.117.107] on_read: 'et cli screen-length 0 \r\n'
2013-10-24 15:30:16,108 [TELNET: 10.64.117.107] on_read: 'Screen length set to 0\r\n\r\n{master:0}\r\nadmin@asw2-0-vol> '
2013-10-24 15:30:16,108 [TELNET: 10.64.117.107] Starting synchronous FSM check
2013-10-24 15:30:16,109 [TELNET: 10.64.117.107] match '^(({master(?::\d+)}\n)?\S+>)|(({master(?::\d+)})?\[edit.*?\]\n\S+#)|(\[Type \^D at a new line to end input\])'
2013-10-24 15:30:16,109 [TELNET: 10.64.117.107] Starting synchronous FSM check
2013-10-24 15:30:16,109 [TELNET: 10.64.117.107] event(PROMPT)
2013-10-24 15:30:16,120 [Juniper.JUNOS.get_lldp_neighbors(10.64.117.107, 10.64.117.107)] cli(set cli screen-length 0) returns:
===[ set cli screen-length 0 ]==========================================
' \nScreen length set to 0\n\n'
========================================================================
2013-10-24 15:30:16,120 [TELNET: 10.64.117.107] submit('show version', bulk_lines=None, streaming=False)
2013-10-24 15:30:17,124 [TELNET: 10.64.117.107] on_read: 's'
2013-10-24 15:30:17,138 [TELNET: 10.64.117.107] on_read: 'how version \r\n'
2013-10-24 15:30:17,373 [TELNET: 10.64.117.107] on_read: 'fpc0:\r\n'
2013-10-24 15:30:17,396 [TELNET: 10.64.117.107] on_read: '--------------------------------------------------------------------------\r\nHostname: asw2-0-vol\r\nModel: ex4200-24f\r\nJUNOS Base OS boot [11.2R1.2]\r\nJUNOS Base OS Software Suite [11.2R1.2]\r\nJUNOS Kernel Software Suite [11.2R1.2]\r\nJUNOS Crypto Software Suite [11.2R1.2]\r\nJUNOS Online Documentation [11.2R1.2]\r\nJUNOS Enterprise Software Suite [11.2R1.2]\r\nJUNOS Packet Forwarding Engine Enterprise Software Suite [11.2R1.2]\r\nJUNOS Routing Software Suite [11.2R1.2]\r\nJUNOS Web Management [11.2R1.2]\r\n\r\n{master:0}\r\nadmin@asw2-0-vol> '
2013-10-24 15:30:17,396 [TELNET: 10.64.117.107] Starting synchronous FSM check
2013-10-24 15:30:17,397 [TELNET: 10.64.117.107] match '^(({master(?::\d+)}\n)?\S+>)|(({master(?::\d+)})?\[edit.*?\]\n\S+#)|(\[Type \^D at a new line to end input\])'
2013-10-24 15:30:17,397 [TELNET: 10.64.117.107] Starting synchronous FSM check
2013-10-24 15:30:17,397 [TELNET: 10.64.117.107] event(PROMPT)
2013-10-24 15:30:17,436 [Juniper.JUNOS.get_version(10.64.117.107, 10.64.117.107)] cli(show version) returns:
===[ show version ]=====================================================
' \nfpc0:\n--------------------------------------------------------------------------\nHostname: asw2-0-vol\nModel: ex4200-24f\nJUNOS Base OS boot [11.2R1.2]\nJUNOS Base OS Software Suite [11.2R1.2]\nJUNOS Kernel Software Suite [11.2R1.2]\nJUNOS Crypto Software Suite [11.2R1.2]\nJUNOS Online Documentation [11.2R1.2]\nJUNOS Enterprise Software Suite [11.2R1.2]\nJUNOS Packet Forwarding Engine Enterprise Software Suite [11.2R1.2]\nJUNOS Routing Software Suite [11.2R1.2]\nJUNOS Web Management [11.2R1.2]\n\n'
========================================================================
2013-10-24 15:30:17,436 [Juniper.JUNOS.get_version(10.64.117.107, 10.64.117.107)] Write to call cache: Juniper.JUNOS.get_version, {}, {'platform': 'ex4200-24f', 'version': '11.2R1.2', 'vendor': 'Juniper'}
2013-10-24 15:30:17,437 [Juniper.JUNOS.get_version(10.64.117.107, 10.64.117.107)] Script returns with result: {'platform': 'ex4200-24f', 'version': '11.2R1.2', 'vendor': 'Juniper'}
2013-10-24 15:30:17,437 [Juniper.JUNOS.get_lldp_neighbors(10.64.117.107, 10.64.117.107)] cli(show lldp local-information)
2013-10-24 15:30:17,437 [TELNET: 10.64.117.107] submit('show lldp local-information', bulk_lines=None, streaming=False)
2013-10-24 15:30:18,409 [TELNET: 10.64.117.107] on_read: 'show'
2013-10-24 15:30:18,420 [TELNET: 10.64.117.107] on_read: ' lldp local-information \r\n'
2013-10-24 15:30:18,430 [TELNET: 10.64.117.107] on_read: '\r\nLLDP Local Information details\r\n\r\nChassis ID : f8:c0:01:c5:31:00\r\nSystem name : asw2-0-vol\r\nSystem descr : Juniper Networks, Inc. ex4200-24f , version 11.2R1.2 Build date:\r\n 2011-06-22 03:26:13 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/0.0 - 505 -C- | OAO_Saratovenergo/Optical_link_reserve | Up Disabled \r\nge-0/0/23.0 - 551 ge-0/0/23.0 Down Disabled \r\nxe-0/1/0.0 - 554 xe-0/1/0.0 Up Disabled \r\nxe-0/1/2.0 - 558 xe-0/1/2.0 Up Disabled \r\nge-0/0/1.0 - 507 -C- | OAO_Saratovenergo/Optical_link_basik | Down Disabled \r\nge-0/0/11.0 - 527 -C- | fsw-2-Komsomolskaya-107-0-vol | Up Disabled \r\nge-0/0/12.0 - 529 -C- | fsw-2-Komsomolskaya-103-0-vol | Up Disabled \r\nge-0/0/10.0 - 525 -C- | fsw-2-Krasnogvardeyskaya-54-0-vol | Up Disabled \r\n\r\n{master:0}\r\nadmin@asw2-0-vol> '
2013-10-24 15:30:18,431 [TELNET: 10.64.117.107] Starting synchronous FSM check
2013-10-24 15:30:18,431 [TELNET: 10.64.117.107] match '^(({master(?::\d+)}\n)?\S+>)|(({master(?::\d+)})?\[edit.*?\]\n\S+#)|(\[Type \^D at a new line to end input\])'
2013-10-24 15:30:18,431 [TELNET: 10.64.117.107] Starting synchronous FSM check
2013-10-24 15:30:18,432 [TELNET: 10.64.117.107] event(PROMPT)
2013-10-24 15:30:18,437 [Juniper.JUNOS.get_lldp_neighbors(10.64.117.107, 10.64.117.107)] cli(show lldp local-information) returns:
===[ show lldp local-information ]======================================
' \n\nLLDP Local Information details\n\nChassis ID : f8:c0:01:c5:31:00\nSystem name : asw2-0-vol\nSystem descr : Juniper Networks, Inc. ex4200-24f , version 11.2R1.2 Build date:\n 2011-06-22 03:26:13 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/0.0 - 505 -C- | OAO_Saratovenergo/Optical_link_reserve | Up Disabled \nge-0/0/23.0 - 551 ge-0/0/23.0 Down Disabled \nxe-0/1/0.0 - 554 xe-0/1/0.0 Up Disabled \nxe-0/1/2.0 - 558 xe-0/1/2.0 Up Disabled \nge-0/0/1.0 - 507 -C- | OAO_Saratovenergo/Optical_link_basik | Down Disabled \nge-0/0/11.0 - 527 -C- | fsw-2-Komsomolskaya-107-0-vol | Up Disabled \nge-0/0/12.0 - 529 -C- | fsw-2-Komsomolskaya-103-0-vol | Up Disabled \nge-0/0/10.0 - 525 -C- | fsw-2-Krasnogvardeyskaya-54-0-vol | Up Disabled \n\n'
========================================================================
2013-10-24 15:30:18,438 [Juniper.JUNOS.get_lldp_neighbors(10.64.117.107, 10.64.117.107)] cli(show lldp neighbors)
2013-10-24 15:30:18,438 [TELNET: 10.64.117.107] submit('show lldp neighbors', bulk_lines=None, streaming=False)
2013-10-24 15:30:19,445 [TELNET: 10.64.117.107] on_read: 'show'
2013-10-24 15:30:19,458 [TELNET: 10.64.117.107] on_read: ' lldp neighbors \r\n'
2013-10-24 15:30:19,467 [TELNET: 10.64.117.107] on_read: 'Local Interface Parent Interface Chassis Id Port info System Name\r\nge-0/0/10.0 - 00:1f:ce:5e:4f:77 25 fsw-2-Krasnogvardeyskaya-54-0-vol\r\nge-0/0/12.0 - 00:1f:ce:5e:4f:9b 25 fsw-2-Komsomolskaya-103-0-vol\r\nge-0/0/11.0 - 00:1f:ce:5e:4f:bb 25 fsw-2-Komsomolskaya-107-0-vol\r\nxe-0/1/0.0 - 08:19:a6:9a:88:02 -M- | asw2-0-vol_xe-0/1/0 | asw-0-vol \r\nxe-0/1/2.0 - f8:c0:01:c5:21:80 xe-0/1/0.0 asw2-001-vol \r\n\r\n{master:0}\r\nadmin@asw2-0-vol> '
2013-10-24 15:30:19,468 [TELNET: 10.64.117.107] Starting synchronous FSM check
2013-10-24 15:30:19,468 [TELNET: 10.64.117.107] match '^(({master(?::\d+)}\n)?\S+>)|(({master(?::\d+)})?\[edit.*?\]\n\S+#)|(\[Type \^D at a new line to end input\])'
2013-10-24 15:30:19,468 [TELNET: 10.64.117.107] Starting synchronous FSM check
2013-10-24 15:30:19,468 [TELNET: 10.64.117.107] event(PROMPT)
2013-10-24 15:30:19,470 [Juniper.JUNOS.get_lldp_neighbors(10.64.117.107, 10.64.117.107)] cli(show lldp neighbors) returns:
===[ show lldp neighbors ]==============================================
' \nLocal Interface Parent Interface Chassis Id Port info System Name\nge-0/0/10.0 - 00:1f:ce:5e:4f:77 25 fsw-2-Krasnogvardeyskaya-54-0-vol\nge-0/0/12.0 - 00:1f:ce:5e:4f:9b 25 fsw-2-Komsomolskaya-103-0-vol\nge-0/0/11.0 - 00:1f:ce:5e:4f:bb 25 fsw-2-Komsomolskaya-107-0-vol\nxe-0/1/0.0 - 08:19:a6:9a:88:02 -M- | asw2-0-vol_xe-0/1/0 | asw-0-vol \nxe-0/1/2.0 - f8:c0:01:c5:21:80 xe-0/1/0.0 asw2-001-vol \n\n'
========================================================================
2013-10-24 15:30:19,471 [Juniper.JUNOS.get_lldp_neighbors(10.64.117.107, 10.64.117.107)] cli(show lldp neighbors interface ge-0/0/10.0)
2013-10-24 15:30:19,471 [TELNET: 10.64.117.107] submit('show lldp neighbors interface ge-0/0/10.0', bulk_lines=None, streaming=False)
2013-10-24 15:30:20,478 [TELNET: 10.64.117.107] on_read: 'show'
2013-10-24 15:30:20,491 [TELNET: 10.64.117.107] on_read: ' lldp neighbors interface ge-0/0/10.0'
2013-10-24 15:30:20,553 [TELNET: 10.64.117.107] on_read: ' '
2013-10-24 15:30:20,563 [TELNET: 10.64.117.107] on_read: '\r\nLLDP Neighbor Information:\r\nLocal Information:\r\nIndex: 15 Time to live: 120 Time mark: Thu Oct 24 11:30:09 2013 Age: 11 secs \r\nLocal Interface : ge-0/0/10.0\r\nParent Interface : -\r\nLocal Port ID : 525\r\nAgeout Count : 1\r\n\r\nNeighbour Information:\r\nChassis type : Mac address\r\nChassis ID : 00:1f:ce:5e:4f:77\r\nPort type : Locally assigned\r\nPort ID : 25\r\nSystem name : fsw-2-Krasnogvardeyskaya-54-0-vol\r\n\r\n{master:0}\r\nadmin@asw2-0-vol> '
2013-10-24 15:30:20,564 [TELNET: 10.64.117.107] Starting synchronous FSM check
2013-10-24 15:30:20,564 [TELNET: 10.64.117.107] match '^(({master(?::\d+)}\n)?\S+>)|(({master(?::\d+)})?\[edit.*?\]\n\S+#)|(\[Type \^D at a new line to end input\])'
2013-10-24 15:30:20,564 [TELNET: 10.64.117.107] Starting synchronous FSM check
2013-10-24 15:30:20,564 [TELNET: 10.64.117.107] event(PROMPT)
2013-10-24 15:30:20,586 [Juniper.JUNOS.get_lldp_neighbors(10.64.117.107, 10.64.117.107)] cli(show lldp neighbors interface ge-0/0/10.0) returns:
===[ show lldp neighbors interface ge-0/0/10.0 ]========================
' \nLLDP Neighbor Information:\nLocal Information:\nIndex: 15 Time to live: 120 Time mark: Thu Oct 24 11:30:09 2013 Age: 11 secs \nLocal Interface : ge-0/0/10.0\nParent Interface : -\nLocal Port ID : 525\nAgeout Count : 1\n\nNeighbour Information:\nChassis type : Mac address\nChassis ID : 00:1f:ce:5e:4f:77\nPort type : Locally assigned\nPort ID : 25\nSystem name : fsw-2-Krasnogvardeyskaya-54-0-vol\n\n'
========================================================================
2013-10-24 15:30:27,492 [Juniper.JUNOS.get_lldp_neighbors(10.64.117.107, 10.64.117.107)] Unhandled exception
2013-10-24 15:30:27,506 [Juniper.JUNOS.get_lldp_neighbors(10.64.117.107, 10.64.117.107)] Script traceback:
<class 'noc.sa.script.exception.UnexpectedResultError'>
START OF TRACEBACK
------------------------------------------------------------------------
File: /opt/noc/sa/script/script.py (Line: 960)
Function: re_search
953 Returns match object.
954 rx can be string or compiled regular expression
955 """
956 if isinstance(rx, basestring):
957 rx = re.compile(rx, flags)
958 match = rx.search(s)
959 if match is None:
960 ==> raise self.UnexpectedResultError()
961 return match
962
963 def re_match(self, rx, s, flags=0):
964 """
965 Match s against regular expression rx using re.match
966 Raise UnexpectedResultError if regular expression is not matched.
Variables:
rx = <_sre.SRE_Pattern object at 0x2891610>
s =
' \nLLDP Neighbor Information:\nLocal Information:\nIndex: 15 Time to live: 120 Time mark: Thu Oct 24 11:30:09 2013 Age: 11 secs \nLocal Interface : ge-0/0/10.0\nParent Interface : -\nLocal Port ID : 525\nAgeout Count : 1\n\nNeighbour Information:\nChassis type : Mac address\nChassis ID : 00:1f:ce:5e:4f:77\nPort type : Locally assigned\nPort ID : 25\nSystem name : fsw-2-Krasnogvardeyskaya-54-0-vol\n\n'
flags = 0
self = <Script(Thread-2, started 139912196777728)>
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': 'ge-0/0/10.0', 'neighbors': []},
{'local_interface': 'ge-0/0/12.0', 'neighbors': []},
{'local_interface': 'ge-0/0/11.0', 'neighbors': []},
{'local_interface': 'xe-0/1/0.0', 'neighbors': []},
{'local_interface': 'xe-0/1/2.0', 'neighbors': []}]
i = {'neighbors': [], 'local_interface': 'ge-0/0/10.0'}
self = <Script(Thread-2, started 139912196777728)>
local_port_ids = {}
r = []
v =
' \nLLDP Neighbor Information:\nLocal Information:\nIndex: 15 Time to live: 120 Time mark: Thu Oct 24 11:30:09 2013 Age: 11 secs \nLocal Interface : ge-0/0/10.0\nParent Interface : -\nLocal Port ID : 525\nAgeout Count : 1\n\nNeighbour Information:\nChassis type : Mac address\nChassis ID : 00:1f:ce:5e:4f:77\nPort type : Locally assigned\nPort ID : 25\nSystem name : fsw-2-Krasnogvardeyskaya-54-0-vol\n\n'
match = <_sre.SRE_Match object at 0x49c2a08>
------------------------------------------------------------------------
File: /opt/noc/sa/script/script.py (Line: 512)
Function: execute
505 """
506 if self._execute_chain and not self.name.endswith(".get_version"):
507 # Get version information
508 v = self.scripts.get_version()
509 # Find and execute proper handler
510 for c, f in self._execute_chain:
511 if c(self, v):
512 ==> return f(self, **kwargs)
513 # Raise error
514 raise NotSupportedError()
515
516 def cli_queue_get(self):
517 """
518 Request CLI provider's queue
Variables:
kwargs = {}
c = <function <lambda> at 0x2828c80>
v = {'platform': 'ex4200-24f', 'version': '11.2R1.2', 'vendor': 'Juniper'}
self = <Script(Thread-2, started 139912196777728)>
f = <function execute_ex at 0x2828b90>
------------------------------------------------------------------------
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 0x282b690>
self = <Script(Thread-2, started 139912196777728)>
------------------------------------------------------------------------
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 139912196777728)>
r = ["<class 'noc.sa.script.exception.UnexpectedResultError'>", '']
result = None
v = UnexpectedResultError()
tb = <traceback object at 0x49ca488>
t = <class 'noc.sa.script.exception.UnexpectedResultError'>
------------------------------------------------------------------------
END OF TRACEBACK
2013-10-24 15:30:27,511 [Juniper.JUNOS.get_lldp_neighbors(10.64.117.107, 10.64.117.107)] Closing
2013-10-24 15:30:27,511 Requesting call: <bound method CLITelnetSocket.close of <CLITelnetSocket(0x49c6cd0, 10.64.117.107:23, connected)>>(*(), **{'flush': True})
2013-10-24 15:30:28,493 Calling delayed <bound method CLITelnetSocket.close of <CLITelnetSocket(0x49c6cd0, 10.64.117.107:23, connected)>>(*(), **{'flush': True})
2013-10-24 15:30:28,493 [TELNET: 10.64.117.107] Closing socket
2013-10-24 15:30:28,494 unregister_socket(<CLITelnetSocket(0x49c6cd0, 10.64.117.107:23, closing)>)
2013-10-24 15:30:28,494 3 TICKS TO EXIT
2013-10-24 15:30:29,495 2 TICKS TO EXIT
2013-10-24 15:30:30,495 1 TICKS TO EXIT
2013-10-24 15:30:31,497 EXIT
2013-10-24 15:30:31,497 Shutting down the factory
2013-10-24 15:30:31,497 0 TICKS TO EXIT
2013-10-24 15:30:31,497 Stopping socket factory