Advertisement
Guest User

Untitled

a guest
Jan 28th, 2014
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 35.35 KB | None | 0 0
  1. └─[$] <> ./noc debug-script get_lldp_neighbors jsw01-vil-ltc -o /tmp/4200EX
  2. /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.
  3. _warn("Not using mpz_powm_sec. You should rebuild using libgmp >= 5 to avoid timing attack vulnerability.", PowmInsecureWarning)
  4. 2014-01-28 15:39:06,925 SSH: Using gmpy
  5. /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.
  6. DeprecationWarning)
  7. 2014-01-28 15:39:07,126 Using JSON library: cjson
  8. 2014-01-28 15:39:07,312 Loading PeriodicRegistry
  9. 2014-01-28 15:39:07,320 Loading DownloaderRegistry
  10. 2014-01-28 15:39:07,360 Loading ProfileRegistry
  11. 2014-01-28 15:39:08,189 Loading ScriptRegistry
  12. 2014-01-28 15:39:08,581 Setting up 'select' polling method
  13. 2014-01-28 15:39:08,582 Activating 'select' poller
  14. 2014-01-28 15:39:08,582 Loading private ssh key from 'etc/ssh/id_rsa'
  15. 2014-01-28 15:39:08,582 Loading public ssh key from 'etc/ssh/id_rsa.pub'
  16. access_profile {
  17. profile: "Juniper.JUNOS"
  18. scheme: TELNET
  19. address: "10.12.165.20"
  20. user: "noc"
  21. password: "rere:tyth"
  22. super_password: "rere:tyth"
  23. path: "jsw01-vil-ltc"
  24. attrs {
  25. key: "platform"
  26. value: "ex4200-24f"
  27. }
  28. attrs {
  29. key: "vendor"
  30. value: "Juniper"
  31. }
  32. attrs {
  33. key: "version"
  34. value: "11.4R1.6"
  35. }
  36. }
  37. object_name: "jsw01-vil-ltc"
  38. script: "Juniper.JUNOS.get_lldp_neighbors"
  39.  
  40. 2014-01-28 15:39:08,586 Running script thread
  41. 2014-01-28 15:39:08,586 Running socket factory (SelectPoller)
  42. 2014-01-28 15:39:08,586 Creating transaction id=1755549032 method=None callback=None
  43. 2014-01-28 15:39:08,588 [Juniper.JUNOS.get_lldp_neighbors(jsw01-vil-ltc, 10.12.165.20)] Running
  44. 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 ({})
  45. 2014-01-28 15:39:08,589 [Juniper.JUNOS.get_version(jsw01-vil-ltc, 10.12.165.20)] Running script: Juniper.JUNOS.get_version ({})
  46. 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', {}
  47. 2014-01-28 15:39:08,589 [Juniper.JUNOS.get_version(jsw01-vil-ltc, 10.12.165.20)] cli(show version)
  48. 2014-01-28 15:39:08,589 [Juniper.JUNOS.get_lldp_neighbors(jsw01-vil-ltc, 10.12.165.20)] Running new provider
  49. 2014-01-28 15:39:08,590 [TELNET: 10.12.165.20] ==> START
  50. 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')])
  51. 2014-01-28 15:39:08,592 [TELNET: 10.12.165.20] set_timeout(600)
  52. 2014-01-28 15:39:08,592 register_socket(<CLITelnetSocket(0x4be9110, 10.12.165.20:23, )>,None)
  53. 2014-01-28 15:39:09,588 Tick
  54. 2014-01-28 15:39:09,588 3 TICKS TO EXIT
  55. 2014-01-28 15:39:09,588 [TELNET: 10.12.165.20] Initializing socket
  56. 2014-01-28 15:39:09,588 [TELNET: 10.12.165.20] Connecting 10.12.165.20:23
  57. 2014-01-28 15:39:09,608 [TELNET: 10.12.165.20] Connected
  58. 2014-01-28 15:39:09,641 [TELNET: 10.12.165.20] Received IAC DO TTYPE (253 24)
  59. 2014-01-28 15:39:09,641 [TELNET: 10.12.165.20] Sending IAC WILL TTYPE (251 24)
  60. 2014-01-28 15:39:09,641 [TELNET: 10.12.165.20] Received IAC DO TSPEED (253 32)
  61. 2014-01-28 15:39:09,642 [TELNET: 10.12.165.20] Sending IAC WONT TSPEED (252 32)
  62. 2014-01-28 15:39:09,642 [TELNET: 10.12.165.20] Received IAC DO XDISPLOC (253 35)
  63. 2014-01-28 15:39:09,642 [TELNET: 10.12.165.20] Sending IAC WONT XDISPLOC (252 35)
  64. 2014-01-28 15:39:09,642 [TELNET: 10.12.165.20] Received IAC DO NEW_ENVIRON (253 39)
  65. 2014-01-28 15:39:09,642 [TELNET: 10.12.165.20] Sending IAC WONT NEW_ENVIRON (252 39)
  66. 2014-01-28 15:39:09,642 [TELNET: 10.12.165.20] Received IAC DO OLD_ENVIRON (253 36)
  67. 2014-01-28 15:39:09,642 [TELNET: 10.12.165.20] Sending IAC WONT OLD_ENVIRON (252 36)
  68. 2014-01-28 15:39:09,653 [TELNET: 10.12.165.20] Received SB '\x18\x01'
  69. 2014-01-28 15:39:09,653 [TELNET: 10.12.165.20] Sending SB '\xff\xfa\x18\x00XTERM\xff\xf0'
  70. 2014-01-28 15:39:09,675 [TELNET: 10.12.165.20] Received IAC WILL SGA (251 3)
  71. 2014-01-28 15:39:09,675 [TELNET: 10.12.165.20] Sending IAC DO SGA (253 3)
  72. 2014-01-28 15:39:09,676 [TELNET: 10.12.165.20] Received IAC DO ECHO (253 1)
  73. 2014-01-28 15:39:09,676 [TELNET: 10.12.165.20] Sending IAC WILL ECHO (251 1)
  74. 2014-01-28 15:39:09,676 [TELNET: 10.12.165.20] Received IAC DO LINEMODE (253 34)
  75. 2014-01-28 15:39:09,676 [TELNET: 10.12.165.20] Sending IAC WONT LINEMODE (252 34)
  76. 2014-01-28 15:39:09,676 [TELNET: 10.12.165.20] Received IAC DO NAWS (253 31)
  77. 2014-01-28 15:39:09,676 [TELNET: 10.12.165.20] Sending IAC WILL NAWS (251 31)
  78. 2014-01-28 15:39:09,676 [TELNET: 10.12.165.20] Sending SB '\xff\xfa\x1f\xff\xff\xff\xff\xff\xf0'
  79. 2014-01-28 15:39:09,676 [TELNET: 10.12.165.20] Received IAC WILL STATUS (251 5)
  80. 2014-01-28 15:39:09,676 [TELNET: 10.12.165.20] Sending IAC DONT STATUS (254 5)
  81. 2014-01-28 15:39:09,676 [TELNET: 10.12.165.20] Received IAC DO LFLOW (253 33)
  82. 2014-01-28 15:39:09,677 [TELNET: 10.12.165.20] Sending IAC WONT LFLOW (252 33)
  83. 2014-01-28 15:39:09,690 [TELNET: 10.12.165.20] Received IAC DONT ECHO (254 1)
  84. 2014-01-28 15:39:09,691 [TELNET: 10.12.165.20] Sending IAC WONT ECHO (252 1)
  85. 2014-01-28 15:39:09,691 [TELNET: 10.12.165.20] Received IAC WILL ECHO (251 1)
  86. 2014-01-28 15:39:09,691 [TELNET: 10.12.165.20] Sending IAC DO ECHO (253 1)
  87. 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'
  88. 2014-01-28 15:39:09,752 [TELNET: 10.12.165.20] on_read: 'login: '
  89. 2014-01-28 15:39:09,752 [TELNET: 10.12.165.20] Starting synchronous FSM check
  90. 2014-01-28 15:39:09,752 [TELNET: 10.12.165.20] match '([Uu]sername|[Ll]ogin):'
  91. 2014-01-28 15:39:09,752 [TELNET: 10.12.165.20] event(USERNAME)
  92. 2014-01-28 15:39:09,752 [TELNET: 10.12.165.20] ==> USERNAME
  93. 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')])
  94. 2014-01-28 15:39:09,752 [TELNET: 10.12.165.20] submit(u'noc', bulk_lines=None, streaming=False)
  95. 2014-01-28 15:39:09,762 [TELNET: 10.12.165.20] on_read: 'noc\r\n'
  96. 2014-01-28 15:39:09,813 [TELNET: 10.12.165.20] on_read: 'Password:'
  97. 2014-01-28 15:39:09,813 [TELNET: 10.12.165.20] Starting synchronous FSM check
  98. 2014-01-28 15:39:09,813 [TELNET: 10.12.165.20] match '[Pp]assword:'
  99. 2014-01-28 15:39:09,814 [TELNET: 10.12.165.20] event(PASSWORD)
  100. 2014-01-28 15:39:09,814 [TELNET: 10.12.165.20] ==> PASSWORD
  101. 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')])
  102. 2014-01-28 15:39:09,814 [TELNET: 10.12.165.20] submit(u'rere:tyth', bulk_lines=None, streaming=False)
  103. 2014-01-28 15:39:09,825 [TELNET: 10.12.165.20] on_read: '\r\n'
  104. 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'
  105. 2014-01-28 15:39:10,168 [TELNET: 10.12.165.20] on_read: '{master:0}\r\n'
  106. 2014-01-28 15:39:10,178 [TELNET: 10.12.165.20] on_read: 'noc@jsw01-vil-ltc> '
  107. 2014-01-28 15:39:10,178 [TELNET: 10.12.165.20] Starting synchronous FSM check
  108. 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\])'
  109. 2014-01-28 15:39:10,178 [TELNET: 10.12.165.20] event(PROMPT)
  110. 2014-01-28 15:39:10,178 [TELNET: 10.12.165.20] ==> PROMPT
  111. 2014-01-28 15:39:10,178 [TELNET: 10.12.165.20] on_PROMPT_enter
  112. 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\])
  113. 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')])
  114. 2014-01-28 15:39:10,214 [Juniper.JUNOS.get_lldp_neighbors(jsw01-vil-ltc, 10.12.165.20)] CLI Provider is ready
  115. 2014-01-28 15:39:10,215 [Juniper.JUNOS.get_lldp_neighbors(jsw01-vil-ltc, 10.12.165.20)] Disable paging
  116. 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)
  117. 2014-01-28 15:39:10,215 [TELNET: 10.12.165.20] submit('set cli screen-length 0', bulk_lines=None, streaming=False)
  118. 2014-01-28 15:39:11,180 Tick
  119. 2014-01-28 15:39:11,180 Resetting wait ticks
  120. 2014-01-28 15:39:11,192 [TELNET: 10.12.165.20] on_read: 's'
  121. 2014-01-28 15:39:11,205 [TELNET: 10.12.165.20] on_read: 'et cli screen-length 0 \r\n'
  122. 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> '
  123. 2014-01-28 15:39:11,217 [TELNET: 10.12.165.20] Starting synchronous FSM check
  124. 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\])'
  125. 2014-01-28 15:39:11,217 [TELNET: 10.12.165.20] Starting synchronous FSM check
  126. 2014-01-28 15:39:11,217 [TELNET: 10.12.165.20] event(PROMPT)
  127. 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:
  128. ===[ set cli screen-length 0 ]==========================================
  129. ' \nScreen length set to 0\n\n'
  130. ========================================================================
  131. 2014-01-28 15:39:11,219 [TELNET: 10.12.165.20] submit('show version', bulk_lines=None, streaming=False)
  132. 2014-01-28 15:39:12,218 Tick
  133. 2014-01-28 15:39:12,219 Resetting wait ticks
  134. 2014-01-28 15:39:12,231 [TELNET: 10.12.165.20] on_read: 'show'
  135. 2014-01-28 15:39:12,243 [TELNET: 10.12.165.20] on_read: ' version '
  136. 2014-01-28 15:39:12,256 [TELNET: 10.12.165.20] on_read: '\r\n'
  137. 2014-01-28 15:39:12,469 [TELNET: 10.12.165.20] on_read: 'fpc0:\r\n--------------------------------------------------------------------------\r\n'
  138. 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'
  139. 2014-01-28 15:39:12,493 [TELNET: 10.12.165.20] on_read: '\r\n{master:0}\r\nnoc@jsw01-vil-ltc> '
  140. 2014-01-28 15:39:12,494 [TELNET: 10.12.165.20] Starting synchronous FSM check
  141. 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\])'
  142. 2014-01-28 15:39:12,494 [TELNET: 10.12.165.20] Starting synchronous FSM check
  143. 2014-01-28 15:39:12,494 [TELNET: 10.12.165.20] event(PROMPT)
  144. 2014-01-28 15:39:12,534 [Juniper.JUNOS.get_version(jsw01-vil-ltc, 10.12.165.20)] cli(show version) returns:
  145. ===[ show version ]=====================================================
  146. ' \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'
  147. ========================================================================
  148. 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'}
  149. 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'}
  150. 2014-01-28 15:39:12,534 [Juniper.JUNOS.get_lldp_neighbors(jsw01-vil-ltc, 10.12.165.20)] cli(show lldp local-information)
  151. 2014-01-28 15:39:12,535 [TELNET: 10.12.165.20] submit('show lldp local-information', bulk_lines=None, streaming=False)
  152. 2014-01-28 15:39:13,495 Tick
  153. 2014-01-28 15:39:13,496 Resetting wait ticks
  154. 2014-01-28 15:39:13,507 [TELNET: 10.12.165.20] on_read: 'show'
  155. 2014-01-28 15:39:13,522 [TELNET: 10.12.165.20] on_read: ' lldp local-information \r\n'
  156. 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'
  157. 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> '
  158. 2014-01-28 15:39:13,545 [TELNET: 10.12.165.20] Starting synchronous FSM check
  159. 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\])'
  160. 2014-01-28 15:39:13,545 [TELNET: 10.12.165.20] Starting synchronous FSM check
  161. 2014-01-28 15:39:13,545 [TELNET: 10.12.165.20] event(PROMPT)
  162. 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:
  163. ===[ show lldp local-information ]======================================
  164. ' \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'
  165. ========================================================================
  166. 2014-01-28 15:39:13,551 [Juniper.JUNOS.get_lldp_neighbors(jsw01-vil-ltc, 10.12.165.20)] cli(show lldp neighbors)
  167. 2014-01-28 15:39:13,551 [TELNET: 10.12.165.20] submit('show lldp neighbors', bulk_lines=None, streaming=False)
  168. 2014-01-28 15:39:14,547 Tick
  169. 2014-01-28 15:39:14,547 Resetting wait ticks
  170. 2014-01-28 15:39:14,560 [TELNET: 10.12.165.20] on_read: 'show'
  171. 2014-01-28 15:39:14,573 [TELNET: 10.12.165.20] on_read: ' lldp neighbors \r\n'
  172. 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> '
  173. 2014-01-28 15:39:14,585 [TELNET: 10.12.165.20] Starting synchronous FSM check
  174. 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\])'
  175. 2014-01-28 15:39:14,585 [TELNET: 10.12.165.20] Starting synchronous FSM check
  176. 2014-01-28 15:39:14,585 [TELNET: 10.12.165.20] event(PROMPT)
  177. 2014-01-28 15:39:14,615 [Juniper.JUNOS.get_lldp_neighbors(jsw01-vil-ltc, 10.12.165.20)] cli(show lldp neighbors) returns:
  178. ===[ show lldp neighbors ]==============================================
  179. ' \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'
  180. ========================================================================
  181. 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)
  182. 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)
  183. 2014-01-28 15:39:15,586 Tick
  184. 2014-01-28 15:39:15,586 Resetting wait ticks
  185. 2014-01-28 15:39:15,597 [TELNET: 10.12.165.20] on_read: 'show'
  186. 2014-01-28 15:39:15,619 [TELNET: 10.12.165.20] on_read: ' lldp neighbors interface'
  187. 2014-01-28 15:39:15,628 [TELNET: 10.12.165.20] on_read: ' xe-0/1/1.0'
  188. 2014-01-28 15:39:15,703 [TELNET: 10.12.165.20] on_read: ' '
  189. 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'
  190. 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> '
  191. 2014-01-28 15:39:15,726 [TELNET: 10.12.165.20] Starting synchronous FSM check
  192. 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\])'
  193. 2014-01-28 15:39:15,726 [TELNET: 10.12.165.20] Starting synchronous FSM check
  194. 2014-01-28 15:39:15,726 [TELNET: 10.12.165.20] event(PROMPT)
  195. 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:
  196. ===[ show lldp neighbors interface xe-0/1/1.0 ]=========================
  197. ' \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'
  198. ========================================================================
  199. [f[f2014-01-28 16:21:50,599 [Juniper.JUNOS.get_lldp_neighbors(jsw01-vil-ltc, 10.12.165.20)] Unhandled exception
  200. 2014-01-28 16:21:50,606 Tick
  201. 2014-01-28 16:21:50,610 Resetting wait ticks
  202. 2014-01-28 16:21:50,610 Closing stale socket <CLITelnetSocket(0x4be9110, 10.12.165.20:23, connected)>
  203. 2014-01-28 16:21:50,611 [TELNET: 10.12.165.20] Closing socket
  204. 2014-01-28 16:21:50,611 unregister_socket(<CLITelnetSocket(0x4be9110, 10.12.165.20:23, closing, stale)>)
  205. 2014-01-28 16:21:50,617 [Juniper.JUNOS.get_lldp_neighbors(jsw01-vil-ltc, 10.12.165.20)] Script traceback:
  206. <class 'noc.sa.script.exception.UnexpectedResultError'>
  207.  
  208. START OF TRACEBACK
  209. ------------------------------------------------------------------------
  210. File: /opt/noc/sa/script/script.py (Line: 961)
  211. Function: re_search
  212. 954 Returns match object.
  213. 955 rx can be string or compiled regular expression
  214. 956 """
  215. 957 if isinstance(rx, basestring):
  216. 958 rx = re.compile(rx, flags)
  217. 959 match = rx.search(s)
  218. 960 if match is None:
  219. 961 ==> raise self.UnexpectedResultError()
  220. 962 return match
  221. 963
  222. 964 def re_match(self, rx, s, flags=0):
  223. 965 """
  224. 966 Match s against regular expression rx using re.match
  225. 967 Raise UnexpectedResultError if regular expression is not matched.
  226. Variables:
  227. rx = <_sre.SRE_Pattern object at 0x419ffd0>
  228. s =
  229. ' \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'
  230. flags = 0
  231. self = <Script(Thread-2, started 140241877194496)>
  232. match = None
  233. ------------------------------------------------------------------------
  234. File: /opt/noc/sa/profiles/Juniper/JUNOS/get_lldp_neighbors.py (Line: 54)
  235. Function: execute_ex
  236. 47 "local_interface": match.group("local_if"),
  237. 48 "neighbors": [],
  238. 49 } for match in self.rx_neigh.finditer(v)]
  239. 50 for i in ifs:
  240. 51 if i["local_interface"] in local_port_ids:
  241. 52 i["local_interface_id"] = local_port_ids[i["local_interface"]]
  242. 53 v = self.cli("show lldp neighbors interface %s" % i["local_interface"])
  243. 54 ==> match = self.re_search(self.rx_detail, v)
  244. 55 n = {"remote_chassis_id_subtype": 4}
  245. 56 if match:
  246. 57 n["remote_port_subtype"] = {
  247. 58 "Mac address": 3,
  248. 59 "Interface alias": 1,
  249. 60 "Interface name": 5,
  250. Variables:
  251. ifs =
  252. [{'local_interface': 'xe-0/1/1.0', 'neighbors': []},
  253. {'local_interface': 'ge-0/0/3.0', 'neighbors': []}]
  254. i = {'neighbors': [], 'local_interface': 'xe-0/1/1.0'}
  255. self = <Script(Thread-2, started 140241877194496)>
  256. local_port_ids = {}
  257. r = []
  258. v =
  259. ' \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'
  260. match = <_sre.SRE_Match object at 0x4bef4e0>
  261. ------------------------------------------------------------------------
  262. File: /opt/noc/sa/script/script.py (Line: 513)
  263. Function: execute
  264. 506 """
  265. 507 if self._execute_chain and not self.name.endswith(".get_version"):
  266. 508 # Get version information
  267. 509 v = self.scripts.get_version()
  268. 510 # Find and execute proper handler
  269. 511 for c, f in self._execute_chain:
  270. 512 if c(self, v):
  271. 513 ==> return f(self, **kwargs)
  272. 514 # Raise error
  273. 515 raise NotSupportedError()
  274. 516
  275. 517 def cli_queue_get(self):
  276. 518 """
  277. 519 Request CLI provider's queue
  278. Variables:
  279. kwargs = {}
  280. c = <function <lambda> at 0x415f398>
  281. v = {'platform': 'ex4200-24f', 'version': '11.4R1.6', 'vendor': 'Juniper'}
  282. self = <Script(Thread-2, started 140241877194496)>
  283. f = <function execute_ex at 0x415f2a8>
  284. ------------------------------------------------------------------------
  285. File: /opt/noc/sa/script/script.py (Line: 422)
  286. Function: guarded_run
  287. 415 return result
  288. 416 except KeyError:
  289. 417 self.debug("Not in call cache: %r, %r" % (self.name,
  290. 418 self.kwargs))
  291. 419 pass
  292. 420 # Calling script body
  293. 421 self._thread_id = thread.get_ident()
  294. 422 ==> result = self.execute(**self.kwargs)
  295. 423 # Enforce interface result checking
  296. 424 for i in self.implements:
  297. 425 result = i.script_clean_result(self.profile, result)
  298. 426 # Cache result when required
  299. 427 if self.cache and self.parent is not None:
  300. 428 self.debug("Write to call cache: %s, %s, %r" % (self.name,
  301. Variables:
  302. i =
  303. <noc.sa.interfaces.igetlldpneighbors.IGetLLDPNeighbors object at 0x2a5eb90>
  304. self = <Script(Thread-2, started 140241877194496)>
  305. ------------------------------------------------------------------------
  306. File: /opt/noc/sa/script/script.py (Line: 445)
  307. Function: run
  308. 438
  309. 439 def run(self):
  310. 440 """Script thread worker method"""
  311. 441 self.debug("Running")
  312. 442 result = None
  313. 443 try:
  314. 444 with self.cancelable():
  315. 445 ==> result = self.guarded_run()
  316. 446 except self.TimeOutError:
  317. 447 self.error("Timed out")
  318. 448 self.e_timeout = True
  319. 449 except CancelledError:
  320. 450 self.error("Cancelled")
  321. 451 self.e_cancel = True
  322. Variables:
  323. self = <Script(Thread-2, started 140241877194496)>
  324. r = ["<class 'noc.sa.script.exception.UnexpectedResultError'>", '']
  325. result = None
  326. v = UnexpectedResultError()
  327. tb = <traceback object at 0x4beccf8>
  328. t = <class 'noc.sa.script.exception.UnexpectedResultError'>
  329. ------------------------------------------------------------------------
  330. END OF TRACEBACK
  331. 2014-01-28 16:21:50,621 [Juniper.JUNOS.get_lldp_neighbors(jsw01-vil-ltc, 10.12.165.20)] Closing
  332. 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})
  333. 2014-01-28 16:21:51,617 Tick
  334. 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})
  335. 2014-01-28 16:21:51,618 3 TICKS TO EXIT
  336. 2014-01-28 16:21:52,621 Tick
  337. 2014-01-28 16:21:52,622 2 TICKS TO EXIT
  338. 2014-01-28 16:21:53,623 Tick
  339. 2014-01-28 16:21:53,623 1 TICKS TO EXIT
  340. 2014-01-28 16:21:54,626 Tick
  341. 2014-01-28 16:21:54,626 EXIT
  342. 2014-01-28 16:21:54,629 Writing session test to /tmp/4200EX
  343. 2014-01-28 16:21:54,630 Shutting down the factory
  344. 2014-01-28 16:21:54,630 0 TICKS TO EXIT
  345. 2014-01-28 16:21:54,630 Stopping socket factory
  346. ┌─[root@oel] - [/opt/noc] - [Tue Jan 28, 04:21]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement