Guest User

Untitled

a guest
Oct 18th, 2018
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 39.92 KB | None | 0 0
  1. script: "DLink.DxS.get_interfaces"
  2.  
  3. 2012-09-06 14:03:29,010 Running script thread
  4. 2012-09-06 14:03:29,010 Creating transaction id=1046629573 method=None callback=None
  5. 2012-09-06 14:03:29,011 Running socket factory
  6. 2012-09-06 14:03:29,012 [script-10.116.1.19-DLink.DxS.get_interfaces] Running
  7. 2012-09-06 14:03:29,013 [script-10.116.1.19-DLink.DxS.get_interfaces] Running script: DLink.DxS.get_interfaces ({})
  8. 2012-09-06 14:03:29,013 [script-10.116.1.19-DLink.DxS.get_interfaces] cli_stream(show ports description)
  9. 2012-09-06 14:03:29,013 [script-10.116.1.19-DLink.DxS.get_interfaces] Running new provider
  10. 2012-09-06 14:03:29,014 [SSH: 10.116.1.19] ==> SSH_START
  11. 2012-09-06 14:03:29,014 [SSH: 10.116.1.19] set_timeout(30)
  12. 2012-09-06 14:03:29,014 register_socket(<CLISSHSocket(0x8072076d0, 10.116.1.19:22, )>,None)
  13. 2012-09-06 14:03:30,021 Tick
  14. 2012-09-06 14:03:30,021 3 TICKS TO EXIT
  15. 2012-09-06 14:03:30,021 [SSH: 10.116.1.19] Initializing socket
  16. 2012-09-06 14:03:30,022 <CLISSHSocket(0x8072076d0, 10.116.1.19:22, )> set_status: +READ
  17. 2012-09-06 14:03:30,022 [SSH: 10.116.1.19] Connecting 10.116.1.19:22
  18. 2012-09-06 14:03:30,022 <CLISSHSocket(0x8072076d0, 10.116.1.19:22, )> set_status: -READ +WRITE
  19. 2012-09-06 14:03:30,024 [SSH: 10.116.1.19] Connected
  20. 2012-09-06 14:03:30,025 <CLISSHSocket(0x8072076d0, 10.116.1.19:22, connected)> set_status: +READ -WRITE
  21. 2012-09-06 14:03:30,027 [SSH: 10.116.1.19] event(SSH_VERSION)
  22. 2012-09-06 14:03:30,027 [SSH: 10.116.1.19] ==> SSH_VERSION
  23. 2012-09-06 14:03:30,027 [SSH: 10.116.1.19] Remote protocol version 2.0, remote software version DLINK Corp. SSH server ver 1.00.000
  24. 2012-09-06 14:03:30,028 <CLISSHSocket(0x8072076d0, 10.116.1.19:22, connected)> set_status: +WRITE
  25. 2012-09-06 14:03:30,028 [SSH: 10.116.1.19] Setting SSH transforms to: in=none none, out=none none
  26. 2012-09-06 14:03:30,028 [SSH: 10.116.1.19] Setting SSH transform keys
  27. 2012-09-06 14:03:30,028 [SSH: 10.116.1.19] Sending message type MSG_KEXINIT (20)
  28. 2012-09-06 14:03:30,029 <CLISSHSocket(0x8072076d0, 10.116.1.19:22, connected)> set_status: +WRITE
  29. 2012-09-06 14:03:30,029 [SSH: 10.116.1.19] event(SSH_KEY_EXCHANGE)
  30. 2012-09-06 14:03:30,029 [SSH: 10.116.1.19] ==> SSH_KEY_EXCHANGE
  31. 2012-09-06 14:03:30,029 <CLISSHSocket(0x8072076d0, 10.116.1.19:22, connected)> set_status: -WRITE
  32. 2012-09-06 14:03:30,035 [SSH: 10.116.1.19] Receiving message type MSG_KEXINIT (20)
  33. 2012-09-06 14:03:30,035 [SSH: 10.116.1.19] Receiving server proposals: kex=['diffie-hellman-group1-sha1'] key=['ssh-dss', 'ssh-rsa'] enc_cs=['3des-cbc', 'blowfish-cbc', 'twofish-cbc', 'twofish256-cbc', 'twofish192-cbc', 'twofish128-cbc', 'aes256-cbc', 'aes192-cbc', 'aes128-cbc', 'arcfour', 'cast128-cbc'] enc_sc=['3des-cbc', 'blowfish-cbc', 'twofish-cbc', 'twofish256-cbc', 'twofish192-cbc', 'twofish128-cbc', 'aes256-cbc', 'aes192-cbc', 'aes128-cbc', 'arcfour', 'cast128-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']
  34. 2012-09-06 14:03:30,036 [SSH: 10.116.1.19] Setting SSH transforms to: in=aes256-cbc hmac-sha1, out=aes256-cbc hmac-sha1
  35. 2012-09-06 14:03:30,036 [SSH: 10.116.1.19] Selecting diffie-hellman-group1-sha1 ssh-rsa, in=(aes256-cbc hmac-sha1 none) out=(aes256-cbc hmac-sha1 none)
  36. 2012-09-06 14:03:30,038 [SSH: 10.116.1.19] Sending message type MSG_KEX_DH_GEX_REQUEST_OLD (30)
  37. 2012-09-06 14:03:30,039 <CLISSHSocket(0x8072076d0, 10.116.1.19:22, connected)> set_status: +WRITE
  38. 2012-09-06 14:03:30,039 <CLISSHSocket(0x8072076d0, 10.116.1.19:22, connected)> set_status: -WRITE
  39. 2012-09-06 14:03:30,633 [SSH: 10.116.1.19] Receiving message type MSG_KEXDH_REPLY (31)
  40. 2012-09-06 14:03:30,633 [SSH: 10.116.1.19] Server PK fingerprint: 0c:2d:8f:fb:b7:d6:eb:f8:12:82:c1:81:be:8b:53:e9
  41. 2012-09-06 14:03:30,635 [SSH: 10.116.1.19] Setting SSH transform keys
  42. 2012-09-06 14:03:30,636 [SSH: 10.116.1.19] Sending message type MSG_NEWKEYS (21)
  43. 2012-09-06 14:03:30,636 <CLISSHSocket(0x8072076d0, 10.116.1.19:22, connected)> set_status: +WRITE
  44. 2012-09-06 14:03:30,637 <CLISSHSocket(0x8072076d0, 10.116.1.19:22, connected)> set_status: -WRITE
  45. 2012-09-06 14:03:30,637 [SSH: 10.116.1.19] Receiving message type MSG_NEWKEYS (21)
  46. 2012-09-06 14:03:30,638 [SSH: 10.116.1.19] Using new keys
  47. 2012-09-06 14:03:30,638 [SSH: 10.116.1.19] event(SSH_AUTH)
  48. 2012-09-06 14:03:30,638 [SSH: 10.116.1.19] ==> SSH_AUTH
  49. 2012-09-06 14:03:30,639 [SSH: 10.116.1.19] Requesting service ssh-userauth
  50. 2012-09-06 14:03:30,639 [SSH: 10.116.1.19] Sending message type MSG_SERVICE_REQUEST (5)
  51. 2012-09-06 14:03:30,639 <CLISSHSocket(0x8072076d0, 10.116.1.19:22, connected)> set_status: +WRITE
  52. 2012-09-06 14:03:30,640 <CLISSHSocket(0x8072076d0, 10.116.1.19:22, connected)> set_status: -WRITE
  53. 2012-09-06 14:03:30,687 [SSH: 10.116.1.19] Receiving message type MSG_SERVICE_ACCEPT (6)
  54. 2012-09-06 14:03:30,687 [SSH: 10.116.1.19] Starting service ssh-userauth
  55. 2012-09-06 14:03:30,687 [SSH: 10.116.1.19] event(SSH_AUTH_PASSWORD)
  56. 2012-09-06 14:03:30,688 [SSH: 10.116.1.19] ==> SSH_AUTH_PASSWORD
  57. 2012-09-06 14:03:30,688 [SSH: 10.116.1.19] Authenticating with 'none' method
  58. 2012-09-06 14:03:30,688 [SSH: 10.116.1.19] Sending message type MSG_USERAUTH_REQUEST (50)
  59. 2012-09-06 14:03:30,688 <CLISSHSocket(0x8072076d0, 10.116.1.19:22, connected)> set_status: +WRITE
  60. 2012-09-06 14:03:30,689 <CLISSHSocket(0x8072076d0, 10.116.1.19:22, connected)> set_status: -WRITE
  61. 2012-09-06 14:03:30,691 [SSH: 10.116.1.19] Receiving message type MSG_USERAUTH_FAILURE (51)
  62. 2012-09-06 14:03:30,692 [SSH: 10.116.1.19] Authentication method 'none' has been failed. Trying next method (password)
  63. 2012-09-06 14:03:30,692 [SSH: 10.116.1.19] Partially authenticated with 'none'. Trying next method
  64. 2012-09-06 14:03:30,692 [SSH: 10.116.1.19] Authenticating with 'password' method
  65. 2012-09-06 14:03:30,692 [SSH: 10.116.1.19] Sending message type MSG_USERAUTH_REQUEST (50)
  66. 2012-09-06 14:03:30,692 <CLISSHSocket(0x8072076d0, 10.116.1.19:22, connected)> set_status: +WRITE
  67. 2012-09-06 14:03:30,693 <CLISSHSocket(0x8072076d0, 10.116.1.19:22, connected)> set_status: -WRITE
  68. 2012-09-06 14:03:30,696 [SSH: 10.116.1.19] Receiving message type MSG_USERAUTH_SUCCESS (52)
  69. 2012-09-06 14:03:30,696 [SSH: 10.116.1.19] event(SSH_CHANNEL)
  70. 2012-09-06 14:03:30,696 [SSH: 10.116.1.19] ==> SSH_CHANNEL
  71. 2012-09-06 14:03:30,696 [SSH: 10.116.1.19] Sending message type MSG_CHANNEL_OPEN (90)
  72. 2012-09-06 14:03:30,696 <CLISSHSocket(0x8072076d0, 10.116.1.19:22, connected)> set_status: +WRITE
  73. 2012-09-06 14:03:30,697 <CLISSHSocket(0x8072076d0, 10.116.1.19:22, connected)> set_status: -WRITE
  74. 2012-09-06 14:03:30,699 [SSH: 10.116.1.19] Receiving message type MSG_CHANNEL_OPEN_CONFIRMATION (91)
  75. 2012-09-06 14:03:30,700 [SSH: 10.116.1.19] Opening channel. local=0 remote=0
  76. 2012-09-06 14:03:30,700 [SSH: 10.116.1.19] event(SSH_PTY)
  77. 2012-09-06 14:03:30,700 [SSH: 10.116.1.19] ==> SSH_PTY
  78. 2012-09-06 14:03:30,700 [SSH: 10.116.1.19] Requesting PTY
  79. 2012-09-06 14:03:30,701 [SSH: 10.116.1.19] Sending message type MSG_CHANNEL_REQUEST (98)
  80. 2012-09-06 14:03:30,701 <CLISSHSocket(0x8072076d0, 10.116.1.19:22, connected)> set_status: +WRITE
  81. 2012-09-06 14:03:30,701 <CLISSHSocket(0x8072076d0, 10.116.1.19:22, connected)> set_status: -WRITE
  82. 2012-09-06 14:03:30,704 [SSH: 10.116.1.19] Receiving message type MSG_CHANNEL_SUCCESS (99)
  83. 2012-09-06 14:03:30,704 [SSH: 10.116.1.19] event(SSH_SHELL)
  84. 2012-09-06 14:03:30,704 [SSH: 10.116.1.19] ==> SSH_SHELL
  85. 2012-09-06 14:03:30,704 [SSH: 10.116.1.19] Requesting shell
  86. 2012-09-06 14:03:30,704 [SSH: 10.116.1.19] Sending message type MSG_CHANNEL_REQUEST (98)
  87. 2012-09-06 14:03:30,705 <CLISSHSocket(0x8072076d0, 10.116.1.19:22, connected)> set_status: +WRITE
  88. 2012-09-06 14:03:30,705 <CLISSHSocket(0x8072076d0, 10.116.1.19:22, connected)> set_status: -WRITE
  89. 2012-09-06 14:03:30,711 [SSH: 10.116.1.19] Receiving message type MSG_CHANNEL_SUCCESS (99)
  90. 2012-09-06 14:03:30,712 [SSH: 10.116.1.19] event(START)
  91. 2012-09-06 14:03:30,712 [SSH: 10.116.1.19] ==> START
  92. 2012-09-06 14:03:30,712 [SSH: 10.116.1.19] set_patterns([('([Uu]ser ?[Nn]ame|[Ll]ogin):', 'USERNAME'), ('[Pp]ass[Ww]ord:', 'PASSWORD'), ('^\\S+:(3|6|user|operator)#', 'UNPRIVELEGED_PROMPT'), ('^(?P<hostname>\\S+(:\\S+)*)#', 'PROMPT'), ('(CTRL\\+C.+?a All)', 'PAGER')])
  93. 2012-09-06 14:03:30,813 [SSH: 10.116.1.19] on_read: '\x1b[0m\x1b[1;1H\x1b[2J\x1b[1;1H\x1b[2J\rD\r \n\r DES-3010G Fast Ethernet Switch Command Line Interface\n\r\n\r Firmware: Build 4.30.B23\n\r Copyright(C) 2009 D-Link Corporation. All rights reserved.\n\rDES-3010G:4#'
  94. 2012-09-06 14:03:30,813 [SSH: 10.116.1.19] Starting synchronous FSM check
  95. 2012-09-06 14:03:30,813 [SSH: 10.116.1.19] match '^(?P<hostname>\S+(:\S+)*)#'
  96. 2012-09-06 14:03:30,813 [SSH: 10.116.1.19] event(PROMPT)
  97. 2012-09-06 14:03:30,814 [SSH: 10.116.1.19] ==> PROMPT
  98. 2012-09-06 14:03:30,814 [SSH: 10.116.1.19] on_PROMPT_enter
  99. 2012-09-06 14:03:30,814 [SSH: 10.116.1.19] Using prompt pattern: ^DES\-3010G\:4#
  100. 2012-09-06 14:03:30,814 [SSH: 10.116.1.19] set_patterns([('^DES\\-3010G\\:4#', 'PROMPT'), ('(CTRL\\+C.+?a All)', 'PAGER')])
  101. 2012-09-06 14:03:30,854 [script-10.116.1.19-DLink.DxS.get_interfaces] CLI Provider is ready
  102. 2012-09-06 14:03:30,855 [script-10.116.1.19-DLink.DxS.get_interfaces] Setting up session
  103. 2012-09-06 14:03:30,855 [script-10.116.1.19-DLink.DxS.get_interfaces] cli(show switch)
  104. 2012-09-06 14:03:30,856 [SSH: 10.116.1.19] submit('show switch', bulk_lines=None, streaming=False)
  105. 2012-09-06 14:03:30,856 [SSH: 10.116.1.19] Sending message type MSG_CHANNEL_DATA (94)
  106. 2012-09-06 14:03:30,856 <CLISSHSocket(0x8072076d0, 10.116.1.19:22, connected)> set_status: +WRITE
  107. 2012-09-06 14:03:31,823 Tick
  108. 2012-09-06 14:03:31,823 Resetting wait ticks
  109. 2012-09-06 14:03:31,824 <CLISSHSocket(0x8072076d0, 10.116.1.19:22, connected)> set_status: -WRITE
  110. 2012-09-06 14:03:31,837 [SSH: 10.116.1.19] on_read: 's'
  111. 2012-09-06 14:03:31,939 [SSH: 10.116.1.19] on_read: 'how switch\n\rCommand: show switch\n\r\n\rDevice Type : DES-3010G Fast Ethernet Switch\n\rMAC Address : 00-22-B0-0D-A0-10\n\rIP Address : 10.116.1.19 (Manual)\n\rVLAN Name : upr\n\rSubnet Mask : 255.255.0.0\n\rDefault Gateway : 10.116.0.1\n\rBoot PROM Version : Build 1.01.009\n\rFirmware Version : Build 4.30.B23\n\rHardware Version : A3\n\rSystem Name : \n\rSystem Location : Ilichevskaya5\n\rSystem Contact : \n\rSpanning Tree : Disabled\n\rLoopBack Detection : Disabled'
  112. 2012-09-06 14:03:31,940 [SSH: 10.116.1.19] on_read: '\n\rIGMP Snooping : Disabled'
  113. 2012-09-06 14:03:31,940 [SSH: 10.116.1.19] on_read: '\n\rVLAN trunk : Disabled\n\r802.1X : Disabled\n\rTELNET : Disabled\n\rWEB : Enabled(TCP 80)\n\rRMON : Disabled\n\rSSH : Enabled(TCP 22)\n\rPassword Encryption: Enabled\n\r\n\rDES-3010G:4#'
  114. 2012-09-06 14:03:31,941 [SSH: 10.116.1.19] Starting synchronous FSM check
  115. 2012-09-06 14:03:31,941 [SSH: 10.116.1.19] match '^DES\-3010G\:4#'
  116. 2012-09-06 14:03:31,941 [SSH: 10.116.1.19] Starting synchronous FSM check
  117. 2012-09-06 14:03:31,942 [SSH: 10.116.1.19] event(PROMPT)
  118. 2012-09-06 14:03:31,980 [script-10.116.1.19-DLink.DxS.get_interfaces] cli(show switch) returns:
  119. ===[ show switch ]======================================================
  120. 'Command: show switch\n\nDevice Type : DES-3010G Fast Ethernet Switch\nMAC Address : 00-22-B0-0D-A0-10\nIP Address : 10.116.1.19 (Manual)\nVLAN Name : upr\nSubnet Mask : 255.255.0.0\nDefault Gateway : 10.116.0.1\nBoot PROM Version : Build 1.01.009\nFirmware Version : Build 4.30.B23\nHardware Version : A3\nSystem Name : \nSystem Location : Ilichevskaya5\nSystem Contact : \nSpanning Tree : Disabled\nLoopBack Detection : Disabled\nIGMP Snooping : Disabled\nVLAN trunk : Disabled\n802.1X : Disabled\nTELNET : Disabled\nWEB : Enabled(TCP 80)\nRMON : Disabled\nSSH : Enabled(TCP 22)\nPassword Encryption: Enabled\n\n'
  121. ========================================================================
  122. 2012-09-06 14:03:31,980 [script-10.116.1.19-DLink.DxS.get_interfaces] Disable paging
  123. 2012-09-06 14:03:31,980 [script-10.116.1.19-DLink.DxS.get_interfaces] cli(disable clipaging)
  124. 2012-09-06 14:03:31,981 [SSH: 10.116.1.19] submit('disable clipaging', bulk_lines=None, streaming=False)
  125. 2012-09-06 14:03:31,981 [SSH: 10.116.1.19] Sending message type MSG_CHANNEL_DATA (94)
  126. 2012-09-06 14:03:31,981 <CLISSHSocket(0x8072076d0, 10.116.1.19:22, connected)> set_status: +WRITE
  127. 2012-09-06 14:03:32,951 Tick
  128. 2012-09-06 14:03:32,951 Resetting wait ticks
  129. 2012-09-06 14:03:32,952 <CLISSHSocket(0x8072076d0, 10.116.1.19:22, connected)> set_status: -WRITE
  130. 2012-09-06 14:03:32,966 [SSH: 10.116.1.19] on_read: 'd'
  131. 2012-09-06 14:03:33,095 [SSH: 10.116.1.19] on_read: 'isable clipaging\n\rCommand: disable clipaging\n\r\n\rSuccess \n\r\n\rDES-3010G:4#'
  132. 2012-09-06 14:03:33,095 [SSH: 10.116.1.19] Starting synchronous FSM check
  133. 2012-09-06 14:03:33,095 [SSH: 10.116.1.19] match '^DES\-3010G\:4#'
  134. 2012-09-06 14:03:33,095 [SSH: 10.116.1.19] Starting synchronous FSM check
  135. 2012-09-06 14:03:33,096 [SSH: 10.116.1.19] event(PROMPT)
  136. 2012-09-06 14:03:33,103 [script-10.116.1.19-DLink.DxS.get_interfaces] cli(disable clipaging) returns:
  137. ===[ disable clipaging ]================================================
  138. 'Command: disable clipaging\n\nSuccess \n\n'
  139. ========================================================================
  140. 2012-09-06 14:03:33,103 [SSH: 10.116.1.19] submit('show ports description', bulk_lines=None, streaming=True)
  141. 2012-09-06 14:03:33,103 [SSH: 10.116.1.19] Sending message type MSG_CHANNEL_DATA (94)
  142. 2012-09-06 14:03:33,103 <CLISSHSocket(0x8072076d0, 10.116.1.19:22, connected)> set_status: +WRITE
  143. 2012-09-06 14:03:34,104 Tick
  144. 2012-09-06 14:03:34,104 Resetting wait ticks
  145. 2012-09-06 14:03:34,105 <CLISSHSocket(0x8072076d0, 10.116.1.19:22, connected)> set_status: -WRITE
  146. 2012-09-06 14:03:34,117 [SSH: 10.116.1.19] on_read: 's'
  147. 2012-09-06 14:03:34,166 [SSH: 10.116.1.19] on_read: 'how ports description\n\rCommand: show ports description\n\r\n\r Port State/ Settings Connection Address \n\r MDIX Speed/Duplex/FlowCtrl Speed/Duplex/FlowCtrl Learning\n\r ----- -------- --------------------- --------------------- --------\n\r 1 Enabled Auto/Disabled LinkDown Enabled \n\r Auto \n\r Desc: '
  148. 2012-09-06 14:03:34,166 [SSH: 10.116.1.19] on_read: '\n\r '
  149. 2012-09-06 14:03:34,166 [SSH: 10.116.1.19] on_read: '\n\r 2 Enabled Auto/Disabled LinkDown Enabled \n\r Auto \n\r Desc: \n\r \n\r 3 Enabled Auto/Disabled 100M/Full/None Enabled \n\r Auto \n\r Desc: '
  150. 2012-09-06 14:03:34,167 [SSH: 10.116.1.19] on_read: '\n\r '
  151. 2012-09-06 14:03:34,167 [SSH: 10.116.1.19] on_read: '\n\r 4 Enabled Auto/Disabled LinkDown Enabled \n\r Auto \n\r Desc: \n\r \n\r 5 Enabled Auto/Disabled 100M/Full/None Enabled \n\r Auto \n\r Desc: '
  152. 2012-09-06 14:03:34,268 [SSH: 10.116.1.19] on_read: '\n\r '
  153. 2012-09-06 14:03:34,370 [SSH: 10.116.1.19] on_read: '\n\r \x1b[7mCTRL+C\x1b[0m \x1b[7mESC\x1b[0m \x1b[7mq\x1b[0m Quit \x1b[7mSPACE\x1b[0m \x1b[7mn\x1b[0m Next Page \x1b[7mp\x1b[0m Previous Page \x1b[7mr\x1b[0m Refresh '
  154. 2012-09-06 14:03:35,378 Tick
  155. 2012-09-06 14:03:35,379 Resetting wait ticks
  156. 2012-09-06 14:03:36,387 Tick
  157. 2012-09-06 14:03:36,388 Resetting wait ticks
  158. 2012-09-06 14:03:36,695 [SSH: 10.116.1.19] on_read: '\x1b[80D\x1b[21A\n\r 1 Enabled Auto/Disabled LinkDown Enabled \n\r Auto \n\r Desc: \n\r \n\r 2 Enabled Auto/Disabled LinkDown Enabled \n\r Auto \n\r Desc: '
  159. 2012-09-06 14:03:36,715 [script-10.116.1.19-DLink.DxS.get_interfaces] Next screen. Sending 'n'
  160. 2012-09-06 14:03:36,715 [SSH: 10.116.1.19] Sending message type MSG_CHANNEL_DATA (94)
  161. 2012-09-06 14:03:36,716 <CLISSHSocket(0x8072076d0, 10.116.1.19:22, connected)> set_status: +WRITE
  162. 2012-09-06 14:03:36,796 [SSH: 10.116.1.19] on_read: '\n\r '
  163. 2012-09-06 14:03:36,797 [SSH: 10.116.1.19] on_read: '\n\r 3 Enabled Auto/Disabled 100M/Full/None Enabled \n\r Auto \n\r Desc: \n\r \n\r 4 Enabled Auto/Disabled LinkDown Enabled \n\r Auto \n\r Desc: '
  164. 2012-09-06 14:03:36,797 [SSH: 10.116.1.19] on_read: '\n\r '
  165. 2012-09-06 14:03:36,798 [SSH: 10.116.1.19] on_read: '\n\r 5 Enabled Auto/Disabled 100M/Full/None Enabled \n\r Auto \n\r Desc: \n\r '
  166. 2012-09-06 14:03:36,798 <CLISSHSocket(0x8072076d0, 10.116.1.19:22, connected)> set_status: -WRITE
  167. 2012-09-06 14:03:36,805 [SSH: 10.116.1.19] on_read: '\x1b[80D\x1b[20A\n\r 6 Enabled Auto/Disabled LinkDown Enabled \n\r Auto \n\r Desc: \n\r \n\r 7 Enabled Auto/Disabled LinkDown Enabled \n\r Auto \n\r Desc: '
  168. 2012-09-06 14:03:36,907 [SSH: 10.116.1.19] on_read: '\n\r '
  169. 2012-09-06 14:03:36,908 [SSH: 10.116.1.19] on_read: '\n\r 8 Enabled Auto/Disabled LinkDown Enabled \n\r Auto \n\r Desc: \n\r \n\r 9 Enabled Auto/Disabled LinkDown Enabled \n\r Auto \n\r Desc: '
  170. 2012-09-06 14:03:36,908 [SSH: 10.116.1.19] on_read: '\n\r '
  171. 2012-09-06 14:03:36,909 [SSH: 10.116.1.19] on_read: '\n\r 10 Enabled Auto/Disabled 1000M/Full/None Enabled \n\r - \n\r Desc: \n\r '
  172. 2012-09-06 14:03:37,918 Tick
  173. 2012-09-06 14:03:37,918 Resetting wait ticks
  174. 2012-09-06 14:03:38,895 [SSH: 10.116.1.19] on_read: '\x1b[80D\x1b[20A\n\r 6 Enabled Auto/Disabled LinkDown Enabled \n\r Auto \n\r Desc: \n\r \n\r 7 Enabled Auto/Disabled LinkDown Enabled \n\r Auto \n\r Desc: '
  175. 2012-09-06 14:03:38,900 [script-10.116.1.19-DLink.DxS.get_interfaces] Next screen. Sending 'n'
  176. 2012-09-06 14:03:38,900 [SSH: 10.116.1.19] Sending message type MSG_CHANNEL_DATA (94)
  177. 2012-09-06 14:03:38,900 <CLISSHSocket(0x8072076d0, 10.116.1.19:22, connected)> set_status: +WRITE
  178. 2012-09-06 14:03:38,997 [SSH: 10.116.1.19] on_read: '\n\r '
  179. 2012-09-06 14:03:38,997 [SSH: 10.116.1.19] on_read: '\n\r 8 Enabled Auto/Disabled LinkDown Enabled \n\r Auto \n\r Desc: \n\r \n\r 9 Enabled Auto/Disabled LinkDown Enabled \n\r Auto \n\r Desc: '
  180. 2012-09-06 14:03:38,998 [SSH: 10.116.1.19] on_read: '\n\r '
  181. 2012-09-06 14:03:38,998 [SSH: 10.116.1.19] on_read: '\n\r 10 Enabled Auto/Disabled 1000M/Full/None Enabled \n\r - \n\r Desc: \n\r '
  182. 2012-09-06 14:03:38,998 Tick
  183. 2012-09-06 14:03:38,998 Resetting wait ticks
  184. 2012-09-06 14:03:38,999 <CLISSHSocket(0x8072076d0, 10.116.1.19:22, connected)> set_status: -WRITE
  185. 2012-09-06 14:03:39,005 [SSH: 10.116.1.19] on_read: '\x1b[80D\x1b[20A\n\r 6 Enabled Auto/Disabled LinkDown Enabled \n\r Auto \n\r Desc: \n\r \n\r 7 Enabled Auto/Disabled LinkDown Enabled \n\r Auto \n\r Desc: '
  186. 2012-09-06 14:03:39,107 [SSH: 10.116.1.19] on_read: '\n\r '
  187. 2012-09-06 14:03:39,107 [SSH: 10.116.1.19] on_read: '\n\r 8 Enabled Auto/Disabled LinkDown Enabled \n\r Auto \n\r Desc: \n\r \n\r 9 Enabled Auto/Disabled LinkDown Enabled \n\r Auto \n\r Desc: '
  188. 2012-09-06 14:03:39,108 [SSH: 10.116.1.19] on_read: '\n\r '
  189. 2012-09-06 14:03:39,108 [SSH: 10.116.1.19] on_read: '\n\r 10 Enabled Auto/Disabled 1000M/Full/None Enabled \n\r - \n\r Desc: \n\r '
  190. 2012-09-06 14:03:40,117 Tick
  191. 2012-09-06 14:03:40,117 Resetting wait ticks
  192. 2012-09-06 14:03:41,095 [SSH: 10.116.1.19] on_read: '\x1b[80D\x1b[20A\n\r 6 Enabled Auto/Disabled LinkDown Enabled \n\r Auto \n\r Desc: \n\r \n\r 7 Enabled Auto/Disabled LinkDown Enabled \n\r Auto \n\r Desc: '
  193. 2012-09-06 14:03:41,196 [SSH: 10.116.1.19] on_read: '\n\r '
  194. 2012-09-06 14:03:41,197 [SSH: 10.116.1.19] on_read: '\n\r 8 Enabled Auto/Disabled LinkDown Enabled \n\r Auto \n\r Desc: \n\r \n\r 9 Enabled Auto/Disabled LinkDown Enabled \n\r Auto \n\r Desc: '
  195. 2012-09-06 14:03:41,197 [SSH: 10.116.1.19] on_read: '\n\r '
  196. 2012-09-06 14:03:41,198 [SSH: 10.116.1.19] on_read: '\n\r 10 Enabled Auto/Disabled 1000M/Full/None Enabled \n\r - \n\r Desc: \n\r '
  197. 2012-09-06 14:03:41,198 Tick
  198. 2012-09-06 14:03:41,198 Resetting wait ticks
  199. 2012-09-06 14:03:42,207 Tick
  200. 2012-09-06 14:03:42,208 Resetting wait ticks
  201. 2012-09-06 14:03:43,216 Tick
  202. 2012-09-06 14:03:43,217 Resetting wait ticks
  203. 2012-09-06 14:03:43,295 [SSH: 10.116.1.19] on_read: '\x1b[80D\x1b[20A\n\r 6 Enabled Auto/Disabled LinkDown Enabled \n\r Auto \n\r Desc: \n\r \n\r 7 Enabled Auto/Disabled LinkDown Enabled \n\r Auto \n\r Desc: '
  204. 2012-09-06 14:03:43,342 [script-10.116.1.19-DLink.DxS.get_interfaces] Stopping stream. Sending 'q'
  205. 2012-09-06 14:03:43,342 [SSH: 10.116.1.19] Sending message type MSG_CHANNEL_DATA (94)
  206. 2012-09-06 14:03:43,343 <CLISSHSocket(0x8072076d0, 10.116.1.19:22, connected)> set_status: +WRITE
  207. 2012-09-06 14:03:43,397 [SSH: 10.116.1.19] on_read: '\n\r '
  208. 2012-09-06 14:03:43,398 [SSH: 10.116.1.19] on_read: '\n\r 8 Enabled Auto/Disabled LinkDown Enabled \n\r Auto \n\r Desc: \n\r \n\r 9 Enabled Auto/Disabled LinkDown Enabled \n\r Auto \n\r Desc: '
  209. 2012-09-06 14:03:43,398 [SSH: 10.116.1.19] on_read: '\n\r '
  210. 2012-09-06 14:03:43,399 [SSH: 10.116.1.19] on_read: '\n\r 10 Enabled Auto/Disabled 1000M/Full/None Enabled \n\r - \n\r Desc: \n\r '
  211. 2012-09-06 14:03:43,400 <CLISSHSocket(0x8072076d0, 10.116.1.19:22, connected)> set_status: -WRITE
  212. 2012-09-06 14:03:43,415 [SSH: 10.116.1.19] on_read: '\x1b[80D\x1b[1B\r \x1b[1A\n\r\n\rDES-3010G:4#'
  213. 2012-09-06 14:03:43,415 [SSH: 10.116.1.19] Starting synchronous FSM check
  214. 2012-09-06 14:03:43,415 [SSH: 10.116.1.19] match '^DES\-3010G\:4#'
  215. 2012-09-06 14:03:43,416 [SSH: 10.116.1.19] Starting synchronous FSM check
  216. 2012-09-06 14:03:43,416 [SSH: 10.116.1.19] event(PROMPT)
  217. 2012-09-06 14:03:44,424 Tick
  218. 2012-09-06 14:03:44,425 Resetting wait ticks
  219. 2012-09-06 14:03:45,433 Tick
  220. 2012-09-06 14:03:45,434 Resetting wait ticks
  221. 2012-09-06 14:03:46,442 Tick
  222. 2012-09-06 14:03:46,443 Resetting wait ticks
  223. 2012-09-06 14:03:47,452 Tick
  224. 2012-09-06 14:03:47,452 Resetting wait ticks
  225. 2012-09-06 14:03:48,459 [script-10.116.1.19-DLink.DxS.get_interfaces] cli(show vlan)
  226. 2012-09-06 14:03:48,460 [SSH: 10.116.1.19] submit('show vlan', bulk_lines=None, streaming=False)
  227. 2012-09-06 14:03:48,460 [SSH: 10.116.1.19] Sending message type MSG_CHANNEL_DATA (94)
  228. 2012-09-06 14:03:48,460 <CLISSHSocket(0x8072076d0, 10.116.1.19:22, connected)> set_status: +WRITE
  229. 2012-09-06 14:03:48,460 [script-10.116.1.19-DLink.DxS.get_interfaces] cli(show vlan) returns:
  230. ===[ show vlan ]========================================================
  231. ''
  232. ========================================================================
  233. 2012-09-06 14:03:48,461 Tick
  234. 2012-09-06 14:03:48,461 Resetting wait ticks
  235. 2012-09-06 14:03:48,462 <CLISSHSocket(0x8072076d0, 10.116.1.19:22, connected)> set_status: -WRITE
  236. [{'oper_status': False, 'admin_status': True, 'type': 'physical', 'name': '1', 'subinterfaces': [{'oper_status': False, 'is_bridge': True, 'admin_status': True, 'name': '1'}]}, {'oper_status': False, 'admin_status': True, 'type': 'physical', 'name': '2', 'subinterfaces': [{'oper_status': False, 'is_bridge': True, 'admin_status': True, 'name': '2'}]}, {'oper_status': True, 'admin_status': True, 'type': 'physical', 'name': '3', 'subinterfaces': [{'oper_status': True, 'is_bridge': True, 'admin_status': True, 'name': '3'}]}, {'oper_status': False, 'admin_status': True, 'type': 'physical', 'name': '4', 'subinterfaces': [{'oper_status': False, 'is_bridge': True, 'admin_status': True, 'name': '4'}]}, {'oper_status': True, 'admin_status': True, 'type': 'physical', 'name': '5', 'subinterfaces': [{'oper_status': True, 'is_bridge': True, 'admin_status': True, 'name': '5'}]}, {'oper_status': False, 'admin_status': True, 'type': 'physical', 'name': '6', 'subinterfaces': [{'oper_status': False, 'is_bridge': True, 'admin_status': True, 'name': '6'}]}, {'oper_status': False, 'admin_status': True, 'type': 'physical', 'name': '7', 'subinterfaces': [{'oper_status': False, 'is_bridge': True, 'admin_status': True, 'name': '7'}]}, {'oper_status': False, 'admin_status': True, 'type': 'physical', 'name': '8', 'subinterfaces': [{'oper_status': False, 'is_bridge': True, 'admin_status': True, 'name': '8'}]}, {'oper_status': False, 'admin_status': True, 'type': 'physical', 'name': '9', 'subinterfaces': [{'oper_status': False, 'is_bridge': True, 'admin_status': True, 'name': '9'}]}]
  237. 2012-09-06 14:03:48,465 [script-10.116.1.19-DLink.DxS.get_interfaces] Script returns with result: [{'interfaces': [{'oper_status': False, 'admin_status': True, 'type': 'physical', 'name': '1', 'subinterfaces': [{'is_bridge': True, 'admin_status': True, 'oper_status': False, 'name': '1'}]}, {'oper_status': False, 'admin_status': True, 'type': 'physical', 'name': '2', 'subinterfaces': [{'is_bridge': True, 'admin_status': True, 'oper_status': False, 'name': '2'}]}, {'oper_status': True, 'admin_status': True, 'type': 'physical', 'name': '3', 'subinterfaces': [{'is_bridge': True, 'admin_status': True, 'oper_status': True, 'name': '3'}]}, {'oper_status': False, 'admin_status': True, 'type': 'physical', 'name': '4', 'subinterfaces': [{'is_bridge': True, 'admin_status': True, 'oper_status': False, 'name': '4'}]}, {'oper_status': True, 'admin_status': True, 'type': 'physical', 'name': '5', 'subinterfaces': [{'is_bridge': True, 'admin_status': True, 'oper_status': True, 'name': '5'}]}, {'oper_status': False, 'admin_status': True, 'type': 'physical', 'name': '6', 'subinterfaces': [{'is_bridge': True, 'admin_status': True, 'oper_status': False, 'name': '6'}]}, {'oper_status': False, 'admin_status': True, 'type': 'physical', 'name': '7', 'subinterfaces': [{'is_bridge': True, 'admin_status': True, 'oper_status': False, 'name': '7'}]}, {'oper_status': False, 'admin_status': True, 'type': 'physical', 'name': '8', 'subinterfaces': [{'is_bridge': True, 'admin_status': True, 'oper_status': False, 'name': '8'}]}, {'oper_status': False, 'admin_status': True, 'type': 'physical', 'name': '9', 'subinterfaces': [{'is_bridge': True, 'admin_status': True, 'oper_status': False, 'name': '9'}]}], 'type': 'ip', 'forwarding_instance': 'default'}]
  238. 2012-09-06 14:03:48,465 [script-10.116.1.19-DLink.DxS.get_interfaces] Shutting down session
  239. 2012-09-06 14:03:48,466 [script-10.116.1.19-DLink.DxS.get_interfaces] cli(disable clipaging)
  240. 2012-09-06 14:03:48,466 [SSH: 10.116.1.19] submit('disable clipaging', bulk_lines=None, streaming=False)
  241. 2012-09-06 14:03:48,466 [SSH: 10.116.1.19] Sending message type MSG_CHANNEL_DATA (94)
  242. 2012-09-06 14:03:48,466 <CLISSHSocket(0x8072076d0, 10.116.1.19:22, connected)> set_status: +WRITE
  243. 2012-09-06 14:03:48,467 [script-10.116.1.19-DLink.DxS.get_interfaces] cli(disable clipaging) returns:
  244. ===[ disable clipaging ]================================================
  245. ''
  246. ========================================================================
  247. 2012-09-06 14:03:48,467 [script-10.116.1.19-DLink.DxS.get_interfaces] Exiting
  248. 2012-09-06 14:03:48,467 [SSH: 10.116.1.19] submit('logout', bulk_lines=None, streaming=False)
  249. 2012-09-06 14:03:48,468 [SSH: 10.116.1.19] Sending message type MSG_CHANNEL_DATA (94)
  250. 2012-09-06 14:03:48,468 <CLISSHSocket(0x8072076d0, 10.116.1.19:22, connected)> set_status: +WRITE
  251. 2012-09-06 14:03:48,468 [script-10.116.1.19-DLink.DxS.get_interfaces] Closing
  252. 2012-09-06 14:03:48,468 Requesting call: <bound method CLISSHSocket.close of <CLISSHSocket(0x8072076d0, 10.116.1.19:22, connected)>>(*(), **{'flush': True})
  253. 2012-09-06 14:03:48,476 [SSH: 10.116.1.19] on_read: 's'
  254. 2012-09-06 14:03:48,476 <CLISSHSocket(0x8072076d0, 10.116.1.19:22, connected)> set_status: -WRITE
  255. 2012-09-06 14:03:48,485 [SSH: 10.116.1.19] on_read: 'how vlan\n\rCommand: show vlan\n\r\n\r\n\rVID : 1 VLAN Name : default\n\rVLAN Type : static \n\rMember ports : \n\rStatic ports : \n\rTagged ports : \n\rUntagged ports : '
  256. 2012-09-06 14:03:48,554 [SSH: 10.116.1.19] on_read: '\n\r\n\rVID : 121 VLAN Name : user\n\rVLAN Type : static \n\rMember ports : 1-10 \n\rStatic ports : 1-10 \n\rTagged ports : 10 \n\rUntagged ports : 1-9 '
  257. 2012-09-06 14:03:48,555 [SSH: 10.116.1.19] on_read: '\n\r\n\rVID : 256 VLAN Name : upr\n\rVLAN Type : static \n\rMember ports : 10 \n\rStatic ports : 10 \n\rTagged ports : 10 \n\rUntagged ports : \n\r\n\r\n\rTotal Entries : 3\n\r\n\rDES-3010G:4#able clipaging\n\r\n\rAvailable commands: \n\r.. ? cable_diag clear \n\rconfig create delete dir \n\rdisable '
  258. 2012-09-06 14:03:48,555 [SSH: 10.116.1.19] Starting synchronous FSM check
  259. 2012-09-06 14:03:48,555 [SSH: 10.116.1.19] match '^DES\-3010G\:4#'
  260. 2012-09-06 14:03:48,556 [SSH: 10.116.1.19] Starting synchronous FSM check
  261. 2012-09-06 14:03:48,556 [SSH: 10.116.1.19] event(PROMPT)
  262. 2012-09-06 14:03:48,556 [SSH: 10.116.1.19] on_read: 'download '
  263. 2012-09-06 14:03:48,556 [SSH: 10.116.1.19] on_read: 'enable login \n\rlogout ping reboot reconfig \n\rreset save show smtp \n\rupload \n\r\n\rDES-3010G:4#l'
  264. 2012-09-06 14:03:48,557 [SSH: 10.116.1.19] Starting synchronous FSM check
  265. 2012-09-06 14:03:48,557 [SSH: 10.116.1.19] match '^DES\-3010G\:4#'
  266. 2012-09-06 14:03:48,557 [SSH: 10.116.1.19] Starting synchronous FSM check
  267. 2012-09-06 14:03:48,557 [SSH: 10.116.1.19] event(PROMPT)
  268. 2012-09-06 14:03:48,557 unregister_socket(<CLISSHSocket(0x8072076d0, 10.116.1.19:22, closing)>)
  269. 2012-09-06 14:03:48,558 <CLISSHSocket(0x8072076d0, 10.116.1.19:22, closing)> set_status: -READ -WRITE
  270. 2012-09-06 14:03:49,567 Tick
  271. 2012-09-06 14:03:49,567 Calling delayed <bound method CLISSHSocket.close of <CLISSHSocket(0x8072076d0, 10.116.1.19:22, closing)>>(*(), **{'flush': True})
  272. 2012-09-06 14:03:49,567 3 TICKS TO EXIT
  273. 2012-09-06 14:03:50,576 Tick
  274. 2012-09-06 14:03:50,576 2 TICKS TO EXIT
  275. 2012-09-06 14:03:51,585 Tick
  276. 2012-09-06 14:03:51,585 1 TICKS TO EXIT
  277. 2012-09-06 14:03:52,594 Tick
  278. 2012-09-06 14:03:52,594 EXIT
  279. 2012-09-06 14:03:52,595 Writing session test to output.txt
  280. 2012-09-06 14:03:52,704 SCRIPT RESULT: script-10.116.1.19-DLink.DxS.get_interfaces
  281. [{'forwarding_instance': 'default',
  282. 'interfaces': [{'admin_status': True,
  283. 'name': '1',
  284. 'oper_status': False,
  285. 'subinterfaces': [{'admin_status': True,
  286. 'is_bridge': True,
  287. 'name': '1',
  288. 'oper_status': False}],
  289. 'type': 'physical'},
  290. {'admin_status': True,
  291. 'name': '2',
  292. 'oper_status': False,
  293. 'subinterfaces': [{'admin_status': True,
  294. 'is_bridge': True,
  295. 'name': '2',
  296. 'oper_status': False}],
  297. 'type': 'physical'},
  298. {'admin_status': True,
  299. 'name': '3',
  300. 'oper_status': True,
  301. 'subinterfaces': [{'admin_status': True,
  302. 'is_bridge': True,
  303. 'name': '3',
  304. 'oper_status': True}],
  305. 'type': 'physical'},
  306. {'admin_status': True,
  307. 'name': '4',
  308. 'oper_status': False,
  309. 'subinterfaces': [{'admin_status': True,
  310. 'is_bridge': True,
  311. 'name': '4',
  312. 'oper_status': False}],
  313. 'type': 'physical'},
  314. {'admin_status': True,
  315. 'name': '5',
  316. 'oper_status': True,
  317. 'subinterfaces': [{'admin_status': True,
  318. 'is_bridge': True,
  319. 'name': '5',
  320. 'oper_status': True}],
  321. 'type': 'physical'},
  322. {'admin_status': True,
  323. 'name': '6',
  324. 'oper_status': False,
  325. 'subinterfaces': [{'admin_status': True,
  326. 'is_bridge': True,
  327. 'name': '6',
  328. 'oper_status': False}],
  329. 'type': 'physical'},
  330. {'admin_status': True,
  331. 'name': '7',
  332. 'oper_status': False,
  333. 'subinterfaces': [{'admin_status': True,
  334. 'is_bridge': True,
  335. 'name': '7',
  336. 'oper_status': False}],
  337. 'type': 'physical'},
  338. {'admin_status': True,
  339. 'name': '8',
  340. 'oper_status': False,
  341. 'subinterfaces': [{'admin_status': True,
  342. 'is_bridge': True,
  343. 'name': '8',
  344. 'oper_status': False}],
  345. 'type': 'physical'},
  346. {'admin_status': True,
  347. 'name': '9',
  348. 'oper_status': False,
  349. 'subinterfaces': [{'admin_status': True,
  350. 'is_bridge': True,
  351. 'name': '9',
  352. 'oper_status': False}],
  353. 'type': 'physical'}],
  354. 'type': 'ip'}]
  355. 2012-09-06 14:03:52,705 Shutting down the factory
  356. 2012-09-06 14:03:52,705 0 TICKS TO EXIT
  357. 2012-09-06 14:03:52,705 Stopping socket factory
  358. %
Add Comment
Please, Sign In to add comment