Advertisement
Guest User

Untitled

a guest
Aug 28th, 2014
257
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 51.71 KB | None | 0 0
  1. 2014-08-28 16:06:55,884 SSH: Using gmpy
  2. 2014-08-28 16:06:56,326 Using JSON library: cjson
  3. 2014-08-28 16:06:56,739 Loading PeriodicRegistry
  4. 2014-08-28 16:06:56,757 Loading DownloaderRegistry
  5. 2014-08-28 16:06:56,847 Loading ProfileRegistry
  6. 2014-08-28 16:06:58,191 Loading ScriptRegistry
  7. 2014-08-28 16:06:58,497 Setting up 'select' polling method
  8. 2014-08-28 16:06:58,498 Activating 'select' poller
  9. 2014-08-28 16:06:58,498 Loading private ssh key from 'etc/ssh/id_rsa'
  10. 2014-08-28 16:06:58,498 Loading public ssh key from 'etc/ssh/id_rsa.pub'
  11. access_profile {
  12. profile: "Juniper.JUNOS"
  13. scheme: SSH
  14. address: "172.30.2.151"
  15. user: "nimda"
  16. password: "password"
  17. attrs {
  18. key: "platform"
  19. value: "qfx3500s"
  20. }
  21. attrs {
  22. key: "vendor"
  23. value: "Juniper"
  24. }
  25. attrs {
  26. key: "version"
  27. value: "12.3X50-D10.3"
  28. }
  29. }
  30. object_name: "jpqfx3500-1-s10.net.billing.ru"
  31. script: "Juniper.JUNOS.get_vlans"
  32.  
  33. 2014-08-28 16:06:58,503 Running socket factory (SelectPoller)
  34. 2014-08-28 16:06:58,503 Running script thread
  35. 2014-08-28 16:06:58,504 Creating transaction id=1198226780 method=None callback=None
  36. 2014-08-28 16:06:58,504 [Juniper.JUNOS.get_vlans(jpqfx3500-1-s10.net.billing.ru, 172.30.2.151)] Running
  37. 2014-08-28 16:06:58,505 [Juniper.JUNOS.get_vlans(jpqfx3500-1-s10.net.billing.ru, 172.30.2.151)] Running script: Juniper.JUNOS.get_vlans ({})
  38. 2014-08-28 16:06:58,505 [Juniper.JUNOS.get_vlans(jpqfx3500-1-s10.net.billing.ru, 172.30.2.151)] cli(show vlan brief)
  39. 2014-08-28 16:06:58,505 [Juniper.JUNOS.get_vlans(jpqfx3500-1-s10.net.billing.ru, 172.30.2.151)] Running new provider
  40. 2014-08-28 16:06:58,506 [SSH: 172.30.2.151] ==> SSH_START
  41. 2014-08-28 16:06:58,506 [SSH: 172.30.2.151] set_timeout(30)
  42. 2014-08-28 16:06:58,506 register_socket(<CLISSHSocket(0x412ca10, 172.30.2.151:22, )>,None)
  43. 2014-08-28 16:06:59,504 Tick
  44. 2014-08-28 16:06:59,505 3 TICKS TO EXIT
  45. 2014-08-28 16:06:59,505 [SSH: 172.30.2.151] Initializing socket
  46. 2014-08-28 16:06:59,505 [SSH: 172.30.2.151] Connecting 172.30.2.151:22
  47. 2014-08-28 16:06:59,520 [SSH: 172.30.2.151] Connected
  48. 2014-08-28 16:06:59,710 [SSH: 172.30.2.151] event(SSH_VERSION)
  49. 2014-08-28 16:06:59,710 [SSH: 172.30.2.151] ==> SSH_VERSION
  50. 2014-08-28 16:06:59,710 [SSH: 172.30.2.151] Remote protocol version 2.0, remote software version OpenSSH_6.0
  51. 2014-08-28 16:06:59,710 [SSH: 172.30.2.151] Setting SSH transforms to: in=none none, out=none none
  52. 2014-08-28 16:06:59,710 [SSH: 172.30.2.151] Setting SSH transform keys
  53. 2014-08-28 16:06:59,711 [SSH: 172.30.2.151] Sending message type MSG_KEXINIT (20)
  54. 2014-08-28 16:06:59,711 [SSH: 172.30.2.151] event(SSH_KEY_EXCHANGE)
  55. 2014-08-28 16:06:59,711 [SSH: 172.30.2.151] ==> SSH_KEY_EXCHANGE
  56. 2014-08-28 16:06:59,777 [SSH: 172.30.2.151] Receiving message type MSG_KEXINIT (20)
  57. 2014-08-28 16:06:59,778 [SSH: 172.30.2.151] Receiving server proposals: kex=['ecdh-sha2-nistp256', 'ecdh-sha2-nistp384', 'ecdh-sha2-nistp521', 'diffie-hellman-group-exchange-sha256', 'diffie-hellman-group-exchange-sha1', 'diffie-hellman-group14-sha1', 'diffie-hellman-group1-sha1'] key=['ssh-rsa', 'ssh-dss', 'ecdsa-sha2-nistp256'] enc_cs=['aes128-ctr', 'aes192-ctr', 'aes256-ctr', 'arcfour256', 'arcfour128', 'aes128-cbc', '3des-cbc', 'blowfish-cbc', 'cast128-cbc', 'aes192-cbc', 'aes256-cbc', 'arcfour', 'rijndael-cbc@lysator.liu.se'] enc_sc=['aes128-ctr', 'aes192-ctr', 'aes256-ctr', 'arcfour256', 'arcfour128', 'aes128-cbc', '3des-cbc', 'blowfish-cbc', 'cast128-cbc', 'aes192-cbc', 'aes256-cbc', 'arcfour', 'rijndael-cbc@lysator.liu.se'] mac_cs=['hmac-md5', 'hmac-sha1', 'umac-64@openssh.com', 'hmac-sha2-256', 'hmac-sha2-256-96', 'hmac-sha2-512', 'hmac-sha2-512-96', 'hmac-ripemd160', 'hmac-ripemd160@openssh.com', 'hmac-sha1-96', 'hmac-md5-96'] mac_sc=['hmac-md5', 'hmac-sha1', 'umac-64@openssh.com', 'hmac-sha2-256', 'hmac-sha2-256-96', 'hmac-sha2-512', 'hmac-sha2-512-96', 'hmac-ripemd160', 'hmac-ripemd160@openssh.com', 'hmac-sha1-96', 'hmac-md5-96'] comp_cs=['none', 'zlib@openssh.com'] comp_sc['none', 'zlib@openssh.com']
  58. 2014-08-28 16:06:59,778 [SSH: 172.30.2.151] Setting SSH transforms to: in=aes256-ctr hmac-sha1, out=aes256-ctr hmac-sha1
  59. 2014-08-28 16:06:59,778 [SSH: 172.30.2.151] Selecting diffie-hellman-group-exchange-sha1 ssh-rsa, in=(aes256-ctr hmac-sha1 none) out=(aes256-ctr hmac-sha1 none)
  60. 2014-08-28 16:06:59,778 [SSH: 172.30.2.151] Sending message type MSG_KEX_DH_GEX_REQUEST_OLD (30)
  61. 2014-08-28 16:06:59,827 [SSH: 172.30.2.151] Receiving message type MSG_KEXDH_REPLY (31)
  62. 2014-08-28 16:06:59,829 [SSH: 172.30.2.151] Sending message type MSG_KEX_DH_GEX_INIT (32)
  63. 2014-08-28 16:07:00,593 [SSH: 172.30.2.151] Receiving message type MSG_KEX_DH_GEX_REPLY (33)
  64. 2014-08-28 16:07:00,593 [SSH: 172.30.2.151] Server PK fingerprint: 3a:21:a2:49:17:0c:4d:c5:e4:d0:58:55:33:c7:a0:ec
  65. 2014-08-28 16:07:00,596 [SSH: 172.30.2.151] Setting SSH transform keys
  66. 2014-08-28 16:07:00,597 [SSH: 172.30.2.151] Sending message type MSG_NEWKEYS (21)
  67. 2014-08-28 16:07:00,597 [SSH: 172.30.2.151] Receiving message type MSG_NEWKEYS (21)
  68. 2014-08-28 16:07:00,597 [SSH: 172.30.2.151] Using new keys
  69. 2014-08-28 16:07:00,598 [SSH: 172.30.2.151] event(SSH_AUTH)
  70. 2014-08-28 16:07:00,598 [SSH: 172.30.2.151] ==> SSH_AUTH
  71. 2014-08-28 16:07:00,598 [SSH: 172.30.2.151] Requesting service ssh-userauth
  72. 2014-08-28 16:07:00,599 [SSH: 172.30.2.151] Sending message type MSG_SERVICE_REQUEST (5)
  73. 2014-08-28 16:07:00,599 Tick
  74. 2014-08-28 16:07:00,599 Resetting wait ticks
  75. 2014-08-28 16:07:00,602 [SSH: 172.30.2.151] Receiving message type MSG_SERVICE_ACCEPT (6)
  76. 2014-08-28 16:07:00,602 [SSH: 172.30.2.151] Starting service ssh-userauth
  77. 2014-08-28 16:07:00,603 [SSH: 172.30.2.151] event(SSH_AUTH_PASSWORD)
  78. 2014-08-28 16:07:00,603 [SSH: 172.30.2.151] ==> SSH_AUTH_PASSWORD
  79. 2014-08-28 16:07:00,603 [SSH: 172.30.2.151] Authenticating with 'none' method
  80. 2014-08-28 16:07:00,603 [SSH: 172.30.2.151] Sending message type MSG_USERAUTH_REQUEST (50)
  81. 2014-08-28 16:07:00,614 [SSH: 172.30.2.151] Receiving message type MSG_USERAUTH_FAILURE (51)
  82. 2014-08-28 16:07:00,614 [SSH: 172.30.2.151] Authentication method 'none' has been failed. Trying next method (publickey,password,keyboard-interactive)
  83. 2014-08-28 16:07:00,615 [SSH: 172.30.2.151] Partially authenticated with 'none'. Trying next method
  84. 2014-08-28 16:07:00,615 [SSH: 172.30.2.151] Authenticating with 'publickey' method
  85. 2014-08-28 16:07:00,616 [SSH: 172.30.2.151] Sending message type MSG_USERAUTH_REQUEST (50)
  86. 2014-08-28 16:07:00,624 [SSH: 172.30.2.151] Receiving message type MSG_USERAUTH_FAILURE (51)
  87. 2014-08-28 16:07:00,624 [SSH: 172.30.2.151] Authentication method 'publickey' has been failed. Trying next method (publickey,password,keyboard-interactive)
  88. 2014-08-28 16:07:00,625 [SSH: 172.30.2.151] Partially authenticated with 'publickey'. Trying next method
  89. 2014-08-28 16:07:00,625 [SSH: 172.30.2.151] Authenticating with 'password' method
  90. 2014-08-28 16:07:00,625 [SSH: 172.30.2.151] Sending message type MSG_USERAUTH_REQUEST (50)
  91. 2014-08-28 16:07:00,639 [SSH: 172.30.2.151] Receiving message type MSG_USERAUTH_SUCCESS (52)
  92. 2014-08-28 16:07:00,639 [SSH: 172.30.2.151] event(SSH_CHANNEL)
  93. 2014-08-28 16:07:00,639 [SSH: 172.30.2.151] ==> SSH_CHANNEL
  94. 2014-08-28 16:07:00,639 [SSH: 172.30.2.151] Sending message type MSG_CHANNEL_OPEN (90)
  95. 2014-08-28 16:07:00,651 [SSH: 172.30.2.151] Receiving message type MSG_CHANNEL_OPEN_CONFIRMATION (91)
  96. 2014-08-28 16:07:00,651 [SSH: 172.30.2.151] Opening channel. local=0 remote=0
  97. 2014-08-28 16:07:00,651 [SSH: 172.30.2.151] event(SSH_PTY)
  98. 2014-08-28 16:07:00,652 [SSH: 172.30.2.151] ==> SSH_PTY
  99. 2014-08-28 16:07:00,652 [SSH: 172.30.2.151] Requesting PTY
  100. 2014-08-28 16:07:00,652 [SSH: 172.30.2.151] Sending message type MSG_CHANNEL_REQUEST (98)
  101. 2014-08-28 16:07:00,661 [SSH: 172.30.2.151] Receiving message type MSG_CHANNEL_SUCCESS (99)
  102. 2014-08-28 16:07:00,661 [SSH: 172.30.2.151] event(SSH_SHELL)
  103. 2014-08-28 16:07:00,661 [SSH: 172.30.2.151] ==> SSH_SHELL
  104. 2014-08-28 16:07:00,661 [SSH: 172.30.2.151] Requesting shell
  105. 2014-08-28 16:07:00,661 [SSH: 172.30.2.151] Sending message type MSG_CHANNEL_REQUEST (98)
  106. 2014-08-28 16:07:00,671 [SSH: 172.30.2.151] Receiving message type MSG_CHANNEL_WINDOW_ADJUST (93)
  107. 2014-08-28 16:07:00,671 [SSH: 172.30.2.151] Receiving message type MSG_CHANNEL_SUCCESS (99)
  108. 2014-08-28 16:07:00,671 [SSH: 172.30.2.151] event(START)
  109. 2014-08-28 16:07:00,671 [SSH: 172.30.2.151] ==> START
  110. 2014-08-28 16:07:00,671 [SSH: 172.30.2.151] 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')])
  111. 2014-08-28 16:07:00,761 [SSH: 172.30.2.151] on_read: '--- JUNOS 12.3X50-D10.3 built 2012-12-08 09:01:50 UTC\r\n'
  112. 2014-08-28 16:07:01,430 [SSH: 172.30.2.151] on_read: 'nimda@jpqfx3500-1-s10> '
  113. 2014-08-28 16:07:01,432 [SSH: 172.30.2.151] Starting synchronous FSM check
  114. 2014-08-28 16:07:01,433 [SSH: 172.30.2.151] match '^(({master(?::\d+)}\n)?\S+>)|(({master(?::\d+)})?\[edit.*?\]\n\S+#)|(\[Type \^D at a new line to end input\])'
  115. 2014-08-28 16:07:01,434 [SSH: 172.30.2.151] event(PROMPT)
  116. 2014-08-28 16:07:01,435 [SSH: 172.30.2.151] ==> PROMPT
  117. 2014-08-28 16:07:01,436 [SSH: 172.30.2.151] on_PROMPT_enter
  118. 2014-08-28 16:07:01,437 [SSH: 172.30.2.151] Using prompt pattern: ^(({master(?::\d+)}\n)?\S+>)|(({master(?::\d+)})?\[edit.*?\]\n\S+#)|(\[Type \^D at a new line to end input\])
  119. 2014-08-28 16:07:01,438 [SSH: 172.30.2.151] set_patterns([('^(({master(?::\\d+)}\\n)?\\S+>)|(({master(?::\\d+)})?\\[edit.*?\\]\\n\\S+#)|(\\[Type \\^D at a new line to end input\\])', 'PROMPT'), ('(^---\\(more.*?\\)---)', 'PAGER')])
  120. 2014-08-28 16:07:01,477 [Juniper.JUNOS.get_vlans(jpqfx3500-1-s10.net.billing.ru, 172.30.2.151)] CLI Provider is ready
  121. 2014-08-28 16:07:01,478 [Juniper.JUNOS.get_vlans(jpqfx3500-1-s10.net.billing.ru, 172.30.2.151)] Disable paging
  122. 2014-08-28 16:07:01,478 [Juniper.JUNOS.get_vlans(jpqfx3500-1-s10.net.billing.ru, 172.30.2.151)] cli(set cli screen-length 0)
  123. 2014-08-28 16:07:01,480 [SSH: 172.30.2.151] submit('set cli screen-length 0', bulk_lines=None, streaming=False)
  124. 2014-08-28 16:07:01,481 [SSH: 172.30.2.151] Sending message type MSG_CHANNEL_DATA (94)
  125. 2014-08-28 16:07:02,441 Tick
  126. 2014-08-28 16:07:02,441 Resetting wait ticks
  127. 2014-08-28 16:07:02,445 [SSH: 172.30.2.151] on_read: 's'
  128. 2014-08-28 16:07:02,446 [SSH: 172.30.2.151] on_read: 'et'
  129. 2014-08-28 16:07:02,450 [SSH: 172.30.2.151] on_read: ' '
  130. 2014-08-28 16:07:02,451 [SSH: 172.30.2.151] on_read: 'cl'
  131. 2014-08-28 16:07:02,453 [SSH: 172.30.2.151] on_read: 'i'
  132. 2014-08-28 16:07:02,456 [SSH: 172.30.2.151] on_read: ' '
  133. 2014-08-28 16:07:02,457 [SSH: 172.30.2.151] on_read: 'screen-length'
  134. 2014-08-28 16:07:02,459 [SSH: 172.30.2.151] on_read: ' '
  135. 2014-08-28 16:07:02,461 [SSH: 172.30.2.151] on_read: '0'
  136. 2014-08-28 16:07:02,465 [SSH: 172.30.2.151] on_read: ' '
  137. 2014-08-28 16:07:02,467 [SSH: 172.30.2.151] on_read: '\r\n'
  138. 2014-08-28 16:07:02,470 [SSH: 172.30.2.151] on_read: 'Screen length set to 0\r\n'
  139. 2014-08-28 16:07:02,471 [SSH: 172.30.2.151] on_read: '\r\n'
  140. 2014-08-28 16:07:02,472 [SSH: 172.30.2.151] on_read: 'nimda@jpqfx3500-1-s10> '
  141. 2014-08-28 16:07:02,472 [SSH: 172.30.2.151] Starting synchronous FSM check
  142. 2014-08-28 16:07:02,472 [SSH: 172.30.2.151] match '^(({master(?::\d+)}\n)?\S+>)|(({master(?::\d+)})?\[edit.*?\]\n\S+#)|(\[Type \^D at a new line to end input\])'
  143. 2014-08-28 16:07:02,473 [SSH: 172.30.2.151] Starting synchronous FSM check
  144. 2014-08-28 16:07:02,473 [SSH: 172.30.2.151] event(PROMPT)
  145. 2014-08-28 16:07:02,482 [Juniper.JUNOS.get_vlans(jpqfx3500-1-s10.net.billing.ru, 172.30.2.151)] cli(set cli screen-length 0) returns:
  146. ===[ set cli screen-length 0 ]==========================================
  147. ' \nScreen length set to 0\n\n'
  148. ========================================================================
  149. 2014-08-28 16:07:02,482 [SSH: 172.30.2.151] submit('show vlan brief', bulk_lines=None, streaming=False)
  150. 2014-08-28 16:07:02,483 [SSH: 172.30.2.151] Sending message type MSG_CHANNEL_DATA (94)
  151. 2014-08-28 16:07:03,474 Tick
  152. 2014-08-28 16:07:03,474 Resetting wait ticks
  153. 2014-08-28 16:07:03,479 [SSH: 172.30.2.151] on_read: 'show'
  154. 2014-08-28 16:07:03,482 [SSH: 172.30.2.151] on_read: ' vlan'
  155. 2014-08-28 16:07:03,491 [SSH: 172.30.2.151] on_read: 's br'
  156. 2014-08-28 16:07:03,493 [SSH: 172.30.2.151] on_read: 'ief'
  157. 2014-08-28 16:07:03,583 [SSH: 172.30.2.151] on_read: ' '
  158. 2014-08-28 16:07:03,586 [SSH: 172.30.2.151] on_read: '\r\n'
  159. 2014-08-28 16:07:03,597 [SSH: 172.30.2.151] on_read: ' Ports \r\nName Tag Primary Address Active/Total\r\nDC_AUX 323 172.30.123.253/24 2/2\r\n'
  160. 2014-08-28 16:07:03,609 [SSH: 172.30.2.151] on_read: 'DC_MNG 302 172.30.2.151/23 2/2\r\n'
  161. 2014-08-28 16:07:03,610 [SSH: 172.30.2.151] on_read: 'DC_SRV0 300 24/26\r\nDC_SRV5 305 4/4\r\n'
  162. 2014-08-28 16:07:03,613 [SSH: 172.30.2.151] on_read: 'DC_STORE 413 33/42\r\n'
  163. 2014-08-28 16:07:03,613 [SSH: 172.30.2.151] on_read: 'DC_STORE2 415 25/27\r\nDC_TVM_STOR 325 3/7\r\n'
  164. 2014-08-28 16:07:03,615 [SSH: 172.30.2.151] on_read: 'DC_VBACKUP 416 21/22\r\n'
  165. 2014-08-28 16:07:03,618 [SSH: 172.30.2.151] on_read: 'DC_VCLOUD_RELEASE 417 5/5\r\nDC_VDI_EDU 370 11/12\r\n'
  166. 2014-08-28 16:07:03,620 [SSH: 172.30.2.151] on_read: 'DC_VMWARE 424 23/25\r\n'
  167. 2014-08-28 16:07:03,623 [SSH: 172.30.2.151] on_read: 'DC_VM_TSTLAB 259 3/3\r\n'
  168. 2014-08-28 16:07:03,624 [SSH: 172.30.2.151] on_read: 'DC_vlan1 1 \r\n'
  169. 2014-08-28 16:07:03,626 [SSH: 172.30.2.151] on_read: 'MC_AE_QFX1-2 500 3.3.3.1/30 1/1\r\n'
  170. 2014-08-28 16:07:03,628 [SSH: 172.30.2.151] on_read: 'default \r\n'
  171. 2014-08-28 16:07:03,629 [SSH: 172.30.2.151] on_read: '\r\n'
  172. 2014-08-28 16:07:03,630 [SSH: 172.30.2.151] on_read: 'nimda@jpqfx3500-1-s10> '
  173. 2014-08-28 16:07:03,631 [SSH: 172.30.2.151] Starting synchronous FSM check
  174. 2014-08-28 16:07:03,631 [SSH: 172.30.2.151] match '^(({master(?::\d+)}\n)?\S+>)|(({master(?::\d+)})?\[edit.*?\]\n\S+#)|(\[Type \^D at a new line to end input\])'
  175. 2014-08-28 16:07:03,631 [SSH: 172.30.2.151] Starting synchronous FSM check
  176. 2014-08-28 16:07:03,632 [SSH: 172.30.2.151] event(PROMPT)
  177. 2014-08-28 16:07:03,648 [Juniper.JUNOS.get_vlans(jpqfx3500-1-s10.net.billing.ru, 172.30.2.151)] cli(show vlan brief) returns:
  178. ===[ show vlan brief ]==================================================
  179. [{'name': 'DC_AUX', 'vlan_id': '323'}, {'name': 'DC_MNG', 'vlan_id': '302'}, {'name': 'DC_SRV0', 'vlan_id': '300'}, {'name': 'DC_SRV5', 'vlan_id': '305'}, {'name': 'DC_STORE', 'vlan_id': '413'}, {'name': 'DC_STORE2', 'vlan_id': '415'}, {'name': 'DC_TVM_STOR', 'vlan_id': '325'}, {'name': 'DC_VBACKUP', 'vlan_id': '416'}, {'name': 'DC_VCLOUD_RELEASE', 'vlan_id': '417'}, {'name': 'DC_VDI_EDU', 'vlan_id': '370'}, {'name': 'DC_VMWARE', 'vlan_id': '424'}, {'name': 'DC_VM_TSTLAB', 'vlan_id': '259'}, {'name': 'DC_vlan1', 'vlan_id': '1'}, {'name': 'MC_AE_QFX1-2', 'vlan_id': '500'}]
  180. ========================================================================
  181. 2014-08-28 16:07:03,649 [Juniper.JUNOS.get_vlans(jpqfx3500-1-s10.net.billing.ru, 172.30.2.151)] Script returns with result: [{'name': 'DC_AUX', 'vlan_id': 323}, {'name': 'DC_MNG', 'vlan_id': 302}, {'name': 'DC_SRV0', 'vlan_id': 300}, {'name': 'DC_SRV5', 'vlan_id': 305}, {'name': 'DC_STORE', 'vlan_id': 413}, {'name': 'DC_STORE2', 'vlan_id': 415}, {'name': 'DC_TVM_STOR', 'vlan_id': 325}, {'name': 'DC_VBACKUP', 'vlan_id': 416}, {'name': 'DC_VCLOUD_RELEASE', 'vlan_id': 417}, {'name': 'DC_VDI_EDU', 'vlan_id': 370}, {'name': 'DC_VMWARE', 'vlan_id': 424}, {'name': 'DC_VM_TSTLAB', 'vlan_id': 259}, {'name': 'DC_vlan1', 'vlan_id': 1}, {'name': 'MC_AE_QFX1-2', 'vlan_id': 500}]
  182. 2014-08-28 16:07:03,649 [Juniper.JUNOS.get_vlans(jpqfx3500-1-s10.net.billing.ru, 172.30.2.151)] Closing
  183. 2014-08-28 16:07:03,649 Requesting call: <bound method CLISSHSocket.close of <CLISSHSocket(0x412ca10, 172.30.2.151:22, connected)>>(*(), **{'flush': True})
  184. 2014-08-28 16:07:04,633 Tick
  185. 2014-08-28 16:07:04,634 Calling delayed <bound method CLISSHSocket.close of <CLISSHSocket(0x412ca10, 172.30.2.151:22, connected)>>(*(), **{'flush': True})
  186. 2014-08-28 16:07:04,634 [SSH: 172.30.2.151] Closing socket
  187. 2014-08-28 16:07:04,634 unregister_socket(<CLISSHSocket(0x412ca10, 172.30.2.151:22, closing)>)
  188. 2014-08-28 16:07:04,634 3 TICKS TO EXIT
  189. 2014-08-28 16:07:05,636 Tick
  190. 2014-08-28 16:07:05,636 2 TICKS TO EXIT
  191. 2014-08-28 16:07:06,637 Tick
  192. 2014-08-28 16:07:06,637 1 TICKS TO EXIT
  193. 2014-08-28 16:07:07,638 Tick
  194. 2014-08-28 16:07:07,639 EXIT
  195. 2014-08-28 16:07:07,641 SCRIPT RESULT: Juniper.JUNOS.get_vlans(jpqfx3500-1-s10.net.billing.ru, 172.30.2.151)
  196. [{'name': 'DC_AUX', 'vlan_id': 323},
  197. {'name': 'DC_MNG', 'vlan_id': 302},
  198. {'name': 'DC_SRV0', 'vlan_id': 300},
  199. {'name': 'DC_SRV5', 'vlan_id': 305},
  200. {'name': 'DC_STORE', 'vlan_id': 413},
  201. {'name': 'DC_STORE2', 'vlan_id': 415},
  202. {'name': 'DC_TVM_STOR', 'vlan_id': 325},
  203. {'name': 'DC_VBACKUP', 'vlan_id': 416},
  204. {'name': 'DC_VCLOUD_RELEASE', 'vlan_id': 417},
  205. {'name': 'DC_VDI_EDU', 'vlan_id': 370},
  206. {'name': 'DC_VMWARE', 'vlan_id': 424},
  207. {'name': 'DC_VM_TSTLAB', 'vlan_id': 259},
  208. {'name': 'DC_vlan1', 'vlan_id': 1},
  209. {'name': 'MC_AE_QFX1-2', 'vlan_id': 500}]
  210. 2014-08-28 16:07:07,644 Shutting down the factory
  211. 2014-08-28 16:07:07,644 0 TICKS TO EXIT
  212. 2014-08-28 16:07:07,644 Stopping socket factory
  213. root@noc:/opt/noc# nano sa/profiles/Juniper/JUNOS/get_vlans.py
  214. root@noc:/opt/noc# ./noc debug-script get_vlans jpqfx3500-1-s10.net.billing.ru
  215. 2014-08-28 16:38:30,894 SSH: Using gmpy
  216. 2014-08-28 16:38:31,111 Using JSON library: cjson
  217. 2014-08-28 16:38:31,409 Loading PeriodicRegistry
  218. 2014-08-28 16:38:31,419 Loading DownloaderRegistry
  219. 2014-08-28 16:38:31,495 Loading ProfileRegistry
  220. 2014-08-28 16:38:33,118 Loading ScriptRegistry
  221. 2014-08-28 16:38:33,866 Setting up 'select' polling method
  222. 2014-08-28 16:38:33,868 Activating 'select' poller
  223. 2014-08-28 16:38:33,870 Loading private ssh key from 'etc/ssh/id_rsa'
  224. 2014-08-28 16:38:33,870 Loading public ssh key from 'etc/ssh/id_rsa.pub'
  225. access_profile {
  226. profile: "Juniper.JUNOS"
  227. scheme: SSH
  228. address: "172.30.2.151"
  229. user: "nimda"
  230. password: "password"
  231. attrs {
  232. key: "platform"
  233. value: "qfx3500s"
  234. }
  235. attrs {
  236. key: "vendor"
  237. value: "Juniper"
  238. }
  239. attrs {
  240. key: "version"
  241. value: "12.3X50-D10.3"
  242. }
  243. }
  244. object_name: "jpqfx3500-1-s10.net.billing.ru"
  245. script: "Juniper.JUNOS.get_vlans"
  246.  
  247. 2014-08-28 16:38:33,882 Running socket factory (SelectPoller)
  248. 2014-08-28 16:38:33,883 Running script thread
  249. 2014-08-28 16:38:33,883 Creating transaction id=802721418 method=None callback=None
  250. 2014-08-28 16:38:33,885 [Juniper.JUNOS.get_vlans(jpqfx3500-1-s10.net.billing.ru, 172.30.2.151)] Running
  251. 2014-08-28 16:38:33,885 [Juniper.JUNOS.get_vlans(jpqfx3500-1-s10.net.billing.ru, 172.30.2.151)] Running script: Juniper.JUNOS.get_vlans ({})
  252. 2014-08-28 16:38:33,886 [Juniper.JUNOS.get_vlans(jpqfx3500-1-s10.net.billing.ru, 172.30.2.151)] cli(show vlan brief)
  253. 2014-08-28 16:38:33,886 [Juniper.JUNOS.get_vlans(jpqfx3500-1-s10.net.billing.ru, 172.30.2.151)] Running new provider
  254. 2014-08-28 16:38:33,886 [SSH: 172.30.2.151] ==> SSH_START
  255. 2014-08-28 16:38:33,887 [SSH: 172.30.2.151] set_timeout(30)
  256. 2014-08-28 16:38:33,887 register_socket(<CLISSHSocket(0x32bda10, 172.30.2.151:22, )>,None)
  257. 2014-08-28 16:38:34,883 Tick
  258. 2014-08-28 16:38:34,883 3 TICKS TO EXIT
  259. 2014-08-28 16:38:34,883 [SSH: 172.30.2.151] Initializing socket
  260. 2014-08-28 16:38:34,883 [SSH: 172.30.2.151] Connecting 172.30.2.151:22
  261. 2014-08-28 16:38:34,893 [SSH: 172.30.2.151] Connected
  262. 2014-08-28 16:38:35,041 [SSH: 172.30.2.151] event(SSH_VERSION)
  263. 2014-08-28 16:38:35,041 [SSH: 172.30.2.151] ==> SSH_VERSION
  264. 2014-08-28 16:38:35,042 [SSH: 172.30.2.151] Remote protocol version 2.0, remote software version OpenSSH_6.0
  265. 2014-08-28 16:38:35,042 [SSH: 172.30.2.151] Setting SSH transforms to: in=none none, out=none none
  266. 2014-08-28 16:38:35,042 [SSH: 172.30.2.151] Setting SSH transform keys
  267. 2014-08-28 16:38:35,043 [SSH: 172.30.2.151] Sending message type MSG_KEXINIT (20)
  268. 2014-08-28 16:38:35,043 [SSH: 172.30.2.151] event(SSH_KEY_EXCHANGE)
  269. 2014-08-28 16:38:35,044 [SSH: 172.30.2.151] ==> SSH_KEY_EXCHANGE
  270. 2014-08-28 16:38:35,088 [SSH: 172.30.2.151] Receiving message type MSG_KEXINIT (20)
  271. 2014-08-28 16:38:35,089 [SSH: 172.30.2.151] Receiving server proposals: kex=['ecdh-sha2-nistp256', 'ecdh-sha2-nistp384', 'ecdh-sha2-nistp521', 'diffie-hellman-group-exchange-sha256', 'diffie-hellman-group-exchange-sha1', 'diffie-hellman-group14-sha1', 'diffie-hellman-group1-sha1'] key=['ssh-rsa', 'ssh-dss', 'ecdsa-sha2-nistp256'] enc_cs=['aes128-ctr', 'aes192-ctr', 'aes256-ctr', 'arcfour256', 'arcfour128', 'aes128-cbc', '3des-cbc', 'blowfish-cbc', 'cast128-cbc', 'aes192-cbc', 'aes256-cbc', 'arcfour', 'rijndael-cbc@lysator.liu.se'] enc_sc=['aes128-ctr', 'aes192-ctr', 'aes256-ctr', 'arcfour256', 'arcfour128', 'aes128-cbc', '3des-cbc', 'blowfish-cbc', 'cast128-cbc', 'aes192-cbc', 'aes256-cbc', 'arcfour', 'rijndael-cbc@lysator.liu.se'] mac_cs=['hmac-md5', 'hmac-sha1', 'umac-64@openssh.com', 'hmac-sha2-256', 'hmac-sha2-256-96', 'hmac-sha2-512', 'hmac-sha2-512-96', 'hmac-ripemd160', 'hmac-ripemd160@openssh.com', 'hmac-sha1-96', 'hmac-md5-96'] mac_sc=['hmac-md5', 'hmac-sha1', 'umac-64@openssh.com', 'hmac-sha2-256', 'hmac-sha2-256-96', 'hmac-sha2-512', 'hmac-sha2-512-96', 'hmac-ripemd160', 'hmac-ripemd160@openssh.com', 'hmac-sha1-96', 'hmac-md5-96'] comp_cs=['none', 'zlib@openssh.com'] comp_sc['none', 'zlib@openssh.com']
  272. 2014-08-28 16:38:35,089 [SSH: 172.30.2.151] Setting SSH transforms to: in=aes256-ctr hmac-sha1, out=aes256-ctr hmac-sha1
  273. 2014-08-28 16:38:35,089 [SSH: 172.30.2.151] Selecting diffie-hellman-group-exchange-sha1 ssh-rsa, in=(aes256-ctr hmac-sha1 none) out=(aes256-ctr hmac-sha1 none)
  274. 2014-08-28 16:38:35,089 [SSH: 172.30.2.151] Sending message type MSG_KEX_DH_GEX_REQUEST_OLD (30)
  275. 2014-08-28 16:38:35,126 [SSH: 172.30.2.151] Receiving message type MSG_KEXDH_REPLY (31)
  276. 2014-08-28 16:38:35,128 [SSH: 172.30.2.151] Sending message type MSG_KEX_DH_GEX_INIT (32)
  277. 2014-08-28 16:38:35,714 [SSH: 172.30.2.151] Receiving message type MSG_KEX_DH_GEX_REPLY (33)
  278. 2014-08-28 16:38:35,714 [SSH: 172.30.2.151] Server PK fingerprint: 3a:21:a2:49:17:0c:4d:c5:e4:d0:58:55:33:c7:a0:ec
  279. 2014-08-28 16:38:35,717 [SSH: 172.30.2.151] Setting SSH transform keys
  280. 2014-08-28 16:38:35,717 [SSH: 172.30.2.151] Sending message type MSG_NEWKEYS (21)
  281. 2014-08-28 16:38:35,718 [SSH: 172.30.2.151] Receiving message type MSG_NEWKEYS (21)
  282. 2014-08-28 16:38:35,718 [SSH: 172.30.2.151] Using new keys
  283. 2014-08-28 16:38:35,718 [SSH: 172.30.2.151] event(SSH_AUTH)
  284. 2014-08-28 16:38:35,719 [SSH: 172.30.2.151] ==> SSH_AUTH
  285. 2014-08-28 16:38:35,719 [SSH: 172.30.2.151] Requesting service ssh-userauth
  286. 2014-08-28 16:38:35,719 [SSH: 172.30.2.151] Sending message type MSG_SERVICE_REQUEST (5)
  287. 2014-08-28 16:38:35,722 [SSH: 172.30.2.151] Receiving message type MSG_SERVICE_ACCEPT (6)
  288. 2014-08-28 16:38:35,722 [SSH: 172.30.2.151] Starting service ssh-userauth
  289. 2014-08-28 16:38:35,722 [SSH: 172.30.2.151] event(SSH_AUTH_PASSWORD)
  290. 2014-08-28 16:38:35,723 [SSH: 172.30.2.151] ==> SSH_AUTH_PASSWORD
  291. 2014-08-28 16:38:35,723 [SSH: 172.30.2.151] Authenticating with 'none' method
  292. 2014-08-28 16:38:35,723 [SSH: 172.30.2.151] Sending message type MSG_USERAUTH_REQUEST (50)
  293. 2014-08-28 16:38:35,733 [SSH: 172.30.2.151] Receiving message type MSG_USERAUTH_FAILURE (51)
  294. 2014-08-28 16:38:35,734 [SSH: 172.30.2.151] Authentication method 'none' has been failed. Trying next method (publickey,password,keyboard-interactive)
  295. 2014-08-28 16:38:35,734 [SSH: 172.30.2.151] Partially authenticated with 'none'. Trying next method
  296. 2014-08-28 16:38:35,734 [SSH: 172.30.2.151] Authenticating with 'publickey' method
  297. 2014-08-28 16:38:35,735 [SSH: 172.30.2.151] Sending message type MSG_USERAUTH_REQUEST (50)
  298. 2014-08-28 16:38:35,740 [SSH: 172.30.2.151] Receiving message type MSG_USERAUTH_FAILURE (51)
  299. 2014-08-28 16:38:35,740 [SSH: 172.30.2.151] Authentication method 'publickey' has been failed. Trying next method (publickey,password,keyboard-interactive)
  300. 2014-08-28 16:38:35,741 [SSH: 172.30.2.151] Partially authenticated with 'publickey'. Trying next method
  301. 2014-08-28 16:38:35,741 [SSH: 172.30.2.151] Authenticating with 'password' method
  302. 2014-08-28 16:38:35,741 [SSH: 172.30.2.151] Sending message type MSG_USERAUTH_REQUEST (50)
  303. 2014-08-28 16:38:35,752 [SSH: 172.30.2.151] Receiving message type MSG_USERAUTH_SUCCESS (52)
  304. 2014-08-28 16:38:35,752 [SSH: 172.30.2.151] event(SSH_CHANNEL)
  305. 2014-08-28 16:38:35,752 [SSH: 172.30.2.151] ==> SSH_CHANNEL
  306. 2014-08-28 16:38:35,752 [SSH: 172.30.2.151] Sending message type MSG_CHANNEL_OPEN (90)
  307. 2014-08-28 16:38:35,758 [SSH: 172.30.2.151] Receiving message type MSG_CHANNEL_OPEN_CONFIRMATION (91)
  308. 2014-08-28 16:38:35,758 [SSH: 172.30.2.151] Opening channel. local=0 remote=0
  309. 2014-08-28 16:38:35,758 [SSH: 172.30.2.151] event(SSH_PTY)
  310. 2014-08-28 16:38:35,759 [SSH: 172.30.2.151] ==> SSH_PTY
  311. 2014-08-28 16:38:35,759 [SSH: 172.30.2.151] Requesting PTY
  312. 2014-08-28 16:38:35,759 [SSH: 172.30.2.151] Sending message type MSG_CHANNEL_REQUEST (98)
  313. 2014-08-28 16:38:35,767 [SSH: 172.30.2.151] Receiving message type MSG_CHANNEL_SUCCESS (99)
  314. 2014-08-28 16:38:35,767 [SSH: 172.30.2.151] event(SSH_SHELL)
  315. 2014-08-28 16:38:35,767 [SSH: 172.30.2.151] ==> SSH_SHELL
  316. 2014-08-28 16:38:35,767 [SSH: 172.30.2.151] Requesting shell
  317. 2014-08-28 16:38:35,768 [SSH: 172.30.2.151] Sending message type MSG_CHANNEL_REQUEST (98)
  318. 2014-08-28 16:38:35,775 [SSH: 172.30.2.151] Receiving message type MSG_CHANNEL_WINDOW_ADJUST (93)
  319. 2014-08-28 16:38:35,775 [SSH: 172.30.2.151] Receiving message type MSG_CHANNEL_SUCCESS (99)
  320. 2014-08-28 16:38:35,776 [SSH: 172.30.2.151] event(START)
  321. 2014-08-28 16:38:35,776 [SSH: 172.30.2.151] ==> START
  322. 2014-08-28 16:38:35,776 [SSH: 172.30.2.151] 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')])
  323. 2014-08-28 16:38:35,781 [SSH: 172.30.2.151] on_read: '--- JUNOS 12.3X50-D10.3 built 2012-12-08 09:01:50 UTC\r\n'
  324. 2014-08-28 16:38:36,282 [SSH: 172.30.2.151] on_read: 'nimda@jpqfx3500-1-s10> '
  325. 2014-08-28 16:38:36,283 [SSH: 172.30.2.151] Starting synchronous FSM check
  326. 2014-08-28 16:38:36,283 [SSH: 172.30.2.151] match '^(({master(?::\d+)}\n)?\S+>)|(({master(?::\d+)})?\[edit.*?\]\n\S+#)|(\[Type \^D at a new line to end input\])'
  327. 2014-08-28 16:38:36,283 [SSH: 172.30.2.151] event(PROMPT)
  328. 2014-08-28 16:38:36,283 [SSH: 172.30.2.151] ==> PROMPT
  329. 2014-08-28 16:38:36,283 [SSH: 172.30.2.151] on_PROMPT_enter
  330. 2014-08-28 16:38:36,283 [SSH: 172.30.2.151] Using prompt pattern: ^(({master(?::\d+)}\n)?\S+>)|(({master(?::\d+)})?\[edit.*?\]\n\S+#)|(\[Type \^D at a new line to end input\])
  331. 2014-08-28 16:38:36,283 [SSH: 172.30.2.151] set_patterns([('^(({master(?::\\d+)}\\n)?\\S+>)|(({master(?::\\d+)})?\\[edit.*?\\]\\n\\S+#)|(\\[Type \\^D at a new line to end input\\])', 'PROMPT'), ('(^---\\(more.*?\\)---)', 'PAGER')])
  332. 2014-08-28 16:38:36,284 Tick
  333. 2014-08-28 16:38:36,284 Resetting wait ticks
  334. 2014-08-28 16:38:36,303 [Juniper.JUNOS.get_vlans(jpqfx3500-1-s10.net.billing.ru, 172.30.2.151)] CLI Provider is ready
  335. 2014-08-28 16:38:36,304 [Juniper.JUNOS.get_vlans(jpqfx3500-1-s10.net.billing.ru, 172.30.2.151)] Disable paging
  336. 2014-08-28 16:38:36,304 [Juniper.JUNOS.get_vlans(jpqfx3500-1-s10.net.billing.ru, 172.30.2.151)] cli(set cli screen-length 0)
  337. 2014-08-28 16:38:36,304 [SSH: 172.30.2.151] submit('set cli screen-length 0', bulk_lines=None, streaming=False)
  338. 2014-08-28 16:38:36,304 [SSH: 172.30.2.151] Sending message type MSG_CHANNEL_DATA (94)
  339. 2014-08-28 16:38:37,285 Tick
  340. 2014-08-28 16:38:37,285 Resetting wait ticks
  341. 2014-08-28 16:38:37,289 [SSH: 172.30.2.151] on_read: 'set'
  342. 2014-08-28 16:38:37,295 [SSH: 172.30.2.151] on_read: ' cli'
  343. 2014-08-28 16:38:37,298 [SSH: 172.30.2.151] on_read: ' '
  344. 2014-08-28 16:38:37,300 [SSH: 172.30.2.151] on_read: 's'
  345. 2014-08-28 16:38:37,301 [SSH: 172.30.2.151] on_read: 'creen-length'
  346. 2014-08-28 16:38:37,303 [SSH: 172.30.2.151] on_read: ' '
  347. 2014-08-28 16:38:37,305 [SSH: 172.30.2.151] on_read: '0'
  348. 2014-08-28 16:38:37,310 [SSH: 172.30.2.151] on_read: ' '
  349. 2014-08-28 16:38:37,311 [SSH: 172.30.2.151] on_read: '\r\n'
  350. 2014-08-28 16:38:37,314 [SSH: 172.30.2.151] on_read: 'Screen length set to 0\r\n'
  351. 2014-08-28 16:38:37,316 [SSH: 172.30.2.151] on_read: '\r\n'
  352. 2014-08-28 16:38:37,316 [SSH: 172.30.2.151] on_read: 'nimda@jpqfx3500-1-s10> '
  353. 2014-08-28 16:38:37,317 [SSH: 172.30.2.151] Starting synchronous FSM check
  354. 2014-08-28 16:38:37,317 [SSH: 172.30.2.151] match '^(({master(?::\d+)}\n)?\S+>)|(({master(?::\d+)})?\[edit.*?\]\n\S+#)|(\[Type \^D at a new line to end input\])'
  355. 2014-08-28 16:38:37,317 [SSH: 172.30.2.151] Starting synchronous FSM check
  356. 2014-08-28 16:38:37,317 [SSH: 172.30.2.151] event(PROMPT)
  357. 2014-08-28 16:38:37,320 [Juniper.JUNOS.get_vlans(jpqfx3500-1-s10.net.billing.ru, 172.30.2.151)] cli(set cli screen-length 0) returns:
  358. ===[ set cli screen-length 0 ]==========================================
  359. ' \nScreen length set to 0\n\n'
  360. ========================================================================
  361. 2014-08-28 16:38:37,320 [SSH: 172.30.2.151] submit('show vlan brief', bulk_lines=None, streaming=False)
  362. 2014-08-28 16:38:37,320 [SSH: 172.30.2.151] Sending message type MSG_CHANNEL_DATA (94)
  363. 2014-08-28 16:38:38,318 Tick
  364. 2014-08-28 16:38:38,318 Resetting wait ticks
  365. 2014-08-28 16:38:38,323 [SSH: 172.30.2.151] on_read: 'show'
  366. 2014-08-28 16:38:38,325 [SSH: 172.30.2.151] on_read: ' vlan'
  367. 2014-08-28 16:38:38,336 [SSH: 172.30.2.151] on_read: 's brief'
  368. 2014-08-28 16:38:38,433 [SSH: 172.30.2.151] on_read: ' '
  369. 2014-08-28 16:38:38,436 [SSH: 172.30.2.151] on_read: '\r\n'
  370. 2014-08-28 16:38:38,449 [SSH: 172.30.2.151] on_read: ' Ports \r\nName Tag Primary Address Active/Total\r\n'
  371. 2014-08-28 16:38:38,449 [SSH: 172.30.2.151] on_read: 'DC_AUX 323 172.30.123.253/24 2/2\r\n'
  372. 2014-08-28 16:38:38,460 [SSH: 172.30.2.151] on_read: 'DC_MNG 302 172.30.2.151/23 2/2\r\nDC_SRV0 \r\nDC_SRV5 \r\n'
  373. 2014-08-28 16:38:38,461 [SSH: 172.30.2.151] on_read: 'DC_STORE 413 32/42\r\n'
  374. 2014-08-28 16:38:38,465 [SSH: 172.30.2.151] on_read: 'DC_STORE2 415 25/27\r\n'
  375. 2014-08-28 16:38:38,465 [SSH: 172.30.2.151] on_read: 'DC_TVM_STOR 325 3/3\r\nDC_VBACKUP 416 21/22\r\n'
  376. 2014-08-28 16:38:38,467 [SSH: 172.30.2.151] on_read: 'DC_VCLOUD_RELEASE 417 5/5\r\n'
  377. 2014-08-28 16:38:38,469 [SSH: 172.30.2.151] on_read: 'DC_VDI_EDU 370 11/12\r\n'
  378. 2014-08-28 16:38:38,470 [SSH: 172.30.2.151] on_read: 'DC_VMWARE 424 23/25\r\n'
  379. 2014-08-28 16:38:38,472 [SSH: 172.30.2.151] on_read: 'DC_VM_TSTLAB 259 3/3\r\n'
  380. 2014-08-28 16:38:38,474 [SSH: 172.30.2.151] on_read: 'DC_vlan1 1 \r\n'
  381. 2014-08-28 16:38:38,477 [SSH: 172.30.2.151] on_read: 'MC_AE_QFX1-2 500 3.3.3.1/30 1/1\r\ndefault \r\n\r\n'
  382. 2014-08-28 16:38:38,478 [SSH: 172.30.2.151] on_read: 'nimda@jpqfx3500-1-s10> '
  383. 2014-08-28 16:38:38,478 [SSH: 172.30.2.151] Starting synchronous FSM check
  384. 2014-08-28 16:38:38,478 [SSH: 172.30.2.151] match '^(({master(?::\d+)}\n)?\S+>)|(({master(?::\d+)})?\[edit.*?\]\n\S+#)|(\[Type \^D at a new line to end input\])'
  385. 2014-08-28 16:38:38,478 [SSH: 172.30.2.151] Starting synchronous FSM check
  386. 2014-08-28 16:38:38,478 [SSH: 172.30.2.151] event(PROMPT)
  387. 2014-08-28 16:38:38,485 [Juniper.JUNOS.get_vlans(jpqfx3500-1-s10.net.billing.ru, 172.30.2.151)] cli(show vlan brief) returns:
  388. ===[ show vlan brief ]==================================================
  389. [{'name': 'DC_AUX', 'vlan_id': '323'}, {'name': 'DC_MNG', 'vlan_id': '302'}, {'name': 'DC_STORE', 'vlan_id': '413'}, {'name': 'DC_STORE2', 'vlan_id': '415'}, {'name': 'DC_TVM_STOR', 'vlan_id': '325'}, {'name': 'DC_VBACKUP', 'vlan_id': '416'}, {'name': 'DC_VCLOUD_RELEASE', 'vlan_id': '417'}, {'name': 'DC_VDI_EDU', 'vlan_id': '370'}, {'name': 'DC_VMWARE', 'vlan_id': '424'}, {'name': 'DC_VM_TSTLAB', 'vlan_id': '259'}, {'name': 'MC_AE_QFX1-2', 'vlan_id': '500'}]
  390. ========================================================================
  391. 2014-08-28 16:38:38,485 [Juniper.JUNOS.get_vlans(jpqfx3500-1-s10.net.billing.ru, 172.30.2.151)] Script returns with result: [{'name': 'DC_AUX', 'vlan_id': 323}, {'name': 'DC_MNG', 'vlan_id': 302}, {'name': 'DC_STORE', 'vlan_id': 413}, {'name': 'DC_STORE2', 'vlan_id': 415}, {'name': 'DC_TVM_STOR', 'vlan_id': 325}, {'name': 'DC_VBACKUP', 'vlan_id': 416}, {'name': 'DC_VCLOUD_RELEASE', 'vlan_id': 417}, {'name': 'DC_VDI_EDU', 'vlan_id': 370}, {'name': 'DC_VMWARE', 'vlan_id': 424}, {'name': 'DC_VM_TSTLAB', 'vlan_id': 259}, {'name': 'MC_AE_QFX1-2', 'vlan_id': 500}]
  392. 2014-08-28 16:38:38,486 [Juniper.JUNOS.get_vlans(jpqfx3500-1-s10.net.billing.ru, 172.30.2.151)] Closing
  393. 2014-08-28 16:38:38,486 Requesting call: <bound method CLISSHSocket.close of <CLISSHSocket(0x32bda10, 172.30.2.151:22, connected)>>(*(), **{'flush': True})
  394. 2014-08-28 16:38:39,479 Tick
  395. 2014-08-28 16:38:39,480 Calling delayed <bound method CLISSHSocket.close of <CLISSHSocket(0x32bda10, 172.30.2.151:22, connected)>>(*(), **{'flush': True})
  396. 2014-08-28 16:38:39,480 [SSH: 172.30.2.151] Closing socket
  397. 2014-08-28 16:38:39,480 unregister_socket(<CLISSHSocket(0x32bda10, 172.30.2.151:22, closing)>)
  398. 2014-08-28 16:38:39,480 3 TICKS TO EXIT
  399. 2014-08-28 16:38:40,481 Tick
  400. 2014-08-28 16:38:40,481 2 TICKS TO EXIT
  401. 2014-08-28 16:38:41,482 Tick
  402. 2014-08-28 16:38:41,483 1 TICKS TO EXIT
  403. 2014-08-28 16:38:42,483 Tick
  404. 2014-08-28 16:38:42,483 EXIT
  405. 2014-08-28 16:38:42,485 SCRIPT RESULT: Juniper.JUNOS.get_vlans(jpqfx3500-1-s10.net.billing.ru, 172.30.2.151)
  406. [{'name': 'DC_AUX', 'vlan_id': 323},
  407. {'name': 'DC_MNG', 'vlan_id': 302},
  408. {'name': 'DC_STORE', 'vlan_id': 413},
  409. {'name': 'DC_STORE2', 'vlan_id': 415},
  410. {'name': 'DC_TVM_STOR', 'vlan_id': 325},
  411. {'name': 'DC_VBACKUP', 'vlan_id': 416},
  412. {'name': 'DC_VCLOUD_RELEASE', 'vlan_id': 417},
  413. {'name': 'DC_VDI_EDU', 'vlan_id': 370},
  414. {'name': 'DC_VMWARE', 'vlan_id': 424},
  415. {'name': 'DC_VM_TSTLAB', 'vlan_id': 259},
  416. {'name': 'MC_AE_QFX1-2', 'vlan_id': 500}]
  417. 2014-08-28 16:38:42,486 Shutting down the factory
  418. 2014-08-28 16:38:42,487 0 TICKS TO EXIT
  419. 2014-08-28 16:38:42,487 Stopping socket factory
  420. root@noc:/opt/noc# ./noc debug-script get_vlans jpqfx3500-4-s10.net.billing.ru
  421. 2014-08-28 16:38:54,692 SSH: Using gmpy
  422. 2014-08-28 16:38:54,786 Using JSON library: cjson
  423. 2014-08-28 16:38:54,868 Loading PeriodicRegistry
  424. 2014-08-28 16:38:54,873 Loading DownloaderRegistry
  425. 2014-08-28 16:38:54,905 Loading ProfileRegistry
  426. 2014-08-28 16:38:55,755 Loading ScriptRegistry
  427. 2014-08-28 16:38:56,140 Setting up 'select' polling method
  428. 2014-08-28 16:38:56,141 Activating 'select' poller
  429. 2014-08-28 16:38:56,142 Loading private ssh key from 'etc/ssh/id_rsa'
  430. 2014-08-28 16:38:56,142 Loading public ssh key from 'etc/ssh/id_rsa.pub'
  431. access_profile {
  432. profile: "Juniper.JUNOS"
  433. scheme: SSH
  434. address: "172.30.2.229"
  435. user: "nimda"
  436. password: "password"
  437. attrs {
  438. key: "platform"
  439. value: "qfx3500s"
  440. }
  441. attrs {
  442. key: "vendor"
  443. value: "Juniper"
  444. }
  445. attrs {
  446. key: "version"
  447. value: "12.3X50-D35"
  448. }
  449. }
  450. object_name: "jpqfx3500-4-s10.net.billing.ru"
  451. script: "Juniper.JUNOS.get_vlans"
  452.  
  453. 2014-08-28 16:38:56,147 Running socket factory (SelectPoller)
  454. 2014-08-28 16:38:56,147 Running script thread
  455. 2014-08-28 16:38:56,148 Creating transaction id=1402731400 method=None callback=None
  456. 2014-08-28 16:38:56,148 [Juniper.JUNOS.get_vlans(jpqfx3500-4-s10.net.billing.ru, 172.30.2.229)] Running
  457. 2014-08-28 16:38:56,149 [Juniper.JUNOS.get_vlans(jpqfx3500-4-s10.net.billing.ru, 172.30.2.229)] Running script: Juniper.JUNOS.get_vlans ({})
  458. 2014-08-28 16:38:56,149 [Juniper.JUNOS.get_vlans(jpqfx3500-4-s10.net.billing.ru, 172.30.2.229)] cli(show vlan brief)
  459. 2014-08-28 16:38:56,149 [Juniper.JUNOS.get_vlans(jpqfx3500-4-s10.net.billing.ru, 172.30.2.229)] Running new provider
  460. 2014-08-28 16:38:56,150 [SSH: 172.30.2.229] ==> SSH_START
  461. 2014-08-28 16:38:56,150 [SSH: 172.30.2.229] set_timeout(30)
  462. 2014-08-28 16:38:56,150 register_socket(<CLISSHSocket(0x4a56a10, 172.30.2.229:22, )>,None)
  463. 2014-08-28 16:38:57,148 Tick
  464. 2014-08-28 16:38:57,148 3 TICKS TO EXIT
  465. 2014-08-28 16:38:57,148 [SSH: 172.30.2.229] Initializing socket
  466. 2014-08-28 16:38:57,148 [SSH: 172.30.2.229] Connecting 172.30.2.229:22
  467. 2014-08-28 16:38:57,162 [SSH: 172.30.2.229] Connected
  468. 2014-08-28 16:38:57,303 [SSH: 172.30.2.229] event(SSH_VERSION)
  469. 2014-08-28 16:38:57,303 [SSH: 172.30.2.229] ==> SSH_VERSION
  470. 2014-08-28 16:38:57,303 [SSH: 172.30.2.229] Remote protocol version 2.0, remote software version OpenSSH_6.0
  471. 2014-08-28 16:38:57,303 [SSH: 172.30.2.229] Setting SSH transforms to: in=none none, out=none none
  472. 2014-08-28 16:38:57,303 [SSH: 172.30.2.229] Setting SSH transform keys
  473. 2014-08-28 16:38:57,304 [SSH: 172.30.2.229] Sending message type MSG_KEXINIT (20)
  474. 2014-08-28 16:38:57,304 [SSH: 172.30.2.229] event(SSH_KEY_EXCHANGE)
  475. 2014-08-28 16:38:57,304 [SSH: 172.30.2.229] ==> SSH_KEY_EXCHANGE
  476. 2014-08-28 16:38:57,349 [SSH: 172.30.2.229] Receiving message type MSG_KEXINIT (20)
  477. 2014-08-28 16:38:57,349 [SSH: 172.30.2.229] Receiving server proposals: kex=['ecdh-sha2-nistp256', 'ecdh-sha2-nistp384', 'ecdh-sha2-nistp521', 'diffie-hellman-group-exchange-sha256', 'diffie-hellman-group-exchange-sha1', 'diffie-hellman-group14-sha1', 'diffie-hellman-group1-sha1'] key=['ssh-rsa', 'ssh-dss', 'ecdsa-sha2-nistp256'] enc_cs=['aes128-ctr', 'aes192-ctr', 'aes256-ctr', 'arcfour256', 'arcfour128', 'aes128-cbc', '3des-cbc', 'blowfish-cbc', 'cast128-cbc', 'aes192-cbc', 'aes256-cbc', 'arcfour', 'rijndael-cbc@lysator.liu.se'] enc_sc=['aes128-ctr', 'aes192-ctr', 'aes256-ctr', 'arcfour256', 'arcfour128', 'aes128-cbc', '3des-cbc', 'blowfish-cbc', 'cast128-cbc', 'aes192-cbc', 'aes256-cbc', 'arcfour', 'rijndael-cbc@lysator.liu.se'] mac_cs=['hmac-md5', 'hmac-sha1', 'umac-64@openssh.com', 'hmac-sha2-256', 'hmac-sha2-256-96', 'hmac-sha2-512', 'hmac-sha2-512-96', 'hmac-ripemd160', 'hmac-ripemd160@openssh.com', 'hmac-sha1-96', 'hmac-md5-96'] mac_sc=['hmac-md5', 'hmac-sha1', 'umac-64@openssh.com', 'hmac-sha2-256', 'hmac-sha2-256-96', 'hmac-sha2-512', 'hmac-sha2-512-96', 'hmac-ripemd160', 'hmac-ripemd160@openssh.com', 'hmac-sha1-96', 'hmac-md5-96'] comp_cs=['none', 'zlib@openssh.com'] comp_sc['none', 'zlib@openssh.com']
  478. 2014-08-28 16:38:57,349 [SSH: 172.30.2.229] Setting SSH transforms to: in=aes256-ctr hmac-sha1, out=aes256-ctr hmac-sha1
  479. 2014-08-28 16:38:57,349 [SSH: 172.30.2.229] Selecting diffie-hellman-group-exchange-sha1 ssh-rsa, in=(aes256-ctr hmac-sha1 none) out=(aes256-ctr hmac-sha1 none)
  480. 2014-08-28 16:38:57,349 [SSH: 172.30.2.229] Sending message type MSG_KEX_DH_GEX_REQUEST_OLD (30)
  481. 2014-08-28 16:38:57,385 [SSH: 172.30.2.229] Receiving message type MSG_KEXDH_REPLY (31)
  482. 2014-08-28 16:38:57,387 [SSH: 172.30.2.229] Sending message type MSG_KEX_DH_GEX_INIT (32)
  483. 2014-08-28 16:38:57,964 [SSH: 172.30.2.229] Receiving message type MSG_KEX_DH_GEX_REPLY (33)
  484. 2014-08-28 16:38:57,964 [SSH: 172.30.2.229] Server PK fingerprint: c3:46:20:ce:64:88:ec:d4:93:40:33:27:d9:2f:d9:55
  485. 2014-08-28 16:38:57,967 [SSH: 172.30.2.229] Setting SSH transform keys
  486. 2014-08-28 16:38:57,967 [SSH: 172.30.2.229] Sending message type MSG_NEWKEYS (21)
  487. 2014-08-28 16:38:57,967 [SSH: 172.30.2.229] Receiving message type MSG_NEWKEYS (21)
  488. 2014-08-28 16:38:57,967 [SSH: 172.30.2.229] Using new keys
  489. 2014-08-28 16:38:57,968 [SSH: 172.30.2.229] event(SSH_AUTH)
  490. 2014-08-28 16:38:57,968 [SSH: 172.30.2.229] ==> SSH_AUTH
  491. 2014-08-28 16:38:57,968 [SSH: 172.30.2.229] Requesting service ssh-userauth
  492. 2014-08-28 16:38:57,968 [SSH: 172.30.2.229] Sending message type MSG_SERVICE_REQUEST (5)
  493. 2014-08-28 16:38:57,970 [SSH: 172.30.2.229] Receiving message type MSG_SERVICE_ACCEPT (6)
  494. 2014-08-28 16:38:57,971 [SSH: 172.30.2.229] Starting service ssh-userauth
  495. 2014-08-28 16:38:57,972 [SSH: 172.30.2.229] event(SSH_AUTH_PASSWORD)
  496. 2014-08-28 16:38:57,972 [SSH: 172.30.2.229] ==> SSH_AUTH_PASSWORD
  497. 2014-08-28 16:38:57,973 [SSH: 172.30.2.229] Authenticating with 'none' method
  498. 2014-08-28 16:38:57,974 [SSH: 172.30.2.229] Sending message type MSG_USERAUTH_REQUEST (50)
  499. 2014-08-28 16:38:57,983 [SSH: 172.30.2.229] Receiving message type MSG_USERAUTH_FAILURE (51)
  500. 2014-08-28 16:38:57,983 [SSH: 172.30.2.229] Authentication method 'none' has been failed. Trying next method (publickey,password,keyboard-interactive)
  501. 2014-08-28 16:38:57,983 [SSH: 172.30.2.229] Partially authenticated with 'none'. Trying next method
  502. 2014-08-28 16:38:57,983 [SSH: 172.30.2.229] Authenticating with 'publickey' method
  503. 2014-08-28 16:38:57,984 [SSH: 172.30.2.229] Sending message type MSG_USERAUTH_REQUEST (50)
  504. 2014-08-28 16:38:57,990 [SSH: 172.30.2.229] Receiving message type MSG_USERAUTH_FAILURE (51)
  505. 2014-08-28 16:38:57,990 [SSH: 172.30.2.229] Authentication method 'publickey' has been failed. Trying next method (publickey,password,keyboard-interactive)
  506. 2014-08-28 16:38:57,990 [SSH: 172.30.2.229] Partially authenticated with 'publickey'. Trying next method
  507. 2014-08-28 16:38:57,990 [SSH: 172.30.2.229] Authenticating with 'password' method
  508. 2014-08-28 16:38:57,990 [SSH: 172.30.2.229] Sending message type MSG_USERAUTH_REQUEST (50)
  509. 2014-08-28 16:38:58,008 [SSH: 172.30.2.229] Receiving message type MSG_USERAUTH_SUCCESS (52)
  510. 2014-08-28 16:38:58,008 [SSH: 172.30.2.229] event(SSH_CHANNEL)
  511. 2014-08-28 16:38:58,008 [SSH: 172.30.2.229] ==> SSH_CHANNEL
  512. 2014-08-28 16:38:58,008 [SSH: 172.30.2.229] Sending message type MSG_CHANNEL_OPEN (90)
  513. 2014-08-28 16:38:58,011 [SSH: 172.30.2.229] Receiving message type MSG_CHANNEL_OPEN_CONFIRMATION (91)
  514. 2014-08-28 16:38:58,012 [SSH: 172.30.2.229] Opening channel. local=0 remote=0
  515. 2014-08-28 16:38:58,012 [SSH: 172.30.2.229] event(SSH_PTY)
  516. 2014-08-28 16:38:58,012 [SSH: 172.30.2.229] ==> SSH_PTY
  517. 2014-08-28 16:38:58,012 [SSH: 172.30.2.229] Requesting PTY
  518. 2014-08-28 16:38:58,012 [SSH: 172.30.2.229] Sending message type MSG_CHANNEL_REQUEST (98)
  519. 2014-08-28 16:38:58,018 [SSH: 172.30.2.229] Receiving message type MSG_CHANNEL_SUCCESS (99)
  520. 2014-08-28 16:38:58,018 [SSH: 172.30.2.229] event(SSH_SHELL)
  521. 2014-08-28 16:38:58,019 [SSH: 172.30.2.229] ==> SSH_SHELL
  522. 2014-08-28 16:38:58,019 [SSH: 172.30.2.229] Requesting shell
  523. 2014-08-28 16:38:58,019 [SSH: 172.30.2.229] Sending message type MSG_CHANNEL_REQUEST (98)
  524. 2014-08-28 16:38:58,027 [SSH: 172.30.2.229] Receiving message type MSG_CHANNEL_WINDOW_ADJUST (93)
  525. 2014-08-28 16:38:58,027 [SSH: 172.30.2.229] Receiving message type MSG_CHANNEL_SUCCESS (99)
  526. 2014-08-28 16:38:58,027 [SSH: 172.30.2.229] event(START)
  527. 2014-08-28 16:38:58,027 [SSH: 172.30.2.229] ==> START
  528. 2014-08-28 16:38:58,028 [SSH: 172.30.2.229] 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')])
  529. 2014-08-28 16:38:58,032 [SSH: 172.30.2.229] on_read: '--- JUNOS 12.3X50-D35 built 2013-10-22 07:02:18 UTC\r\n'
  530. 2014-08-28 16:38:58,513 [SSH: 172.30.2.229] on_read: 'nimda@jpqfx3500-4-s10> '
  531. 2014-08-28 16:38:58,513 [SSH: 172.30.2.229] Starting synchronous FSM check
  532. 2014-08-28 16:38:58,514 [SSH: 172.30.2.229] match '^(({master(?::\d+)}\n)?\S+>)|(({master(?::\d+)})?\[edit.*?\]\n\S+#)|(\[Type \^D at a new line to end input\])'
  533. 2014-08-28 16:38:58,514 [SSH: 172.30.2.229] event(PROMPT)
  534. 2014-08-28 16:38:58,514 [SSH: 172.30.2.229] ==> PROMPT
  535. 2014-08-28 16:38:58,514 [SSH: 172.30.2.229] on_PROMPT_enter
  536. 2014-08-28 16:38:58,514 [SSH: 172.30.2.229] Using prompt pattern: ^(({master(?::\d+)}\n)?\S+>)|(({master(?::\d+)})?\[edit.*?\]\n\S+#)|(\[Type \^D at a new line to end input\])
  537. 2014-08-28 16:38:58,514 [SSH: 172.30.2.229] set_patterns([('^(({master(?::\\d+)}\\n)?\\S+>)|(({master(?::\\d+)})?\\[edit.*?\\]\\n\\S+#)|(\\[Type \\^D at a new line to end input\\])', 'PROMPT'), ('(^---\\(more.*?\\)---)', 'PAGER')])
  538. 2014-08-28 16:38:58,514 Tick
  539. 2014-08-28 16:38:58,514 Resetting wait ticks
  540. 2014-08-28 16:38:58,518 [Juniper.JUNOS.get_vlans(jpqfx3500-4-s10.net.billing.ru, 172.30.2.229)] CLI Provider is ready
  541. 2014-08-28 16:38:58,518 [Juniper.JUNOS.get_vlans(jpqfx3500-4-s10.net.billing.ru, 172.30.2.229)] Disable paging
  542. 2014-08-28 16:38:58,518 [Juniper.JUNOS.get_vlans(jpqfx3500-4-s10.net.billing.ru, 172.30.2.229)] cli(set cli screen-length 0)
  543. 2014-08-28 16:38:58,518 [SSH: 172.30.2.229] submit('set cli screen-length 0', bulk_lines=None, streaming=False)
  544. 2014-08-28 16:38:58,518 [SSH: 172.30.2.229] Sending message type MSG_CHANNEL_DATA (94)
  545. 2014-08-28 16:38:59,516 Tick
  546. 2014-08-28 16:38:59,516 Resetting wait ticks
  547. 2014-08-28 16:38:59,519 [SSH: 172.30.2.229] on_read: 's'
  548. 2014-08-28 16:38:59,522 [SSH: 172.30.2.229] on_read: 'e'
  549. 2014-08-28 16:38:59,524 [SSH: 172.30.2.229] on_read: 't'
  550. 2014-08-28 16:38:59,525 [SSH: 172.30.2.229] on_read: ' '
  551. 2014-08-28 16:38:59,527 [SSH: 172.30.2.229] on_read: 'cl'
  552. 2014-08-28 16:38:59,529 [SSH: 172.30.2.229] on_read: 'i'
  553. 2014-08-28 16:38:59,530 [SSH: 172.30.2.229] on_read: ' '
  554. 2014-08-28 16:38:59,531 [SSH: 172.30.2.229] on_read: 'screen-'
  555. 2014-08-28 16:38:59,532 [SSH: 172.30.2.229] on_read: 'length'
  556. 2014-08-28 16:38:59,534 [SSH: 172.30.2.229] on_read: ' '
  557. 2014-08-28 16:38:59,535 [SSH: 172.30.2.229] on_read: '0'
  558. 2014-08-28 16:38:59,537 [SSH: 172.30.2.229] on_read: ' '
  559. 2014-08-28 16:38:59,539 [SSH: 172.30.2.229] on_read: '\r\n'
  560. 2014-08-28 16:38:59,546 [SSH: 172.30.2.229] on_read: 'Screen length set to 0\r\n'
  561. 2014-08-28 16:38:59,547 [SSH: 172.30.2.229] on_read: '\r\n'
  562. 2014-08-28 16:38:59,547 [SSH: 172.30.2.229] on_read: 'nimda@jpqfx3500-4-s10> '
  563. 2014-08-28 16:38:59,547 [SSH: 172.30.2.229] Starting synchronous FSM check
  564. 2014-08-28 16:38:59,548 [SSH: 172.30.2.229] match '^(({master(?::\d+)}\n)?\S+>)|(({master(?::\d+)})?\[edit.*?\]\n\S+#)|(\[Type \^D at a new line to end input\])'
  565. 2014-08-28 16:38:59,548 [SSH: 172.30.2.229] Starting synchronous FSM check
  566. 2014-08-28 16:38:59,548 [SSH: 172.30.2.229] event(PROMPT)
  567. 2014-08-28 16:38:59,550 [Juniper.JUNOS.get_vlans(jpqfx3500-4-s10.net.billing.ru, 172.30.2.229)] cli(set cli screen-length 0) returns:
  568. ===[ set cli screen-length 0 ]==========================================
  569. ' \nScreen length set to 0\n\n'
  570. ========================================================================
  571. 2014-08-28 16:38:59,550 [SSH: 172.30.2.229] submit('show vlan brief', bulk_lines=None, streaming=False)
  572. 2014-08-28 16:38:59,550 [SSH: 172.30.2.229] Sending message type MSG_CHANNEL_DATA (94)
  573. 2014-08-28 16:39:00,549 Tick
  574. 2014-08-28 16:39:00,549 Resetting wait ticks
  575. 2014-08-28 16:39:00,554 [SSH: 172.30.2.229] on_read: 'show'
  576. 2014-08-28 16:39:00,556 [SSH: 172.30.2.229] on_read: ' vlan'
  577. 2014-08-28 16:39:00,564 [SSH: 172.30.2.229] on_read: 's brief'
  578. 2014-08-28 16:39:00,656 [SSH: 172.30.2.229] on_read: ' '
  579. 2014-08-28 16:39:00,660 [SSH: 172.30.2.229] on_read: '\r\n'
  580. 2014-08-28 16:39:00,670 [SSH: 172.30.2.229] on_read: ' Ports \r\nName Tag Primary Address Active/Total\r\nDC_AUX 323 \r\n'
  581. 2014-08-28 16:39:00,671 [SSH: 172.30.2.229] on_read: 'DC_MNG 302 \r\n'
  582. 2014-08-28 16:39:00,682 [SSH: 172.30.2.229] on_read: 'DC_SRV0 300 \r\nDC_SRV5 305 3/3\r\n'
  583. 2014-08-28 16:39:00,683 [SSH: 172.30.2.229] on_read: 'DC_STORE 413 6/8\r\n'
  584. 2014-08-28 16:39:00,684 [SSH: 172.30.2.229] on_read: 'DC_STORE2 415 \r\n'
  585. 2014-08-28 16:39:00,686 [SSH: 172.30.2.229] on_read: 'DC_STORE_DVLP 411 7/7\r\n'
  586. 2014-08-28 16:39:00,686 [SSH: 172.30.2.229] on_read: 'DC_TVM_STOR 325 5/5\r\n'
  587. 2014-08-28 16:39:00,688 [SSH: 172.30.2.229] on_read: 'DC_VBACKUP_DVLP 412 2/2\r\n'
  588. 2014-08-28 16:39:00,690 [SSH: 172.30.2.229] on_read: 'DC_VCLOUD_RELEASE 417 3/3\r\nDC_VDI_EDU 370 \r\n'
  589. 2014-08-28 16:39:00,692 [SSH: 172.30.2.229] on_read: 'DC_VMWARE 424 1/1\r\n'
  590. 2014-08-28 16:39:00,693 [SSH: 172.30.2.229] on_read: 'DC_VM_TSTLAB 259 \r\nDC_vlan1 1 \r\n'
  591. 2014-08-28 16:39:00,695 [SSH: 172.30.2.229] on_read: 'default 0/21\r\nv100 100 \r\n'
  592. 2014-08-28 16:39:00,695 [SSH: 172.30.2.229] on_read: 'v500 500 3.3.3.6/30 1/1\r\n'
  593. 2014-08-28 16:39:00,696 [SSH: 172.30.2.229] on_read: '\r\n'
  594. 2014-08-28 16:39:00,697 [SSH: 172.30.2.229] on_read: 'nimda@jpqfx3500-4-s10> '
  595. 2014-08-28 16:39:00,697 [SSH: 172.30.2.229] Starting synchronous FSM check
  596. 2014-08-28 16:39:00,697 [SSH: 172.30.2.229] match '^(({master(?::\d+)}\n)?\S+>)|(({master(?::\d+)})?\[edit.*?\]\n\S+#)|(\[Type \^D at a new line to end input\])'
  597. 2014-08-28 16:39:00,698 [SSH: 172.30.2.229] Starting synchronous FSM check
  598. 2014-08-28 16:39:00,698 [SSH: 172.30.2.229] event(PROMPT)
  599. 2014-08-28 16:39:00,718 [Juniper.JUNOS.get_vlans(jpqfx3500-4-s10.net.billing.ru, 172.30.2.229)] cli(show vlan brief) returns:
  600. ===[ show vlan brief ]==================================================
  601. [{'name': 'DC_SRV5', 'vlan_id': '305'}, {'name': 'DC_STORE', 'vlan_id': '413'}, {'name': 'DC_STORE_DVLP', 'vlan_id': '411'}, {'name': 'DC_TVM_STOR', 'vlan_id': '325'}, {'name': 'DC_VBACKUP_DVLP', 'vlan_id': '412'}, {'name': 'DC_VCLOUD_RELEASE', 'vlan_id': '417'}, {'name': 'DC_VMWARE', 'vlan_id': '424'}, {'name': 'v500', 'vlan_id': '500'}]
  602. ========================================================================
  603. 2014-08-28 16:39:00,718 [Juniper.JUNOS.get_vlans(jpqfx3500-4-s10.net.billing.ru, 172.30.2.229)] Script returns with result: [{'name': 'DC_SRV5', 'vlan_id': 305}, {'name': 'DC_STORE', 'vlan_id': 413}, {'name': 'DC_STORE_DVLP', 'vlan_id': 411}, {'name': 'DC_TVM_STOR', 'vlan_id': 325}, {'name': 'DC_VBACKUP_DVLP', 'vlan_id': 412}, {'name': 'DC_VCLOUD_RELEASE', 'vlan_id': 417}, {'name': 'DC_VMWARE', 'vlan_id': 424}, {'name': 'v500', 'vlan_id': 500}]
  604. 2014-08-28 16:39:00,718 [Juniper.JUNOS.get_vlans(jpqfx3500-4-s10.net.billing.ru, 172.30.2.229)] Closing
  605. 2014-08-28 16:39:00,719 Requesting call: <bound method CLISSHSocket.close of <CLISSHSocket(0x4a56a10, 172.30.2.229:22, connected)>>(*(), **{'flush': True})
  606. 2014-08-28 16:39:01,699 Tick
  607. 2014-08-28 16:39:01,700 Calling delayed <bound method CLISSHSocket.close of <CLISSHSocket(0x4a56a10, 172.30.2.229:22, connected)>>(*(), **{'flush': True})
  608. 2014-08-28 16:39:01,700 [SSH: 172.30.2.229] Closing socket
  609. 2014-08-28 16:39:01,700 unregister_socket(<CLISSHSocket(0x4a56a10, 172.30.2.229:22, closing)>)
  610. 2014-08-28 16:39:01,700 3 TICKS TO EXIT
  611. 2014-08-28 16:39:02,701 Tick
  612. 2014-08-28 16:39:02,701 2 TICKS TO EXIT
  613. 2014-08-28 16:39:03,702 Tick
  614. 2014-08-28 16:39:03,702 1 TICKS TO EXIT
  615. 2014-08-28 16:39:04,703 Tick
  616. 2014-08-28 16:39:04,704 EXIT
  617. 2014-08-28 16:39:04,705 SCRIPT RESULT: Juniper.JUNOS.get_vlans(jpqfx3500-4-s10.net.billing.ru, 172.30.2.229)
  618. [{'name': 'DC_SRV5', 'vlan_id': 305},
  619. {'name': 'DC_STORE', 'vlan_id': 413},
  620. {'name': 'DC_STORE_DVLP', 'vlan_id': 411},
  621. {'name': 'DC_TVM_STOR', 'vlan_id': 325},
  622. {'name': 'DC_VBACKUP_DVLP', 'vlan_id': 412},
  623. {'name': 'DC_VCLOUD_RELEASE', 'vlan_id': 417},
  624. {'name': 'DC_VMWARE', 'vlan_id': 424},
  625. {'name': 'v500', 'vlan_id': 500}]
  626. 2014-08-28 16:39:04,706 Shutting down the factory
  627. 2014-08-28 16:39:04,706 0 TICKS TO EXIT
  628. 2014-08-28 16:39:04,707 Stopping socket factory
  629. root@noc:/opt/noc#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement