Advertisement
Guest User

Untitled

a guest
Aug 7th, 2015
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.01 KB | None | 0 0
  1. root@ubuntu:/opt/noc# ./noc debug-script commands 4_liniya_d28 "commands=['dir']"
  2. 2015-08-07 12:14:47,552 Using JSON library: cjson
  3. 2015-08-07 12:14:47,582 SSH: Using gmpy
  4. 2015-08-07 12:14:47,884 Connecting to MongoDB {'username': 'noc', 'password': '********', 'db': 'noc'}
  5.  
  6. 2015-08-07 12:14:48,537 Connecting to MongoDB {'username': 'noc', 'password': '********', 'db': 'noc'}
  7. 2015-08-07 12:14:48,547 Loading PeriodicRegistry
  8. 2015-08-07 12:14:48,558 Registering MetricType
  9. 2015-08-07 12:14:48,568 Loading compiled MIBs
  10. 2015-08-07 12:14:48,568 Loading compiled MIBs from 'cmibs'
  11. 2015-08-07 12:14:48,568 Loading MIB: RFC1213-MIB
  12. 2015-08-07 12:14:48,568 Loading MIB: SNMPv2-MIB
  13. 2015-08-07 12:14:48,568 Loading MIB: IP-MIB
  14. 2015-08-07 12:14:48,568 Loading MIB: IF-MIB
  15. 2015-08-07 12:14:48,569 Loading MIB: CISCO-PPPOE-MIB
  16. 2015-08-07 12:14:48,569 Loading MIB: CISCO-VPDN-MGMT-MIB
  17. 2015-08-07 12:14:48,574 Configuring metric mappings sa.managedobject -> object.{{object.name|qm}}.{{metric_type|qm}}
  18. 2015-08-07 12:14:48,577 Configuring metric mappings inv.interface -> object.{{object.managed_object.name|qm}}.interface.{{object.name|qm}}.{{metric_type|qm}}
  19. 2015-08-07 12:14:48,584 Installing probe config watchers
  20. 2015-08-07 12:14:48,585 Loading DownloaderRegistry
  21. 2015-08-07 12:14:48,771 Loading ProfileRegistry
  22. 2015-08-07 12:14:49,370 Loading ScriptRegistry
  23. 2015-08-07 12:14:49,737 Adding FTS index for sa.managedobject
  24. 2015-08-07 12:14:49,743 Registering Capability
  25. 2015-08-07 12:14:49,761 Adding FTS index for ip.vrf
  26. 2015-08-07 12:14:49,765 Adding FTS index for vc.vc
  27. 2015-08-07 12:14:49,848 Adding FTS index for ip.prefix
  28. 2015-08-07 12:14:49,850 Adding FTS index for ip.address
  29. 2015-08-07 12:14:51,434 Setting up 'select' polling method
  30. 2015-08-07 12:14:51,465 Activating 'select' poller
  31. 2015-08-07 12:14:51,465 Loading private ssh key from 'etc/ssh/id_rsa'
  32. 2015-08-07 12:14:51,472 Loading public ssh key from 'etc/ssh/id_rsa.pub'
  33. access_profile {
  34. profile: "NAG.SNR"
  35. scheme: TELNET
  36. address: "10.11.3.143"
  37. port: 23
  38. user:
  39. password:
  40. path: "10.11.3.143"
  41. attrs {
  42. key: "Boot PROM"
  43. value: "6.2.138.58"
  44. }
  45. attrs {
  46. key: "HW version"
  47. value: "1.0.1"
  48. }
  49. attrs {
  50. key: "platform"
  51. value: "SNR-S2950-24G"
  52. }
  53. attrs {
  54. key: "Serial Number"
  55. value: "A200053QMT"
  56. }
  57. attrs {
  58. key: "vendor"
  59. value: "NAG LLC"
  60. }
  61. attrs {
  62. key: "version"
  63. value: "4.10.1"
  64. }
  65. caps {
  66. capability: "SNMP"
  67. bool_value: true
  68. }
  69. caps {
  70. capability: "SNMP | Bulk"
  71. bool_value: true
  72. }
  73. caps {
  74. capability: "SNMP | IF-MIB"
  75. bool_value: true
  76. }
  77. caps {
  78. capability: "SNMP | IF-MIB | HC"
  79. bool_value: true
  80. }
  81. }
  82. object_name: "4_liniya_d28"
  83. script: "NAG.SNR.commands"
  84. kwargs {
  85. key: "commands"
  86. value: "(lp1\nS\'dir\'\np2\na."
  87. }
  88. timeout: 120
  89.  
  90. 2015-08-07 12:14:51,512 Running socket factory (SelectPoller)
  91. 2015-08-07 12:14:51,513 Running script thread
  92. 2015-08-07 12:14:51,513 Creating transaction id=569853304 method=None callback=None
  93. 2015-08-07 12:14:51,514 Capabilities: {u'SNMP | IF-MIB': True, u'SNMP | Bulk': True, u'SNMP': True, u'SNMP | IF-MIB | HC': True}
  94. 2015-08-07 12:14:51,515 Running
  95. 2015-08-07 12:14:51,515 Running script: Generic.commands ({'ignore_cli_errors': False, 'commands': ['dir']}), timeout 120s
  96. 2015-08-07 12:14:51,515 cli(dir)
  97. 2015-08-07 12:14:51,515 Running new provider
  98. 2015-08-07 12:14:51,515 [TELNET: 10.11.3.143] ==> START
  99. 2015-08-07 12:14:51,515 [TELNET: 10.11.3.143] set_patterns([('([Uu]ser ?[Nn]ame|[Ll]ogin):', 'USERNAME'), ('[Pp]ass[Ww]ord:', 'PASSWORD'), ('^\\S+?>', 'UNPRIVELEGED_PROMPT'), ('^(?P<hostname>[a-zA-Z0-9]\\S{0,19})(?:[-_\\d\\w]+)?(?:\\(config[^\\)]*\\))?#', 'PROMPT'), ('(^ ---- More ----)|([Cc]ontinue?\\S+)|([Cc]onfirm?\\S+)|( [Aa]re you sure?\\S+)|(^Delete flash:)|(^Squeeze flash:)', 'PAGER')])
  100. 2015-08-07 12:14:51,517 [TELNET: 10.11.3.143] Set FSM timeout to 30
  101. 2015-08-07 12:14:51,517 Register socket CLITelnetSocket 10.11.3.143:23 (None)
  102. 2015-08-07 12:14:52,514 Tick
  103. 2015-08-07 12:14:52,514 3 TICKS TO EXIT
  104. 2015-08-07 12:14:52,514 [TELNET: 10.11.3.143] Initializing socket
  105. 2015-08-07 12:14:52,514 [CLITelnetSocket 10.11.3.143:23] Connecting 10.11.3.143:23
  106. 2015-08-07 12:14:52,569 [CLITelnetSocket 10.11.3.143:23] create_socket returns non-zero code 115[EINPROGRESS]
  107. 2015-08-07 12:14:52,593 [CLITelnetSocket 10.11.3.143:23] Connected
  108. 2015-08-07 12:14:52,596 [TELNET: 10.11.3.143] Received IAC WILL ECHO (251 1)
  109. 2015-08-07 12:14:52,596 [TELNET: 10.11.3.143] Sending IAC DO ECHO (253 1)
  110. 2015-08-07 12:14:52,598 [TELNET: 10.11.3.143] Received IAC WILL SGA (251 3)
  111. 2015-08-07 12:14:52,598 [TELNET: 10.11.3.143] Sending IAC DO SGA (253 3)
  112. 2015-08-07 12:14:52,636 [TELNET: 10.11.3.143] on_read: 'login:'
  113. 2015-08-07 12:14:52,636 [TELNET: 10.11.3.143] Starting synchronous FSM check
  114. 2015-08-07 12:14:52,636 [TELNET: 10.11.3.143] match '([Uu]ser ?[Nn]ame|[Ll]ogin):'
  115. 2015-08-07 12:14:52,636 [TELNET: 10.11.3.143] event(USERNAME)
  116. 2015-08-07 12:14:52,636 [TELNET: 10.11.3.143] ==> USERNAME
  117. 2015-08-07 12:14:52,636 [TELNET: 10.11.3.143] set_patterns([('[Pp]ass[Ww]ord:', 'PASSWORD'), ('^(?P<hostname>[a-zA-Z0-9]\\S{0,19})(?:[-_\\d\\w]+)?(?:\\(config[^\\)]*\\))?#', 'PROMPT')])
  118. 2015-08-07 12:14:52,636 [TELNET: 10.11.3.143] submit(u'djamal', bulk_lines=None, streaming=False)
  119. 2015-08-07 12:14:52,644 [TELNET: 10.11.3.143] on_read: 'd'
  120. 2015-08-07 12:14:52,691 [TELNET: 10.11.3.143] on_read: 'jamal'
  121. 2015-08-07 12:14:53,692 Tick
  122. 2015-08-07 12:14:53,692 Resetting wait ticks
  123. 2015-08-07 12:14:54,693 Tick
  124. 2015-08-07 12:14:54,694 Resetting wait ticks
  125. 2015-08-07 12:14:55,694 Tick
  126. 2015-08-07 12:14:55,695 Resetting wait ticks
  127. 2015-08-07 12:14:56,696 Tick
  128. 2015-08-07 12:14:56,696 Resetting wait ticks
  129. 2015-08-07 12:14:57,697 Tick
  130. 2015-08-07 12:14:57,697 Resetting wait ticks
  131. 2015-08-07 12:14:58,698 Tick
  132. 2015-08-07 12:14:58,699 Resetting wait ticks
  133. 2015-08-07 12:14:59,700 Tick
  134. 2015-08-07 12:14:59,700 Resetting wait ticks
  135. 2015-08-07 12:15:00,701 Tick
  136. 2015-08-07 12:15:00,701 Resetting wait ticks
  137. 2015-08-07 12:15:01,702 Tick
  138. 2015-08-07 12:15:01,703 Resetting wait ticks
  139. 2015-08-07 12:15:02,704 Tick
  140. 2015-08-07 12:15:02,704 Resetting wait ticks
  141. 2015-08-07 12:15:03,705 Tick
  142. 2015-08-07 12:15:03,705 Resetting wait ticks
  143. 2015-08-07 12:15:04,706 Tick
  144. 2015-08-07 12:15:04,707 Resetting wait ticks
  145. 2015-08-07 12:15:05,707 Tick
  146. 2015-08-07 12:15:05,707 Resetting wait ticks
  147. 2015-08-07 12:15:06,708 Tick
  148. 2015-08-07 12:15:06,708 Resetting wait ticks
  149. 2015-08-07 12:15:07,710 Tick
  150. 2015-08-07 12:15:07,710 Resetting wait ticks
  151. 2015-08-07 12:15:08,710 Tick
  152. 2015-08-07 12:15:08,711 Resetting wait ticks
  153. 2015-08-07 12:15:09,712 Tick
  154. 2015-08-07 12:15:09,712 Resetting wait ticks
  155. 2015-08-07 12:15:10,713 Tick
  156. 2015-08-07 12:15:10,713 Resetting wait ticks
  157. 2015-08-07 12:15:11,713 Tick
  158. 2015-08-07 12:15:11,713 Resetting wait ticks
  159. 2015-08-07 12:15:12,714 Tick
  160. 2015-08-07 12:15:12,715 Resetting wait ticks
  161. 2015-08-07 12:15:13,716 Tick
  162. 2015-08-07 12:15:13,716 Resetting wait ticks
  163. 2015-08-07 12:15:14,716 Tick
  164. 2015-08-07 12:15:14,716 Resetting wait ticks
  165. 2015-08-07 12:15:15,717 Tick
  166. 2015-08-07 12:15:15,717 Resetting wait ticks
  167. 2015-08-07 12:15:16,718 Tick
  168. 2015-08-07 12:15:16,719 Resetting wait ticks
  169. 2015-08-07 12:15:17,720 Tick
  170. 2015-08-07 12:15:17,720 Resetting wait ticks
  171. 2015-08-07 12:15:18,721 Tick
  172. 2015-08-07 12:15:18,721 Resetting wait ticks
  173. 2015-08-07 12:15:19,722 Tick
  174. 2015-08-07 12:15:19,723 Resetting wait ticks
  175. 2015-08-07 12:15:20,723 Tick
  176. 2015-08-07 12:15:20,724 Resetting wait ticks
  177. 2015-08-07 12:15:21,725 Tick
  178. 2015-08-07 12:15:21,725 Resetting wait ticks
  179. 2015-08-07 12:15:22,726 Tick
  180. 2015-08-07 12:15:22,726 Resetting wait ticks
  181. 2015-08-07 12:15:22,727 Closing stale socket CLITelnetSocket 10.11.3.143:23
  182. 2015-08-07 12:15:22,727 [CLITelnetSocket 10.11.3.143:23] Closing socket
  183. 2015-08-07 12:15:22,727 Unregister socket CLITelnetSocket 10.11.3.143:23
  184. 2015-08-07 12:15:22,737 Timed out
  185. 2015-08-07 12:15:22,737 Closing
  186. 2015-08-07 12:15:22,737 Requesting call: <bound method CLITelnetSocket.close of <CLITelnetSocket(0x7fbe3e71f310, 10.11.3.143:23, closing, stale)>>(*(), **{'flush': True})
  187. 2015-08-07 12:15:23,728 Tick
  188. 2015-08-07 12:15:23,729 Calling delayed <bound method CLITelnetSocket.close of <CLITelnetSocket(0x7fbe3e71f310, 10.11.3.143:23, closing, stale)>>(*(), **{'flush': True})
  189. 2015-08-07 12:15:23,729 3 TICKS TO EXIT
  190. 2015-08-07 12:15:24,730 Tick
  191. 2015-08-07 12:15:24,730 2 TICKS TO EXIT
  192. 2015-08-07 12:15:25,730 Tick
  193. 2015-08-07 12:15:25,731 1 TICKS TO EXIT
  194. 2015-08-07 12:15:26,732 Tick
  195. 2015-08-07 12:15:26,732 EXIT
  196. 2015-08-07 12:15:26,732 Shutting down the factory
  197. 2015-08-07 12:15:26,732 Metrics:
  198. noc.socketfactory.handle.closed_reads: 0
  199. noc.socketfactory.handle.reads: 5
  200. noc.socketfactory.handle.writes: 3
  201. noc.socketfactory.loops: 43
  202. noc.socketfactory.sockets.count: 0
  203. noc.socketfactory.sockets.register: 1
  204. noc.socketfactory.sockets.unregister: 0
  205. noc.socketfactory.ticks: 35
  206. 2015-08-07 12:15:26,732 0 TICKS TO EXIT
  207. 2015-08-07 12:15:26,732 Stopping socket factory
  208. root@ubuntu:/opt/noc#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement