Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@noc:/opt/noc# ./noc debug-script get_config Kalinina35p3
- 2014-04-29 09:14:53,201 SSH: Using gmpy
- 2014-04-29 09:14:53,318 Using JSON library: cjson
- 2014-04-29 09:14:53,416 Loading PeriodicRegistry
- 2014-04-29 09:14:53,422 Loading DownloaderRegistry
- 2014-04-29 09:14:53,460 Loading ProfileRegistry
- 2014-04-29 09:14:54,128 Loading ScriptRegistry
- 2014-04-29 09:14:54,492 Setting up 'select' polling method
- 2014-04-29 09:14:54,492 Activating 'select' poller
- 2014-04-29 09:14:54,493 Loading private ssh key from 'etc/ssh/id_rsa'
- 2014-04-29 09:14:54,493 Loading public ssh key from 'etc/ssh/id_rsa.pub'
- access_profile {
- profile: "Huawei.VRP"
- scheme: TELNET
- address: "10.30.0.45"
- user: "noc"
- password: "nocyartv"
- super_password: "nocyartv"
- attrs {
- key: "image"
- value: "V100R006C03"
- }
- attrs {
- key: "platform"
- value: "NOC"
- }
- attrs {
- key: "vendor"
- value: "NOC"
- }
- attrs {
- key: "version"
- value: "0.8"
- }
- }
- object_name: "Kalinina35p3"
- script: "Huawei.VRP.get_config"
- 2014-04-29 09:14:54,499 Running socket factory (SelectPoller)
- 2014-04-29 09:14:54,499 Running script thread
- 2014-04-29 09:14:54,499 Creating transaction id=657769400 method=None callback=None
- 2014-04-29 09:14:54,500 [Huawei.VRP.get_config(Kalinina35p3, 10.30.0.45)] Running
- 2014-04-29 09:14:54,500 [Huawei.VRP.get_config(Kalinina35p3, 10.30.0.45)] Running script: Huawei.VRP.get_config ({})
- 2014-04-29 09:14:54,501 [Huawei.VRP.get_config(Kalinina35p3, 10.30.0.45)] cli(display current-configuration)
- 2014-04-29 09:14:54,501 [Huawei.VRP.get_config(Kalinina35p3, 10.30.0.45)] Running new provider
- 2014-04-29 09:14:54,501 [TELNET: 10.30.0.45] ==> START
- 2014-04-29 09:14:54,501 [TELNET: 10.30.0.45] set_patterns([('([Uu]sername|[Ll]ogin):', 'USERNAME'), ('[Pp]assword:', 'PASSWORD'), ('^[<#\\[](?P<hostname>\\S+?)[>#\\]]', 'PROMPT'), ('(^ ---- More ----)|([Cc]ontinue?\\S+)', 'PAGER')])
- 2014-04-29 09:14:54,503 [TELNET: 10.30.0.45] set_timeout(600)
- 2014-04-29 09:14:54,503 register_socket(<CLITelnetSocket(0x3c81e10, 10.30.0.45:23, )>,None)
- 2014-04-29 09:14:55,500 Tick
- 2014-04-29 09:14:55,500 3 TICKS TO EXIT
- 2014-04-29 09:14:55,500 [TELNET: 10.30.0.45] Initializing socket
- 2014-04-29 09:14:55,501 [TELNET: 10.30.0.45] Connecting 10.30.0.45:23
- 2014-04-29 09:14:55,538 [TELNET: 10.30.0.45] Connected
- 2014-04-29 09:14:55,552 [TELNET: 10.30.0.45] Received IAC WILL ECHO (251 1)
- 2014-04-29 09:14:55,553 [TELNET: 10.30.0.45] Sending IAC DO ECHO (253 1)
- 2014-04-29 09:14:55,553 [TELNET: 10.30.0.45] Received IAC WILL ECHO (251 1)
- 2014-04-29 09:14:55,553 [TELNET: 10.30.0.45] Sending IAC DO ECHO (253 1)
- 2014-04-29 09:14:55,553 [TELNET: 10.30.0.45] Received IAC WILL ECHO (251 1)
- 2014-04-29 09:14:55,553 [TELNET: 10.30.0.45] Sending IAC DO ECHO (253 1)
- 2014-04-29 09:14:55,555 [TELNET: 10.30.0.45] Received IAC WILL SGA (251 3)
- 2014-04-29 09:14:55,555 [TELNET: 10.30.0.45] Sending IAC DO SGA (253 3)
- 2014-04-29 09:14:55,556 [TELNET: 10.30.0.45] Received IAC DO TTYPE (253 24)
- 2014-04-29 09:14:55,556 [TELNET: 10.30.0.45] Sending IAC WILL TTYPE (251 24)
- 2014-04-29 09:14:55,557 [TELNET: 10.30.0.45] Received IAC DO NAWS (253 31)
- 2014-04-29 09:14:55,557 [TELNET: 10.30.0.45] Sending IAC WILL NAWS (251 31)
- 2014-04-29 09:14:55,557 [TELNET: 10.30.0.45] Sending SB '\xff\xfa\x1f\xff\xff\xff\xff\xff\xf0'
- 2014-04-29 09:14:55,567 [TELNET: 10.30.0.45] on_read: '\r'
- 2014-04-29 09:14:55,661 [TELNET: 10.30.0.45] on_read: '\r\n\r\nLogin authentication\r\n\r\n'
- 2014-04-29 09:14:55,665 [TELNET: 10.30.0.45] on_read: '\r\nUsername:'
- 2014-04-29 09:14:55,665 [TELNET: 10.30.0.45] Starting synchronous FSM check
- 2014-04-29 09:14:55,666 [TELNET: 10.30.0.45] match '([Uu]sername|[Ll]ogin):'
- 2014-04-29 09:14:55,666 [TELNET: 10.30.0.45] event(USERNAME)
- 2014-04-29 09:14:55,667 [TELNET: 10.30.0.45] ==> USERNAME
- 2014-04-29 09:14:55,667 [TELNET: 10.30.0.45] set_patterns([('[Pp]assword:', 'PASSWORD'), ('^[<#\\[](?P<hostname>\\S+?)[>#\\]]', 'PROMPT')])
- 2014-04-29 09:14:55,667 [TELNET: 10.30.0.45] submit(u'noc', bulk_lines=None, streaming=False)
- 2014-04-29 09:14:55,671 [TELNET: 10.30.0.45] Received SB '\x18\x01'
- 2014-04-29 09:14:55,672 [TELNET: 10.30.0.45] Sending SB '\xff\xfa\x18\x00XTERM\xff\xf0'
- 2014-04-29 09:14:55,680 [TELNET: 10.30.0.45] on_read: 'no'
- 2014-04-29 09:14:55,684 [TELNET: 10.30.0.45] on_read: 'c'
- 2014-04-29 09:14:55,686 [TELNET: 10.30.0.45] on_read: '\r\nPassword:'
- 2014-04-29 09:14:55,687 [TELNET: 10.30.0.45] Starting synchronous FSM check
- 2014-04-29 09:14:55,687 [TELNET: 10.30.0.45] match '[Pp]assword:'
- 2014-04-29 09:14:55,687 [TELNET: 10.30.0.45] event(PASSWORD)
- 2014-04-29 09:14:55,687 [TELNET: 10.30.0.45] ==> PASSWORD
- 2014-04-29 09:14:55,687 [TELNET: 10.30.0.45] set_patterns([('^[<#\\[](?P<hostname>\\S+?)[>#\\]]', 'PROMPT'), ('([Uu]sername|[Ll]ogin):', 'USERNAME'), ('[Pp]assword:', 'PASSWORD'), ('(^ ---- More ----)|([Cc]ontinue?\\S+)', 'PAGER')])
- 2014-04-29 09:14:55,688 [TELNET: 10.30.0.45] submit(u'nocyartv', bulk_lines=None, streaming=False)
- 2014-04-29 09:14:56,208 [TELNET: 10.30.0.45] on_read: '\r\nInfo: The max number of VTY users is 5, and the number\r\n of current VTY users on line is 1.'
- 2014-04-29 09:14:56,210 [TELNET: 10.30.0.45] on_read: '\r\n<Kalinina 35p3>'
- 2014-04-29 09:14:57,211 Tick
- 2014-04-29 09:14:57,211 Resetting wait ticks
- 2014-04-29 09:14:58,212 Tick
- 2014-04-29 09:14:58,213 Resetting wait ticks
- 2014-04-29 09:14:59,214 Tick
- 2014-04-29 09:14:59,214 Resetting wait ticks
- 2014-04-29 09:15:00,215 Tick
- 2014-04-29 09:15:00,215 Resetting wait ticks
- 2014-04-29 09:15:01,216 Tick
- 2014-04-29 09:15:01,216 Resetting wait ticks
- 2014-04-29 09:15:02,218 Tick
- 2014-04-29 09:15:02,218 Resetting wait ticks
- ^C2014-04-29 09:15:02,949 SIGINT
Advertisement
Add Comment
Please, Sign In to add comment