Guest User

Untitled

a guest
Feb 20th, 2015
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 27.49 KB | None | 0 0
  1. root@noc:/opt/noc# ./noc debug-script get_vlans Core_6509-E
  2. 2015-02-20 14:14:20,237 Using JSON library: cjson
  3. 2015-02-20 14:14:20,243 SSH: Using gmpy
  4. 2015-02-20 14:14:20,360 Connecting to MongoDB {'username': 'noc', 'password': '********', 'db': 'noc'}
  5. 2015-02-20 14:14:20,424 Connecting to MongoDB {'username': 'noc', 'password': '********', 'db': 'noc'}
  6. 2015-02-20 14:14:20,432 Loading PeriodicRegistry
  7. 2015-02-20 14:14:20,438 Registering MetricType
  8. 2015-02-20 14:14:20,444 Loading compiled MIBs
  9. 2015-02-20 14:14:20,444 Loading compiled MIBs from 'cmibs'
  10. 2015-02-20 14:14:20,444 Loading MIB: IP-MIB
  11. 2015-02-20 14:14:20,444 Loading MIB: IF-MIB
  12. 2015-02-20 14:14:20,444 Loading MIB: CISCO-PPPOE-MIB
  13. 2015-02-20 14:14:20,444 Loading MIB: RFC1213-MIB
  14. 2015-02-20 14:14:20,445 Loading MIB: SNMPv2-MIB
  15. 2015-02-20 14:14:20,445 Loading MIB: CISCO-VPDN-MGMT-MIB
  16. 2015-02-20 14:14:20,448 Configuring metric mappings sa.managedobject -> object.{{object.name|qm}}.{{metric_type|qm}}
  17. 2015-02-20 14:14:20,448 Configuring metric mappings inv.interface -> object.{{object.managed_object.name|qm}}.interface.{{object.name|qm}}.{{metric_type|qm}}
  18. 2015-02-20 14:14:20,450 Loading DownloaderRegistry
  19. 2015-02-20 14:14:20,469 Loading ProfileRegistry
  20. 2015-02-20 14:14:20,869 Loading ScriptRegistry
  21. 2015-02-20 14:14:20,913 Adding FTS index for sa.managedobject
  22. 2015-02-20 14:14:20,923 Registering ConnectionType
  23. 2015-02-20 14:14:20,925 Registering ObjectModel
  24. 2015-02-20 14:14:20,926 Registering Capability
  25. 2015-02-20 14:14:20,931 Adding FTS index for vc.vc
  26. 2015-02-20 14:14:20,944 Adding FTS index for ip.vrf
  27. 2015-02-20 14:14:20,947 Adding FTS index for ip.prefix
  28. 2015-02-20 14:14:20,948 Adding FTS index for ip.address
  29. 2015-02-20 14:14:21,094 Setting up 'select' polling method
  30. 2015-02-20 14:14:21,094 Activating 'select' poller
  31. 2015-02-20 14:14:21,094 Loading private ssh key from 'etc/ssh/id_rsa'
  32. 2015-02-20 14:14:21,094 Loading public ssh key from 'etc/ssh/id_rsa.pub'
  33. access_profile {
  34. profile: "Cisco.IOS"
  35. scheme: SSH
  36. address: "10.1.1.1"
  37. port: 22
  38. user: "noc"
  39. password: "111"
  40. super_password: "111"
  41. attrs {
  42. key: "image"
  43. value: "s2t54-ADVIPSERVICESK9_NPE-M"
  44. }
  45. attrs {
  46. key: "platform"
  47. value: "s2t54"
  48. }
  49. attrs {
  50. key: "vendor"
  51. value: "Cisco"
  52. }
  53. attrs {
  54. key: "version"
  55. value: "15.0(1)SY6"
  56. }
  57. }
  58. object_name: "Core_6509-E"
  59. script: "Cisco.IOS.get_vlans"
  60. timeout: 120
  61.  
  62. 2015-02-20 14:14:21,096 Running script thread
  63. 2015-02-20 14:14:21,096 Running socket factory (SelectPoller)
  64. 2015-02-20 14:14:21,098 Creating transaction id=1732536296 method=None callback=None
  65. 2015-02-20 14:14:21,098 Capabilities: {}
  66. 2015-02-20 14:14:21,099 [Cisco.IOS.get_vlans(Core_6509-E, 10.1.1.1)] Running
  67. 2015-02-20 14:14:21,099 Running script: Cisco.IOS.get_vlans ({}), timeout 120s
  68. 2015-02-20 14:14:21,099 Capabilities: {}
  69. 2015-02-20 14:14:21,099 Running script: Cisco.IOS.get_version ({}), timeout 120s
  70. 2015-02-20 14:14:21,099 Not in call cache: 'Cisco.IOS.get_version', {}
  71. 2015-02-20 14:14:21,099 [Cisco.IOS.get_version(Core_6509-E, 10.1.1.1)] cli(show version)
  72. 2015-02-20 14:14:21,099 [Cisco.IOS.get_vlans(Core_6509-E, 10.1.1.1)] Running new provider
  73. 2015-02-20 14:14:21,099 [CLISSHSocket(0x7f47f4617c90)]<None> ==> SSH_START
  74. 2015-02-20 14:14:21,100 [CLISSHSocket(0x7f47f4617c90)]<SSH_START> set_timeout(30)
  75. 2015-02-20 14:14:21,100 Register socket CLISSHSocket 10.1.1.1:22 (None)
  76. 2015-02-20 14:14:22,099 Tick
  77. 2015-02-20 14:14:22,099 3 TICKS TO EXIT
  78. 2015-02-20 14:14:22,099 [CLISSHSocket(0x7f47f4617c90)]<SSH_START> Initializing socket
  79. 2015-02-20 14:14:22,100 [CLISSHSocket 10.1.1.1:22] Connecting 10.1.1.1:22
  80. 2015-02-20 14:14:22,104 [CLISSHSocket 10.1.1.1:22] create_socket returns non-zero code 115[EINPROGRESS]
  81. 2015-02-20 14:14:22,148 [CLISSHSocket 10.1.1.1:22] Connected
  82. 2015-02-20 14:14:22,200 [CLISSHSocket(0x7f47f4617c90)]<SSH_START> event(SSH_VERSION)
  83. 2015-02-20 14:14:22,200 [CLISSHSocket(0x7f47f4617c90)]<SSH_START> ==> SSH_VERSION
  84. 2015-02-20 14:14:22,200 [CLISSHSocket 10.1.1.1:22] Remote protocol version 2.0, remote software version Cisco-1.25
  85. 2015-02-20 14:14:22,200 [CLISSHSocket(0x7f47f4617c90)]<SSH_VERSION> Setting SSH transforms to: in=none none, out=none none
  86. 2015-02-20 14:14:22,200 [CLISSHSocket(0x7f47f4617c90)]<SSH_VERSION> Setting SSH transform keys
  87. 2015-02-20 14:14:22,201 [CLISSHSocket 10.1.1.1:22] Sending message type MSG_KEXINIT (20)
  88. 2015-02-20 14:14:22,201 [CLISSHSocket(0x7f47f4617c90)]<SSH_VERSION> event(SSH_KEY_EXCHANGE)
  89. 2015-02-20 14:14:22,201 [CLISSHSocket(0x7f47f4617c90)]<SSH_VERSION> ==> SSH_KEY_EXCHANGE
  90. 2015-02-20 14:14:22,248 [CLISSHSocket 10.1.1.1:22] Receiving message type MSG_KEXINIT (20)
  91. 2015-02-20 14:14:22,248 [CLISSHSocket 10.1.1.1:22] Receiving server proposals: kex=['diffie-hellman-group1-sha1'] key=['ssh-rsa'] enc_cs=['aes128-cbc', '3des-cbc', 'aes192-cbc', 'aes256-cbc'] enc_sc=['aes128-cbc', '3des-cbc', 'aes192-cbc', 'aes256-cbc'] mac_cs=['hmac-sha1', 'hmac-sha1-96', 'hmac-md5', 'hmac-md5-96'] mac_sc=['hmac-sha1', 'hmac-sha1-96', 'hmac-md5', 'hmac-md5-96'] comp_cs=['none'] comp_sc['none']
  92. 2015-02-20 14:14:22,248 [CLISSHSocket(0x7f47f4617c90)]<SSH_KEY_EXCHANGE> Setting SSH transforms to: in=aes256-cbc hmac-sha1, out=aes256-cbc hmac-sha1
  93. 2015-02-20 14:14:22,248 [CLISSHSocket 10.1.1.1:22] Selecting diffie-hellman-group1-sha1 ssh-rsa, in=(aes256-cbc hmac-sha1 none) out=(aes256-cbc hmac-sha1 none)
  94. 2015-02-20 14:14:22,249 [CLISSHSocket 10.1.1.1:22] Sending message type MSG_KEX_DH_GEX_REQUEST_OLD (30)
  95. 2015-02-20 14:14:22,558 [CLISSHSocket 10.1.1.1:22] Receiving message type MSG_KEXDH_REPLY (31)
  96. 2015-02-20 14:14:22,558 [CLISSHSocket 10.1.1.1:22] Server PK fingerprint: a0:ea:da:00:28:4b:fb:d8:79:a1:11:67:d2:07:22:14
  97. 2015-02-20 14:14:22,559 [CLISSHSocket(0x7f47f4617c90)]<SSH_KEY_EXCHANGE> Setting SSH transform keys
  98. 2015-02-20 14:14:22,559 [CLISSHSocket 10.1.1.1:22] Sending message type MSG_NEWKEYS (21)
  99. 2015-02-20 14:14:22,559 [CLISSHSocket 10.1.1.1:22] Receiving message type MSG_NEWKEYS (21)
  100. 2015-02-20 14:14:22,560 [CLISSHSocket 10.1.1.1:22] Using new keys
  101. 2015-02-20 14:14:22,560 [CLISSHSocket(0x7f47f4617c90)]<SSH_KEY_EXCHANGE> event(SSH_AUTH)
  102. 2015-02-20 14:14:22,560 [CLISSHSocket(0x7f47f4617c90)]<SSH_KEY_EXCHANGE> ==> SSH_AUTH
  103. 2015-02-20 14:14:22,560 [CLISSHSocket 10.1.1.1:22] Requesting service ssh-userauth
  104. 2015-02-20 14:14:22,560 [CLISSHSocket 10.1.1.1:22] Sending message type MSG_SERVICE_REQUEST (5)
  105. 2015-02-20 14:14:22,806 [CLISSHSocket 10.1.1.1:22] Receiving message type MSG_SERVICE_ACCEPT (6)
  106. 2015-02-20 14:14:22,806 [CLISSHSocket 10.1.1.1:22] Starting service ssh-userauth
  107. 2015-02-20 14:14:22,806 [CLISSHSocket(0x7f47f4617c90)]<SSH_AUTH> event(SSH_AUTH_PASSWORD)
  108. 2015-02-20 14:14:22,806 [CLISSHSocket(0x7f47f4617c90)]<SSH_AUTH> ==> SSH_AUTH_PASSWORD
  109. 2015-02-20 14:14:22,806 [CLISSHSocket 10.1.1.1:22] Authenticating with 'none' method
  110. 2015-02-20 14:14:22,806 [CLISSHSocket 10.1.1.1:22] Sending message type MSG_USERAUTH_REQUEST (50)
  111. 2015-02-20 14:14:22,856 [CLISSHSocket 10.1.1.1:22] Receiving message type MSG_USERAUTH_FAILURE (51)
  112. 2015-02-20 14:14:22,856 [CLISSHSocket 10.1.1.1:22] Authentication method 'none' has been failed. Trying next method (keyboard-interactive,password)
  113. 2015-02-20 14:14:22,856 [CLISSHSocket 10.1.1.1:22] Partially authenticated with 'none'. Trying next method
  114. 2015-02-20 14:14:22,856 [CLISSHSocket 10.1.1.1:22] Authenticating with 'password' method
  115. 2015-02-20 14:14:22,856 [CLISSHSocket 10.1.1.1:22] Sending message type MSG_USERAUTH_REQUEST (50)
  116. 2015-02-20 14:14:22,964 [CLISSHSocket 10.1.1.1:22] Receiving message type MSG_USERAUTH_SUCCESS (52)
  117. 2015-02-20 14:14:22,964 [CLISSHSocket(0x7f47f4617c90)]<SSH_AUTH_PASSWORD> event(SSH_CHANNEL)
  118. 2015-02-20 14:14:22,964 [CLISSHSocket(0x7f47f4617c90)]<SSH_AUTH_PASSWORD> ==> SSH_CHANNEL
  119. 2015-02-20 14:14:22,965 [CLISSHSocket 10.1.1.1:22] Sending message type MSG_CHANNEL_OPEN (90)
  120. 2015-02-20 14:14:22,965 [CLISSHSocket 10.1.1.1:22] Receiving message type MSG_CHANNEL_OPEN_CONFIRMATION (91)
  121. 2015-02-20 14:14:22,965 [CLISSHSocket 10.1.1.1:22] Opening channel. local=0 remote=3
  122. 2015-02-20 14:14:22,966 [CLISSHSocket(0x7f47f4617c90)]<SSH_CHANNEL> event(SSH_PTY)
  123. 2015-02-20 14:14:22,966 [CLISSHSocket(0x7f47f4617c90)]<SSH_CHANNEL> ==> SSH_PTY
  124. 2015-02-20 14:14:22,966 [CLISSHSocket 10.1.1.1:22] Requesting PTY
  125. 2015-02-20 14:14:22,966 [CLISSHSocket 10.1.1.1:22] Sending message type MSG_CHANNEL_REQUEST (98)
  126. 2015-02-20 14:14:22,967 [CLISSHSocket 10.1.1.1:22] Receiving message type MSG_CHANNEL_SUCCESS (99)
  127. 2015-02-20 14:14:22,967 [CLISSHSocket(0x7f47f4617c90)]<SSH_PTY> event(SSH_SHELL)
  128. 2015-02-20 14:14:22,967 [CLISSHSocket(0x7f47f4617c90)]<SSH_PTY> ==> SSH_SHELL
  129. 2015-02-20 14:14:22,967 [CLISSHSocket 10.1.1.1:22] Requesting shell
  130. 2015-02-20 14:14:22,967 [CLISSHSocket 10.1.1.1:22] Sending message type MSG_CHANNEL_REQUEST (98)
  131. 2015-02-20 14:14:22,968 [CLISSHSocket 10.1.1.1:22] Receiving message type MSG_CHANNEL_SUCCESS (99)
  132. 2015-02-20 14:14:22,968 [CLISSHSocket(0x7f47f4617c90)]<SSH_SHELL> event(START)
  133. 2015-02-20 14:14:22,968 [CLISSHSocket(0x7f47f4617c90)]<SSH_SHELL> ==> START
  134. 2015-02-20 14:14:22,968 [CLISSHSocket(0x7f47f4617c90)]<START> set_patterns([('([Uu]sername|[Ll]ogin):', 'USERNAME'), ('[Pp]assword:', 'PASSWORD'), ('^\\S+?>', 'UNPRIVELEGED_PROMPT'), ('^(?P<hostname>[a-zA-Z0-9]\\S{0,19})(?:[-_\\d\\w]+)?(?:\\(config[^\\)]*\\))?#', 'PROMPT'), ('(^ --More--)|(\\?\\s*\\[confirm\\])', 'PAGER')])
  135. 2015-02-20 14:14:22,970 [CLISSHSocket(0x7f47f4617c90)]<START> on_read: '\r\nCore-WS-C6509-E#'
  136. 2015-02-20 14:14:22,970 [CLISSHSocket(0x7f47f4617c90)]<START> Starting synchronous FSM check
  137. 2015-02-20 14:14:22,970 [CLISSHSocket(0x7f47f4617c90)]<START> match '^(?P<hostname>[a-zA-Z0-9]\S{0,19})(?:[-_\d\w]+)?(?:\(config[^\)]*\))?#'
  138. 2015-02-20 14:14:22,970 [CLISSHSocket(0x7f47f4617c90)]<START> event(PROMPT)
  139. 2015-02-20 14:14:22,970 [CLISSHSocket(0x7f47f4617c90)]<START> ==> PROMPT
  140. 2015-02-20 14:14:22,970 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_PROMPT_enter
  141. 2015-02-20 14:14:22,970 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> Using prompt pattern: ^Core\-WS\-C6509\-E(?:[-_\d\w]+)?(?:\(config[^\)]*\))?#
  142. 2015-02-20 14:14:22,971 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> set_patterns([('^Core\\-WS\\-C6509\\-E(?:[-_\\d\\w]+)?(?:\\(config[^\\)]*\\))?#', 'PROMPT'), ('(^ --More--)|(\\?\\s*\\[confirm\\])', 'PAGER')])
  143. 2015-02-20 14:14:23,020 [Cisco.IOS.get_vlans(Core_6509-E, 10.1.1.1)] CLI Provider is ready
  144. 2015-02-20 14:14:23,020 [Cisco.IOS.get_vlans(Core_6509-E, 10.1.1.1)] Setting up session
  145. 2015-02-20 14:14:23,020 [Cisco.IOS.get_vlans(Core_6509-E, 10.1.1.1)] Disable paging
  146. 2015-02-20 14:14:23,020 [Cisco.IOS.get_vlans(Core_6509-E, 10.1.1.1)] cli(terminal length 0)
  147. 2015-02-20 14:14:23,020 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> submit('terminal length 0', bulk_lines=None, streaming=False)
  148. 2015-02-20 14:14:23,020 [CLISSHSocket 10.1.1.1:22] Sending message type MSG_CHANNEL_DATA (94)
  149. 2015-02-20 14:14:23,021 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: 't'
  150. 2015-02-20 14:14:23,021 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: 'e'
  151. 2015-02-20 14:14:23,022 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: 'r'
  152. 2015-02-20 14:14:23,022 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: 'm'
  153. 2015-02-20 14:14:23,022 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: 'i'
  154. 2015-02-20 14:14:23,022 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: 'n'
  155. 2015-02-20 14:14:23,022 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: 'a'
  156. 2015-02-20 14:14:23,023 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: 'l'
  157. 2015-02-20 14:14:23,023 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: ' '
  158. 2015-02-20 14:14:23,023 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: 'l'
  159. 2015-02-20 14:14:23,023 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: 'e'
  160. 2015-02-20 14:14:23,023 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: 'n'
  161. 2015-02-20 14:14:23,023 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: 'g'
  162. 2015-02-20 14:14:23,024 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: 't'
  163. 2015-02-20 14:14:23,024 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: 'h'
  164. 2015-02-20 14:14:23,024 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: ' '
  165. 2015-02-20 14:14:23,024 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: '0'
  166. 2015-02-20 14:14:23,024 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: '\r\n'
  167. 2015-02-20 14:14:23,223 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: 'Command authorization failed.\r\n\r\nCore-WS-C6509-E#'
  168. 2015-02-20 14:14:23,223 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> Starting synchronous FSM check
  169. 2015-02-20 14:14:23,223 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> match '^Core\-WS\-C6509\-E(?:[-_\d\w]+)?(?:\(config[^\)]*\))?#'
  170. 2015-02-20 14:14:23,223 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> Starting synchronous FSM check
  171. 2015-02-20 14:14:23,223 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> event(PROMPT)
  172. 2015-02-20 14:14:23,223 Tick
  173. 2015-02-20 14:14:23,223 Resetting wait ticks
  174. 2015-02-20 14:14:23,235 [Cisco.IOS.get_vlans(Core_6509-E, 10.1.1.1)] cli(terminal length 0) returns:
  175. ===[ terminal length 0 ]================================================
  176. 'Command authorization failed.\n\n'
  177. ========================================================================
  178. 2015-02-20 14:14:23,235 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> submit('show version', bulk_lines=None, streaming=False)
  179. 2015-02-20 14:14:23,235 [CLISSHSocket 10.1.1.1:22] Sending message type MSG_CHANNEL_DATA (94)
  180. 2015-02-20 14:14:23,236 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: 's'
  181. 2015-02-20 14:14:23,236 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: 'h'
  182. 2015-02-20 14:14:23,236 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: 'o'
  183. 2015-02-20 14:14:23,236 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: 'w'
  184. 2015-02-20 14:14:23,236 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: ' '
  185. 2015-02-20 14:14:23,237 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: 'v'
  186. 2015-02-20 14:14:23,237 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: 'e'
  187. 2015-02-20 14:14:23,237 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: 'r'
  188. 2015-02-20 14:14:23,237 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: 's'
  189. 2015-02-20 14:14:23,237 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: 'i'
  190. 2015-02-20 14:14:23,238 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: 'o'
  191. 2015-02-20 14:14:23,238 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: 'n'
  192. 2015-02-20 14:14:23,238 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: '\r\n'
  193. 2015-02-20 14:14:23,436 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: 'Cisco IOS Software, s2t54 Software (s2t54-ADVIPSERVICESK9_NPE-M), Version 15.0(1)SY6, RELEASE SOFTWARE (fc4)\r\nTechnical Support: http://www.cisco.com/techsupport\r\nCopyright (c) 1986-2014 by Cisco Systems, Inc.\r\nCompiled Sat 01-Feb-14 04:46 by prod_rel_team\r\n\r\nROM: System Bootstrap, Version 12.2(50r)SYS2, RELEASE SOFTWARE (fc1)\r\n\r\n Core-WS-C6509-E uptime is 30 weeks, 5 days, 14 hours, 29 minutes\r\nUptime for this control processor is 30 weeks, 5 days, 14 hours, 25 minutes\r\nSystem returned to ROM by s/w reset\r\nSystem restarted at 23:45:04 MSK Sat Jul 19 2014\r\nSystem image file is "bootdisk:s2t54-advipservicesk9_npe-mz.SPA.150-1.SY6.bin"\r\nLast reload reason: Reload Command\r\n\r\n\r\n\r\nThis product contains cryptographic features and is subject to United\r\nStates and local country laws governing import, export, transfer and\r\nuse. Delivery of Cisco cryptographic products does not imply\r\nthird-party authority to import, export, distribute or use encryption.\r\nImporters, exporters, distributors and users are responsible for\r\ncompliance with U.S. and local country laws. By using this product you\r\nagree to comply with applicable laws and regulations. If you are unable\r\n --More-- '
  194. 2015-02-20 14:14:23,436 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> Starting synchronous FSM check
  195. 2015-02-20 14:14:23,436 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> match '(^ --More--)|(\?\s*\[confirm\])'
  196. 2015-02-20 14:14:23,436 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> Starting synchronous FSM check
  197. 2015-02-20 14:14:23,436 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> event(PAGER)
  198. 2015-02-20 14:14:23,437 [CLISSHSocket 10.1.1.1:22] Sending message type MSG_CHANNEL_DATA (94)
  199. 2015-02-20 14:14:23,438 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: '\x08\x08\x08\x08\x08\x08\x08\x08\x08 \x08\x08\x08\x08\x08\x08\x08\x08\x08\r\nCore-WS-C6509-E#'
  200. 2015-02-20 14:14:23,438 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> Starting synchronous FSM check
  201. 2015-02-20 14:14:23,438 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> match '^Core\-WS\-C6509\-E(?:[-_\d\w]+)?(?:\(config[^\)]*\))?#'
  202. 2015-02-20 14:14:23,438 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> Starting synchronous FSM check
  203. 2015-02-20 14:14:23,438 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> event(PROMPT)
  204. 2015-02-20 14:14:23,449 [Cisco.IOS.get_version(Core_6509-E, 10.1.1.1)] cli(show version) returns:
  205. ===[ show version ]=====================================================
  206. 'Cisco IOS Software, s2t54 Software (s2t54-ADVIPSERVICESK9_NPE-M), Version 15.0(1)SY6, RELEASE SOFTWARE (fc4)\nTechnical Support: http://www.cisco.com/techsupport\nCopyright (c) 1986-2014 by Cisco Systems, Inc.\nCompiled Sat 01-Feb-14 04:46 by prod_rel_team\n\nROM: System Bootstrap, Version 12.2(50r)SYS2, RELEASE SOFTWARE (fc1)\n\n Core-WS-C6509-E uptime is 30 weeks, 5 days, 14 hours, 29 minutes\nUptime for this control processor is 30 weeks, 5 days, 14 hours, 25 minutes\nSystem returned to ROM by s/w reset\nSystem restarted at 23:45:04 MSK Sat Jul 19 2014\nSystem image file is "bootdisk:s2t54-advipservicesk9_npe-mz.SPA.150-1.SY6.bin"\nLast reload reason: Reload Command\n\n\n\nThis product contains cryptographic features and is subject to United\nStates and local country laws governing import, export, transfer and\nuse. Delivery of Cisco cryptographic products does not imply\nthird-party authority to import, export, distribute or use encryption.\nImporters, exporters, distributors and users are responsible for\ncompliance with U.S. and local country laws. By using this product you\nagree to comply with applicable laws and regulations. If you are unable\n\n'
  207. ========================================================================
  208. 2015-02-20 14:14:23,449 Write to call cache: Cisco.IOS.get_version, {}, {'platform': 's2t54', 'version': '15.0(1)SY6', 'vendor': 'Cisco', 'attributes': {'image': 's2t54-ADVIPSERVICESK9_NPE-M'}}
  209. 2015-02-20 14:14:23,449 Script returns with result: {'platform': 's2t54', 'version': '15.0(1)SY6', 'vendor': 'Cisco', 'attributes': {'image': 's2t54-ADVIPSERVICESK9_NPE-M'}} (2350.31ms)
  210. 2015-02-20 14:14:23,449 [Cisco.IOS.get_vlans(Core_6509-E, 10.1.1.1)] cli(show vlan brief)
  211. 2015-02-20 14:14:23,449 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> submit('show vlan brief', bulk_lines=None, streaming=False)
  212. 2015-02-20 14:14:23,450 [CLISSHSocket 10.1.1.1:22] Sending message type MSG_CHANNEL_DATA (94)
  213. 2015-02-20 14:14:23,450 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: 's'
  214. 2015-02-20 14:14:23,450 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: 'h'
  215. 2015-02-20 14:14:23,451 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: 'o'
  216. 2015-02-20 14:14:23,451 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: 'w'
  217. 2015-02-20 14:14:23,451 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: ' '
  218. 2015-02-20 14:14:23,451 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: 'v'
  219. 2015-02-20 14:14:23,451 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: 'l'
  220. 2015-02-20 14:14:23,451 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: 'a'
  221. 2015-02-20 14:14:23,452 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: 'n'
  222. 2015-02-20 14:14:23,452 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: ' '
  223. 2015-02-20 14:14:23,452 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: 'b'
  224. 2015-02-20 14:14:23,452 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: 'r'
  225. 2015-02-20 14:14:23,452 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: 'i'
  226. 2015-02-20 14:14:23,452 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: 'e'
  227. 2015-02-20 14:14:23,453 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: 'f'
  228. 2015-02-20 14:14:23,453 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: '\r\n'
  229. 2015-02-20 14:14:23,672 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: '\r\nVLAN Name Status Ports\r\n---- -------------------------------- --------- -------------------------------\r\n1 default active Gi1/20\r\n2 VLAN0002 active \r\n10 VLAN0010 active \r\n11 VLAN0011 active \r\n22 VLAN0022 active \r\n70 VLAN0070 active \r\n71 VLAN0071 active \r\n72 VLAN0072 active Gi1/22\r\n73 VLAN0073 active Gi1/23\r\n77 VLAN0077 active \r\n78 VLAN0078 active \r\n80 VLAN0080 active \r\n81 VLAN0081 active \r\n100 VLAN0100 active \r\n101 VLAN0101 active \r\n102 VLAN0102 active \r\n103 VLAN0103 active \r\n104 VLAN0104 active \r\n105 VLAN0105 active \r\n107 VLAN0107 active \r\n111 VLAN0111 active Gi1/19\r\n --More-- '
  230. 2015-02-20 14:14:23,672 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> Starting synchronous FSM check
  231. 2015-02-20 14:14:23,672 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> match '(^ --More--)|(\?\s*\[confirm\])'
  232. 2015-02-20 14:14:23,672 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> Starting synchronous FSM check
  233. 2015-02-20 14:14:23,672 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> event(PAGER)
  234. 2015-02-20 14:14:23,672 [CLISSHSocket 10.1.1.1:22] Sending message type MSG_CHANNEL_DATA (94)
  235. 2015-02-20 14:14:23,674 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: '\x08\x08\x08\x08\x08\x08\x08\x08\x08 \x08\x08\x08\x08\x08\x08\x08\x08\x08\r\nCore-WS-C6509-E#'
  236. 2015-02-20 14:14:23,674 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> Starting synchronous FSM check
  237. 2015-02-20 14:14:23,675 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> match '^Core\-WS\-C6509\-E(?:[-_\d\w]+)?(?:\(config[^\)]*\))?#'
  238. 2015-02-20 14:14:23,675 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> Starting synchronous FSM check
  239. 2015-02-20 14:14:23,675 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> event(PROMPT)
  240. 2015-02-20 14:14:23,714 [Cisco.IOS.get_vlans(Core_6509-E, 10.1.1.1)] cli(show vlan brief) returns:
  241. ===[ show vlan brief ]==================================================
  242. '\nVLAN Name Status Ports\n---- -------------------------------- --------- -------------------------------\n1 default active Gi1/20\n2 VLAN0002 active \n10 VLAN0010 active \n11 VLAN0011 active \n22 VLAN0022 active \n70 VLAN0070 active \n71 VLAN0071 active \n72 VLAN0072 active Gi1/22\n73 VLAN0073 active Gi1/23\n77 VLAN0077 active \n78 VLAN0078 active \n80 VLAN0080 active \n81 VLAN0081 active \n100 VLAN0100 active \n101 VLAN0101 active \n102 VLAN0102 active \n103 VLAN0103 active \n104 VLAN0104 active \n105 VLAN0105 active \n107 VLAN0107 active \n111 VLAN0111 active Gi1/19\n\n'
  243. ========================================================================
  244. 2015-02-20 14:14:23,714 Script returns with result: [{'name': 'default', 'vlan_id': 1}, {'name': 'VLAN0002', 'vlan_id': 2}, {'name': 'VLAN0010', 'vlan_id': 10}, {'name': 'VLAN0011', 'vlan_id': 11}, {'name': 'VLAN0022', 'vlan_id': 22}, {'name': 'VLAN0070', 'vlan_id': 70}, {'name': 'VLAN0071', 'vlan_id': 71}, {'name': 'VLAN0072', 'vlan_id': 72}, {'name': 'VLAN0073', 'vlan_id': 73}, {'name': 'VLAN0077', 'vlan_id': 77}, {'name': 'VLAN0078', 'vlan_id': 78}, {'name': 'VLAN0080', 'vlan_id': 80}, {'name': 'VLAN0081', 'vlan_id': 81}, {'name': 'VLAN0100', 'vlan_id': 100}, {'name': 'VLAN0101', 'vlan_id': 101}, {'name': 'VLAN0102', 'vlan_id': 102}, {'name': 'VLAN0103', 'vlan_id': 103}, {'name': 'VLAN0104', 'vlan_id': 104}, {'name': 'VLAN0105', 'vlan_id': 105}, {'name': 'VLAN0107', 'vlan_id': 107}, {'name': 'VLAN0111', 'vlan_id': 111}] (2615.39ms)
  245. 2015-02-20 14:14:23,714 [Cisco.IOS.get_vlans(Core_6509-E, 10.1.1.1)] Exiting
  246. 2015-02-20 14:14:23,714 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> submit('exit', bulk_lines=None, streaming=False)
  247. 2015-02-20 14:14:23,715 [CLISSHSocket 10.1.1.1:22] Sending message type MSG_CHANNEL_DATA (94)
  248. 2015-02-20 14:14:23,715 [Cisco.IOS.get_vlans(Core_6509-E, 10.1.1.1)] Closing
  249. 2015-02-20 14:14:23,715 Requesting call: <bound method CLISSHSocket.close of <CLISSHSocket(0x7f47f4617c90, 10.1.1.1:22, connected)>>(*(), **{'flush': True})
  250. 2015-02-20 14:14:24,044 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: 'e'
  251. 2015-02-20 14:14:24,044 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: 'x'
  252. 2015-02-20 14:14:24,044 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: 'i'
  253. 2015-02-20 14:14:24,044 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: 't'
  254. 2015-02-20 14:14:24,045 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: '\r\n'
  255. 2015-02-20 14:14:24,142 [CLISSHSocket 10.1.1.1:22] Receiving message type MSG_CHANNEL_REQUEST (98)
  256. 2015-02-20 14:14:24,143 [CLISSHSocket 10.1.1.1:22] Receiving message type MSG_CHANNEL_EOF (96)
  257. 2015-02-20 14:14:24,143 [CLISSHSocket 10.1.1.1:22] Receiving message type MSG_CHANNEL_CLOSE (97)
  258. 2015-02-20 14:14:24,143 [CLISSHSocket 10.1.1.1:22] Sending message type MSG_CHANNEL_CLOSE (97)
  259. 2015-02-20 14:14:24,143 [CLISSHSocket 10.1.1.1:22] Closing socket
  260. 2015-02-20 14:14:24,143 Unregister socket CLISSHSocket 10.1.1.1:22
  261. 2015-02-20 14:14:25,144 Tick
  262. 2015-02-20 14:14:25,145 Calling delayed <bound method CLISSHSocket.close of <CLISSHSocket(0x7f47f4617c90, 10.1.1.1:22, closing)>>(*(), **{'flush': True})
  263. 2015-02-20 14:14:25,145 3 TICKS TO EXIT
  264. 2015-02-20 14:14:26,146 Tick
  265. 2015-02-20 14:14:26,146 2 TICKS TO EXIT
  266. 2015-02-20 14:14:27,147 Tick
  267. 2015-02-20 14:14:27,148 1 TICKS TO EXIT
  268. 2015-02-20 14:14:28,149 Tick
  269. 2015-02-20 14:14:28,149 EXIT
  270. 2015-02-20 14:14:28,151 SCRIPT RESULT: Cisco.IOS.get_vlans(Core_6509-E, 10.1.1.1)
  271. [{'name': 'default', 'vlan_id': 1},
  272. {'name': 'VLAN0002', 'vlan_id': 2},
  273. {'name': 'VLAN0010', 'vlan_id': 10},
  274. {'name': 'VLAN0011', 'vlan_id': 11},
  275. {'name': 'VLAN0022', 'vlan_id': 22},
  276. {'name': 'VLAN0070', 'vlan_id': 70},
  277. {'name': 'VLAN0071', 'vlan_id': 71},
  278. {'name': 'VLAN0072', 'vlan_id': 72},
  279. {'name': 'VLAN0073', 'vlan_id': 73},
  280. {'name': 'VLAN0077', 'vlan_id': 77},
  281. {'name': 'VLAN0078', 'vlan_id': 78},
  282. {'name': 'VLAN0080', 'vlan_id': 80},
  283. {'name': 'VLAN0081', 'vlan_id': 81},
  284. {'name': 'VLAN0100', 'vlan_id': 100},
  285. {'name': 'VLAN0101', 'vlan_id': 101},
  286. {'name': 'VLAN0102', 'vlan_id': 102},
  287. {'name': 'VLAN0103', 'vlan_id': 103},
  288. {'name': 'VLAN0104', 'vlan_id': 104},
  289. {'name': 'VLAN0105', 'vlan_id': 105},
  290. {'name': 'VLAN0107', 'vlan_id': 107},
  291. {'name': 'VLAN0111', 'vlan_id': 111}]
  292. 2015-02-20 14:14:28,151 Shutting down the factory
  293. 2015-02-20 14:14:28,151 Metrics:
  294. noc.socketfactory.handle.closed_reads: 0
  295. noc.socketfactory.handle.reads: 38
  296. noc.socketfactory.handle.writes: 1
  297. noc.socketfactory.loops: 44
  298. noc.socketfactory.sockets.count: 0
  299. noc.socketfactory.sockets.register: 1
  300. noc.socketfactory.sockets.unregister: 0
  301. noc.socketfactory.ticks: 6
  302. 2015-02-20 14:14:28,151 0 TICKS TO EXIT
  303. 2015-02-20 14:14:28,151 Stopping socket factory
Advertisement
Add Comment
Please, Sign In to add comment