Advertisement
Guest User

Untitled

a guest
Apr 25th, 2014
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.48 KB | None | 0 0
  1. root@noc:/opt/noc# ./noc debug-script get_interfaces CoreSwitch
  2. 2014-04-25 12:11:46,901 SSH: Using gmpy
  3. 2014-04-25 12:11:47,238 Using JSON library: cjson
  4. 2014-04-25 12:11:47,399 Loading PeriodicRegistry
  5. 2014-04-25 12:11:47,410 Loading DownloaderRegistry
  6. 2014-04-25 12:11:47,508 Loading ProfileRegistry
  7. 2014-04-25 12:11:48,198 Loading ScriptRegistry
  8. 2014-04-25 12:11:48,700 Setting up 'select' polling method
  9. 2014-04-25 12:11:48,701 Activating 'select' poller
  10. 2014-04-25 12:11:48,702 Loading private ssh key from 'etc/ssh/id_rsa'
  11. 2014-04-25 12:11:48,702 Loading public ssh key from 'etc/ssh/id_rsa.pub'
  12. access_profile {
  13. profile: "MikroTik.RouterOS"
  14. scheme: SSH
  15. address: "172.16.110.1"
  16. port: 22
  17. user: "father"
  18. password: "53110245175006"
  19. path: "/srv/noc/backup"
  20. attrs {
  21. key: "Boot PROM"
  22. value: "3.10"
  23. }
  24. attrs {
  25. key: "platform"
  26. value: "CRS125-24G-1S-2HnD"
  27. }
  28. attrs {
  29. key: "Serial Number"
  30. value: "43C5021C87E3"
  31. }
  32. attrs {
  33. key: "vendor"
  34. value: "MikroTik"
  35. }
  36. attrs {
  37. key: "version"
  38. value: "6.8"
  39. }
  40. }
  41. object_name: "CoreSwitch"
  42. script: "MikroTik.RouterOS.get_interfaces"
  43.  
  44. 2014-04-25 12:11:48,710 Running socket factory (SelectPoller)
  45. 2014-04-25 12:11:48,710 Running script thread
  46. 2014-04-25 12:11:48,711 Creating transaction id=1109774264 method=None callback=None
  47. 2014-04-25 12:11:48,712 [MikroTik.RouterOS.get_interfaces(CoreSwitch, 172.16.110.1)] Running
  48. 2014-04-25 12:11:48,712 [MikroTik.RouterOS.get_interfaces(CoreSwitch, 172.16.110.1)] Running script: MikroTik.RouterOS.get_interfaces ({})
  49. 2014-04-25 12:11:48,713 [MikroTik.RouterOS.get_interfaces(CoreSwitch, 172.16.110.1)] cli(/interface print detail)
  50. 2014-04-25 12:11:48,713 [MikroTik.RouterOS.get_interfaces(CoreSwitch, 172.16.110.1)] Running new provider
  51. 2014-04-25 12:11:48,714 [SSH: 172.16.110.1] ==> SSH_START
  52. 2014-04-25 12:11:48,714 [SSH: 172.16.110.1] set_timeout(30)
  53. 2014-04-25 12:11:48,716 register_socket(<CLISSHSocket(0x3dba350, 172.16.110.1:22, )>,None)
  54. 2014-04-25 12:11:49,712 Tick
  55. 2014-04-25 12:11:49,712 3 TICKS TO EXIT
  56. 2014-04-25 12:11:49,712 [SSH: 172.16.110.1] Initializing socket
  57. 2014-04-25 12:11:49,712 [SSH: 172.16.110.1] Connecting 172.16.110.1:22
  58. 2014-04-25 12:11:49,719 [SSH: 172.16.110.1] Connected
  59. 2014-04-25 12:11:49,721 [SSH: 172.16.110.1] event(SSH_VERSION)
  60. 2014-04-25 12:11:49,721 [SSH: 172.16.110.1] ==> SSH_VERSION
  61. 2014-04-25 12:11:49,722 [SSH: 172.16.110.1] Remote protocol version 2.0, remote software version ROSSSH
  62. 2014-04-25 12:11:49,722 [SSH: 172.16.110.1] Setting SSH transforms to: in=none none, out=none none
  63. 2014-04-25 12:11:49,723 [SSH: 172.16.110.1] Setting SSH transform keys
  64. 2014-04-25 12:11:49,723 [SSH: 172.16.110.1] Sending message type MSG_KEXINIT (20)
  65. 2014-04-25 12:11:49,724 [SSH: 172.16.110.1] event(SSH_KEY_EXCHANGE)
  66. 2014-04-25 12:11:49,724 [SSH: 172.16.110.1] ==> SSH_KEY_EXCHANGE
  67. 2014-04-25 12:11:49,732 [SSH: 172.16.110.1] Receiving message type MSG_KEXINIT (20)
  68. 2014-04-25 12:11:49,733 [SSH: 172.16.110.1] Receiving server proposals: kex=['diffie-hellman-group-exchange-sha256', 'diffie-hellman-group-exchange-sha1', 'diffie-hellman-group14-sha1', 'diffie-hellman-group1-sha1'] key=['ssh-dss'] enc_cs=['aes192-cbc', 'aes128-cbc', 'aes256-cbc', 'blowfish-cbc', '3des-cbc'] enc_sc=['aes192-cbc', 'aes128-cbc', 'aes256-cbc', 'blowfish-cbc', '3des-cbc'] mac_cs=['hmac-sha1', 'hmac-md5'] mac_sc=['hmac-sha1', 'hmac-md5'] comp_cs=['none'] comp_sc['none']
  69. 2014-04-25 12:11:49,734 [SSH: 172.16.110.1] Setting SSH transforms to: in=aes256-cbc hmac-sha1, out=aes256-cbc hmac-sha1
  70. 2014-04-25 12:11:49,734 [SSH: 172.16.110.1] Selecting diffie-hellman-group14-sha1 ssh-dss, in=(aes256-cbc hmac-sha1 none) out=(aes256-cbc hmac-sha1 none)
  71. 2014-04-25 12:11:49,737 [SSH: 172.16.110.1] Sending message type MSG_KEX_DH_GEX_REQUEST_OLD (30)
  72. 2014-04-25 12:11:50,754 Tick
  73. 2014-04-25 12:11:50,754 Resetting wait ticks
  74. 2014-04-25 12:11:51,259 [SSH: 172.16.110.1] Receiving message type MSG_KEXDH_REPLY (31)
  75. 2014-04-25 12:11:51,259 [SSH: 172.16.110.1] Server PK fingerprint: 92:7a:c3:92:6c:18:c6:9c:2a:d7:ec:e6:3a:d7:dc:89
  76. 2014-04-25 12:11:51,263 [SSH: 172.16.110.1] Setting SSH transform keys
  77. 2014-04-25 12:11:51,263 [SSH: 172.16.110.1] Sending message type MSG_NEWKEYS (21)
  78. 2014-04-25 12:11:51,264 [SSH: 172.16.110.1] Receiving message type MSG_NEWKEYS (21)
  79. 2014-04-25 12:11:51,264 [SSH: 172.16.110.1] Using new keys
  80. 2014-04-25 12:11:51,264 [SSH: 172.16.110.1] event(SSH_AUTH)
  81. 2014-04-25 12:11:51,265 [SSH: 172.16.110.1] ==> SSH_AUTH
  82. 2014-04-25 12:11:51,265 [SSH: 172.16.110.1] Requesting service ssh-userauth
  83. 2014-04-25 12:11:51,266 [SSH: 172.16.110.1] Sending message type MSG_SERVICE_REQUEST (5)
  84. 2014-04-25 12:11:51,269 [SSH: 172.16.110.1] Receiving message type MSG_SERVICE_ACCEPT (6)
  85. 2014-04-25 12:11:51,269 [SSH: 172.16.110.1] Starting service ssh-userauth
  86. 2014-04-25 12:11:51,270 [SSH: 172.16.110.1] event(SSH_AUTH_PASSWORD)
  87. 2014-04-25 12:11:51,270 [SSH: 172.16.110.1] ==> SSH_AUTH_PASSWORD
  88. 2014-04-25 12:11:51,271 [SSH: 172.16.110.1] Authenticating with 'none' method
  89. 2014-04-25 12:11:51,271 [SSH: 172.16.110.1] Sending message type MSG_USERAUTH_REQUEST (50)
  90. 2014-04-25 12:11:51,280 [SSH: 172.16.110.1] Receiving message type MSG_USERAUTH_FAILURE (51)
  91. 2014-04-25 12:11:51,280 [SSH: 172.16.110.1] Authentication method 'none' has been failed. Trying next method (publickey,password)
  92. 2014-04-25 12:11:51,281 [SSH: 172.16.110.1] Partially authenticated with 'none'. Trying next method
  93. 2014-04-25 12:11:51,281 [SSH: 172.16.110.1] Authenticating with 'publickey' method
  94. 2014-04-25 12:11:51,282 [SSH: 172.16.110.1] Sending message type MSG_USERAUTH_REQUEST (50)
  95. 2014-04-25 12:11:51,287 [SSH: 172.16.110.1] Receiving message type MSG_USERAUTH_FAILURE (51)
  96. 2014-04-25 12:11:51,287 [SSH: 172.16.110.1] Authentication method 'publickey' has been failed. Trying next method (publickey,password)
  97. 2014-04-25 12:11:51,288 [SSH: 172.16.110.1] Partially authenticated with 'publickey'. Trying next method
  98. 2014-04-25 12:11:51,288 [SSH: 172.16.110.1] Authenticating with 'password' method
  99. 2014-04-25 12:11:51,288 [SSH: 172.16.110.1] Sending message type MSG_USERAUTH_REQUEST (50)
  100. 2014-04-25 12:11:51,298 [SSH: 172.16.110.1] Receiving message type MSG_USERAUTH_SUCCESS (52)
  101. 2014-04-25 12:11:51,301 [SSH: 172.16.110.1] event(SSH_CHANNEL)
  102. 2014-04-25 12:11:51,301 [SSH: 172.16.110.1] ==> SSH_CHANNEL
  103. 2014-04-25 12:11:51,301 [SSH: 172.16.110.1] Sending message type MSG_CHANNEL_OPEN (90)
  104. 2014-04-25 12:11:51,305 [SSH: 172.16.110.1] Receiving message type MSG_CHANNEL_OPEN_CONFIRMATION (91)
  105. 2014-04-25 12:11:51,305 [SSH: 172.16.110.1] Opening channel. local=0 remote=0
  106. 2014-04-25 12:11:51,305 [SSH: 172.16.110.1] event(SSH_PTY)
  107. 2014-04-25 12:11:51,305 [SSH: 172.16.110.1] ==> SSH_PTY
  108. 2014-04-25 12:11:51,305 [SSH: 172.16.110.1] Requesting PTY
  109. 2014-04-25 12:11:51,305 [SSH: 172.16.110.1] Sending message type MSG_CHANNEL_REQUEST (98)
  110. 2014-04-25 12:11:51,308 [SSH: 172.16.110.1] Receiving message type MSG_CHANNEL_SUCCESS (99)
  111. 2014-04-25 12:11:51,308 [SSH: 172.16.110.1] event(SSH_SHELL)
  112. 2014-04-25 12:11:51,309 [SSH: 172.16.110.1] ==> SSH_SHELL
  113. 2014-04-25 12:11:51,309 [SSH: 172.16.110.1] Requesting shell
  114. 2014-04-25 12:11:51,309 [SSH: 172.16.110.1] Sending message type MSG_CHANNEL_REQUEST (98)
  115. 2014-04-25 12:11:51,330 [SSH: 172.16.110.1] Receiving message type MSG_CHANNEL_SUCCESS (99)
  116. 2014-04-25 12:11:51,330 [SSH: 172.16.110.1] event(START)
  117. 2014-04-25 12:11:51,330 [SSH: 172.16.110.1] ==> START
  118. 2014-04-25 12:11:51,331 [SSH: 172.16.110.1] set_patterns([('([Uu]sername|[Ll]ogin):', 'USERNAME'), ('[Pp]assword:', 'PASSWORD'), ('\\[(?P<prompt>[^\\]@]+@.+?)\\] > ', 'PROMPT'), ('(Please press "Enter" to continue!)|(\\[Q quit\\|D dump\\|down\\])', 'PAGER')])
  119. 2014-04-25 12:11:51,334 [SSH: 172.16.110.1] on_read: '\r\r\n\r\r\n\r\r\n\r\r\n\r\r\n\r\r\n\r'
  120. 2014-04-25 12:11:51,335 [SSH: 172.16.110.1] on_read: '\r\n'
  121. 2014-04-25 12:11:51,359 [SSH: 172.16.110.1] on_read: '\r\n\r MMM MMM KKK TTTTTTTTTTT KKK\r\n\r MMMM MMMM KKK TTTTTTTTTTT KKK\r\n\r MMM MMMM MMM III KKK KKK RRRRRR OOOOOO TTT III KKK KKK\r\n\r MMM MM MMM III KKKKK '
  122. 2014-04-25 12:11:51,359 [SSH: 172.16.110.1] on_read: ' RRR RRR OOO OOO TTT III KKKKK\r\n\r MMM MMM III KKK KKK RRRRRR OOO OOO TTT III KKK KKK\r\n\r MMM MMM III KKK KKK RRR RRR OOOOOO TTT III KKK KKK\r\n\r\r\n\r MikroTik RouterOS 6.8rc1 (c) 1999-2014 http:'
  123. 2014-04-25 12:11:51,361 [SSH: 172.16.110.1] on_read: '//www.mikrotik.com/\r\n\r\r\n[?] Gives the list of available commands\r\n\rcommand [?] Gives help on the command and list of arguments\r\n\r\r\n\r[Tab] Completes the command/word. If the input is ambigous,\r\n\r a second [Tab] gives'
  124. 2014-04-25 12:11:51,362 [SSH: 172.16.110.1] on_read: ' possible options\r\n\r\r\n\r/ Move up to base level\r\n\r.. Move up one level\r\n\r/command Use command at the base level\r\n'
  125. 2014-04-25 12:11:51,392 [SSH: 172.16.110.1] on_read: '\r\x1b[9999B\r\x1b[9999B\r\r\r\x1b[9999B[father@MikroTik] > '
  126. 2014-04-25 12:11:51,393 [SSH: 172.16.110.1] Starting synchronous FSM check
  127. 2014-04-25 12:11:51,393 [SSH: 172.16.110.1] match '\[(?P<prompt>[^\]@]+@.+?)\] > '
  128. 2014-04-25 12:11:51,393 [SSH: 172.16.110.1] event(PROMPT)
  129. 2014-04-25 12:11:51,393 [SSH: 172.16.110.1] ==> PROMPT
  130. 2014-04-25 12:11:51,393 [SSH: 172.16.110.1] on_PROMPT_enter
  131. 2014-04-25 12:11:51,393 [SSH: 172.16.110.1] Using prompt pattern: \[father\@MikroTik\] >
  132. 2014-04-25 12:11:51,394 [SSH: 172.16.110.1] set_patterns([('\\[father\\@MikroTik\\] > ', 'PROMPT'), ('(Please press "Enter" to continue!)|(\\[Q quit\\|D dump\\|down\\])', 'PAGER')])
  133. 2014-04-25 12:11:51,423 [MikroTik.RouterOS.get_interfaces(CoreSwitch, 172.16.110.1)] CLI Provider is ready
  134. 2014-04-25 12:11:51,423 [SSH: 172.16.110.1] submit('/interface print detail', bulk_lines=None, streaming=False)
  135. 2014-04-25 12:11:51,423 [SSH: 172.16.110.1] Sending message type MSG_CHANNEL_DATA (94)
  136. 2014-04-25 12:11:52,135 [SSH: 172.16.110.1] on_read: '\x1b7\x1b[r\x1b8'
  137. 2014-04-25 12:11:52,136 Tick
  138. 2014-04-25 12:11:52,136 Resetting wait ticks
  139. 2014-04-25 12:11:52,138 [SSH: 172.16.110.1] on_read: '/interface print detail\r\n'
  140. 2014-04-25 12:11:52,171 [SSH: 172.16.110.1] on_read: '\rFlags: D - dynamic, X - disabled, R - running, S - slave \x1b[K\r\n 0 RS name="ether1" default-name="ether1" type="ether" mtu=1500 l2mtu=1588 \x1b[K\r\n max-l2mtu=4064 mac-address=D4:CA:6D:F9:7E:AA fast-path=yes \x1b[K\r\n\x1b[K\r\n 1 RS ;;; Cloud3 (172.16.30.58)\x1b[K\r'
  141. 2014-04-25 12:11:52,171 [SSH: 172.16.110.1] on_read: '\n name="ether2" default-name="ether2" type="ether" mtu=1500 l2mtu=1588 \x1b[K\r\n max-l2mtu=4064 mac-address=D4:CA:6D:F9:7E:AB fast-path=yes \x1b[K\r\n\x1b[K\r\n 2 RS ;;; Cloud2 (172.16.30.56)\x1b[K\r\n name="ether3" default-name="ether3" type="ether" mtu=1'
  142. 2014-04-25 12:11:52,172 [SSH: 172.16.110.1] on_read: '500 l2mtu=1588 \x1b[K\r\n max-l2mtu=4064 mac-address=D4:CA:6D:F9:7E:AC fast-path=yes \x1b[K\r\n\x1b[K\r\n 3 R name="ether4" default-name="ether4" type="ether" mtu=1500 l2mtu=1588 \x1b[K\r\n max-l2mtu=4064 mac-address=D4:CA:6D:F9:7E:AD fast-path=yes \x1b[K\r\n\x1b[K\r\n 4 '
  143. 2014-04-25 12:11:52,172 [SSH: 172.16.110.1] on_read: ' R name="ether5" default-name="ether5" type="ether" mtu=1500 l2mtu=1588 \x1b[K\r\n max-l2mtu=4064 mac-address=D4:CA:6D:F9:7E:AE fast-path=yes \x1b[K\r\n\x1b[K\r\n 5 RS ;;; IP-camera servernaya\x1b[K\r\n name="ether6" default-name="ether6" type="ether" mtu=1500 l'
  144. 2014-04-25 12:11:52,172 [SSH: 172.16.110.1] on_read: '2mtu=1588 \x1b[K\r\n max-l2mtu=4064 mac-address=D4:CA:6D:F9:7E:AF fast-path=yes \x1b[K\r\n\x1b[K\r\n 6 name="ether7" default-name="ether7" type="ether" mtu=1500 l2mtu=1588 \x1b[K\r\n max-l2mtu=4064 mac-address=D4:CA:6D:F9:7E:B0 fast-path=yes \x1b[K\r\n-- [Q quit|D '
  145. 2014-04-25 12:11:52,173 [SSH: 172.16.110.1] on_read: 'dump|down]\x1b[K\r'
  146. 2014-04-25 12:11:52,173 [SSH: 172.16.110.1] Starting synchronous FSM check
  147. 2014-04-25 12:11:52,173 [SSH: 172.16.110.1] match '(Please press "Enter" to continue!)|(\[Q quit\|D dump\|down\])'
  148. 2014-04-25 12:11:52,174 [SSH: 172.16.110.1] Starting synchronous FSM check
  149. 2014-04-25 12:11:52,174 [SSH: 172.16.110.1] event(PAGER)
  150. 2014-04-25 12:11:52,175 [SSH: 172.16.110.1] Sending message type MSG_CHANNEL_DATA (94)
  151. 2014-04-25 12:11:52,200 [SSH: 172.16.110.1] on_read: '\x1b[K\r\n 7 name="ether8" default-name="ether8" type="ether" mtu=1500 l2mtu=1588 \x1b[K\r\n max-l2mtu=4064 mac-address=D4:CA:6D:F9:7E:B1 fast-path=yes \x1b[K\r\n\x1b[K\r\n 8 name="ether9" default-name="ether9" type="ether" mtu=1500 l2mtu=1588 \x1b[K\r\n max-l2'
  152. 2014-04-25 12:11:52,201 [SSH: 172.16.110.1] on_read: 'mtu=4064 mac-address=D4:CA:6D:F9:7E:B2 fast-path=yes \x1b[K\r\n\x1b[K\r\n 9 name="ether10" default-name="ether10" type="ether" mtu=1500 l2mtu=1588 \x1b[K\r\n max-l2mtu=4064 mac-address=D4:CA:6D:F9:7E:B3 fast-path=yes \x1b[K\r\n\x1b[K\r\n10 name="ether11" default-name'
  153. 2014-04-25 12:11:52,202 [SSH: 172.16.110.1] on_read: '="ether11" type="ether" mtu=1500 l2mtu=1588 \x1b[K\r\n max-l2mtu=4064 mac-address=D4:CA:6D:F9:7E:B4 fast-path=yes \x1b[K\r\n\x1b[K\r\n11 name="ether12" default-name="ether12" type="ether" mtu=1500 l2mtu=1588 \x1b[K\r\n max-l2mtu=4064 mac-address=D4:CA:6D:F9:7E'
  154. 2014-04-25 12:11:52,203 [SSH: 172.16.110.1] on_read: ':B5 fast-path=yes \x1b[K\r\n\x1b[K\r\n12 name="ether13" default-name="ether13" type="ether" mtu=1500 l2mtu=1588 \x1b[K\r\n max-l2mtu=4064 mac-address=D4:CA:6D:F9:7E:B6 fast-path=yes \x1b[K\r\n\x1b[K\r\n13 name="ether14" default-name="ether14" type="ether" mtu=1500 l2'
  155. 2014-04-25 12:11:52,204 [SSH: 172.16.110.1] on_read: 'mtu=1588 \x1b[K\r\n max-l2mtu=4064 mac-address=D4:CA:6D:F9:7E:B7 fast-path=yes \x1b[K\r\n\x1b[K\r\n14 name="ether15" default-name="ether15" type="ether" mtu=1500 l2mtu=1588 \x1b[K\r\n max-l2mtu=4064 mac-address=D4:CA:6D:F9:7E:B8 fast-path=yes \x1b[K\r\n-- [Q quit|D'
  156. 2014-04-25 12:11:52,204 [SSH: 172.16.110.1] on_read: ' dump|up|down]\x1b[K\r'
  157. 2014-04-25 12:11:53,211 Tick
  158. 2014-04-25 12:11:53,211 Resetting wait ticks
  159. 2014-04-25 12:11:54,213 Tick
  160. 2014-04-25 12:11:54,213 Resetting wait ticks
  161. 2014-04-25 12:11:55,215 Tick
  162. 2014-04-25 12:11:55,216 Resetting wait ticks
  163. 2014-04-25 12:11:56,218 Tick
  164. 2014-04-25 12:11:56,218 Resetting wait ticks
  165. 2014-04-25 12:11:57,220 Tick
  166. 2014-04-25 12:11:57,220 Resetting wait ticks
  167. 2014-04-25 12:11:58,222 Tick
  168. 2014-04-25 12:11:58,222 Resetting wait ticks
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement