Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@noc:/opt/noc# ./noc debug-script Zyxel.ZyNOS.get_discovery_id telnet://admin:1234@172.16.6.4
- 2013-08-27 18:53:37,523 SSH: Using gmpy
- 2013-08-27 18:53:37,699 Using JSON library: cjson
- 2013-08-27 18:53:37,850 Loading PeriodicRegistry
- 2013-08-27 18:53:37,858 Loading DownloaderRegistry
- 2013-08-27 18:53:37,917 Loading ProfileRegistry
- 2013-08-27 18:53:39,004 Loading ScriptRegistry
- 2013-08-27 18:53:39,557 Setting up 'select' polling method
- 2013-08-27 18:53:39,558 Activating 'select' poller
- 2013-08-27 18:53:39,559 Loading private ssh key from 'etc/ssh/id_rsa'
- 2013-08-27 18:53:39,559 Loading public ssh key from 'etc/ssh/id_rsa.pub'
- access_profile {
- profile: "Zyxel.ZyNOS"
- scheme: TELNET
- address: "172.16.6.4"
- user: "admin"
- password: "1234"
- path: ""
- }
- object_name: "telnet://admin:1234@172.16.6.4"
- script: "Zyxel.ZyNOS.get_discovery_id"
- 2013-08-27 18:53:39,564 Running socket factory (SelectPoller)
- 2013-08-27 18:53:39,565 Running script thread
- 2013-08-27 18:53:39,566 Creating transaction id=1462437172 method=None callback=None
- 2013-08-27 18:53:39,567 [Generic.get_discovery_id(telnet://admin:1234@172.16.6.4, 172.16.6.4)] Running
- 2013-08-27 18:53:39,568 [Generic.get_discovery_id(telnet://admin:1234@172.16.6.4, 172.16.6.4)] Running script: Generic.get_discovery_id ({})
- 2013-08-27 18:53:39,569 [Zyxel.ZyNOS.get_chassis_id(telnet://admin:1234@172.16.6.4, 172.16.6.4)] Running script: Zyxel.ZyNOS.get_chassis_id ({})
- 2013-08-27 18:53:39,569 [Zyxel.ZyNOS.get_chassis_id(telnet://admin:1234@172.16.6.4, 172.16.6.4)] Not in call cache: 'Zyxel.ZyNOS.get_chassis_id', {}
- 2013-08-27 18:53:39,570 [Zyxel.ZyNOS.get_chassis_id(telnet://admin:1234@172.16.6.4, 172.16.6.4)] cli(show system-information)
- 2013-08-27 18:53:39,570 [Generic.get_discovery_id(telnet://admin:1234@172.16.6.4, 172.16.6.4)] Running new provider
- 2013-08-27 18:53:39,570 [TELNET: 172.16.6.4] ==> START
- 2013-08-27 18:53:39,570 [TELNET: 172.16.6.4] set_patterns([('User name:', 'USERNAME'), ('[Pp]assword:', 'PASSWORD'), ('^\\S+?>', 'UNPRIVELEGED_PROMPT'), ('^\\S+?#', 'PROMPT'), ('(^-- more --.*?$)', 'PAGER')])
- 2013-08-27 18:53:39,572 [TELNET: 172.16.6.4] set_timeout(600)
- 2013-08-27 18:53:39,572 register_socket(<CLITelnetSocket(0xa5872ac, 172.16.6.4:23, )>,None)
- 2013-08-27 18:53:40,566 Tick
- 2013-08-27 18:53:40,566 3 TICKS TO EXIT
- 2013-08-27 18:53:40,567 [TELNET: 172.16.6.4] Initializing socket
- 2013-08-27 18:53:40,567 [TELNET: 172.16.6.4] Connecting 172.16.6.4:23
- 2013-08-27 18:53:40,569 [TELNET: 172.16.6.4] Connected
- 2013-08-27 18:53:40,571 [TELNET: 172.16.6.4] Received IAC WILL SGA (251 3)
- 2013-08-27 18:53:40,572 [TELNET: 172.16.6.4] Sending IAC DO SGA (253 3)
- 2013-08-27 18:53:40,572 [TELNET: 172.16.6.4] Received IAC WILL ECHO (251 1)
- 2013-08-27 18:53:40,572 [TELNET: 172.16.6.4] Sending IAC DO ECHO (253 1)
- 2013-08-27 18:53:40,573 [TELNET: 172.16.6.4] on_read: '\r\nUser name: '
- 2013-08-27 18:53:40,573 [TELNET: 172.16.6.4] Starting synchronous FSM check
- 2013-08-27 18:53:40,574 [TELNET: 172.16.6.4] match 'User name:'
- 2013-08-27 18:53:40,574 [TELNET: 172.16.6.4] event(USERNAME)
- 2013-08-27 18:53:40,574 [TELNET: 172.16.6.4] ==> USERNAME
- 2013-08-27 18:53:40,574 [TELNET: 172.16.6.4] set_patterns([('[Pp]assword:', 'PASSWORD'), ('^\\S+?#', 'PROMPT')])
- 2013-08-27 18:53:40,574 [TELNET: 172.16.6.4] submit('admin', bulk_lines=None, streaming=False)
- 2013-08-27 18:53:40,578 [TELNET: 172.16.6.4] on_read: 'a'
- 2013-08-27 18:53:40,617 [TELNET: 172.16.6.4] on_read: 'dmin\r\n\r\nPassword: '
- 2013-08-27 18:53:40,618 [TELNET: 172.16.6.4] Starting synchronous FSM check
- 2013-08-27 18:53:40,619 [TELNET: 172.16.6.4] match '[Pp]assword:'
- 2013-08-27 18:53:40,619 [TELNET: 172.16.6.4] event(PASSWORD)
- 2013-08-27 18:53:40,620 [TELNET: 172.16.6.4] ==> PASSWORD
- 2013-08-27 18:53:40,620 [TELNET: 172.16.6.4] set_patterns([('^\\S+?>', 'UNPRIVELEGED_PROMPT'), ('^\\S+?#', 'PROMPT'), ('User name:', 'USERNAME'), ('[Pp]assword:', 'PASSWORD'), ('(^-- more --.*?$)', 'PAGER')])
- 2013-08-27 18:53:40,621 [TELNET: 172.16.6.4] submit('1234', bulk_lines=None, streaming=False)
- 2013-08-27 18:53:40,624 [TELNET: 172.16.6.4] on_read: '*'
- 2013-08-27 18:53:40,626 [TELNET: 172.16.6.4] on_read: '***\r\nCopyright (c) 1994 - 2011 ZyXEL Communications Corp.\r\nES3124-1MA# \x1b7'
- 2013-08-27 18:53:40,627 [TELNET: 172.16.6.4] Starting synchronous FSM check
- 2013-08-27 18:53:40,627 [TELNET: 172.16.6.4] match '^\S+?#'
- 2013-08-27 18:53:40,628 [TELNET: 172.16.6.4] event(PROMPT)
- 2013-08-27 18:53:40,628 [TELNET: 172.16.6.4] ==> PROMPT
- 2013-08-27 18:53:40,629 [TELNET: 172.16.6.4] on_PROMPT_enter
- 2013-08-27 18:53:40,629 [TELNET: 172.16.6.4] Using prompt pattern: ^\S+?#
- 2013-08-27 18:53:40,630 [TELNET: 172.16.6.4] set_patterns([('^\\S+?#', 'PROMPT'), ('(^-- more --.*?$)', 'PAGER')])
- 2013-08-27 18:53:40,630 [TELNET: 172.16.6.4] Closing socket
- 2013-08-27 18:53:40,631 unregister_socket(<CLITelnetSocket(0xa5872ac, 172.16.6.4:23, closing)>)
- 2013-08-27 18:53:40,638 [Generic.get_discovery_id(telnet://admin:1234@172.16.6.4, 172.16.6.4)] CLI Provider is ready
- 2013-08-27 18:53:40,638 [TELNET: 172.16.6.4] submit('show system-information', bulk_lines=None, streaming=False)
- 2013-08-27 18:53:40,638 [CLITelnetSocket(0xa5872ac)]<PROMPT> Attempting to write to closing socket
- 2013-08-27 18:53:40,638 [Generic.get_discovery_id(telnet://admin:1234@172.16.6.4, 172.16.6.4)] Closing
- 2013-08-27 18:53:40,639 Requesting call: <bound method CLITelnetSocket.close of <CLITelnetSocket(0xa5872ac, 172.16.6.4:23, closing)>>(*(), **{'flush': True})
- 2013-08-27 18:53:41,633 Tick
- 2013-08-27 18:53:41,633 Calling delayed <bound method CLITelnetSocket.close of <CLITelnetSocket(0xa5872ac, 172.16.6.4:23, closing)>>(*(), **{'flush': True})
- 2013-08-27 18:53:41,633 2 TICKS TO EXIT
- 2013-08-27 18:53:42,634 Tick
- 2013-08-27 18:53:42,634 1 TICKS TO EXIT
- 2013-08-27 18:53:43,635 Tick
- 2013-08-27 18:53:43,636 EXIT
- 2013-08-27 18:53:43,636 Shutting down the factory
- 2013-08-27 18:53:43,636 0 TICKS TO EXIT
- 2013-08-27 18:53:43,636 Stopping socket factory
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement