Advertisement
Guest User

Untitled

a guest
Aug 7th, 2015
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.01 KB | None | 0 0
  1.  
  2. root@ubuntu:~# cd /opt/noc
  3. root@ubuntu:/opt/noc# ./noc debug-script commands 4_liniya_d28 "commands=['dir']"
  4. 2015-08-07 12:11:56,255 Using JSON library: cjson
  5. 2015-08-07 12:11:56,315 SSH: Using gmpy
  6. 2015-08-07 12:11:56,701 Connecting to MongoDB {'username': 'noc', 'password': '********', 'db': 'noc'}
  7. 2015-08-07 12:11:57,437 Connecting to MongoDB {'username': 'noc', 'password': '********', 'db': 'noc'}
  8. 2015-08-07 12:11:57,464 Loading PeriodicRegistry
  9. 2015-08-07 12:11:57,488 Registering MetricType
  10. 2015-08-07 12:11:57,495 Loading compiled MIBs
  11. 2015-08-07 12:11:57,495 Loading compiled MIBs from 'cmibs'
  12. 2015-08-07 12:11:57,495 Loading MIB: RFC1213-MIB
  13. 2015-08-07 12:11:57,495 Loading MIB: SNMPv2-MIB
  14. 2015-08-07 12:11:57,495 Loading MIB: IP-MIB
  15. 2015-08-07 12:11:57,495 Loading MIB: IF-MIB
  16. 2015-08-07 12:11:57,496 Loading MIB: CISCO-PPPOE-MIB
  17. 2015-08-07 12:11:57,496 Loading MIB: CISCO-VPDN-MGMT-MIB
  18. 2015-08-07 12:11:57,501 Configuring metric mappings sa.managedobject -> object.{{object.name|qm}}.{{metric_type|qm}}
  19. 2015-08-07 12:11:57,501 Configuring metric mappings inv.interface -> object.{{object.managed_object.name|qm}}.interface.{{object.name|qm}}.{{metric_type|qm}}
  20. 2015-08-07 12:11:57,503 Installing probe config watchers
  21. 2015-08-07 12:11:57,504 Loading DownloaderRegistry
  22. 2015-08-07 12:11:57,532 Loading ProfileRegistry
  23. 2015-08-07 12:11:58,206 Loading ScriptRegistry
  24. 2015-08-07 12:11:58,343 Adding FTS index for sa.managedobject
  25. 2015-08-07 12:11:58,350 Registering Capability
  26. 2015-08-07 12:11:58,369 Adding FTS index for ip.vrf
  27. 2015-08-07 12:11:58,375 Adding FTS index for vc.vc
  28. 2015-08-07 12:11:58,444 Adding FTS index for ip.prefix
  29. 2015-08-07 12:11:58,445 Adding FTS index for ip.address
  30. 2015-08-07 12:11:58,813 Setting up 'select' polling method
  31. 2015-08-07 12:11:58,843 Activating 'select' poller
  32. 2015-08-07 12:11:58,843 Loading private ssh key from 'etc/ssh/id_rsa'
  33. 2015-08-07 12:11:58,863 Loading public ssh key from 'etc/ssh/id_rsa.pub'
  34. access_profile {
  35. profile: "NAG.SNR"
  36. scheme: TELNET
  37. address: "10.11.3.143"
  38. port: 23
  39. user:
  40. password:
  41. path: "10.11.3.143"
  42. attrs {
  43. key: "Boot PROM"
  44. value: "6.2.138.58"
  45. }
  46. attrs {
  47. key: "HW version"
  48. value: "1.0.1"
  49. }
  50. attrs {
  51. key: "platform"
  52. value: "SNR-S2950-24G"
  53. }
  54. attrs {
  55. key: "Serial Number"
  56. value: "A200053QMT"
  57. }
  58. attrs {
  59. key: "vendor"
  60. value: "NAG LLC"
  61. }
  62. attrs {
  63. key: "version"
  64. value: "4.10.1"
  65. }
  66. caps {
  67. capability: "SNMP"
  68. bool_value: true
  69. }
  70. caps {
  71. capability: "SNMP | Bulk"
  72. bool_value: true
  73. }
  74. caps {
  75. capability: "SNMP | IF-MIB"
  76. bool_value: true
  77. }
  78. caps {
  79. capability: "SNMP | IF-MIB | HC"
  80. bool_value: true
  81. }
  82. }
  83. object_name: "4_liniya_d28"
  84. script: "NAG.SNR.commands"
  85. kwargs {
  86. key: "commands"
  87. value: "(lp1\nS\'dir\'\np2\na."
  88. }
  89. timeout: 120
  90.  
  91. 2015-08-07 12:11:58,902 Running script thread
  92. 2015-08-07 12:11:58,903 Creating transaction id=1855868362 method=None callback=None
  93. 2015-08-07 12:11:58,903 Capabilities: {u'SNMP | IF-MIB': True, u'SNMP | Bulk': True, u'SNMP': True, u'SNMP | IF-MIB | HC': True}
  94. 2015-08-07 12:11:58,903 Running
  95. 2015-08-07 12:11:58,903 Running socket factory (SelectPoller)
  96. 2015-08-07 12:11:58,903 Running script: Generic.commands ({'ignore_cli_errors': False, 'commands': ['dir']}), timeout 120s
  97. 2015-08-07 12:11:58,904 cli(dir)
  98. 2015-08-07 12:11:58,904 Running new provider
  99. 2015-08-07 12:11:58,904 [TELNET: 10.11.3.143] ==> START
  100. 2015-08-07 12:11:58,904 [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')])
  101. 2015-08-07 12:11:58,906 [TELNET: 10.11.3.143] Set FSM timeout to 30
  102. 2015-08-07 12:11:58,907 Register socket CLITelnetSocket 10.11.3.143:23 (None)
  103. 2015-08-07 12:11:59,904 Tick
  104. 2015-08-07 12:11:59,904 3 TICKS TO EXIT
  105. 2015-08-07 12:11:59,904 [TELNET: 10.11.3.143] Initializing socket
  106. 2015-08-07 12:11:59,905 [CLITelnetSocket 10.11.3.143:23] Connecting 10.11.3.143:23
  107. 2015-08-07 12:11:59,971 [CLITelnetSocket 10.11.3.143:23] create_socket returns non-zero code 115[EINPROGRESS]
  108. 2015-08-07 12:11:59,974 [CLITelnetSocket 10.11.3.143:23] Connected
  109. 2015-08-07 12:11:59,977 [TELNET: 10.11.3.143] Received IAC WILL ECHO (251 1)
  110. 2015-08-07 12:11:59,977 [TELNET: 10.11.3.143] Sending IAC DO ECHO (253 1)
  111. 2015-08-07 12:11:59,979 [TELNET: 10.11.3.143] Received IAC WILL SGA (251 3)
  112. 2015-08-07 12:11:59,979 [TELNET: 10.11.3.143] Sending IAC DO SGA (253 3)
  113. 2015-08-07 12:11:59,990 [TELNET: 10.11.3.143] on_read: 'login:'
  114. 2015-08-07 12:11:59,990 [TELNET: 10.11.3.143] Starting synchronous FSM check
  115. 2015-08-07 12:11:59,990 [TELNET: 10.11.3.143] match '([Uu]ser ?[Nn]ame|[Ll]ogin):'
  116. 2015-08-07 12:11:59,990 [TELNET: 10.11.3.143] event(USERNAME)
  117. 2015-08-07 12:11:59,990 [TELNET: 10.11.3.143] ==> USERNAME
  118. 2015-08-07 12:11:59,990 [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')])
  119. 2015-08-07 12:11:59,990 [TELNET: 10.11.3.143] submit(u'djamal', bulk_lines=None, streaming=False)
  120. 2015-08-07 12:11:59,992 [TELNET: 10.11.3.143] on_read: 'd'
  121. 2015-08-07 12:12:00,032 [TELNET: 10.11.3.143] on_read: 'jamal'
  122. 2015-08-07 12:12:01,033 Tick
  123. 2015-08-07 12:12:01,033 Resetting wait ticks
  124. 2015-08-07 12:12:02,034 Tick
  125. 2015-08-07 12:12:02,034 Resetting wait ticks
  126. 2015-08-07 12:12:03,035 Tick
  127. 2015-08-07 12:12:03,035 Resetting wait ticks
  128. 2015-08-07 12:12:04,037 Tick
  129. 2015-08-07 12:12:04,037 Resetting wait ticks
  130. 2015-08-07 12:12:05,038 Tick
  131. 2015-08-07 12:12:05,038 Resetting wait ticks
  132. 2015-08-07 12:12:06,039 Tick
  133. 2015-08-07 12:12:06,039 Resetting wait ticks
  134. 2015-08-07 12:12:07,039 Tick
  135. 2015-08-07 12:12:07,040 Resetting wait ticks
  136. 2015-08-07 12:12:08,041 Tick
  137. 2015-08-07 12:12:08,041 Resetting wait ticks
  138. 2015-08-07 12:12:09,042 Tick
  139. 2015-08-07 12:12:09,042 Resetting wait ticks
  140. 2015-08-07 12:12:10,042 Tick
  141. 2015-08-07 12:12:10,043 Resetting wait ticks
  142. 2015-08-07 12:12:11,044 Tick
  143. 2015-08-07 12:12:11,044 Resetting wait ticks
  144. 2015-08-07 12:12:12,045 Tick
  145. 2015-08-07 12:12:12,045 Resetting wait ticks
  146. 2015-08-07 12:12:13,046 Tick
  147. 2015-08-07 12:12:13,046 Resetting wait ticks
  148. 2015-08-07 12:12:14,047 Tick
  149. 2015-08-07 12:12:14,047 Resetting wait ticks
  150. 2015-08-07 12:12:15,048 Tick
  151. 2015-08-07 12:12:15,048 Resetting wait ticks
  152. 2015-08-07 12:12:16,049 Tick
  153. 2015-08-07 12:12:16,049 Resetting wait ticks
  154. 2015-08-07 12:12:17,050 Tick
  155. 2015-08-07 12:12:17,051 Resetting wait ticks
  156. 2015-08-07 12:12:18,052 Tick
  157. 2015-08-07 12:12:18,052 Resetting wait ticks
  158. 2015-08-07 12:12:19,053 Tick
  159. 2015-08-07 12:12:19,053 Resetting wait ticks
  160. 2015-08-07 12:12:20,054 Tick
  161. 2015-08-07 12:12:20,055 Resetting wait ticks
  162. 2015-08-07 12:12:21,056 Tick
  163. 2015-08-07 12:12:21,056 Resetting wait ticks
  164. 2015-08-07 12:12:22,057 Tick
  165. 2015-08-07 12:12:22,057 Resetting wait ticks
  166. 2015-08-07 12:12:23,058 Tick
  167. 2015-08-07 12:12:23,059 Resetting wait ticks
  168. 2015-08-07 12:12:24,060 Tick
  169. 2015-08-07 12:12:24,060 Resetting wait ticks
  170. 2015-08-07 12:12:25,060 Tick
  171. 2015-08-07 12:12:25,060 Resetting wait ticks
  172. 2015-08-07 12:12:26,061 Tick
  173. 2015-08-07 12:12:26,061 Resetting wait ticks
  174. 2015-08-07 12:12:27,062 Tick
  175. 2015-08-07 12:12:27,062 Resetting wait ticks
  176. 2015-08-07 12:12:28,064 Tick
  177. 2015-08-07 12:12:28,064 Resetting wait ticks
  178. 2015-08-07 12:12:29,064 Tick
  179. 2015-08-07 12:12:29,064 Resetting wait ticks
  180. 2015-08-07 12:12:30,066 Tick
  181. 2015-08-07 12:12:30,066 Resetting wait ticks
  182. 2015-08-07 12:12:30,066 Closing stale socket CLITelnetSocket 10.11.3.143:23
  183. 2015-08-07 12:12:30,066 [CLITelnetSocket 10.11.3.143:23] Closing socket
  184. 2015-08-07 12:12:30,066 Unregister socket CLITelnetSocket 10.11.3.143:23
  185. 2015-08-07 12:12:30,089 Timed out
  186. 2015-08-07 12:12:30,089 Closing
  187. 2015-08-07 12:12:30,089 Requesting call: <bound method CLITelnetSocket.close of <CLITelnetSocket(0x7f824d9ecf90, 10.11.3.143:23, closing, stale)>>(*(), **{'flush': True})
  188. 2015-08-07 12:12:31,067 Tick
  189. 2015-08-07 12:12:31,067 Calling delayed <bound method CLITelnetSocket.close of <CLITelnetSocket(0x7f824d9ecf90, 10.11.3.143:23, closing, stale)>>(*(), **{'flush': True})
  190. 2015-08-07 12:12:31,067 3 TICKS TO EXIT
  191. 2015-08-07 12:12:32,068 Tick
  192. 2015-08-07 12:12:32,068 2 TICKS TO EXIT
  193. 2015-08-07 12:12:33,069 Tick
  194. 2015-08-07 12:12:33,070 1 TICKS TO EXIT
  195. 2015-08-07 12:12:34,070 Tick
  196. 2015-08-07 12:12:34,071 EXIT
  197. 2015-08-07 12:12:34,071 Shutting down the factory
  198. 2015-08-07 12:12:34,071 Metrics:
  199. noc.socketfactory.handle.closed_reads: 0
  200. noc.socketfactory.handle.reads: 5
  201. noc.socketfactory.handle.writes: 3
  202. noc.socketfactory.loops: 43
  203. noc.socketfactory.sockets.count: 0
  204. noc.socketfactory.sockets.register: 1
  205. noc.socketfactory.sockets.unregister: 0
  206. noc.socketfactory.ticks: 35
  207. 2015-08-07 12:12:34,071 0 TICKS TO EXIT
  208. 2015-08-07 12:12:34,071 Stopping socket factory
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement