Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@ubuntu:~# cd /opt/noc
- root@ubuntu:/opt/noc# ./noc debug-script commands 4_liniya_d28 "commands=['dir']"
- 2015-08-07 12:11:56,255 Using JSON library: cjson
- 2015-08-07 12:11:56,315 SSH: Using gmpy
- 2015-08-07 12:11:56,701 Connecting to MongoDB {'username': 'noc', 'password': '********', 'db': 'noc'}
- 2015-08-07 12:11:57,437 Connecting to MongoDB {'username': 'noc', 'password': '********', 'db': 'noc'}
- 2015-08-07 12:11:57,464 Loading PeriodicRegistry
- 2015-08-07 12:11:57,488 Registering MetricType
- 2015-08-07 12:11:57,495 Loading compiled MIBs
- 2015-08-07 12:11:57,495 Loading compiled MIBs from 'cmibs'
- 2015-08-07 12:11:57,495 Loading MIB: RFC1213-MIB
- 2015-08-07 12:11:57,495 Loading MIB: SNMPv2-MIB
- 2015-08-07 12:11:57,495 Loading MIB: IP-MIB
- 2015-08-07 12:11:57,495 Loading MIB: IF-MIB
- 2015-08-07 12:11:57,496 Loading MIB: CISCO-PPPOE-MIB
- 2015-08-07 12:11:57,496 Loading MIB: CISCO-VPDN-MGMT-MIB
- 2015-08-07 12:11:57,501 Configuring metric mappings sa.managedobject -> object.{{object.name|qm}}.{{metric_type|qm}}
- 2015-08-07 12:11:57,501 Configuring metric mappings inv.interface -> object.{{object.managed_object.name|qm}}.interface.{{object.name|qm}}.{{metric_type|qm}}
- 2015-08-07 12:11:57,503 Installing probe config watchers
- 2015-08-07 12:11:57,504 Loading DownloaderRegistry
- 2015-08-07 12:11:57,532 Loading ProfileRegistry
- 2015-08-07 12:11:58,206 Loading ScriptRegistry
- 2015-08-07 12:11:58,343 Adding FTS index for sa.managedobject
- 2015-08-07 12:11:58,350 Registering Capability
- 2015-08-07 12:11:58,369 Adding FTS index for ip.vrf
- 2015-08-07 12:11:58,375 Adding FTS index for vc.vc
- 2015-08-07 12:11:58,444 Adding FTS index for ip.prefix
- 2015-08-07 12:11:58,445 Adding FTS index for ip.address
- 2015-08-07 12:11:58,813 Setting up 'select' polling method
- 2015-08-07 12:11:58,843 Activating 'select' poller
- 2015-08-07 12:11:58,843 Loading private ssh key from 'etc/ssh/id_rsa'
- 2015-08-07 12:11:58,863 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:11:58,902 Running script thread
- 2015-08-07 12:11:58,903 Creating transaction id=1855868362 method=None callback=None
- 2015-08-07 12:11:58,903 Capabilities: {u'SNMP | IF-MIB': True, u'SNMP | Bulk': True, u'SNMP': True, u'SNMP | IF-MIB | HC': True}
- 2015-08-07 12:11:58,903 Running
- 2015-08-07 12:11:58,903 Running socket factory (SelectPoller)
- 2015-08-07 12:11:58,903 Running script: Generic.commands ({'ignore_cli_errors': False, 'commands': ['dir']}), timeout 120s
- 2015-08-07 12:11:58,904 cli(dir)
- 2015-08-07 12:11:58,904 Running new provider
- 2015-08-07 12:11:58,904 [TELNET: 10.11.3.143] ==> START
- 2015-08-07 12:11:58,904 [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:11:58,906 [TELNET: 10.11.3.143] Set FSM timeout to 30
- 2015-08-07 12:11:58,907 Register socket CLITelnetSocket 10.11.3.143:23 (None)
- 2015-08-07 12:11:59,904 Tick
- 2015-08-07 12:11:59,904 3 TICKS TO EXIT
- 2015-08-07 12:11:59,904 [TELNET: 10.11.3.143] Initializing socket
- 2015-08-07 12:11:59,905 [CLITelnetSocket 10.11.3.143:23] Connecting 10.11.3.143:23
- 2015-08-07 12:11:59,971 [CLITelnetSocket 10.11.3.143:23] create_socket returns non-zero code 115[EINPROGRESS]
- 2015-08-07 12:11:59,974 [CLITelnetSocket 10.11.3.143:23] Connected
- 2015-08-07 12:11:59,977 [TELNET: 10.11.3.143] Received IAC WILL ECHO (251 1)
- 2015-08-07 12:11:59,977 [TELNET: 10.11.3.143] Sending IAC DO ECHO (253 1)
- 2015-08-07 12:11:59,979 [TELNET: 10.11.3.143] Received IAC WILL SGA (251 3)
- 2015-08-07 12:11:59,979 [TELNET: 10.11.3.143] Sending IAC DO SGA (253 3)
- 2015-08-07 12:11:59,990 [TELNET: 10.11.3.143] on_read: 'login:'
- 2015-08-07 12:11:59,990 [TELNET: 10.11.3.143] Starting synchronous FSM check
- 2015-08-07 12:11:59,990 [TELNET: 10.11.3.143] match '([Uu]ser ?[Nn]ame|[Ll]ogin):'
- 2015-08-07 12:11:59,990 [TELNET: 10.11.3.143] event(USERNAME)
- 2015-08-07 12:11:59,990 [TELNET: 10.11.3.143] ==> USERNAME
- 2015-08-07 12:11:59,990 [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:11:59,990 [TELNET: 10.11.3.143] submit(u'djamal', bulk_lines=None, streaming=False)
- 2015-08-07 12:11:59,992 [TELNET: 10.11.3.143] on_read: 'd'
- 2015-08-07 12:12:00,032 [TELNET: 10.11.3.143] on_read: 'jamal'
- 2015-08-07 12:12:01,033 Tick
- 2015-08-07 12:12:01,033 Resetting wait ticks
- 2015-08-07 12:12:02,034 Tick
- 2015-08-07 12:12:02,034 Resetting wait ticks
- 2015-08-07 12:12:03,035 Tick
- 2015-08-07 12:12:03,035 Resetting wait ticks
- 2015-08-07 12:12:04,037 Tick
- 2015-08-07 12:12:04,037 Resetting wait ticks
- 2015-08-07 12:12:05,038 Tick
- 2015-08-07 12:12:05,038 Resetting wait ticks
- 2015-08-07 12:12:06,039 Tick
- 2015-08-07 12:12:06,039 Resetting wait ticks
- 2015-08-07 12:12:07,039 Tick
- 2015-08-07 12:12:07,040 Resetting wait ticks
- 2015-08-07 12:12:08,041 Tick
- 2015-08-07 12:12:08,041 Resetting wait ticks
- 2015-08-07 12:12:09,042 Tick
- 2015-08-07 12:12:09,042 Resetting wait ticks
- 2015-08-07 12:12:10,042 Tick
- 2015-08-07 12:12:10,043 Resetting wait ticks
- 2015-08-07 12:12:11,044 Tick
- 2015-08-07 12:12:11,044 Resetting wait ticks
- 2015-08-07 12:12:12,045 Tick
- 2015-08-07 12:12:12,045 Resetting wait ticks
- 2015-08-07 12:12:13,046 Tick
- 2015-08-07 12:12:13,046 Resetting wait ticks
- 2015-08-07 12:12:14,047 Tick
- 2015-08-07 12:12:14,047 Resetting wait ticks
- 2015-08-07 12:12:15,048 Tick
- 2015-08-07 12:12:15,048 Resetting wait ticks
- 2015-08-07 12:12:16,049 Tick
- 2015-08-07 12:12:16,049 Resetting wait ticks
- 2015-08-07 12:12:17,050 Tick
- 2015-08-07 12:12:17,051 Resetting wait ticks
- 2015-08-07 12:12:18,052 Tick
- 2015-08-07 12:12:18,052 Resetting wait ticks
- 2015-08-07 12:12:19,053 Tick
- 2015-08-07 12:12:19,053 Resetting wait ticks
- 2015-08-07 12:12:20,054 Tick
- 2015-08-07 12:12:20,055 Resetting wait ticks
- 2015-08-07 12:12:21,056 Tick
- 2015-08-07 12:12:21,056 Resetting wait ticks
- 2015-08-07 12:12:22,057 Tick
- 2015-08-07 12:12:22,057 Resetting wait ticks
- 2015-08-07 12:12:23,058 Tick
- 2015-08-07 12:12:23,059 Resetting wait ticks
- 2015-08-07 12:12:24,060 Tick
- 2015-08-07 12:12:24,060 Resetting wait ticks
- 2015-08-07 12:12:25,060 Tick
- 2015-08-07 12:12:25,060 Resetting wait ticks
- 2015-08-07 12:12:26,061 Tick
- 2015-08-07 12:12:26,061 Resetting wait ticks
- 2015-08-07 12:12:27,062 Tick
- 2015-08-07 12:12:27,062 Resetting wait ticks
- 2015-08-07 12:12:28,064 Tick
- 2015-08-07 12:12:28,064 Resetting wait ticks
- 2015-08-07 12:12:29,064 Tick
- 2015-08-07 12:12:29,064 Resetting wait ticks
- 2015-08-07 12:12:30,066 Tick
- 2015-08-07 12:12:30,066 Resetting wait ticks
- 2015-08-07 12:12:30,066 Closing stale socket CLITelnetSocket 10.11.3.143:23
- 2015-08-07 12:12:30,066 [CLITelnetSocket 10.11.3.143:23] Closing socket
- 2015-08-07 12:12:30,066 Unregister socket CLITelnetSocket 10.11.3.143:23
- 2015-08-07 12:12:30,089 Timed out
- 2015-08-07 12:12:30,089 Closing
- 2015-08-07 12:12:30,089 Requesting call: <bound method CLITelnetSocket.close of <CLITelnetSocket(0x7f824d9ecf90, 10.11.3.143:23, closing, stale)>>(*(), **{'flush': True})
- 2015-08-07 12:12:31,067 Tick
- 2015-08-07 12:12:31,067 Calling delayed <bound method CLITelnetSocket.close of <CLITelnetSocket(0x7f824d9ecf90, 10.11.3.143:23, closing, stale)>>(*(), **{'flush': True})
- 2015-08-07 12:12:31,067 3 TICKS TO EXIT
- 2015-08-07 12:12:32,068 Tick
- 2015-08-07 12:12:32,068 2 TICKS TO EXIT
- 2015-08-07 12:12:33,069 Tick
- 2015-08-07 12:12:33,070 1 TICKS TO EXIT
- 2015-08-07 12:12:34,070 Tick
- 2015-08-07 12:12:34,071 EXIT
- 2015-08-07 12:12:34,071 Shutting down the factory
- 2015-08-07 12:12:34,071 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:12:34,071 0 TICKS TO EXIT
- 2015-08-07 12:12:34,071 Stopping socket factory
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement