Advertisement
Guest User

Untitled

a guest
Jul 24th, 2015
307
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 64.42 KB | None | 0 0
  1. root@noc:/opt/noc# ./noc debug-script get_lldp_neighbors jex2200-svao-sv-fl-0-A-1
  2. 2015-07-24 16:50:15,551 Using JSON library: cjson
  3. 2015-07-24 16:50:15,559 SSH: Using gmpy
  4. 2015-07-24 16:50:15,651 Connecting to MongoDB {'username': 'noc', 'password': '********', 'db': 'noc'}
  5. 2015-07-24 16:50:15,736 Connecting to MongoDB {'username': 'noc', 'password': '********', 'db': 'noc'}
  6. 2015-07-24 16:50:15,744 Loading PeriodicRegistry
  7. 2015-07-24 16:50:15,757 Registering MetricType
  8. 2015-07-24 16:50:15,762 Loading compiled MIBs
  9. 2015-07-24 16:50:15,762 Loading compiled MIBs from 'cmibs'
  10. 2015-07-24 16:50:15,763 Loading MIB: CISCO-VPDN-MGMT-MIB
  11. 2015-07-24 16:50:15,763 Loading MIB: RFC1213-MIB
  12. 2015-07-24 16:50:15,763 Loading MIB: SNMPv2-MIB
  13. 2015-07-24 16:50:15,763 Loading MIB: IF-MIB
  14. 2015-07-24 16:50:15,763 Loading MIB: CISCO-PPPOE-MIB
  15. 2015-07-24 16:50:15,764 Loading MIB: IP-MIB
  16. 2015-07-24 16:50:15,770 Configuring metric mappings sa.managedobject -> object.{{object.name|qm}}.{{metric_type|qm}}
  17. 2015-07-24 16:50:15,770 Configuring metric mappings inv.interface -> object.{{object.managed_object.name|qm}}.interface.{{object.name|qm}}.{{metric_type|qm}}
  18. 2015-07-24 16:50:15,772 Loading DownloaderRegistry
  19. 2015-07-24 16:50:15,798 Loading ProfileRegistry
  20. 2015-07-24 16:50:16,919 Loading ScriptRegistry
  21. 2015-07-24 16:50:16,994 Adding FTS index for sa.managedobject
  22. 2015-07-24 16:50:17,004 Registering ConnectionType
  23. 2015-07-24 16:50:17,008 Registering ObjectModel
  24. 2015-07-24 16:50:17,009 Registering Capability
  25. 2015-07-24 16:50:17,014 Adding FTS index for vc.vc
  26. 2015-07-24 16:50:17,026 Adding FTS index for ip.vrf
  27. 2015-07-24 16:50:17,028 Adding FTS index for ip.prefix
  28. 2015-07-24 16:50:17,029 Adding FTS index for ip.address
  29. 2015-07-24 16:50:17,182 Setting up 'select' polling method
  30. 2015-07-24 16:50:17,182 Activating 'select' poller
  31. 2015-07-24 16:50:17,182 Loading private ssh key from 'etc/ssh/id_rsa'
  32. 2015-07-24 16:50:17,183 Loading public ssh key from 'etc/ssh/id_rsa.pub'
  33. access_profile {
  34. profile: "Juniper.JUNOS"
  35. scheme: SSH
  36. address: "10.36.157.63"
  37. user: "admin"
  38. password: "f8aNhGYv"
  39. attrs {
  40. key: "platform"
  41. value: "ex2200-24p-4g"
  42. }
  43. attrs {
  44. key: "vendor"
  45. value: "Juniper"
  46. }
  47. attrs {
  48. key: "version"
  49. value: "11.4R7.5"
  50. }
  51. caps {
  52. capability: "SNMP"
  53. bool_value: true
  54. }
  55. caps {
  56. capability: "SNMP | Bulk"
  57. bool_value: true
  58. }
  59. caps {
  60. capability: "SNMP | IF-MIB"
  61. bool_value: true
  62. }
  63. caps {
  64. capability: "SNMP | IF-MIB | HC"
  65. bool_value: true
  66. }
  67. }
  68. object_name: "jex2200-svao-sv-fl-0-A-1"
  69. script: "Juniper.JUNOS.get_lldp_neighbors"
  70. timeout: 120
  71.  
  72. 2015-07-24 16:50:17,184 Running script thread
  73. 2015-07-24 16:50:17,184 Creating transaction id=1131617347 method=None callback=None
  74. 2015-07-24 16:50:17,185 Running socket factory (SelectPoller)
  75. 2015-07-24 16:50:17,185 Capabilities: {u'SNMP | IF-MIB': True, u'SNMP | Bulk': True, u'SNMP': True, u'SNMP | IF-MIB | HC': True}
  76. 2015-07-24 16:50:17,186 Running
  77. 2015-07-24 16:50:17,186 Running script: Juniper.JUNOS.get_lldp_neighbors ({}), timeout 120s
  78. 2015-07-24 16:50:17,186 Capabilities: {u'SNMP | IF-MIB': True, u'SNMP | Bulk': True, u'SNMP': True, u'SNMP | IF-MIB | HC': True}
  79. 2015-07-24 16:50:17,186 Running script: Juniper.JUNOS.get_version ({}), timeout 120s
  80. 2015-07-24 16:50:17,186 Not in call cache: 'Juniper.JUNOS.get_version', {}
  81. 2015-07-24 16:50:17,186 cli(show version)
  82. 2015-07-24 16:50:17,187 Running new provider
  83. 2015-07-24 16:50:17,187 [CLISSHSocket(0x7f71031bfe50)]<None> ==> SSH_START
  84. 2015-07-24 16:50:17,187 [CLISSHSocket(0x7f71031bfe50)]<SSH_START> Set FSM timeout to 30
  85. 2015-07-24 16:50:17,187 Register socket CLISSHSocket 10.36.157.63:22 (None)
  86. 2015-07-24 16:50:18,186 Tick
  87. 2015-07-24 16:50:18,186 3 TICKS TO EXIT
  88. 2015-07-24 16:50:18,186 [CLISSHSocket(0x7f71031bfe50)]<SSH_START> Initializing socket
  89. 2015-07-24 16:50:18,186 [CLISSHSocket 10.36.157.63:22] Connecting 10.36.157.63:22
  90. 2015-07-24 16:50:18,188 [CLISSHSocket 10.36.157.63:22] create_socket returns non-zero code 115[EINPROGRESS]
  91. 2015-07-24 16:50:18,275 [CLISSHSocket 10.36.157.63:22] Connected
  92. 2015-07-24 16:50:18,978 [CLISSHSocket(0x7f71031bfe50)]<SSH_START> event(SSH_VERSION)
  93. 2015-07-24 16:50:18,978 [CLISSHSocket(0x7f71031bfe50)]<SSH_START> ==> SSH_VERSION
  94. 2015-07-24 16:50:18,978 [CLISSHSocket 10.36.157.63:22] Remote protocol version 2.0, remote software version OpenSSH_5.8
  95. 2015-07-24 16:50:18,978 [CLISSHSocket(0x7f71031bfe50)]<SSH_VERSION> Setting SSH transforms to: in=none none, out=none none
  96. 2015-07-24 16:50:18,979 [CLISSHSocket(0x7f71031bfe50)]<SSH_VERSION> Setting SSH transform keys
  97. 2015-07-24 16:50:18,979 [CLISSHSocket 10.36.157.63:22] Sending message type MSG_KEXINIT (20)
  98. 2015-07-24 16:50:18,979 [CLISSHSocket(0x7f71031bfe50)]<SSH_VERSION> event(SSH_KEY_EXCHANGE)
  99. 2015-07-24 16:50:18,979 [CLISSHSocket(0x7f71031bfe50)]<SSH_VERSION> ==> SSH_KEY_EXCHANGE
  100. 2015-07-24 16:50:19,055 [CLISSHSocket 10.36.157.63:22] Receiving message type MSG_KEXINIT (20)
  101. 2015-07-24 16:50:19,056 [CLISSHSocket 10.36.157.63:22] 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-ripemd160', 'hmac-ripemd160@openssh.com', 'hmac-sha1-96', 'hmac-md5-96'] mac_sc=['hmac-md5', 'hmac-sha1', 'umac-64@openssh.com', 'hmac-ripemd160', 'hmac-ripemd160@openssh.com', 'hmac-sha1-96', 'hmac-md5-96'] comp_cs=['none', 'zlib@openssh.com'] comp_sc['none', 'zlib@openssh.com']
  102. 2015-07-24 16:50:19,056 [CLISSHSocket(0x7f71031bfe50)]<SSH_KEY_EXCHANGE> Setting SSH transforms to: in=aes256-ctr hmac-sha1, out=aes256-ctr hmac-sha1
  103. 2015-07-24 16:50:19,056 [CLISSHSocket 10.36.157.63:22] Selecting diffie-hellman-group14-sha1 ecdsa-sha2-nistp256, in=(aes256-ctr hmac-sha1 zlib@openssh.com) out=(aes256-ctr hmac-sha1 zlib@openssh.com)
  104. 2015-07-24 16:50:19,059 [CLISSHSocket 10.36.157.63:22] Sending message type MSG_KEX_DH_GEX_REQUEST_OLD (30)
  105. 2015-07-24 16:50:19,990 [CLISSHSocket 10.36.157.63:22] Receiving message type MSG_KEXDH_REPLY (31)
  106. 2015-07-24 16:50:19,990 [CLISSHSocket 10.36.157.63:22] Server PK fingerprint: cf:dd:5d:e1:29:80:e4:cc:50:a8:e2:08:80:28:87:54
  107. 2015-07-24 16:50:20,195 [CLISSHSocket(0x7f71031bfe50)]<SSH_KEY_EXCHANGE> Setting SSH transform keys
  108. 2015-07-24 16:50:20,195 [CLISSHSocket 10.36.157.63:22] Sending message type MSG_NEWKEYS (21)
  109. 2015-07-24 16:50:20,195 [CLISSHSocket 10.36.157.63:22] Receiving message type MSG_NEWKEYS (21)
  110. 2015-07-24 16:50:20,196 [CLISSHSocket 10.36.157.63:22] Using new keys
  111. 2015-07-24 16:50:20,196 [CLISSHSocket(0x7f71031bfe50)]<SSH_KEY_EXCHANGE> event(SSH_AUTH)
  112. 2015-07-24 16:50:20,197 [CLISSHSocket(0x7f71031bfe50)]<SSH_KEY_EXCHANGE> ==> SSH_AUTH
  113. 2015-07-24 16:50:20,197 [CLISSHSocket 10.36.157.63:22] Requesting service ssh-userauth
  114. 2015-07-24 16:50:20,197 [CLISSHSocket 10.36.157.63:22] Sending message type MSG_SERVICE_REQUEST (5)
  115. 2015-07-24 16:50:20,198 Tick
  116. 2015-07-24 16:50:20,198 Resetting wait ticks
  117. 2015-07-24 16:50:20,303 [CLISSHSocket 10.36.157.63:22] Receiving message type MSG_SERVICE_ACCEPT (6)
  118. 2015-07-24 16:50:20,303 [CLISSHSocket 10.36.157.63:22] Starting service ssh-userauth
  119. 2015-07-24 16:50:20,303 [CLISSHSocket(0x7f71031bfe50)]<SSH_AUTH> event(SSH_AUTH_PASSWORD)
  120. 2015-07-24 16:50:20,304 [CLISSHSocket(0x7f71031bfe50)]<SSH_AUTH> ==> SSH_AUTH_PASSWORD
  121. 2015-07-24 16:50:20,304 [CLISSHSocket 10.36.157.63:22] Authenticating with 'none' method
  122. 2015-07-24 16:50:20,305 [CLISSHSocket 10.36.157.63:22] Sending message type MSG_USERAUTH_REQUEST (50)
  123. 2015-07-24 16:50:20,370 [CLISSHSocket 10.36.157.63:22] Receiving message type MSG_USERAUTH_FAILURE (51)
  124. 2015-07-24 16:50:20,370 [CLISSHSocket 10.36.157.63:22] Authentication method 'none' has been failed. Trying next method (publickey,password,keyboard-interactive)
  125. 2015-07-24 16:50:20,371 [CLISSHSocket 10.36.157.63:22] Partially authenticated with 'none'. Trying next method
  126. 2015-07-24 16:50:20,371 [CLISSHSocket 10.36.157.63:22] Authenticating with 'publickey' method
  127. 2015-07-24 16:50:20,373 [CLISSHSocket 10.36.157.63:22] Sending message type MSG_USERAUTH_REQUEST (50)
  128. 2015-07-24 16:50:20,392 [CLISSHSocket 10.36.157.63:22] Receiving message type MSG_USERAUTH_FAILURE (51)
  129. 2015-07-24 16:50:20,392 [CLISSHSocket 10.36.157.63:22] Authentication method 'publickey' has been failed. Trying next method (publickey,password,keyboard-interactive)
  130. 2015-07-24 16:50:20,393 [CLISSHSocket 10.36.157.63:22] Partially authenticated with 'publickey'. Trying next method
  131. 2015-07-24 16:50:20,393 [CLISSHSocket 10.36.157.63:22] Authenticating with 'password' method
  132. 2015-07-24 16:50:20,394 [CLISSHSocket 10.36.157.63:22] Sending message type MSG_USERAUTH_REQUEST (50)
  133. 2015-07-24 16:50:20,490 [CLISSHSocket 10.36.157.63:22] Receiving message type MSG_USERAUTH_SUCCESS (52)
  134. 2015-07-24 16:50:20,490 [CLISSHSocket 10.36.157.63:22] Enabling delayed out compression zlib@openssh.com
  135. 2015-07-24 16:50:20,490 [CLISSHSocket 10.36.157.63:22] Enabling delayed in compression zlib@openssh.com
  136. 2015-07-24 16:50:20,491 [CLISSHSocket(0x7f71031bfe50)]<SSH_AUTH_PASSWORD> event(SSH_CHANNEL)
  137. 2015-07-24 16:50:20,491 [CLISSHSocket(0x7f71031bfe50)]<SSH_AUTH_PASSWORD> ==> SSH_CHANNEL
  138. 2015-07-24 16:50:20,492 [CLISSHSocket 10.36.157.63:22] Sending message type MSG_CHANNEL_OPEN (90)
  139. 2015-07-24 16:50:20,541 [CLISSHSocket 10.36.157.63:22] Receiving message type MSG_CHANNEL_OPEN_CONFIRMATION (91)
  140. 2015-07-24 16:50:20,541 [CLISSHSocket 10.36.157.63:22] Opening channel. local=0 remote=0
  141. 2015-07-24 16:50:20,542 [CLISSHSocket(0x7f71031bfe50)]<SSH_CHANNEL> event(SSH_PTY)
  142. 2015-07-24 16:50:20,542 [CLISSHSocket(0x7f71031bfe50)]<SSH_CHANNEL> ==> SSH_PTY
  143. 2015-07-24 16:50:20,542 [CLISSHSocket 10.36.157.63:22] Requesting PTY
  144. 2015-07-24 16:50:20,543 [CLISSHSocket 10.36.157.63:22] Sending message type MSG_CHANNEL_REQUEST (98)
  145. 2015-07-24 16:50:20,587 [CLISSHSocket 10.36.157.63:22] Receiving message type MSG_CHANNEL_SUCCESS (99)
  146. 2015-07-24 16:50:20,587 [CLISSHSocket(0x7f71031bfe50)]<SSH_PTY> event(SSH_SHELL)
  147. 2015-07-24 16:50:20,588 [CLISSHSocket(0x7f71031bfe50)]<SSH_PTY> ==> SSH_SHELL
  148. 2015-07-24 16:50:20,589 [CLISSHSocket 10.36.157.63:22] Requesting shell
  149. 2015-07-24 16:50:20,589 [CLISSHSocket 10.36.157.63:22] Sending message type MSG_CHANNEL_REQUEST (98)
  150. 2015-07-24 16:50:20,610 [CLISSHSocket 10.36.157.63:22] Receiving message type MSG_CHANNEL_WINDOW_ADJUST (93)
  151. 2015-07-24 16:50:20,610 [CLISSHSocket 10.36.157.63:22] Receiving message type MSG_CHANNEL_SUCCESS (99)
  152. 2015-07-24 16:50:20,611 [CLISSHSocket(0x7f71031bfe50)]<SSH_SHELL> event(START)
  153. 2015-07-24 16:50:20,612 [CLISSHSocket(0x7f71031bfe50)]<SSH_SHELL> ==> START
  154. 2015-07-24 16:50:20,612 [CLISSHSocket(0x7f71031bfe50)]<START> set_patterns([('^((?!Last)\\S+ login|[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.*?\\)---)|(\\? \\[yes,no\\] .*?)', 'PAGER')])
  155. 2015-07-24 16:50:20,655 [CLISSHSocket(0x7f71031bfe50)]<START> on_read: '--- JUNOS 11.4R7.5 built 2013-03-01 09:14:35 UTC\r\n'
  156. 2015-07-24 16:50:21,657 Tick
  157. 2015-07-24 16:50:21,657 Resetting wait ticks
  158. 2015-07-24 16:50:22,658 Tick
  159. 2015-07-24 16:50:22,658 Resetting wait ticks
  160. 2015-07-24 16:50:23,658 Tick
  161. 2015-07-24 16:50:23,659 Resetting wait ticks
  162. 2015-07-24 16:50:24,660 Tick
  163. 2015-07-24 16:50:24,660 Resetting wait ticks
  164. 2015-07-24 16:50:24,756 [CLISSHSocket(0x7f71031bfe50)]<START> on_read: 'admin@jex2200-svao-sv-fl-0-A-1> '
  165. 2015-07-24 16:50:24,756 [CLISSHSocket(0x7f71031bfe50)]<START> Starting synchronous FSM check
  166. 2015-07-24 16:50:24,756 [CLISSHSocket(0x7f71031bfe50)]<START> match '^(({master(?::\d+)}\n)?\S+>)|(({master(?::\d+)})?\[edit.*?\]\n\S+#)|(\[Type \^D at a new line to end input\])'
  167. 2015-07-24 16:50:24,758 [CLISSHSocket(0x7f71031bfe50)]<START> event(PROMPT)
  168. 2015-07-24 16:50:24,758 [CLISSHSocket(0x7f71031bfe50)]<START> ==> PROMPT
  169. 2015-07-24 16:50:24,758 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_PROMPT_enter
  170. 2015-07-24 16:50:24,758 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> Using prompt pattern: ^(({master(?::\d+)}\n)?\S+>)|(({master(?::\d+)})?\[edit.*?\]\n\S+#)|(\[Type \^D at a new line to end input\])
  171. 2015-07-24 16:50:24,758 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> set_patterns([('^(({master(?::\\d+)}\\n)?\\S+>)|(({master(?::\\d+)})?\\[edit.*?\\]\\n\\S+#)|(\\[Type \\^D at a new line to end input\\])', 'PROMPT'), ('(^---\\(more.*?\\)---)|(\\? \\[yes,no\\] .*?)', 'PAGER')])
  172. 2015-07-24 16:50:24,805 CLI Provider is ready
  173. 2015-07-24 16:50:24,805 Disable paging
  174. 2015-07-24 16:50:24,805 cli(set cli screen-length 0)
  175. 2015-07-24 16:50:24,805 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> submit('set cli screen-length 0', bulk_lines=None, streaming=False)
  176. 2015-07-24 16:50:24,805 [CLISSHSocket 10.36.157.63:22] Sending message type MSG_CHANNEL_DATA (94)
  177. 2015-07-24 16:50:24,823 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 's'
  178. 2015-07-24 16:50:24,834 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'e'
  179. 2015-07-24 16:50:24,835 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 't'
  180. 2015-07-24 16:50:24,863 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: ' '
  181. 2015-07-24 16:50:24,863 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'c'
  182. 2015-07-24 16:50:24,864 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'l'
  183. 2015-07-24 16:50:24,864 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'i'
  184. 2015-07-24 16:50:24,880 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: ' '
  185. 2015-07-24 16:50:24,883 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 's'
  186. 2015-07-24 16:50:24,890 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'c'
  187. 2015-07-24 16:50:24,891 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'r'
  188. 2015-07-24 16:50:24,903 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'e'
  189. 2015-07-24 16:50:24,903 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'e'
  190. 2015-07-24 16:50:24,904 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'n'
  191. 2015-07-24 16:50:24,910 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: '-'
  192. 2015-07-24 16:50:24,916 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'l'
  193. 2015-07-24 16:50:24,917 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'e'
  194. 2015-07-24 16:50:24,918 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'n'
  195. 2015-07-24 16:50:24,921 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'g'
  196. 2015-07-24 16:50:24,926 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 't'
  197. 2015-07-24 16:50:24,927 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'h'
  198. 2015-07-24 16:50:24,950 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: ' '
  199. 2015-07-24 16:50:24,951 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: '0'
  200. 2015-07-24 16:50:24,975 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: ' '
  201. 2015-07-24 16:50:25,001 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: '\r\n'
  202. 2015-07-24 16:50:25,010 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'Screen length set to 0\r\n'
  203. 2015-07-24 16:50:25,011 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: '\r\n'
  204. 2015-07-24 16:50:25,012 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'admin@jex2200-svao-sv-fl-0-A-1> '
  205. 2015-07-24 16:50:25,012 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> Starting synchronous FSM check
  206. 2015-07-24 16:50:25,012 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> match '^(({master(?::\d+)}\n)?\S+>)|(({master(?::\d+)})?\[edit.*?\]\n\S+#)|(\[Type \^D at a new line to end input\])'
  207. 2015-07-24 16:50:25,013 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> Starting synchronous FSM check
  208. 2015-07-24 16:50:25,013 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> event(PROMPT)
  209. 2015-07-24 16:50:25,020 cli(set cli screen-length 0) returns:
  210. ===[ set cli screen-length 0 ]==========================================
  211. ' \nScreen length set to 0\n\n'
  212. ========================================================================
  213. 2015-07-24 16:50:25,020 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> submit('show version', bulk_lines=None, streaming=False)
  214. 2015-07-24 16:50:25,020 [CLISSHSocket 10.36.157.63:22] Sending message type MSG_CHANNEL_DATA (94)
  215. 2015-07-24 16:50:25,029 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 's'
  216. 2015-07-24 16:50:25,034 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'h'
  217. 2015-07-24 16:50:25,034 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'o'
  218. 2015-07-24 16:50:25,038 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'w'
  219. 2015-07-24 16:50:25,061 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: ' '
  220. 2015-07-24 16:50:25,061 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'v'
  221. 2015-07-24 16:50:25,062 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'e'
  222. 2015-07-24 16:50:25,065 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'r'
  223. 2015-07-24 16:50:25,068 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 's'
  224. 2015-07-24 16:50:25,073 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'i'
  225. 2015-07-24 16:50:25,073 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'o'
  226. 2015-07-24 16:50:25,080 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'n'
  227. 2015-07-24 16:50:25,110 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: ' '
  228. 2015-07-24 16:50:25,174 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: '\r\n'
  229. 2015-07-24 16:50:25,214 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'Hostname: jex2200-svao-sv-fl-0-A-1\r\n'
  230. 2015-07-24 16:50:25,221 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'Model: ex2200-24p-4g\r\n'
  231. 2015-07-24 16:50:25,222 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'JUNOS Base OS boot [11.4R7.5]\r\n'
  232. 2015-07-24 16:50:25,228 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'JUNOS Base OS Software Suite [11.4R7.5]\r\n'
  233. 2015-07-24 16:50:25,236 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'JUNOS Kernel Software Suite [11.4R7.5]\r\n'
  234. 2015-07-24 16:50:25,249 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'JUNOS Crypto Software Suite [11.4R7.5]\r\n'
  235. 2015-07-24 16:50:25,259 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'JUNOS Online Documentation [11.4R7.5]\r\n'
  236. 2015-07-24 16:50:25,270 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'JUNOS Enterprise Software Suite [11.4R7.5]\r\n'
  237. 2015-07-24 16:50:25,282 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'JUNOS Packet Forwarding Engine Enterprise Software Suite [11.4R7.5]\r\n'
  238. 2015-07-24 16:50:25,295 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'JUNOS Routing Software Suite [11.4R7.5]\r\n'
  239. 2015-07-24 16:50:25,308 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'JUNOS Web Management [11.4R7.5]\r\n'
  240. 2015-07-24 16:50:25,308 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'JUNOS FIPS mode utilities [11.4R7.5]\r\n'
  241. 2015-07-24 16:50:25,320 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: '\r\n'
  242. 2015-07-24 16:50:25,323 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'admin@jex2200-svao-sv-fl-0-A-1> '
  243. 2015-07-24 16:50:25,324 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> Starting synchronous FSM check
  244. 2015-07-24 16:50:25,324 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> match '^(({master(?::\d+)}\n)?\S+>)|(({master(?::\d+)})?\[edit.*?\]\n\S+#)|(\[Type \^D at a new line to end input\])'
  245. 2015-07-24 16:50:25,324 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> Starting synchronous FSM check
  246. 2015-07-24 16:50:25,324 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> event(PROMPT)
  247. 2015-07-24 16:50:25,334 cli(show version) returns:
  248. ===[ show version ]=====================================================
  249. ' \nHostname: jex2200-svao-sv-fl-0-A-1\nModel: ex2200-24p-4g\nJUNOS Base OS boot [11.4R7.5]\nJUNOS Base OS Software Suite [11.4R7.5]\nJUNOS Kernel Software Suite [11.4R7.5]\nJUNOS Crypto Software Suite [11.4R7.5]\nJUNOS Online Documentation [11.4R7.5]\nJUNOS Enterprise Software Suite [11.4R7.5]\nJUNOS Packet Forwarding Engine Enterprise Software Suite [11.4R7.5]\nJUNOS Routing Software Suite [11.4R7.5]\nJUNOS Web Management [11.4R7.5]\nJUNOS FIPS mode utilities [11.4R7.5]\n\n'
  250. ========================================================================
  251. 2015-07-24 16:50:25,334 Write to call cache: Juniper.JUNOS.get_version, {}, {'platform': 'ex2200-24p-4g', 'version': '11.4R7.5', 'vendor': 'Juniper'}
  252. 2015-07-24 16:50:25,334 Script returns with result: {'platform': 'ex2200-24p-4g', 'version': '11.4R7.5', 'vendor': 'Juniper'} (8148.14ms)
  253. 2015-07-24 16:50:25,335 cli(show lldp local-information)
  254. 2015-07-24 16:50:25,335 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> submit('show lldp local-information', bulk_lines=None, streaming=False)
  255. 2015-07-24 16:50:25,335 [CLISSHSocket 10.36.157.63:22] Sending message type MSG_CHANNEL_DATA (94)
  256. 2015-07-24 16:50:25,353 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 's'
  257. 2015-07-24 16:50:25,355 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'h'
  258. 2015-07-24 16:50:25,366 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'o'
  259. 2015-07-24 16:50:25,371 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'w'
  260. 2015-07-24 16:50:25,385 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: ' '
  261. 2015-07-24 16:50:25,385 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'l'
  262. 2015-07-24 16:50:25,409 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'l'
  263. 2015-07-24 16:50:25,410 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'd'
  264. 2015-07-24 16:50:25,410 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'p'
  265. 2015-07-24 16:50:25,431 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: ' '
  266. 2015-07-24 16:50:25,439 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'l'
  267. 2015-07-24 16:50:25,441 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'o'
  268. 2015-07-24 16:50:25,446 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'c'
  269. 2015-07-24 16:50:25,450 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'a'
  270. 2015-07-24 16:50:25,451 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'l'
  271. 2015-07-24 16:50:25,461 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: '-'
  272. 2015-07-24 16:50:25,461 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'i'
  273. 2015-07-24 16:50:25,468 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'n'
  274. 2015-07-24 16:50:25,477 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'f'
  275. 2015-07-24 16:50:25,484 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'o'
  276. 2015-07-24 16:50:25,485 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'r'
  277. 2015-07-24 16:50:25,486 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'm'
  278. 2015-07-24 16:50:25,489 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'a'
  279. 2015-07-24 16:50:25,491 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 't'
  280. 2015-07-24 16:50:25,497 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'i'
  281. 2015-07-24 16:50:25,497 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'o'
  282. 2015-07-24 16:50:25,509 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'n'
  283. 2015-07-24 16:50:25,536 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: ' '
  284. 2015-07-24 16:50:25,553 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: '\r\n'
  285. 2015-07-24 16:50:25,643 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: '\r\n'
  286. 2015-07-24 16:50:25,643 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'LLDP Local Information details\r\n'
  287. 2015-07-24 16:50:25,649 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: '\r\n'
  288. 2015-07-24 16:50:25,655 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'Chassis ID : 3c:61:04:5e:fe:00\r\n'
  289. 2015-07-24 16:50:25,655 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'System name : jex2200-svao-sv-fl-0-A-1\r\n'
  290. 2015-07-24 16:50:25,670 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'System descr : Juniper Networks, Inc. ex2200-24p-4g , version 11.4R7.5 Build\r\n'
  291. 2015-07-24 16:50:25,671 Tick
  292. 2015-07-24 16:50:25,671 Resetting wait ticks
  293. 2015-07-24 16:50:25,671 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: ' date: 2013-03-01 09:18:42 UTC \r\n'
  294. 2015-07-24 16:50:25,672 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: '\r\n'
  295. 2015-07-24 16:50:25,676 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'System Capabilities\r\n'
  296. 2015-07-24 16:50:25,681 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: ' Supported : Bridge Router \r\n'
  297. 2015-07-24 16:50:25,685 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: ' Enabled : Bridge Router \r\n'
  298. 2015-07-24 16:50:25,700 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: '\r\n'
  299. 2015-07-24 16:50:25,709 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'Interface name Parent Interface SNMP Index Interface description Status Tunneling\r\n'
  300. 2015-07-24 16:50:25,710 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'ge-0/0/0.0 - 503 ge-0/0/0.0 Up Disabled \r\n'
  301. 2015-07-24 16:50:25,710 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'ge-0/0/1.0 - 505 ge-0/0/1.0 Up Disabled \r\n'
  302. 2015-07-24 16:50:25,766 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'ge-0/0/2.0 - 507 ge-0/0/2.0 Up Disabled \r\n'
  303. 2015-07-24 16:50:25,777 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'ge-0/0/3.0 - 509 ge-0/0/3.0 Up Disabled \r\n'
  304. 2015-07-24 16:50:25,781 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'ge-0/0/4.0 - 511 - Down Disabled \r\n'
  305. 2015-07-24 16:50:25,789 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'ge-0/0/5.0 - 513 - Down Disabled \r\n'
  306. 2015-07-24 16:50:25,847 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'ge-0/0/6.0 - 515 - Down Disabled \r\n'
  307. 2015-07-24 16:50:25,870 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'ge-0/0/7.0 - 517 ge-0/0/7.0 Up Disabled \r\n'
  308. 2015-07-24 16:50:25,881 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'ge-0/0/8.0 - 519 - Down Disabled \r\n'
  309. 2015-07-24 16:50:25,898 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'ge-0/0/9.0 - 521 - Down Disabled \r\n'
  310. 2015-07-24 16:50:25,906 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'ge-0/0/10.0 - 523 - Down Disabled \r\n'
  311. 2015-07-24 16:50:25,943 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'ge-0/0/11.0 - 525 - Down Disabled \r\n'
  312. 2015-07-24 16:50:25,978 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'ge-0/0/12.0 - 528 - Down Disabled \r\n'
  313. 2015-07-24 16:50:25,979 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'ge-0/0/13.0 - 529 - Down Disabled \r\n'
  314. 2015-07-24 16:50:25,980 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'ge-0/0/14.0 - 531 - Down Disabled \r\n'
  315. 2015-07-24 16:50:26,072 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'ge-0/0/15.0 - 535 - Down Disabled \r\n'
  316. 2015-07-24 16:50:26,073 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'ge-0/0/16.0 - 539 - Down Disabled \r\n'
  317. 2015-07-24 16:50:26,083 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'ge-0/0/17.0 - 541 - Down Disabled \r\n'
  318. 2015-07-24 16:50:26,087 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'ge-0/0/18.0 - 544 - Down Disabled \r\n'
  319. 2015-07-24 16:50:26,097 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'ge-0/0/19.0 - 545 - Down Disabled \r\n'
  320. 2015-07-24 16:50:26,103 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'ge-0/0/20.0 - 546 - Down Disabled \r\n'
  321. 2015-07-24 16:50:26,106 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'ge-0/0/21.0 - 547 - Down Disabled \r\n'
  322. 2015-07-24 16:50:26,123 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'ge-0/0/22.0 - 548 - Down Disabled \r\n'
  323. 2015-07-24 16:50:26,131 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'ge-0/0/23.0 - 549 - Down Disabled \r\n'
  324. 2015-07-24 16:50:26,151 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'ge-0/1/0.0 ae0.0 555 ge-0/1/0.0 Up Disabled \r\n'
  325. 2015-07-24 16:50:26,160 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'ge-0/1/1.0 ae0.0 556 - Down Disabled \r\n'
  326. 2015-07-24 16:50:26,169 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: '\r\n'
  327. 2015-07-24 16:50:26,181 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'admin@jex2200-svao-sv-fl-0-A-1> '
  328. 2015-07-24 16:50:26,182 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> Starting synchronous FSM check
  329. 2015-07-24 16:50:26,182 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> match '^(({master(?::\d+)}\n)?\S+>)|(({master(?::\d+)})?\[edit.*?\]\n\S+#)|(\[Type \^D at a new line to end input\])'
  330. 2015-07-24 16:50:26,182 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> Starting synchronous FSM check
  331. 2015-07-24 16:50:26,183 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> event(PROMPT)
  332. 2015-07-24 16:50:26,200 cli(show lldp local-information) returns:
  333. ===[ show lldp local-information ]======================================
  334. ' \n\nLLDP Local Information details\n\nChassis ID : 3c:61:04:5e:fe:00\nSystem name : jex2200-svao-sv-fl-0-A-1\nSystem descr : Juniper Networks, Inc. ex2200-24p-4g , version 11.4R7.5 Build\n date: 2013-03-01 09:18:42 UTC \n\nSystem Capabilities\n Supported : Bridge Router \n Enabled : Bridge Router \n\nInterface name Parent Interface SNMP Index Interface description Status Tunneling\nge-0/0/0.0 - 503 ge-0/0/0.0 Up Disabled \nge-0/0/1.0 - 505 ge-0/0/1.0 Up Disabled \nge-0/0/2.0 - 507 ge-0/0/2.0 Up Disabled \nge-0/0/3.0 - 509 ge-0/0/3.0 Up Disabled \nge-0/0/4.0 - 511 - Down Disabled \nge-0/0/5.0 - 513 - Down Disabled \nge-0/0/6.0 - 515 - Down Disabled \nge-0/0/7.0 - 517 ge-0/0/7.0 Up Disabled \nge-0/0/8.0 - 519 - Down Disabled \nge-0/0/9.0 - 521 - Down Disabled \nge-0/0/10.0 - 523 - Down Disabled \nge-0/0/11.0 - 525 - Down Disabled \nge-0/0/12.0 - 528 - Down Disabled \nge-0/0/13.0 - 529 - Down Disabled \nge-0/0/14.0 - 531 - Down Disabled \nge-0/0/15.0 - 535 - Down Disabled \nge-0/0/16.0 - 539 - Down Disabled \nge-0/0/17.0 - 541 - Down Disabled \nge-0/0/18.0 - 544 - Down Disabled \nge-0/0/19.0 - 545 - Down Disabled \nge-0/0/20.0 - 546 - Down Disabled \nge-0/0/21.0 - 547 - Down Disabled \nge-0/0/22.0 - 548 - Down Disabled \nge-0/0/23.0 - 549 - Down Disabled \nge-0/1/0.0 ae0.0 555 ge-0/1/0.0 Up Disabled \nge-0/1/1.0 ae0.0 556 - Down Disabled \n\n'
  335. ========================================================================
  336. 2015-07-24 16:50:26,200 cli(show lldp neighbors)
  337. 2015-07-24 16:50:26,200 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> submit('show lldp neighbors', bulk_lines=None, streaming=False)
  338. 2015-07-24 16:50:26,200 [CLISSHSocket 10.36.157.63:22] Sending message type MSG_CHANNEL_DATA (94)
  339. 2015-07-24 16:50:26,208 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 's'
  340. 2015-07-24 16:50:26,214 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'h'
  341. 2015-07-24 16:50:26,215 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'o'
  342. 2015-07-24 16:50:26,225 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'w'
  343. 2015-07-24 16:50:26,256 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: ' '
  344. 2015-07-24 16:50:26,257 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'l'
  345. 2015-07-24 16:50:26,257 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'l'
  346. 2015-07-24 16:50:26,266 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'd'
  347. 2015-07-24 16:50:26,278 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'p'
  348. 2015-07-24 16:50:26,291 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: ' '
  349. 2015-07-24 16:50:26,291 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'n'
  350. 2015-07-24 16:50:26,319 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'e'
  351. 2015-07-24 16:50:26,320 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'i'
  352. 2015-07-24 16:50:26,321 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'g'
  353. 2015-07-24 16:50:26,323 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'h'
  354. 2015-07-24 16:50:26,323 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'b'
  355. 2015-07-24 16:50:26,324 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'o'
  356. 2015-07-24 16:50:26,324 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'r'
  357. 2015-07-24 16:50:26,329 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 's'
  358. 2015-07-24 16:50:26,341 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: ' '
  359. 2015-07-24 16:50:26,373 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: '\r\n'
  360. 2015-07-24 16:50:26,421 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'Local Interface Parent Interface Chassis Id Port info System Name\r\n'
  361. 2015-07-24 16:50:26,421 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'ge-0/1/0.0 ae0.0 40:b4:f0:c3:34:40 ge-1/0/10.0 jex4200-svao-sv-fl-5-514b-VirtChass\r\n'
  362. 2015-07-24 16:50:26,426 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: '\r\n'
  363. 2015-07-24 16:50:26,432 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'admin@jex2200-svao-sv-fl-0-A-1> '
  364. 2015-07-24 16:50:26,432 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> Starting synchronous FSM check
  365. 2015-07-24 16:50:26,432 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> match '^(({master(?::\d+)}\n)?\S+>)|(({master(?::\d+)})?\[edit.*?\]\n\S+#)|(\[Type \^D at a new line to end input\])'
  366. 2015-07-24 16:50:26,432 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> Starting synchronous FSM check
  367. 2015-07-24 16:50:26,433 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> event(PROMPT)
  368. 2015-07-24 16:50:26,465 cli(show lldp neighbors) returns:
  369. ===[ show lldp neighbors ]==============================================
  370. ' \nLocal Interface Parent Interface Chassis Id Port info System Name\nge-0/1/0.0 ae0.0 40:b4:f0:c3:34:40 ge-1/0/10.0 jex4200-svao-sv-fl-5-514b-VirtChass\n\n'
  371. ========================================================================
  372. 2015-07-24 16:50:26,465 cli(show lldp neighbors interface ge-0/1/0.0)
  373. 2015-07-24 16:50:26,465 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> submit('show lldp neighbors interface ge-0/1/0.0', bulk_lines=None, streaming=False)
  374. 2015-07-24 16:50:26,465 [CLISSHSocket 10.36.157.63:22] Sending message type MSG_CHANNEL_DATA (94)
  375. 2015-07-24 16:50:26,490 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 's'
  376. 2015-07-24 16:50:26,491 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'h'
  377. 2015-07-24 16:50:26,495 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'o'
  378. 2015-07-24 16:50:26,495 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'w'
  379. 2015-07-24 16:50:26,509 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: ' '
  380. 2015-07-24 16:50:26,515 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'l'
  381. 2015-07-24 16:50:26,522 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'l'
  382. 2015-07-24 16:50:26,523 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'd'
  383. 2015-07-24 16:50:26,523 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'p'
  384. 2015-07-24 16:50:26,533 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: ' '
  385. 2015-07-24 16:50:26,556 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'n'
  386. 2015-07-24 16:50:26,557 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'e'
  387. 2015-07-24 16:50:26,557 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'i'
  388. 2015-07-24 16:50:26,558 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'g'
  389. 2015-07-24 16:50:26,577 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'h'
  390. 2015-07-24 16:50:26,578 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'b'
  391. 2015-07-24 16:50:26,579 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'o'
  392. 2015-07-24 16:50:26,579 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'r'
  393. 2015-07-24 16:50:26,598 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 's'
  394. 2015-07-24 16:50:26,599 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: ' '
  395. 2015-07-24 16:50:26,604 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'i'
  396. 2015-07-24 16:50:26,609 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'n'
  397. 2015-07-24 16:50:26,609 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 't'
  398. 2015-07-24 16:50:26,610 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'e'
  399. 2015-07-24 16:50:26,614 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'r'
  400. 2015-07-24 16:50:26,620 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'f'
  401. 2015-07-24 16:50:26,621 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'a'
  402. 2015-07-24 16:50:26,621 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'c'
  403. 2015-07-24 16:50:26,626 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'e'
  404. 2015-07-24 16:50:26,635 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: ' '
  405. 2015-07-24 16:50:26,640 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'g'
  406. 2015-07-24 16:50:26,646 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'e'
  407. 2015-07-24 16:50:26,647 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: '-'
  408. 2015-07-24 16:50:26,647 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: '0'
  409. 2015-07-24 16:50:26,667 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: '/'
  410. 2015-07-24 16:50:26,667 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: '1'
  411. 2015-07-24 16:50:26,668 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: '/'
  412. 2015-07-24 16:50:26,668 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: '0'
  413. 2015-07-24 16:50:26,850 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: '.0'
  414. 2015-07-24 16:50:26,851 Tick
  415. 2015-07-24 16:50:26,851 Resetting wait ticks
  416. 2015-07-24 16:50:27,804 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: ' '
  417. 2015-07-24 16:50:27,903 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: '\r\n'
  418. 2015-07-24 16:50:27,904 Tick
  419. 2015-07-24 16:50:27,904 Resetting wait ticks
  420. 2015-07-24 16:50:27,923 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'LLDP Neighbor Information:\r\n'
  421. 2015-07-24 16:50:27,924 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'Local Information:\r\nIndex: 2 Time to live: 120 Time mark: Fri Jul 24 13:50:08 2015 Age: 20 secs \r\nLocal Interface : ge-0/1/0.0\r\nParent Interface : ae0.0\r\n'
  422. 2015-07-24 16:50:27,924 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'Local Port ID : 555\r\n'
  423. 2015-07-24 16:50:27,925 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'Ageout Count : 0\r\n\r\nNeighbour Information:\r\nChassis type : Mac address\r\nChassis ID : 40:b4:f0:c3:34:40\r\nPort type : Locally assigned\r\nPort ID : 661\r\nPort description : ge-1/0/10.0\r\n'
  424. 2015-07-24 16:50:27,949 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'System name : jex4200-svao-sv-fl-5-514b-VirtChass\r\n'
  425. 2015-07-24 16:50:27,949 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: ' \r\n'
  426. 2015-07-24 16:50:27,950 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'System Description : Juniper Networks, Inc. ex4200-24f , version 12.3R3.4 Build date: 2013-06-14 01:38:46 UTC \r\n'
  427. 2015-07-24 16:50:27,981 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: '\r\n'
  428. 2015-07-24 16:50:27,982 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'System capabilities \r\n Supported : Bridge Router \r\n Enabled : Bridge Router \r\n\r\nOrganization Info\r\n'
  429. 2015-07-24 16:50:27,982 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: ' OUI : 0.12.f\r\n'
  430. 2015-07-24 16:50:27,983 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: ' Subtype : 1\r\n Index : 1\r\n Info : 0300040000 \r\n'
  431. 2015-07-24 16:50:27,983 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: '\r\nOrganization Info\r\n OUI : 0.12.f\r\n Subtype : 3\r\n'
  432. 2015-07-24 16:50:28,016 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: ' Index : 2\r\n Info : 0300000294 \r\n'
  433. 2015-07-24 16:50:28,017 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: '\r\nOrganization Info\r\n OUI : 0.12.f\r\n Subtype : 4\r\n Index : 3\r\n'
  434. 2015-07-24 16:50:28,018 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: ' Info : 05EA \r\n'
  435. 2015-07-24 16:50:28,018 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: '\r\n'
  436. 2015-07-24 16:50:28,019 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'Organization Info\r\n'
  437. 2015-07-24 16:50:28,019 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: ' OUI : 0.90.69\r\n'
  438. 2015-07-24 16:50:28,020 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: ' Subtype : 1\r\n'
  439. 2015-07-24 16:50:28,031 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: ' Index : 4\r\n'
  440. 2015-07-24 16:50:28,032 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: ' Info : 425230323132343533333434 \r\n'
  441. 2015-07-24 16:50:28,033 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: '\r\n'
  442. 2015-07-24 16:50:28,039 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'Organization Info\r\n OUI : 0.80.c2\r\n Subtype : 3\r\n'
  443. 2015-07-24 16:50:28,077 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: ' Index : 5\r\n Info : 009D124C414E2D535953542D31302E33362E313537 \r\n\r\nOrganization Info\r\n OUI : 0.80.c2\r\n Subtype : 3\r\n Index : 6\r\n Info : 0017114C414E2D555345522D31302E33362E3233 \r\n\r\nOrganization Info\r\n OUI : 0.80.c2\r\n'
  444. 2015-07-24 16:50:28,079 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: ' Subtype : 3\r\n Index : 7\r\n Info : 00A6164C414E2D555345522D464C322D31302E38372E313636 \r\n\r\nOrganization Info\r\n OUI : 0.80.c2\r\n Subtype : 3\r\n'
  445. 2015-07-24 16:50:28,080 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: ' Index : 8\r\n Info : 00A5164C414E2D555345522D464C332D31302E38372E313635 \r\n'
  446. 2015-07-24 16:50:28,081 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: '\r\n'
  447. 2015-07-24 16:50:28,082 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'Organization Info\r\n'
  448. 2015-07-24 16:50:28,084 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: ' OUI : 0.80.c2\r\n'
  449. 2015-07-24 16:50:28,090 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: ' Subtype : 3\r\n'
  450. 2015-07-24 16:50:28,091 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: ' Index : 9\r\n'
  451. 2015-07-24 16:50:28,092 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: ' Info : 00A4164C414E2D555345522D464C342D31302E38372E313634 \r\n'
  452. 2015-07-24 16:50:28,092 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: '\r\n'
  453. 2015-07-24 16:50:28,093 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> on_read: 'admin@jex2200-svao-sv-fl-0-A-1> '
  454. 2015-07-24 16:50:28,093 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> Starting synchronous FSM check
  455. 2015-07-24 16:50:28,094 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> match '^(({master(?::\d+)}\n)?\S+>)|(({master(?::\d+)})?\[edit.*?\]\n\S+#)|(\[Type \^D at a new line to end input\])'
  456. 2015-07-24 16:50:28,094 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> Starting synchronous FSM check
  457. 2015-07-24 16:50:28,094 [CLISSHSocket(0x7f71031bfe50)]<PROMPT> event(PROMPT)
  458. 2015-07-24 16:50:28,130 cli(show lldp neighbors interface ge-0/1/0.0) returns:
  459. ===[ show lldp neighbors interface ge-0/1/0.0 ]=========================
  460. ' \nLLDP Neighbor Information:\nLocal Information:\nIndex: 2 Time to live: 120 Time mark: Fri Jul 24 13:50:08 2015 Age: 20 secs \nLocal Interface : ge-0/1/0.0\nParent Interface : ae0.0\nLocal Port ID : 555\nAgeout Count : 0\n\nNeighbour Information:\nChassis type : Mac address\nChassis ID : 40:b4:f0:c3:34:40\nPort type : Locally assigned\nPort ID : 661\nPort description : ge-1/0/10.0\nSystem name : jex4200-svao-sv-fl-5-514b-VirtChass\n \nSystem Description : Juniper Networks, Inc. ex4200-24f , version 12.3R3.4 Build date: 2013-06-14 01:38:46 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 : 0300040000 \n\nOrganization Info\n OUI : 0.12.f\n Subtype : 3\n Index : 2\n Info : 0300000294 \n\nOrganization Info\n OUI : 0.12.f\n Subtype : 4\n Index : 3\n Info : 05EA \n\nOrganization Info\n OUI : 0.90.69\n Subtype : 1\n Index : 4\n Info : 425230323132343533333434 \n\nOrganization Info\n OUI : 0.80.c2\n Subtype : 3\n Index : 5\n Info : 009D124C414E2D535953542D31302E33362E313537 \n\nOrganization Info\n OUI : 0.80.c2\n Subtype : 3\n Index : 6\n Info : 0017114C414E2D555345522D31302E33362E3233 \n\nOrganization Info\n OUI : 0.80.c2\n Subtype : 3\n Index : 7\n Info : 00A6164C414E2D555345522D464C322D31302E38372E313636 \n\nOrganization Info\n OUI : 0.80.c2\n Subtype : 3\n Index : 8\n Info : 00A5164C414E2D555345522D464C332D31302E38372E313635 \n\nOrganization Info\n OUI : 0.80.c2\n Subtype : 3\n Index : 9\n Info : 00A4164C414E2D555345522D464C342D31302E38372E313634 \n\n'
  461. ========================================================================
  462. 2015-07-24 16:50:28,132 Unhandled exception
  463. 2015-07-24 16:50:28,161 Script traceback:
  464. <type 'exceptions.TypeError'>
  465. object of type 'int' has no len()
  466. START OF TRACEBACK
  467. ------------------------------------------------------------------------
  468. File: sa/interfaces/base.py (Line: 796)
  469. Function: clean
  470. 789 Traceback (most recent call last):
  471. 790 ...
  472. 791 InterfaceTypeError: IPvParameter: '192.168.0.256'
  473. 792 """
  474. 793 def clean(self, value):
  475. 794 if value is None and self.default is not None:
  476. 795 return self.default
  477. 796 ==> if len(value) == 4:
  478. 797 # IP address in binary form
  479. 798 value = ".".join(["%02X" % ord(c) for c in value])
  480. 799 v = super(IPv4Parameter, self).clean(value)
  481. 800 X = v.split(".")
  482. 801 if len(X) != 4:
  483. 802 self.raise_error(value)
  484. Variables:
  485. self = <noc.sa.interfaces.base.IPv4Parameter object at 0x7f7109888fd0>
  486. value = 661
  487. ------------------------------------------------------------------------
  488. File: sa/interfaces/base.py (Line: 153)
  489. Function: clean
  490. 146
  491. 147 def clean(self, value):
  492. 148 if value is None and self.required == False:
  493. 149 return None
  494. 150 try:
  495. 151 return self.left.clean(value)
  496. 152 except InterfaceTypeError:
  497. 153 ==> return self.right.clean(value)
  498. 154
  499. 155 def script_clean_input(self, profile, value):
  500. 156 try:
  501. 157 return self.left.script_clean_input(profile, value)
  502. 158 except InterfaceTypeError:
  503. 159 return self.right.script_clean_input(profile, value)
  504. Variables:
  505. self = <noc.sa.interfaces.base.ORParameter object at 0x7f710988f050>
  506. value = 661
  507. ------------------------------------------------------------------------
  508. File: sa/interfaces/base.py (Line: 151)
  509. Function: clean
  510. 144 self.right = right
  511. 145 self.required = self.left.required or self.right.required
  512. 146
  513. 147 def clean(self, value):
  514. 148 if value is None and self.required == False:
  515. 149 return None
  516. 150 try:
  517. 151 ==> return self.left.clean(value)
  518. 152 except InterfaceTypeError:
  519. 153 return self.right.clean(value)
  520. 154
  521. 155 def script_clean_input(self, profile, value):
  522. 156 try:
  523. 157 return self.left.script_clean_input(profile, value)
  524. Variables:
  525. self = <noc.sa.interfaces.base.ORParameter object at 0x7f710988f0d0>
  526. value = 661
  527. ------------------------------------------------------------------------
  528. File: sa/interfaces/base.py (Line: 674)
  529. Function: clean
  530. 667 if attr.default is not None:
  531. 668 out_value[a_name] = attr.default
  532. 669 else:
  533. 670 self.raise_error(value,
  534. 671 "Attribute '%s' is required in %s" % (a_name, value))
  535. 672 if a_name in in_value:
  536. 673 try:
  537. 674 ==> out_value[a_name] = attr.clean(in_value[a_name])
  538. 675 except InterfaceTypeError, why:
  539. 676 if not in_value[a_name] and not attr.required:
  540. 677 if attr.default:
  541. 678 out_value[a_name] = attr.default
  542. 679 else:
  543. 680 pass
  544. Variables:
  545. a_name = 'remote_port'
  546. attr = <noc.sa.interfaces.base.ORParameter object at 0x7f710988f0d0>
  547. self = <noc.sa.interfaces.base.DictParameter object at 0x7f710988f190>
  548. in_value =
  549. {'remote_capabilities': 20,
  550. 'remote_chassis_id': '40:b4:f0:c3:34:40',
  551. 'remote_chassis_id_subtype': 4,
  552. 'remote_port': 661,
  553. 'remote_system_name': 'jex4200-svao-sv-fl-5-514b-VirtChass'}
  554. value =
  555. {'remote_capabilities': 20,
  556. 'remote_chassis_id': '40:b4:f0:c3:34:40',
  557. 'remote_chassis_id_subtype': 4,
  558. 'remote_port': 661,
  559. 'remote_port_subtype': 7,
  560. 'remote_system_name': 'jex4200-svao-sv-fl-5-514b-VirtChass'}
  561. out_value = {'remote_port_subtype': 7}
  562. ------------------------------------------------------------------------
  563. File: sa/interfaces/base.py (Line: 609)
  564. Function: clean
  565. 602 return self.default
  566. 603 if self.convert and not isinstance(value, (list, tuple)):
  567. 604 value = [value]
  568. 605 v = super(ListOfParameter, self).clean(value)
  569. 606 if self.is_list:
  570. 607 return [[e.clean(vv) for e, vv in zip(self.element, v)] for v in value]
  571. 608 else:
  572. 609 ==> return [self.element.clean(x) for x in v]
  573. 610
  574. 611 def script_clean_input(self, profile, value):
  575. 612 if value is None and self.default is not None:
  576. 613 return self.default
  577. 614 v = super(ListOfParameter, self).script_clean_input(profile, value)
  578. 615 if self.is_list:
  579. Variables:
  580. x =
  581. {'remote_capabilities': 20,
  582. 'remote_chassis_id': '40:b4:f0:c3:34:40',
  583. 'remote_chassis_id_subtype': 4,
  584. 'remote_port': 661,
  585. 'remote_port_subtype': 7,
  586. 'remote_system_name': 'jex4200-svao-sv-fl-5-514b-VirtChass'}
  587. self = <noc.sa.interfaces.base.ListOfParameter object at 0x7f710988f1d0>
  588. value =
  589. [{'remote_capabilities': 20,
  590. 'remote_chassis_id': '40:b4:f0:c3:34:40',
  591. 'remote_chassis_id_subtype': 4,
  592. 'remote_port': 661,
  593. 'remote_port_subtype': 7,
  594. 'remote_system_name': 'jex4200-svao-sv-fl-5-514b-VirtChass'}]
  595. v =
  596. [{'remote_capabilities': 20,
  597. 'remote_chassis_id': '40:b4:f0:c3:34:40',
  598. 'remote_chassis_id_subtype': 4,
  599. 'remote_port': 661,
  600. 'remote_port_subtype': 7,
  601. 'remote_system_name': 'jex4200-svao-sv-fl-5-514b-VirtChass'}]
  602. ------------------------------------------------------------------------
  603. File: sa/interfaces/base.py (Line: 674)
  604. Function: clean
  605. 667 if attr.default is not None:
  606. 668 out_value[a_name] = attr.default
  607. 669 else:
  608. 670 self.raise_error(value,
  609. 671 "Attribute '%s' is required in %s" % (a_name, value))
  610. 672 if a_name in in_value:
  611. 673 try:
  612. 674 ==> out_value[a_name] = attr.clean(in_value[a_name])
  613. 675 except InterfaceTypeError, why:
  614. 676 if not in_value[a_name] and not attr.required:
  615. 677 if attr.default:
  616. 678 out_value[a_name] = attr.default
  617. 679 else:
  618. 680 pass
  619. Variables:
  620. a_name = 'neighbors'
  621. attr = <noc.sa.interfaces.base.ListOfParameter object at 0x7f710988f1d0>
  622. self = <noc.sa.interfaces.base.DictParameter object at 0x7f710988f210>
  623. in_value =
  624. {'local_interface': 'ge-0/1/0.0',
  625. 'neighbors': [{'remote_capabilities': 20,
  626. 'remote_chassis_id': '40:b4:f0:c3:34:40',
  627. 'remote_chassis_id_subtype': 4,
  628. 'remote_port': 661,
  629. 'remote_port_subtype': 7,
  630. 'remote_system_name': 'jex4200-svao-sv-fl-5-514b-VirtChass'}]}
  631. value =
  632. {'local_interface': 'ge-0/1/0.0',
  633. 'neighbors': [{'remote_capabilities': 20,
  634. 'remote_chassis_id': '40:b4:f0:c3:34:40',
  635. 'remote_chassis_id_subtype': 4,
  636. 'remote_port': 661,
  637. 'remote_port_subtype': 7,
  638. 'remote_system_name': 'jex4200-svao-sv-fl-5-514b-VirtChass'}]}
  639. out_value = {}
  640. ------------------------------------------------------------------------
  641. File: sa/interfaces/base.py (Line: 609)
  642. Function: clean
  643. 602 return self.default
  644. 603 if self.convert and not isinstance(value, (list, tuple)):
  645. 604 value = [value]
  646. 605 v = super(ListOfParameter, self).clean(value)
  647. 606 if self.is_list:
  648. 607 return [[e.clean(vv) for e, vv in zip(self.element, v)] for v in value]
  649. 608 else:
  650. 609 ==> return [self.element.clean(x) for x in v]
  651. 610
  652. 611 def script_clean_input(self, profile, value):
  653. 612 if value is None and self.default is not None:
  654. 613 return self.default
  655. 614 v = super(ListOfParameter, self).script_clean_input(profile, value)
  656. 615 if self.is_list:
  657. Variables:
  658. x =
  659. {'local_interface': 'ge-0/1/0.0',
  660. 'neighbors': [{'remote_capabilities': 20,
  661. 'remote_chassis_id': '40:b4:f0:c3:34:40',
  662. 'remote_chassis_id_subtype': 4,
  663. 'remote_port': 661,
  664. 'remote_port_subtype': 7,
  665. 'remote_system_name': 'jex4200-svao-sv-fl-5-514b-VirtChass'}]}
  666. self = <noc.sa.interfaces.base.ListOfParameter object at 0x7f710988f250>
  667. value =
  668. [{'local_interface': 'ge-0/1/0.0',
  669. 'neighbors': [{'remote_capabilities': 20,
  670. 'remote_chassis_id': '40:b4:f0:c3:34:40',
  671. 'remote_chassis_id_subtype': 4,
  672. 'remote_port': 661,
  673. 'remote_port_subtype': 7,
  674. 'remote_system_name': 'jex4200-svao-sv-fl-5-514b-VirtChass'}]}]
  675. v =
  676. [{'local_interface': 'ge-0/1/0.0',
  677. 'neighbors': [{'remote_capabilities': 20,
  678. 'remote_chassis_id': '40:b4:f0:c3:34:40',
  679. 'remote_chassis_id_subtype': 4,
  680. 'remote_port': 661,
  681. 'remote_port_subtype': 7,
  682. 'remote_system_name': 'jex4200-svao-sv-fl-5-514b-VirtChass'}]}]
  683. ------------------------------------------------------------------------
  684. File: sa/interfaces/base.py (Line: 84)
  685. Function: script_clean_result
  686. 77
  687. 78 :param profile: Profile
  688. 79 :type profile: Profile instance
  689. 80 :param value: Input parameter
  690. 81 :type value: Arbitrary python type
  691. 82 :return: Normalized value
  692. 83 """
  693. 84 ==> return self.clean(value)
  694. 85
  695. 86 def form_clean(self, value):
  696. 87 """
  697. 88 Clean up form field
  698. 89
  699. 90 :param value: Input parameter
  700. Variables:
  701. profile = <noc.local.sa.profiles.Juniper.JUNOS.Profile object at 0x7f71031bf990>
  702. self = <noc.sa.interfaces.base.ListOfParameter object at 0x7f710988f250>
  703. value =
  704. [{'local_interface': 'ge-0/1/0.0',
  705. 'neighbors': [{'remote_capabilities': 20,
  706. 'remote_chassis_id': '40:b4:f0:c3:34:40',
  707. 'remote_chassis_id_subtype': 4,
  708. 'remote_port': 661,
  709. 'remote_port_subtype': 7,
  710. 'remote_system_name': 'jex4200-svao-sv-fl-5-514b-VirtChass'}]}]
  711. ------------------------------------------------------------------------
  712. File: sa/interfaces/base.py (Line: 623)
  713. Function: script_clean_result
  714. 616 return [[e.script_clean_input(profile, vv) for e, vv in zip(self.element, v)] for v in value]
  715. 617 else:
  716. 618 return [self.element.script_clean_input(profile, x) for x in v]
  717. 619
  718. 620 def script_clean_result(self, profile, value):
  719. 621 if value is None and self.default is not None:
  720. 622 return self.default
  721. 623 ==> v = super(ListOfParameter, self).script_clean_result(profile, value)
  722. 624 if self.is_list:
  723. 625 return [[e.script_clean_result(profile, vv) for e, vv in zip(self.element, v)] for v in value]
  724. 626 else:
  725. 627 return [self.element.script_clean_result(profile, x) for x in v]
  726. 628
  727. 629
  728. Variables:
  729. profile = <noc.local.sa.profiles.Juniper.JUNOS.Profile object at 0x7f71031bf990>
  730. self = <noc.sa.interfaces.base.ListOfParameter object at 0x7f710988f250>
  731. value =
  732. [{'local_interface': 'ge-0/1/0.0',
  733. 'neighbors': [{'remote_capabilities': 20,
  734. 'remote_chassis_id': '40:b4:f0:c3:34:40',
  735. 'remote_chassis_id_subtype': 4,
  736. 'remote_port': 661,
  737. 'remote_port_subtype': 7,
  738. 'remote_system_name': 'jex4200-svao-sv-fl-5-514b-VirtChass'}]}]
  739. ------------------------------------------------------------------------
  740. File: sa/interfaces/base.py (Line: 1405)
  741. Function: script_clean_result
  742. 1398 return self.clean(__profile, **kwargs)
  743. 1399
  744. 1400 def script_clean_result(self, __profile, result):
  745. 1401 try:
  746. 1402 rp = self.returns
  747. 1403 except AttributeError:
  748. 1404 return result
  749. 1405 ==> return rp.script_clean_result(__profile, result)
  750. 1406
  751. 1407 def template_clean_result(self, __profile, result):
  752. 1408 return result
  753. 1409
  754. 1410 def requires_input(self):
  755. 1411 for n, p in self.gen_parameters():
  756. Variables:
  757. _Interface__profile = <noc.local.sa.profiles.Juniper.JUNOS.Profile object at 0x7f71031bf990>
  758. rp = <noc.sa.interfaces.base.ListOfParameter object at 0x7f710988f250>
  759. result =
  760. [{'local_interface': 'ge-0/1/0.0',
  761. 'neighbors': [{'remote_capabilities': 20,
  762. 'remote_chassis_id': '40:b4:f0:c3:34:40',
  763. 'remote_chassis_id_subtype': 4,
  764. 'remote_port': 661,
  765. 'remote_port_subtype': 7,
  766. 'remote_system_name': 'jex4200-svao-sv-fl-5-514b-VirtChass'}]}]
  767. self =
  768. <noc.sa.interfaces.igetlldpneighbors.IGetLLDPNeighbors object at 0x7f7104500110>
  769. ------------------------------------------------------------------------
  770. File: sa/script/script.py (Line: 466)
  771. Function: guarded_run
  772. 459 self.name, self.kwargs)
  773. 460 pass
  774. 461 # Calling script body
  775. 462 self._thread_id = thread.get_ident()
  776. 463 result = self.execute(**self.kwargs)
  777. 464 # Enforce interface result checking
  778. 465 for i in self.implements:
  779. 466 ==> result = i.script_clean_result(self.profile, result)
  780. 467 # Cache result when required
  781. 468 if self.cache and self.parent is not None:
  782. 469 self.logger.debug(
  783. 470 "Write to call cache: %s, %s, %r",
  784. 471 self.name, self.kwargs, result
  785. 472 )
  786. Variables:
  787. i =
  788. <noc.sa.interfaces.igetlldpneighbors.IGetLLDPNeighbors object at 0x7f7104500110>
  789. self = <Script(Thread-2, started 140123344836352)>
  790. result =
  791. [{'local_interface': 'ge-0/1/0.0',
  792. 'neighbors': [{'remote_capabilities': 20,
  793. 'remote_chassis_id': '40:b4:f0:c3:34:40',
  794. 'remote_chassis_id_subtype': 4,
  795. 'remote_port': 661,
  796. 'remote_port_subtype': 7,
  797. 'remote_system_name': 'jex4200-svao-sv-fl-5-514b-VirtChass'}]}]
  798. t0 = 1437745817.186553
  799. ------------------------------------------------------------------------
  800. File: sa/script/script.py (Line: 490)
  801. Function: run
  802. 483
  803. 484 def run(self):
  804. 485 """Script thread worker method"""
  805. 486 self.logger.debug("Running")
  806. 487 result = None
  807. 488 try:
  808. 489 with self.cancelable():
  809. 490 ==> result = self.guarded_run()
  810. 491 except self.TimeOutError:
  811. 492 self.logger.error("Timed out")
  812. 493 self.e_timeout = True
  813. 494 except CancelledError:
  814. 495 self.logger.error("Cancelled")
  815. 496 self.e_cancel = True
  816. Variables:
  817. self = <Script(Thread-2, started 140123344836352)>
  818. r = ["<type 'exceptions.TypeError'>", "object of type 'int' has no len()"]
  819. result = None
  820. v = TypeError("object of type 'int' has no len()",)
  821. tb = <traceback object at 0x7f7102b40b90>
  822. t = <type 'exceptions.TypeError'>
  823. ------------------------------------------------------------------------
  824. END OF TRACEBACK
  825. 2015-07-24 16:50:28,171 Closing
  826. 2015-07-24 16:50:28,171 Requesting call: <bound method CLISSHSocket.close of <CLISSHSocket(0x7f71031bfe50, 10.36.157.63:22, connected)>>(*(), **{'flush': True})
  827. 2015-07-24 16:50:29,095 Tick
  828. 2015-07-24 16:50:29,096 Calling delayed <bound method CLISSHSocket.close of <CLISSHSocket(0x7f71031bfe50, 10.36.157.63:22, connected)>>(*(), **{'flush': True})
  829. 2015-07-24 16:50:29,096 [CLISSHSocket 10.36.157.63:22] Closing socket
  830. 2015-07-24 16:50:29,096 Unregister socket CLISSHSocket 10.36.157.63:22
  831. 2015-07-24 16:50:29,096 3 TICKS TO EXIT
  832. 2015-07-24 16:50:30,097 Tick
  833. 2015-07-24 16:50:30,098 2 TICKS TO EXIT
  834. 2015-07-24 16:50:31,099 Tick
  835. 2015-07-24 16:50:31,099 1 TICKS TO EXIT
  836. 2015-07-24 16:50:32,100 Tick
  837. 2015-07-24 16:50:32,100 EXIT
  838. 2015-07-24 16:50:32,100 Shutting down the factory
  839. 2015-07-24 16:50:32,101 Metrics:
  840. noc.socketfactory.handle.closed_reads: 0
  841. noc.socketfactory.handle.reads: 187
  842. noc.socketfactory.handle.writes: 1
  843. noc.socketfactory.loops: 197
  844. noc.socketfactory.sockets.count: 0
  845. noc.socketfactory.sockets.register: 1
  846. noc.socketfactory.sockets.unregister: 0
  847. noc.socketfactory.ticks: 13
  848. 2015-07-24 16:50:32,101 0 TICKS TO EXIT
  849. 2015-07-24 16:50:32,101 Stopping socket factory
  850. root@noc:/opt/noc#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement