Guest User

TSergey, 2015-01-21, OS.Freebsd

a guest
Jan 20th, 2015
264
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.64 KB | None | 0 0
  1. noc@noc:/opt/noc$ ./noc debug-script get_version post.intt
  2. 2015-01-21 11:09:14,802 Using JSON library: cjson
  3. 2015-01-21 11:09:14,885 SSH: Using gmpy
  4. 2015-01-21 11:09:17,729 Loading PeriodicRegistry
  5. 2015-01-21 11:09:17,840 Registering MetricType
  6. 2015-01-21 11:09:17,881 Loading compiled MIBs
  7. 2015-01-21 11:09:17,881 Loading compiled MIBs from 'cmibs'
  8. 2015-01-21 11:09:17,886 Loading MIB: RFC1213-MIB
  9. 2015-01-21 11:09:17,890 Loading MIB: SNMPv2-MIB
  10. 2015-01-21 11:09:17,891 Loading MIB: CISCO-PPPOE-MIB
  11. 2015-01-21 11:09:17,891 Loading MIB: CISCO-VPDN-MGMT-MIB
  12. 2015-01-21 11:09:17,892 Loading MIB: IF-MIB
  13. 2015-01-21 11:09:17,907 Loading MIB: IP-MIB
  14. 2015-01-21 11:09:17,966 Configuring metric mappings sa.managedobject -> object.{{object.name|qm}}.{{metric_type|qm}}
  15. 2015-01-21 11:09:17,967 Configuring metric mappings inv.interface -> object.{{object.managed_object.name|qm}}.interface.{{object.name|qm}}.{{metric_type|qm}}
  16. 2015-01-21 11:09:17,970 Loading DownloaderRegistry
  17. 2015-01-21 11:09:18,016 Loading ProfileRegistry
  18. 2015-01-21 11:09:19,447 Loading ScriptRegistry
  19. 2015-01-21 11:09:19,708 Adding FTS index for sa.managedobject
  20. 2015-01-21 11:09:19,747 Registering ConnectionType
  21. 2015-01-21 11:09:19,764 Registering ObjectModel
  22. 2015-01-21 11:09:19,773 Registering Capability
  23. 2015-01-21 11:09:19,817 Adding FTS index for vc.vc
  24. 2015-01-21 11:09:19,902 Adding FTS index for ip.vrf
  25. 2015-01-21 11:09:19,907 Adding FTS index for ip.prefix
  26. 2015-01-21 11:09:19,912 Adding FTS index for ip.address
  27. 2015-01-21 11:09:20,456 Setting up 'select' polling method
  28. 2015-01-21 11:09:20,465 Activating 'select' poller
  29. 2015-01-21 11:09:20,466 Loading private ssh key from 'etc/ssh/id_rsa'
  30. 2015-01-21 11:09:20,471 Loading public ssh key from 'etc/ssh/id_rsa.pub'
  31. access_profile {
  32. profile: "OS.FreeBSD"
  33. scheme: SSH
  34. address: *
  35. user: *
  36. password: *
  37. }
  38. object_name: "post.intt"
  39. script: "OS.FreeBSD.get_version"
  40.  
  41. 2015-01-21 11:09:20,478 Running socket factory (SelectPoller)
  42. 2015-01-21 11:09:20,478 Running script thread
  43. 2015-01-21 11:09:20,478 Creating transaction id=1160506705 method=None callback=None
  44. 2015-01-21 11:09:20,479 Capabilities: {}
  45. 2015-01-21 11:09:20,479 [OS.FreeBSD.get_version(post.intt, 192.168.253.4)] Running
  46. 2015-01-21 11:09:20,480 Running script: OS.FreeBSD.get_version ({})
  47. 2015-01-21 11:09:20,480 [OS.FreeBSD.get_version(post.intt, 192.168.253.4)] cli(uname -m -r)
  48. 2015-01-21 11:09:20,480 [OS.FreeBSD.get_version(post.intt, 192.168.253.4)] Running new provider
  49. 2015-01-21 11:09:20,480 [CLISSHSocket(0x38fc390)]<None> ==> SSH_START
  50. 2015-01-21 11:09:20,481 [CLISSHSocket(0x38fc390)]<SSH_START> set_timeout(30)
  51. 2015-01-21 11:09:20,481 Register socket CLISSHSocket 192.168.253.4:22 (None)
  52. 2015-01-21 11:09:21,479 Tick
  53. 2015-01-21 11:09:21,480 3 TICKS TO EXIT
  54. 2015-01-21 11:09:21,480 [CLISSHSocket(0x38fc390)]<SSH_START> Initializing socket
  55. 2015-01-21 11:09:21,480 [CLISSHSocket 192.168.253.4:22] Connecting 192.168.253.4:22
  56. 2015-01-21 11:09:21,498 [CLISSHSocket 192.168.253.4:22] create_socket returns non-zero code 115[EINPROGRESS]
  57. 2015-01-21 11:09:21,499 [CLISSHSocket 192.168.253.4:22] Connected
  58. 2015-01-21 11:09:21,510 [CLISSHSocket(0x38fc390)]<SSH_START> event(SSH_VERSION)
  59. 2015-01-21 11:09:21,511 [CLISSHSocket(0x38fc390)]<SSH_START> ==> SSH_VERSION
  60. 2015-01-21 11:09:21,511 [CLISSHSocket 192.168.253.4:22] Remote protocol version 1.99, remote software version OpenSSH_4.5p1 FreeBSD-20061110
  61. 2015-01-21 11:09:21,512 [CLISSHSocket(0x38fc390)]<SSH_VERSION> Setting SSH transforms to: in=none none, out=none none
  62. 2015-01-21 11:09:21,512 [CLISSHSocket(0x38fc390)]<SSH_VERSION> Setting SSH transform keys
  63. 2015-01-21 11:09:21,513 [CLISSHSocket 192.168.253.4:22] Sending message type MSG_KEXINIT (20)
  64. 2015-01-21 11:09:21,513 [CLISSHSocket(0x38fc390)]<SSH_VERSION> event(SSH_KEY_EXCHANGE)
  65. 2015-01-21 11:09:21,514 [CLISSHSocket(0x38fc390)]<SSH_VERSION> ==> SSH_KEY_EXCHANGE
  66. 2015-01-21 11:09:21,514 [CLISSHSocket 192.168.253.4:22] Receiving message type MSG_KEXINIT (20)
  67. 2015-01-21 11:09:21,515 [CLISSHSocket 192.168.253.4:22] 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=['aes128-cbc', '3des-cbc', 'blowfish-cbc', 'cast128-cbc', 'arcfour128', 'arcfour256', 'arcfour', 'aes192-cbc', 'aes256-cbc', 'rijndael-cbc@lysator.liu.se', 'aes128-ctr', 'aes192-ctr', 'aes256-ctr'] enc_sc=['aes128-cbc', '3des-cbc', 'blowfish-cbc', 'cast128-cbc', 'arcfour128', 'arcfour256', 'arcfour', 'aes192-cbc', 'aes256-cbc', 'rijndael-cbc@lysator.liu.se', 'aes128-ctr', 'aes192-ctr', 'aes256-ctr'] mac_cs=['hmac-md5', 'hmac-sha1', 'hmac-ripemd160', 'hmac-ripemd160@openssh.com', 'hmac-sha1-96', 'hmac-md5-96'] mac_sc=['hmac-md5', 'hmac-sha1', 'hmac-ripemd160', 'hmac-ripemd160@openssh.com', 'hmac-sha1-96', 'hmac-md5-96'] comp_cs=['none', 'zlib@openssh.com'] comp_sc['none', 'zlib@openssh.com']
  68. 2015-01-21 11:09:21,515 [CLISSHSocket(0x38fc390)]<SSH_KEY_EXCHANGE> Setting SSH transforms to: in=aes256-ctr hmac-sha1, out=aes256-ctr hmac-sha1
  69. 2015-01-21 11:09:21,516 [CLISSHSocket 192.168.253.4:22] Selecting diffie-hellman-group14-sha1 ssh-dss, in=(aes256-ctr hmac-sha1 zlib@openssh.com) out=(aes256-ctr hmac-sha1 zlib@openssh.com)
  70. 2015-01-21 11:09:21,519 [CLISSHSocket 192.168.253.4:22] Sending message type MSG_KEX_DH_GEX_REQUEST_OLD (30)
  71. 2015-01-21 11:09:21,539 [CLISSHSocket 192.168.253.4:22] Receiving message type MSG_KEXDH_REPLY (31)
  72. 2015-01-21 11:09:21,540 [CLISSHSocket 192.168.253.4:22] Server PK fingerprint: 7e:85:f8:77:79:5c:73:31:b6:75:0c:71:4d:2f:fd:c0
  73. 2015-01-21 11:09:21,542 [CLISSHSocket(0x38fc390)]<SSH_KEY_EXCHANGE> Setting SSH transform keys
  74. 2015-01-21 11:09:21,543 [CLISSHSocket 192.168.253.4:22] Sending message type MSG_NEWKEYS (21)
  75. 2015-01-21 11:09:21,543 [CLISSHSocket 192.168.253.4:22] Receiving message type MSG_NEWKEYS (21)
  76. 2015-01-21 11:09:21,544 [CLISSHSocket 192.168.253.4:22] Using new keys
  77. 2015-01-21 11:09:21,544 [CLISSHSocket(0x38fc390)]<SSH_KEY_EXCHANGE> event(SSH_AUTH)
  78. 2015-01-21 11:09:21,545 [CLISSHSocket(0x38fc390)]<SSH_KEY_EXCHANGE> ==> SSH_AUTH
  79. 2015-01-21 11:09:21,545 [CLISSHSocket 192.168.253.4:22] Requesting service ssh-userauth
  80. 2015-01-21 11:09:21,546 [CLISSHSocket 192.168.253.4:22] Sending message type MSG_SERVICE_REQUEST (5)
  81. 2015-01-21 11:09:21,547 [CLISSHSocket 192.168.253.4:22] Receiving message type MSG_SERVICE_ACCEPT (6)
  82. 2015-01-21 11:09:21,547 [CLISSHSocket 192.168.253.4:22] Starting service ssh-userauth
  83. 2015-01-21 11:09:21,548 [CLISSHSocket(0x38fc390)]<SSH_AUTH> event(SSH_AUTH_PASSWORD)
  84. 2015-01-21 11:09:21,548 [CLISSHSocket(0x38fc390)]<SSH_AUTH> ==> SSH_AUTH_PASSWORD
  85. 2015-01-21 11:09:21,549 [CLISSHSocket 192.168.253.4:22] Authenticating with 'none' method
  86. 2015-01-21 11:09:21,549 [CLISSHSocket 192.168.253.4:22] Sending message type MSG_USERAUTH_REQUEST (50)
  87. 2015-01-21 11:09:21,553 [CLISSHSocket 192.168.253.4:22] Receiving message type MSG_USERAUTH_FAILURE (51)
  88. 2015-01-21 11:09:21,553 [CLISSHSocket 192.168.253.4:22] Authentication method 'none' has been failed. Trying next method (publickey,password,keyboard-interactive)
  89. 2015-01-21 11:09:21,554 [CLISSHSocket 192.168.253.4:22] Partially authenticated with 'none'. Trying next method
  90. 2015-01-21 11:09:21,554 [CLISSHSocket 192.168.253.4:22] Authenticating with 'publickey' method
  91. 2015-01-21 11:09:21,556 [CLISSHSocket 192.168.253.4:22] Sending message type MSG_USERAUTH_REQUEST (50)
  92. 2015-01-21 11:09:21,558 [CLISSHSocket 192.168.253.4:22] Receiving message type MSG_USERAUTH_FAILURE (51)
  93. 2015-01-21 11:09:21,558 [CLISSHSocket 192.168.253.4:22] Authentication method 'publickey' has been failed. Trying next method (publickey,password,keyboard-interactive)
  94. 2015-01-21 11:09:21,558 [CLISSHSocket 192.168.253.4:22] Partially authenticated with 'publickey'. Trying next method
  95. 2015-01-21 11:09:21,559 [CLISSHSocket 192.168.253.4:22] Authenticating with 'password' method
  96. 2015-01-21 11:09:21,559 [CLISSHSocket 192.168.253.4:22] Sending message type MSG_USERAUTH_REQUEST (50)
  97. 2015-01-21 11:09:21,563 [CLISSHSocket 192.168.253.4:22] Receiving message type MSG_USERAUTH_SUCCESS (52)
  98. 2015-01-21 11:09:21,564 [CLISSHSocket 192.168.253.4:22] Enabling delayed out compression zlib@openssh.com
  99. 2015-01-21 11:09:21,564 [CLISSHSocket 192.168.253.4:22] Enabling delayed in compression zlib@openssh.com
  100. 2015-01-21 11:09:21,564 [CLISSHSocket(0x38fc390)]<SSH_AUTH_PASSWORD> event(SSH_CHANNEL)
  101. 2015-01-21 11:09:21,565 [CLISSHSocket(0x38fc390)]<SSH_AUTH_PASSWORD> ==> SSH_CHANNEL
  102. 2015-01-21 11:09:21,565 [CLISSHSocket 192.168.253.4:22] Sending message type MSG_CHANNEL_OPEN (90)
  103. 2015-01-21 11:09:21,567 [CLISSHSocket 192.168.253.4:22] Receiving message type MSG_CHANNEL_OPEN_CONFIRMATION (91)
  104. 2015-01-21 11:09:21,567 [CLISSHSocket 192.168.253.4:22] Opening channel. local=0 remote=0
  105. 2015-01-21 11:09:21,568 [CLISSHSocket(0x38fc390)]<SSH_CHANNEL> event(SSH_PTY)
  106. 2015-01-21 11:09:21,568 [CLISSHSocket(0x38fc390)]<SSH_CHANNEL> ==> SSH_PTY
  107. 2015-01-21 11:09:21,569 [CLISSHSocket 192.168.253.4:22] Requesting PTY
  108. 2015-01-21 11:09:21,569 [CLISSHSocket 192.168.253.4:22] Sending message type MSG_CHANNEL_REQUEST (98)
  109. 2015-01-21 11:09:21,574 [CLISSHSocket 192.168.253.4:22] Receiving message type MSG_CHANNEL_SUCCESS (99)
  110. 2015-01-21 11:09:21,574 [CLISSHSocket(0x38fc390)]<SSH_PTY> event(SSH_SHELL)
  111. 2015-01-21 11:09:21,575 [CLISSHSocket(0x38fc390)]<SSH_PTY> ==> SSH_SHELL
  112. 2015-01-21 11:09:21,575 [CLISSHSocket 192.168.253.4:22] Requesting shell
  113. 2015-01-21 11:09:21,575 [CLISSHSocket 192.168.253.4:22] Sending message type MSG_CHANNEL_REQUEST (98)
  114. 2015-01-21 11:09:21,578 [CLISSHSocket 192.168.253.4:22] Receiving message type MSG_CHANNEL_WINDOW_ADJUST (93)
  115. 2015-01-21 11:09:21,578 [CLISSHSocket 192.168.253.4:22] Receiving message type MSG_CHANNEL_SUCCESS (99)
  116. 2015-01-21 11:09:21,579 [CLISSHSocket(0x38fc390)]<SSH_SHELL> event(START)
  117. 2015-01-21 11:09:21,579 [CLISSHSocket(0x38fc390)]<SSH_SHELL> ==> START
  118. 2015-01-21 11:09:21,579 [CLISSHSocket(0x38fc390)]<START> set_patterns([('^[Ll]ogin:', 'USERNAME'), ('[Pp]assword:', 'PASSWORD'), ('^\\S*?(%|\\$)', 'UNPRIVELEGED_PROMPT'), ('^(?P<hostname>[\\S\\s~]+)\\$', 'PROMPT'), ('(^---MORE---)', 'PAGER')])
  119. 2015-01-21 11:09:21,581 [CLISSHSocket(0x38fc390)]<START> on_read: 'Last login: Wed Jan 21 11:05:50 2015 from wsi243.intt\r\r\nCopyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994\r\n'
  120. 2015-01-21 11:09:21,582 [CLISSHSocket(0x38fc390)]<START> on_read: '\tThe Regents of the University of California. All rights reserved.\r\n\r\nFreeBSD 6.4-STABLE (POST) #0: Mon Jan 19 10:36:11 NOVT 2009\r\n\r\nWelcome to FreeBSD!\r\n\r\n'
  121. 2015-01-21 11:09:21,606 [CLISSHSocket(0x38fc390)]<START> on_read: '\xf7 \xd7\xc1\xdb\xc5\xcd \xd4\xc5\xcc\xc5 \xd0\xd2\xcf\xc9\xda\xcf\xdb\xcc\xc1 \xcb\xd2\xc9\xd4\xc9\xde\xc5\xd3\xcb\xc1\xd1 \xcf\xdb\xc9\xc2\xcb\xc1. \xf0\xcf\xd6\xc1\xcc\xd5\xca\xd3\xd4\xc1, \r\n\xcf\xd3\xd4\xc1\xce\xcf\xd7\xc9\xd4\xc5 \xd7\xd3\xc5 \xd0\xd2\xcf\xc3\xc5\xd3\xd3\xd9 \xd6\xc9\xda\xce\xc5\xc4\xc5\xd1\xd4\xc5\xcc\xd8\xce\xcf\xd3\xd4\xc9, \xd5\xcd\xd2\xc9\xd4\xc5 \xc9 \r\n\xd2\xcf\xc4\xc9\xd4\xc5\xd3\xd8 \xda\xc1\xce\xcf\xd7\xcf.\r\n -- \xedi\xd3r\xcfs\xcfft \xf3\xcfr\xd2\xcfr\xc1ti\xcfn.\r\n'
  122. 2015-01-21 11:09:21,607 [CLISSHSocket(0x38fc390)]<START> on_read: 'Need to leave your terminal for a few minutes and don\'t want to logout?\r\nUse "lock -p". When you return, use your password as the key to unlock the\r\nterminal.\r\n\t\t-- Dru <genesis@istar.ca>\r\n'
  123. 2015-01-21 11:09:21,610 [CLISSHSocket(0x38fc390)]<START> on_read: '[inv@mail ~]$ '
  124. 2015-01-21 11:09:21,610 [CLISSHSocket(0x38fc390)]<START> Starting synchronous FSM check
  125. 2015-01-21 11:09:21,611 [CLISSHSocket(0x38fc390)]<START> match '^(?P<hostname>[\S\s~]+)\$'
  126. 2015-01-21 11:09:21,611 [CLISSHSocket(0x38fc390)]<START> event(PROMPT)
  127. 2015-01-21 11:09:21,611 [CLISSHSocket(0x38fc390)]<START> ==> PROMPT
  128. 2015-01-21 11:09:21,612 [CLISSHSocket(0x38fc390)]<PROMPT> on_PROMPT_enter
  129. 2015-01-21 11:09:21,612 [CLISSHSocket(0x38fc390)]<PROMPT> Using prompt pattern: ^\▒\▒\▒\▒\▒\▒\▒\▒\ \▒\▒\▒\▒\▒\▒\.\
  130. \ \ \ \-\-\ \ \▒i\▒r\▒s\▒ft\ \▒\▒r\▒\▒r\▒ti\▒n\.\
  131. Need\ to\ leave\ your\ terminal\ for\ a\ few\ minutes\ and\ don\'t\ want\ to\ logout\?\
  132. Use\ \"lock\ \-p\"\.\ When\ you\ return\,\ use\ your\ password\ as\ the\ key\ to\ unlock\ the\
  133. terminal\.\
  134. \ \ \-\-\ Dru\ \<genesis\@istar\.ca\>\
  135. \[inv\@mail\ \~\]\$
  136. 2015-01-21 11:09:21,614 [CLISSHSocket(0x38fc390)]<PROMPT> set_patterns([('^\\\xd2\\\xcf\\\xc4\\\xc9\\\xd4\\\xc5\\\xd3\\\xd8\\ \\\xda\\\xc1\\\xce\\\xcf\\\xd7\\\xcf\\.\\\n\\ \\ \\ \\-\\-\\ \\ \\\xedi\\\xd3r\\\xcfs\\\xcfft\\ \\\xf3\\\xcfr\\\xd2\\\xcfr\\\xc1ti\\\xcfn\\.\\\nNeed\\ to\\ leave\\ your\\ terminal\\ for\\ a\\ few\\ minutes\\ and\\ don\\\'t\\ want\\ to\\ logout\\?\\\nUse\\ \\"lock\\ \\-p\\"\\.\\ When\\ you\\ return\\,\\ use\\ your\\ password\\ as\\ the\\ key\\ to\\ unlock\\ the\\\nterminal\\.\\\n\\\t\\\t\\-\\-\\ Dru\\ \\<genesis\\@istar\\.ca\\>\\\n\\[inv\\@mail\\ \\~\\]\\$', 'PROMPT'), ('(^---MORE---)', 'PAGER')])
  137. 2015-01-21 11:09:21,662 [OS.FreeBSD.get_version(post.intt, 192.168.253.4)] CLI Provider is ready
  138. 2015-01-21 11:09:21,662 [CLISSHSocket(0x38fc390)]<PROMPT> submit('uname -m -r', bulk_lines=None, streaming=False)
  139. 2015-01-21 11:09:21,662 [CLISSHSocket 192.168.253.4:22] Sending message type MSG_CHANNEL_DATA (94)
  140. 2015-01-21 11:09:21,667 [CLISSHSocket(0x38fc390)]<PROMPT> on_read: 'un'
  141. 2015-01-21 11:09:21,668 [CLISSHSocket(0x38fc390)]<PROMPT> on_read: 'ame -m -'
  142. 2015-01-21 11:09:21,668 [CLISSHSocket(0x38fc390)]<PROMPT> on_read: 'r\r\n'
  143. 2015-01-21 11:09:21,668 [CLISSHSocket(0x38fc390)]<PROMPT> on_read: '6.4-STABLE i386\r\n'
  144. 2015-01-21 11:09:21,668 [CLISSHSocket(0x38fc390)]<PROMPT> on_read: '[inv@mail ~]$ '
  145. 2015-01-21 11:09:22,670 Tick
  146. 2015-01-21 11:09:22,670 Resetting wait ticks
  147. 2015-01-21 11:09:23,671 Tick
  148. 2015-01-21 11:09:23,671 Resetting wait ticks
  149. 2015-01-21 11:09:24,672 Tick
  150. 2015-01-21 11:09:24,672 Resetting wait ticks
  151. 2015-01-21 11:09:25,674 Tick
  152. 2015-01-21 11:09:25,674 Resetting wait ticks
  153. 2015-01-21 11:09:26,675 Tick
  154. 2015-01-21 11:09:26,675 Resetting wait ticks
  155. 2015-01-21 11:09:27,676 Tick
  156. 2015-01-21 11:09:27,676 Resetting wait ticks
  157. 2015-01-21 11:09:28,678 Tick
  158. 2015-01-21 11:09:28,678 Resetting wait ticks
  159. 2015-01-21 11:09:29,680 Tick
  160. 2015-01-21 11:09:29,680 Resetting wait ticks
  161. 2015-01-21 11:09:30,680 Tick
  162. 2015-01-21 11:09:30,680 Resetting wait ticks
  163. 2015-01-21 11:09:31,681 Tick
  164. 2015-01-21 11:09:31,681 Resetting wait ticks
  165. 2015-01-21 11:09:32,682 Tick
  166. 2015-01-21 11:09:32,682 Resetting wait ticks
  167. 2015-01-21 11:09:33,684 Tick
  168. 2015-01-21 11:09:33,684 Resetting wait ticks
  169. 2015-01-21 11:09:34,685 Tick
  170. 2015-01-21 11:09:34,685 Resetting wait ticks
  171. 2015-01-21 11:09:35,686 Tick
  172. 2015-01-21 11:09:35,686 Resetting wait ticks
  173. ^C2015-01-21 11:09:36,629 SIGINT
  174. noc@noc:/opt/noc$
Add Comment
Please, Sign In to add comment