Guest User

Untitled

a guest
May 7th, 2018
264
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 8.04 KB | None | 0 0
  1. %./noc debug-script APC.AOS.get_version telnet://admin:ghju6y%00superpassword@10.111.0.206 -o qqq
  2. 2011-12-22 15:37:31,588 SSH: Using gmpy
  3. 2011-12-22 15:37:31,953 Using JSON library: cjson
  4. 2011-12-22 15:37:31,992 Loading PeriodicRegistry
  5. 2011-12-22 15:37:32,015 Loading DownloaderRegistry
  6. 2011-12-22 15:37:32,078 Loading ProfileRegistry
  7. 2011-12-22 15:37:32,867 Loading ScriptRegistry
  8. 2011-12-22 15:37:33,291 Setting up 'select' polling method
  9. 2011-12-22 15:37:33,292 Set up select() poller
  10. 2011-12-22 15:37:33,292 Loading private ssh key from 'etc/ssh/id_rsa'
  11. 2011-12-22 15:37:33,292 Loading public ssh key from 'etc/ssh/id_rsa.pub'
  12. access_profile {
  13.   profile: "APC.AOS"
  14.   scheme: TELNET
  15.   address: "10.111.0.206"
  16.   user: "admin"
  17.   password: "ghju6y"
  18.   super_password: "superpassword"
  19.   path: ""
  20. }
  21. script: "APC.AOS.get_version"
  22.  
  23. 2011-12-22 15:37:33,294 Running script thread
  24. 2011-12-22 15:37:33,294 Running socket factory
  25. 2011-12-22 15:37:33,295 Creating transaction id=72267221 method=None callback=None
  26. 2011-12-22 15:37:33,296 [script-10.111.0.206-APC.AOS.get_version] Running
  27. 2011-12-22 15:37:33,296 [script-10.111.0.206-APC.AOS.get_version] Running script: APC.AOS.get_version ({})
  28. 2011-12-22 15:37:33,297 [script-10.111.0.206-APC.AOS.get_version] Running new provider
  29. 2011-12-22 15:37:33,297 [TELNET: 10.111.0.206] ==> START
  30. 2011-12-22 15:37:33,298 [TELNET: 10.111.0.206] set_patterns([('^User Name\\s+:', 'USERNAME'), ('^Password\\s+:', 'PASSWORD'), ('^>', 'PROMPT'), ('(^Press <ENTER> to continue...$)', 'PAGER')])
  31. 2011-12-22 15:37:33,299 [TELNET: 10.111.0.206] set_timeout(30)
  32. 2011-12-22 15:37:33,299 register_socket(<noc.sa.script.telnet.CLITelnetSocket object at 0x807952450>,None)
  33. 2011-12-22 15:37:34,304 Tick
  34. 2011-12-22 15:37:34,304 3 TICKS TO EXIT
  35. 2011-12-22 15:37:34,304 [TELNET: 10.111.0.206] Initializing socket
  36. 2011-12-22 15:37:34,305 [TELNET: 10.111.0.206] Connecting 10.111.0.206:23
  37. 2011-12-22 15:37:34,325 [TELNET: 10.111.0.206] Received IAC WILL ECHO (251 1)
  38. 2011-12-22 15:37:34,325 [TELNET: 10.111.0.206] Sending IAC DO ECHO (253 1)
  39. 2011-12-22 15:37:34,326 [TELNET: 10.111.0.206] on_read: '\n\rUser Name : '
  40. 2011-12-22 15:37:34,326 [TELNET: 10.111.0.206] match '^User Name\s+:'
  41. 2011-12-22 15:37:34,326 [TELNET: 10.111.0.206] event(USERNAME)
  42. 2011-12-22 15:37:34,327 [TELNET: 10.111.0.206] ==> USERNAME
  43. 2011-12-22 15:37:34,327 [TELNET: 10.111.0.206] set_patterns([('^Password\\s+:', 'PASSWORD'), ('^>', 'PROMPT')])
  44. 2011-12-22 15:37:34,327 [TELNET: 10.111.0.206] submit('admin',bulk_lines=None)
  45. 2011-12-22 15:37:34,330 [TELNET: 10.111.0.206] Received IAC WILL ECHO (251 1)
  46. 2011-12-22 15:37:34,331 [TELNET: 10.111.0.206] Sending IAC DO ECHO (253 1)
  47. 2011-12-22 15:37:34,337 [TELNET: 10.111.0.206] on_read: 'a'
  48. 2011-12-22 15:37:34,338 [TELNET: 10.111.0.206] on_read: 'd'
  49. 2011-12-22 15:37:34,339 [TELNET: 10.111.0.206] on_read: 'mi'
  50. 2011-12-22 15:37:34,342 [TELNET: 10.111.0.206] on_read: 'n\n\rPassword  : '
  51. 2011-12-22 15:37:34,342 [TELNET: 10.111.0.206] match '^Password\s+:'
  52. 2011-12-22 15:37:34,343 [TELNET: 10.111.0.206] event(PASSWORD)
  53. 2011-12-22 15:37:34,343 [TELNET: 10.111.0.206] ==> PASSWORD
  54. 2011-12-22 15:37:34,343 [TELNET: 10.111.0.206] set_patterns([('^>', 'PROMPT'), ('^User Name\\s+:', 'USERNAME'), ('^Password\\s+:', 'PASSWORD'), ('(^Press <ENTER> to continue...$)', 'PAGER')])
  55. 2011-12-22 15:37:34,343 [TELNET: 10.111.0.206] submit('ghju6y',bulk_lines=None)
  56. 2011-12-22 15:37:34,452 [TELNET: 10.111.0.206] on_read: '*'
  57. 2011-12-22 15:37:34,454 [TELNET: 10.111.0.206] on_read: '*'
  58. 2011-12-22 15:37:34,455 [TELNET: 10.111.0.206] on_read: '*'
  59. 2011-12-22 15:37:34,456 [TELNET: 10.111.0.206] on_read: '**'
  60. 2011-12-22 15:37:34,459 [TELNET: 10.111.0.206] on_read: '*'
  61. 2011-12-22 15:37:34,496 [TELNET: 10.111.0.206] on_read: '\n\n\n\rAmerican Power Conversion               Network Management Card AOS      v3.'
  62. 2011-12-22 15:37:34,497 [TELNET: 10.111.0.206] on_read: '6.1\r\n'
  63. 2011-12-22 15:37:34,501 [TELNET: 10.111.0.206] on_read: '(c) Copyright 2008 All Rights Reserved  '
  64. 2011-12-22 15:37:34,505 [TELNET: 10.111.0.206] on_read: 'Smart-UPS & Matrix-UPS APP       v3.5.8\r\n---------------------------------------'
  65. 2011-12-22 15:37:34,509 [TELNET: 10.111.0.206] on_read: '----------------------------------------\r\n'
  66. 2011-12-22 15:37:34,514 [TELNET: 10.111.0.206] on_read: 'Name      : admin                                     Date : 12/22/2011\r\n'
  67. 2011-12-22 15:37:34,520 [TELNET: 10.111.0.206] on_read: 'Contact   : admin-dima@cabletv.dp.ua                  Time : 15:52:34\n\r'
  68. 2011-12-22 15:37:34,524 [TELNET: 10.111.0.206] on_read: 'Location  : 1 GZ                                      User : Administrator\n\r'
  69. 2011-12-22 15:37:34,530 [TELNET: 10.111.0.206] on_read: 'Up Time   : 82 Days 0 Hours 25 Minutes                Stat : P+ N+ A+\r\n'
  70. 2011-12-22 15:37:34,531 [TELNET: 10.111.0.206] on_read: '\r\n'
  71. 2011-12-22 15:37:34,533 [TELNET: 10.111.0.206] on_read: 'Smart-UPS 5000 named UPS_IDEN : '
  72. 2011-12-22 15:37:34,536 [TELNET: 10.111.0.206] on_read: 'On Line, No Alarms Present'
  73. 2011-12-22 15:37:34,537 [TELNET: 10.111.0.206] on_read: '\n\n\r'
  74. 2011-12-22 15:37:34,541 [TELNET: 10.111.0.206] on_read: '------- Control Console -------------------------------------------------------\r'
  75. 2011-12-22 15:37:34,543 [TELNET: 10.111.0.206] on_read: '\n'
  76. 2011-12-22 15:37:34,544 [TELNET: 10.111.0.206] on_read: '\r\n'
  77. 2011-12-22 15:37:34,547 [TELNET: 10.111.0.206] on_read: '     1- '
  78. 2011-12-22 15:37:34,548 [TELNET: 10.111.0.206] on_read: 'Device '
  79. 2011-12-22 15:37:34,551 [TELNET: 10.111.0.206] on_read: 'Manager\r\n'
  80. 2011-12-22 15:37:34,553 [TELNET: 10.111.0.206] on_read: '     2- Network'
  81. 2011-12-22 15:37:34,554 [TELNET: 10.111.0.206] on_read: '\r\n'
  82. 2011-12-22 15:37:34,556 [TELNET: 10.111.0.206] on_read: '     3- '
  83. 2011-12-22 15:37:34,557 [TELNET: 10.111.0.206] on_read: 'System'
  84. 2011-12-22 15:37:34,558 [TELNET: 10.111.0.206] on_read: '\r\n'
  85. 2011-12-22 15:37:34,560 [TELNET: 10.111.0.206] on_read: '     4- '
  86. 2011-12-22 15:37:34,561 [TELNET: 10.111.0.206] on_read: 'Logout\r\n'
  87. 2011-12-22 15:37:34,562 [TELNET: 10.111.0.206] on_read: '\r\n'
  88. 2011-12-22 15:37:34,564 [TELNET: 10.111.0.206] on_read: '     '
  89. 2011-12-22 15:37:34,565 [TELNET: 10.111.0.206] on_read: '<ESC>- Main Menu, '
  90. 2011-12-22 15:37:34,566 [TELNET: 10.111.0.206] on_read: '<ENTER>- Refresh'
  91. 2011-12-22 15:37:34,568 [TELNET: 10.111.0.206] on_read: ', <CTRL-L>- Event Log'
  92. 2011-12-22 15:37:34,569 [TELNET: 10.111.0.206] on_read: '\r\n> '
  93. 2011-12-22 15:37:34,569 [TELNET: 10.111.0.206] match '^>'
  94. 2011-12-22 15:37:34,569 [TELNET: 10.111.0.206] event(PROMPT)
  95. 2011-12-22 15:37:34,569 [TELNET: 10.111.0.206] ==> PROMPT
  96. 2011-12-22 15:37:34,570 [TELNET: 10.111.0.206] on_PROMPT_enter
  97. 2011-12-22 15:37:34,570 [TELNET: 10.111.0.206] Using prompt pattern: ^>
  98. 2011-12-22 15:37:34,570 [TELNET: 10.111.0.206] set_patterns([('^>', 'PROMPT'), ('(^Press <ENTER> to continue...$)', 'PAGER')])
  99. 2011-12-22 15:37:34,576 [script-10.111.0.206-APC.AOS.get_version] CLI Provider is ready
  100. 2011-12-22 15:37:34,577 [script-10.111.0.206-APC.AOS.get_version] Script returns with result: {'platform': 'Smart-UPS 5000', 'version': '3.6.1', 'vendor': 'APC'}
  101. 2011-12-22 15:37:34,577 [script-10.111.0.206-APC.AOS.get_version] Closing
  102. 2011-12-22 15:37:34,577 Requesting call: <bound method CLITelnetSocket.close of <noc.sa.script.telnet.CLITelnetSocket object at 0x807952450>>(*(), **{'flush': True})
  103. 2011-12-22 15:37:35,579 Tick
  104. 2011-12-22 15:37:35,579 Calling delayed <bound method CLITelnetSocket.close of <noc.sa.script.telnet.CLITelnetSocket object at 0x807952450>>(*(), **{'flush': True})
  105. 2011-12-22 15:37:35,580 unregister_socket(<noc.sa.script.telnet.CLITelnetSocket object at 0x807952450>)
  106. 2011-12-22 15:37:35,580 2 TICKS TO EXIT
  107. 2011-12-22 15:37:36,588 Tick
  108. 2011-12-22 15:37:36,589 1 TICKS TO EXIT
  109. 2011-12-22 15:37:37,597 Tick
  110. 2011-12-22 15:37:37,597 EXIT
  111. 2011-12-22 15:37:37,598 Writing session test to qqq
  112. 2011-12-22 15:37:37,599 SCRIPT RESULT: script-10.111.0.206-APC.AOS.get_version
  113. {'platform': 'Smart-UPS 5000', 'vendor': 'APC', 'version': '3.6.1'}
  114. 2011-12-22 15:37:37,599 Shutting down the factory
  115. 2011-12-22 15:37:37,600 0 TICKS TO EXIT
  116. %
Add Comment
Please, Sign In to add comment