Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@ubuntu:/opt/noc# ./noc debug-script commands 4_liniya_d28 "commands=['dir']"
- 2015-08-07 12:14:47,552 Using JSON library: cjson
- 2015-08-07 12:14:47,582 SSH: Using gmpy
- 2015-08-07 12:14:47,884 Connecting to MongoDB {'username': 'noc', 'password': '********', 'db': 'noc'}
- 2015-08-07 12:14:48,537 Connecting to MongoDB {'username': 'noc', 'password': '********', 'db': 'noc'}
- 2015-08-07 12:14:48,547 Loading PeriodicRegistry
- 2015-08-07 12:14:48,558 Registering MetricType
- 2015-08-07 12:14:48,568 Loading compiled MIBs
- 2015-08-07 12:14:48,568 Loading compiled MIBs from 'cmibs'
- 2015-08-07 12:14:48,568 Loading MIB: RFC1213-MIB
- 2015-08-07 12:14:48,568 Loading MIB: SNMPv2-MIB
- 2015-08-07 12:14:48,568 Loading MIB: IP-MIB
- 2015-08-07 12:14:48,568 Loading MIB: IF-MIB
- 2015-08-07 12:14:48,569 Loading MIB: CISCO-PPPOE-MIB
- 2015-08-07 12:14:48,569 Loading MIB: CISCO-VPDN-MGMT-MIB
- 2015-08-07 12:14:48,574 Configuring metric mappings sa.managedobject -> object.{{object.name|qm}}.{{metric_type|qm}}
- 2015-08-07 12:14:48,577 Configuring metric mappings inv.interface -> object.{{object.managed_object.name|qm}}.interface.{{object.name|qm}}.{{metric_type|qm}}
- 2015-08-07 12:14:48,584 Installing probe config watchers
- 2015-08-07 12:14:48,585 Loading DownloaderRegistry
- 2015-08-07 12:14:48,771 Loading ProfileRegistry
- 2015-08-07 12:14:49,370 Loading ScriptRegistry
- 2015-08-07 12:14:49,737 Adding FTS index for sa.managedobject
- 2015-08-07 12:14:49,743 Registering Capability
- 2015-08-07 12:14:49,761 Adding FTS index for ip.vrf
- 2015-08-07 12:14:49,765 Adding FTS index for vc.vc
- 2015-08-07 12:14:49,848 Adding FTS index for ip.prefix
- 2015-08-07 12:14:49,850 Adding FTS index for ip.address
- 2015-08-07 12:14:51,434 Setting up 'select' polling method
- 2015-08-07 12:14:51,465 Activating 'select' poller
- 2015-08-07 12:14:51,465 Loading private ssh key from 'etc/ssh/id_rsa'
- 2015-08-07 12:14:51,472 Loading public ssh key from 'etc/ssh/id_rsa.pub'
- access_profile {
- profile: "NAG.SNR"
- scheme: TELNET
- address: "10.11.3.143"
- port: 23
- user:
- password:
- path: "10.11.3.143"
- attrs {
- key: "Boot PROM"
- value: "6.2.138.58"
- }
- attrs {
- key: "HW version"
- value: "1.0.1"
- }
- attrs {
- key: "platform"
- value: "SNR-S2950-24G"
- }
- attrs {
- key: "Serial Number"
- value: "A200053QMT"
- }
- attrs {
- key: "vendor"
- value: "NAG LLC"
- }
- attrs {
- key: "version"
- value: "4.10.1"
- }
- caps {
- capability: "SNMP"
- bool_value: true
- }
- caps {
- capability: "SNMP | Bulk"
- bool_value: true
- }
- caps {
- capability: "SNMP | IF-MIB"
- bool_value: true
- }
- caps {
- capability: "SNMP | IF-MIB | HC"
- bool_value: true
- }
- }
- object_name: "4_liniya_d28"
- script: "NAG.SNR.commands"
- kwargs {
- key: "commands"
- value: "(lp1\nS\'dir\'\np2\na."
- }
- timeout: 120
- 2015-08-07 12:14:51,512 Running socket factory (SelectPoller)
- 2015-08-07 12:14:51,513 Running script thread
- 2015-08-07 12:14:51,513 Creating transaction id=569853304 method=None callback=None
- 2015-08-07 12:14:51,514 Capabilities: {u'SNMP | IF-MIB': True, u'SNMP | Bulk': True, u'SNMP': True, u'SNMP | IF-MIB | HC': True}
- 2015-08-07 12:14:51,515 Running
- 2015-08-07 12:14:51,515 Running script: Generic.commands ({'ignore_cli_errors': False, 'commands': ['dir']}), timeout 120s
- 2015-08-07 12:14:51,515 cli(dir)
- 2015-08-07 12:14:51,515 Running new provider
- 2015-08-07 12:14:51,515 [TELNET: 10.11.3.143] ==> START
- 2015-08-07 12:14:51,515 [TELNET: 10.11.3.143] set_patterns([('([Uu]ser ?[Nn]ame|[Ll]ogin):', 'USERNAME'), ('[Pp]ass[Ww]ord:', 'PASSWORD'), ('^\\S+?>', 'UNPRIVELEGED_PROMPT'), ('^(?P<hostname>[a-zA-Z0-9]\\S{0,19})(?:[-_\\d\\w]+)?(?:\\(config[^\\)]*\\))?#', 'PROMPT'), ('(^ ---- More ----)|([Cc]ontinue?\\S+)|([Cc]onfirm?\\S+)|( [Aa]re you sure?\\S+)|(^Delete flash:)|(^Squeeze flash:)', 'PAGER')])
- 2015-08-07 12:14:51,517 [TELNET: 10.11.3.143] Set FSM timeout to 30
- 2015-08-07 12:14:51,517 Register socket CLITelnetSocket 10.11.3.143:23 (None)
- 2015-08-07 12:14:52,514 Tick
- 2015-08-07 12:14:52,514 3 TICKS TO EXIT
- 2015-08-07 12:14:52,514 [TELNET: 10.11.3.143] Initializing socket
- 2015-08-07 12:14:52,514 [CLITelnetSocket 10.11.3.143:23] Connecting 10.11.3.143:23
- 2015-08-07 12:14:52,569 [CLITelnetSocket 10.11.3.143:23] create_socket returns non-zero code 115[EINPROGRESS]
- 2015-08-07 12:14:52,593 [CLITelnetSocket 10.11.3.143:23] Connected
- 2015-08-07 12:14:52,596 [TELNET: 10.11.3.143] Received IAC WILL ECHO (251 1)
- 2015-08-07 12:14:52,596 [TELNET: 10.11.3.143] Sending IAC DO ECHO (253 1)
- 2015-08-07 12:14:52,598 [TELNET: 10.11.3.143] Received IAC WILL SGA (251 3)
- 2015-08-07 12:14:52,598 [TELNET: 10.11.3.143] Sending IAC DO SGA (253 3)
- 2015-08-07 12:14:52,636 [TELNET: 10.11.3.143] on_read: 'login:'
- 2015-08-07 12:14:52,636 [TELNET: 10.11.3.143] Starting synchronous FSM check
- 2015-08-07 12:14:52,636 [TELNET: 10.11.3.143] match '([Uu]ser ?[Nn]ame|[Ll]ogin):'
- 2015-08-07 12:14:52,636 [TELNET: 10.11.3.143] event(USERNAME)
- 2015-08-07 12:14:52,636 [TELNET: 10.11.3.143] ==> USERNAME
- 2015-08-07 12:14:52,636 [TELNET: 10.11.3.143] set_patterns([('[Pp]ass[Ww]ord:', 'PASSWORD'), ('^(?P<hostname>[a-zA-Z0-9]\\S{0,19})(?:[-_\\d\\w]+)?(?:\\(config[^\\)]*\\))?#', 'PROMPT')])
- 2015-08-07 12:14:52,636 [TELNET: 10.11.3.143] submit(u'djamal', bulk_lines=None, streaming=False)
- 2015-08-07 12:14:52,644 [TELNET: 10.11.3.143] on_read: 'd'
- 2015-08-07 12:14:52,691 [TELNET: 10.11.3.143] on_read: 'jamal'
- 2015-08-07 12:14:53,692 Tick
- 2015-08-07 12:14:53,692 Resetting wait ticks
- 2015-08-07 12:14:54,693 Tick
- 2015-08-07 12:14:54,694 Resetting wait ticks
- 2015-08-07 12:14:55,694 Tick
- 2015-08-07 12:14:55,695 Resetting wait ticks
- 2015-08-07 12:14:56,696 Tick
- 2015-08-07 12:14:56,696 Resetting wait ticks
- 2015-08-07 12:14:57,697 Tick
- 2015-08-07 12:14:57,697 Resetting wait ticks
- 2015-08-07 12:14:58,698 Tick
- 2015-08-07 12:14:58,699 Resetting wait ticks
- 2015-08-07 12:14:59,700 Tick
- 2015-08-07 12:14:59,700 Resetting wait ticks
- 2015-08-07 12:15:00,701 Tick
- 2015-08-07 12:15:00,701 Resetting wait ticks
- 2015-08-07 12:15:01,702 Tick
- 2015-08-07 12:15:01,703 Resetting wait ticks
- 2015-08-07 12:15:02,704 Tick
- 2015-08-07 12:15:02,704 Resetting wait ticks
- 2015-08-07 12:15:03,705 Tick
- 2015-08-07 12:15:03,705 Resetting wait ticks
- 2015-08-07 12:15:04,706 Tick
- 2015-08-07 12:15:04,707 Resetting wait ticks
- 2015-08-07 12:15:05,707 Tick
- 2015-08-07 12:15:05,707 Resetting wait ticks
- 2015-08-07 12:15:06,708 Tick
- 2015-08-07 12:15:06,708 Resetting wait ticks
- 2015-08-07 12:15:07,710 Tick
- 2015-08-07 12:15:07,710 Resetting wait ticks
- 2015-08-07 12:15:08,710 Tick
- 2015-08-07 12:15:08,711 Resetting wait ticks
- 2015-08-07 12:15:09,712 Tick
- 2015-08-07 12:15:09,712 Resetting wait ticks
- 2015-08-07 12:15:10,713 Tick
- 2015-08-07 12:15:10,713 Resetting wait ticks
- 2015-08-07 12:15:11,713 Tick
- 2015-08-07 12:15:11,713 Resetting wait ticks
- 2015-08-07 12:15:12,714 Tick
- 2015-08-07 12:15:12,715 Resetting wait ticks
- 2015-08-07 12:15:13,716 Tick
- 2015-08-07 12:15:13,716 Resetting wait ticks
- 2015-08-07 12:15:14,716 Tick
- 2015-08-07 12:15:14,716 Resetting wait ticks
- 2015-08-07 12:15:15,717 Tick
- 2015-08-07 12:15:15,717 Resetting wait ticks
- 2015-08-07 12:15:16,718 Tick
- 2015-08-07 12:15:16,719 Resetting wait ticks
- 2015-08-07 12:15:17,720 Tick
- 2015-08-07 12:15:17,720 Resetting wait ticks
- 2015-08-07 12:15:18,721 Tick
- 2015-08-07 12:15:18,721 Resetting wait ticks
- 2015-08-07 12:15:19,722 Tick
- 2015-08-07 12:15:19,723 Resetting wait ticks
- 2015-08-07 12:15:20,723 Tick
- 2015-08-07 12:15:20,724 Resetting wait ticks
- 2015-08-07 12:15:21,725 Tick
- 2015-08-07 12:15:21,725 Resetting wait ticks
- 2015-08-07 12:15:22,726 Tick
- 2015-08-07 12:15:22,726 Resetting wait ticks
- 2015-08-07 12:15:22,727 Closing stale socket CLITelnetSocket 10.11.3.143:23
- 2015-08-07 12:15:22,727 [CLITelnetSocket 10.11.3.143:23] Closing socket
- 2015-08-07 12:15:22,727 Unregister socket CLITelnetSocket 10.11.3.143:23
- 2015-08-07 12:15:22,737 Timed out
- 2015-08-07 12:15:22,737 Closing
- 2015-08-07 12:15:22,737 Requesting call: <bound method CLITelnetSocket.close of <CLITelnetSocket(0x7fbe3e71f310, 10.11.3.143:23, closing, stale)>>(*(), **{'flush': True})
- 2015-08-07 12:15:23,728 Tick
- 2015-08-07 12:15:23,729 Calling delayed <bound method CLITelnetSocket.close of <CLITelnetSocket(0x7fbe3e71f310, 10.11.3.143:23, closing, stale)>>(*(), **{'flush': True})
- 2015-08-07 12:15:23,729 3 TICKS TO EXIT
- 2015-08-07 12:15:24,730 Tick
- 2015-08-07 12:15:24,730 2 TICKS TO EXIT
- 2015-08-07 12:15:25,730 Tick
- 2015-08-07 12:15:25,731 1 TICKS TO EXIT
- 2015-08-07 12:15:26,732 Tick
- 2015-08-07 12:15:26,732 EXIT
- 2015-08-07 12:15:26,732 Shutting down the factory
- 2015-08-07 12:15:26,732 Metrics:
- noc.socketfactory.handle.closed_reads: 0
- noc.socketfactory.handle.reads: 5
- noc.socketfactory.handle.writes: 3
- noc.socketfactory.loops: 43
- noc.socketfactory.sockets.count: 0
- noc.socketfactory.sockets.register: 1
- noc.socketfactory.sockets.unregister: 0
- noc.socketfactory.ticks: 35
- 2015-08-07 12:15:26,732 0 TICKS TO EXIT
- 2015-08-07 12:15:26,732 Stopping socket factory
- root@ubuntu:/opt/noc#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement