Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- %./noc debug-script APC.AOS.get_version telnet://admin:ghju6y%00superpassword@10.111.0.206 -o qqq
- 2011-12-22 15:37:31,588 SSH: Using gmpy
- 2011-12-22 15:37:31,953 Using JSON library: cjson
- 2011-12-22 15:37:31,992 Loading PeriodicRegistry
- 2011-12-22 15:37:32,015 Loading DownloaderRegistry
- 2011-12-22 15:37:32,078 Loading ProfileRegistry
- 2011-12-22 15:37:32,867 Loading ScriptRegistry
- 2011-12-22 15:37:33,291 Setting up 'select' polling method
- 2011-12-22 15:37:33,292 Set up select() poller
- 2011-12-22 15:37:33,292 Loading private ssh key from 'etc/ssh/id_rsa'
- 2011-12-22 15:37:33,292 Loading public ssh key from 'etc/ssh/id_rsa.pub'
- access_profile {
- profile: "APC.AOS"
- scheme: TELNET
- address: "10.111.0.206"
- user: "admin"
- password: "ghju6y"
- super_password: "superpassword"
- path: ""
- }
- script: "APC.AOS.get_version"
- 2011-12-22 15:37:33,294 Running script thread
- 2011-12-22 15:37:33,294 Running socket factory
- 2011-12-22 15:37:33,295 Creating transaction id=72267221 method=None callback=None
- 2011-12-22 15:37:33,296 [script-10.111.0.206-APC.AOS.get_version] Running
- 2011-12-22 15:37:33,296 [script-10.111.0.206-APC.AOS.get_version] Running script: APC.AOS.get_version ({})
- 2011-12-22 15:37:33,297 [script-10.111.0.206-APC.AOS.get_version] Running new provider
- 2011-12-22 15:37:33,297 [TELNET: 10.111.0.206] ==> START
- 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')])
- 2011-12-22 15:37:33,299 [TELNET: 10.111.0.206] set_timeout(30)
- 2011-12-22 15:37:33,299 register_socket(<noc.sa.script.telnet.CLITelnetSocket object at 0x807952450>,None)
- 2011-12-22 15:37:34,304 Tick
- 2011-12-22 15:37:34,304 3 TICKS TO EXIT
- 2011-12-22 15:37:34,304 [TELNET: 10.111.0.206] Initializing socket
- 2011-12-22 15:37:34,305 [TELNET: 10.111.0.206] Connecting 10.111.0.206:23
- 2011-12-22 15:37:34,325 [TELNET: 10.111.0.206] Received IAC WILL ECHO (251 1)
- 2011-12-22 15:37:34,325 [TELNET: 10.111.0.206] Sending IAC DO ECHO (253 1)
- 2011-12-22 15:37:34,326 [TELNET: 10.111.0.206] on_read: '\n\rUser Name : '
- 2011-12-22 15:37:34,326 [TELNET: 10.111.0.206] match '^User Name\s+:'
- 2011-12-22 15:37:34,326 [TELNET: 10.111.0.206] event(USERNAME)
- 2011-12-22 15:37:34,327 [TELNET: 10.111.0.206] ==> USERNAME
- 2011-12-22 15:37:34,327 [TELNET: 10.111.0.206] set_patterns([('^Password\\s+:', 'PASSWORD'), ('^>', 'PROMPT')])
- 2011-12-22 15:37:34,327 [TELNET: 10.111.0.206] submit('admin',bulk_lines=None)
- 2011-12-22 15:37:34,330 [TELNET: 10.111.0.206] Received IAC WILL ECHO (251 1)
- 2011-12-22 15:37:34,331 [TELNET: 10.111.0.206] Sending IAC DO ECHO (253 1)
- 2011-12-22 15:37:34,337 [TELNET: 10.111.0.206] on_read: 'a'
- 2011-12-22 15:37:34,338 [TELNET: 10.111.0.206] on_read: 'd'
- 2011-12-22 15:37:34,339 [TELNET: 10.111.0.206] on_read: 'mi'
- 2011-12-22 15:37:34,342 [TELNET: 10.111.0.206] on_read: 'n\n\rPassword : '
- 2011-12-22 15:37:34,342 [TELNET: 10.111.0.206] match '^Password\s+:'
- 2011-12-22 15:37:34,343 [TELNET: 10.111.0.206] event(PASSWORD)
- 2011-12-22 15:37:34,343 [TELNET: 10.111.0.206] ==> PASSWORD
- 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')])
- 2011-12-22 15:37:34,343 [TELNET: 10.111.0.206] submit('ghju6y',bulk_lines=None)
- 2011-12-22 15:37:34,452 [TELNET: 10.111.0.206] on_read: '*'
- 2011-12-22 15:37:34,454 [TELNET: 10.111.0.206] on_read: '*'
- 2011-12-22 15:37:34,455 [TELNET: 10.111.0.206] on_read: '*'
- 2011-12-22 15:37:34,456 [TELNET: 10.111.0.206] on_read: '**'
- 2011-12-22 15:37:34,459 [TELNET: 10.111.0.206] on_read: '*'
- 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.'
- 2011-12-22 15:37:34,497 [TELNET: 10.111.0.206] on_read: '6.1\r\n'
- 2011-12-22 15:37:34,501 [TELNET: 10.111.0.206] on_read: '(c) Copyright 2008 All Rights Reserved '
- 2011-12-22 15:37:34,505 [TELNET: 10.111.0.206] on_read: 'Smart-UPS & Matrix-UPS APP v3.5.8\r\n---------------------------------------'
- 2011-12-22 15:37:34,509 [TELNET: 10.111.0.206] on_read: '----------------------------------------\r\n'
- 2011-12-22 15:37:34,514 [TELNET: 10.111.0.206] on_read: 'Name : admin Date : 12/22/2011\r\n'
- 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'
- 2011-12-22 15:37:34,524 [TELNET: 10.111.0.206] on_read: 'Location : 1 GZ User : Administrator\n\r'
- 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'
- 2011-12-22 15:37:34,531 [TELNET: 10.111.0.206] on_read: '\r\n'
- 2011-12-22 15:37:34,533 [TELNET: 10.111.0.206] on_read: 'Smart-UPS 5000 named UPS_IDEN : '
- 2011-12-22 15:37:34,536 [TELNET: 10.111.0.206] on_read: 'On Line, No Alarms Present'
- 2011-12-22 15:37:34,537 [TELNET: 10.111.0.206] on_read: '\n\n\r'
- 2011-12-22 15:37:34,541 [TELNET: 10.111.0.206] on_read: '------- Control Console -------------------------------------------------------\r'
- 2011-12-22 15:37:34,543 [TELNET: 10.111.0.206] on_read: '\n'
- 2011-12-22 15:37:34,544 [TELNET: 10.111.0.206] on_read: '\r\n'
- 2011-12-22 15:37:34,547 [TELNET: 10.111.0.206] on_read: ' 1- '
- 2011-12-22 15:37:34,548 [TELNET: 10.111.0.206] on_read: 'Device '
- 2011-12-22 15:37:34,551 [TELNET: 10.111.0.206] on_read: 'Manager\r\n'
- 2011-12-22 15:37:34,553 [TELNET: 10.111.0.206] on_read: ' 2- Network'
- 2011-12-22 15:37:34,554 [TELNET: 10.111.0.206] on_read: '\r\n'
- 2011-12-22 15:37:34,556 [TELNET: 10.111.0.206] on_read: ' 3- '
- 2011-12-22 15:37:34,557 [TELNET: 10.111.0.206] on_read: 'System'
- 2011-12-22 15:37:34,558 [TELNET: 10.111.0.206] on_read: '\r\n'
- 2011-12-22 15:37:34,560 [TELNET: 10.111.0.206] on_read: ' 4- '
- 2011-12-22 15:37:34,561 [TELNET: 10.111.0.206] on_read: 'Logout\r\n'
- 2011-12-22 15:37:34,562 [TELNET: 10.111.0.206] on_read: '\r\n'
- 2011-12-22 15:37:34,564 [TELNET: 10.111.0.206] on_read: ' '
- 2011-12-22 15:37:34,565 [TELNET: 10.111.0.206] on_read: '<ESC>- Main Menu, '
- 2011-12-22 15:37:34,566 [TELNET: 10.111.0.206] on_read: '<ENTER>- Refresh'
- 2011-12-22 15:37:34,568 [TELNET: 10.111.0.206] on_read: ', <CTRL-L>- Event Log'
- 2011-12-22 15:37:34,569 [TELNET: 10.111.0.206] on_read: '\r\n> '
- 2011-12-22 15:37:34,569 [TELNET: 10.111.0.206] match '^>'
- 2011-12-22 15:37:34,569 [TELNET: 10.111.0.206] event(PROMPT)
- 2011-12-22 15:37:34,569 [TELNET: 10.111.0.206] ==> PROMPT
- 2011-12-22 15:37:34,570 [TELNET: 10.111.0.206] on_PROMPT_enter
- 2011-12-22 15:37:34,570 [TELNET: 10.111.0.206] Using prompt pattern: ^>
- 2011-12-22 15:37:34,570 [TELNET: 10.111.0.206] set_patterns([('^>', 'PROMPT'), ('(^Press <ENTER> to continue...$)', 'PAGER')])
- 2011-12-22 15:37:34,576 [script-10.111.0.206-APC.AOS.get_version] CLI Provider is ready
- 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'}
- 2011-12-22 15:37:34,577 [script-10.111.0.206-APC.AOS.get_version] Closing
- 2011-12-22 15:37:34,577 Requesting call: <bound method CLITelnetSocket.close of <noc.sa.script.telnet.CLITelnetSocket object at 0x807952450>>(*(), **{'flush': True})
- 2011-12-22 15:37:35,579 Tick
- 2011-12-22 15:37:35,579 Calling delayed <bound method CLITelnetSocket.close of <noc.sa.script.telnet.CLITelnetSocket object at 0x807952450>>(*(), **{'flush': True})
- 2011-12-22 15:37:35,580 unregister_socket(<noc.sa.script.telnet.CLITelnetSocket object at 0x807952450>)
- 2011-12-22 15:37:35,580 2 TICKS TO EXIT
- 2011-12-22 15:37:36,588 Tick
- 2011-12-22 15:37:36,589 1 TICKS TO EXIT
- 2011-12-22 15:37:37,597 Tick
- 2011-12-22 15:37:37,597 EXIT
- 2011-12-22 15:37:37,598 Writing session test to qqq
- 2011-12-22 15:37:37,599 SCRIPT RESULT: script-10.111.0.206-APC.AOS.get_version
- {'platform': 'Smart-UPS 5000', 'vendor': 'APC', 'version': '3.6.1'}
- 2011-12-22 15:37:37,599 Shutting down the factory
- 2011-12-22 15:37:37,600 0 TICKS TO EXIT
- %
Add Comment
Please, Sign In to add comment