Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@noc:/opt/noc# ./noc debug-script get_vlans Core_6509-E
- 2015-02-20 14:14:20,237 Using JSON library: cjson
- 2015-02-20 14:14:20,243 SSH: Using gmpy
- 2015-02-20 14:14:20,360 Connecting to MongoDB {'username': 'noc', 'password': '********', 'db': 'noc'}
- 2015-02-20 14:14:20,424 Connecting to MongoDB {'username': 'noc', 'password': '********', 'db': 'noc'}
- 2015-02-20 14:14:20,432 Loading PeriodicRegistry
- 2015-02-20 14:14:20,438 Registering MetricType
- 2015-02-20 14:14:20,444 Loading compiled MIBs
- 2015-02-20 14:14:20,444 Loading compiled MIBs from 'cmibs'
- 2015-02-20 14:14:20,444 Loading MIB: IP-MIB
- 2015-02-20 14:14:20,444 Loading MIB: IF-MIB
- 2015-02-20 14:14:20,444 Loading MIB: CISCO-PPPOE-MIB
- 2015-02-20 14:14:20,444 Loading MIB: RFC1213-MIB
- 2015-02-20 14:14:20,445 Loading MIB: SNMPv2-MIB
- 2015-02-20 14:14:20,445 Loading MIB: CISCO-VPDN-MGMT-MIB
- 2015-02-20 14:14:20,448 Configuring metric mappings sa.managedobject -> object.{{object.name|qm}}.{{metric_type|qm}}
- 2015-02-20 14:14:20,448 Configuring metric mappings inv.interface -> object.{{object.managed_object.name|qm}}.interface.{{object.name|qm}}.{{metric_type|qm}}
- 2015-02-20 14:14:20,450 Loading DownloaderRegistry
- 2015-02-20 14:14:20,469 Loading ProfileRegistry
- 2015-02-20 14:14:20,869 Loading ScriptRegistry
- 2015-02-20 14:14:20,913 Adding FTS index for sa.managedobject
- 2015-02-20 14:14:20,923 Registering ConnectionType
- 2015-02-20 14:14:20,925 Registering ObjectModel
- 2015-02-20 14:14:20,926 Registering Capability
- 2015-02-20 14:14:20,931 Adding FTS index for vc.vc
- 2015-02-20 14:14:20,944 Adding FTS index for ip.vrf
- 2015-02-20 14:14:20,947 Adding FTS index for ip.prefix
- 2015-02-20 14:14:20,948 Adding FTS index for ip.address
- 2015-02-20 14:14:21,094 Setting up 'select' polling method
- 2015-02-20 14:14:21,094 Activating 'select' poller
- 2015-02-20 14:14:21,094 Loading private ssh key from 'etc/ssh/id_rsa'
- 2015-02-20 14:14:21,094 Loading public ssh key from 'etc/ssh/id_rsa.pub'
- access_profile {
- profile: "Cisco.IOS"
- scheme: SSH
- address: "10.1.1.1"
- port: 22
- user: "noc"
- password: "111"
- super_password: "111"
- attrs {
- key: "image"
- value: "s2t54-ADVIPSERVICESK9_NPE-M"
- }
- attrs {
- key: "platform"
- value: "s2t54"
- }
- attrs {
- key: "vendor"
- value: "Cisco"
- }
- attrs {
- key: "version"
- value: "15.0(1)SY6"
- }
- }
- object_name: "Core_6509-E"
- script: "Cisco.IOS.get_vlans"
- timeout: 120
- 2015-02-20 14:14:21,096 Running script thread
- 2015-02-20 14:14:21,096 Running socket factory (SelectPoller)
- 2015-02-20 14:14:21,098 Creating transaction id=1732536296 method=None callback=None
- 2015-02-20 14:14:21,098 Capabilities: {}
- 2015-02-20 14:14:21,099 [Cisco.IOS.get_vlans(Core_6509-E, 10.1.1.1)] Running
- 2015-02-20 14:14:21,099 Running script: Cisco.IOS.get_vlans ({}), timeout 120s
- 2015-02-20 14:14:21,099 Capabilities: {}
- 2015-02-20 14:14:21,099 Running script: Cisco.IOS.get_version ({}), timeout 120s
- 2015-02-20 14:14:21,099 Not in call cache: 'Cisco.IOS.get_version', {}
- 2015-02-20 14:14:21,099 [Cisco.IOS.get_version(Core_6509-E, 10.1.1.1)] cli(show version)
- 2015-02-20 14:14:21,099 [Cisco.IOS.get_vlans(Core_6509-E, 10.1.1.1)] Running new provider
- 2015-02-20 14:14:21,099 [CLISSHSocket(0x7f47f4617c90)]<None> ==> SSH_START
- 2015-02-20 14:14:21,100 [CLISSHSocket(0x7f47f4617c90)]<SSH_START> set_timeout(30)
- 2015-02-20 14:14:21,100 Register socket CLISSHSocket 10.1.1.1:22 (None)
- 2015-02-20 14:14:22,099 Tick
- 2015-02-20 14:14:22,099 3 TICKS TO EXIT
- 2015-02-20 14:14:22,099 [CLISSHSocket(0x7f47f4617c90)]<SSH_START> Initializing socket
- 2015-02-20 14:14:22,100 [CLISSHSocket 10.1.1.1:22] Connecting 10.1.1.1:22
- 2015-02-20 14:14:22,104 [CLISSHSocket 10.1.1.1:22] create_socket returns non-zero code 115[EINPROGRESS]
- 2015-02-20 14:14:22,148 [CLISSHSocket 10.1.1.1:22] Connected
- 2015-02-20 14:14:22,200 [CLISSHSocket(0x7f47f4617c90)]<SSH_START> event(SSH_VERSION)
- 2015-02-20 14:14:22,200 [CLISSHSocket(0x7f47f4617c90)]<SSH_START> ==> SSH_VERSION
- 2015-02-20 14:14:22,200 [CLISSHSocket 10.1.1.1:22] Remote protocol version 2.0, remote software version Cisco-1.25
- 2015-02-20 14:14:22,200 [CLISSHSocket(0x7f47f4617c90)]<SSH_VERSION> Setting SSH transforms to: in=none none, out=none none
- 2015-02-20 14:14:22,200 [CLISSHSocket(0x7f47f4617c90)]<SSH_VERSION> Setting SSH transform keys
- 2015-02-20 14:14:22,201 [CLISSHSocket 10.1.1.1:22] Sending message type MSG_KEXINIT (20)
- 2015-02-20 14:14:22,201 [CLISSHSocket(0x7f47f4617c90)]<SSH_VERSION> event(SSH_KEY_EXCHANGE)
- 2015-02-20 14:14:22,201 [CLISSHSocket(0x7f47f4617c90)]<SSH_VERSION> ==> SSH_KEY_EXCHANGE
- 2015-02-20 14:14:22,248 [CLISSHSocket 10.1.1.1:22] Receiving message type MSG_KEXINIT (20)
- 2015-02-20 14:14:22,248 [CLISSHSocket 10.1.1.1:22] Receiving server proposals: kex=['diffie-hellman-group1-sha1'] key=['ssh-rsa'] enc_cs=['aes128-cbc', '3des-cbc', 'aes192-cbc', 'aes256-cbc'] enc_sc=['aes128-cbc', '3des-cbc', 'aes192-cbc', 'aes256-cbc'] mac_cs=['hmac-sha1', 'hmac-sha1-96', 'hmac-md5', 'hmac-md5-96'] mac_sc=['hmac-sha1', 'hmac-sha1-96', 'hmac-md5', 'hmac-md5-96'] comp_cs=['none'] comp_sc['none']
- 2015-02-20 14:14:22,248 [CLISSHSocket(0x7f47f4617c90)]<SSH_KEY_EXCHANGE> Setting SSH transforms to: in=aes256-cbc hmac-sha1, out=aes256-cbc hmac-sha1
- 2015-02-20 14:14:22,248 [CLISSHSocket 10.1.1.1:22] Selecting diffie-hellman-group1-sha1 ssh-rsa, in=(aes256-cbc hmac-sha1 none) out=(aes256-cbc hmac-sha1 none)
- 2015-02-20 14:14:22,249 [CLISSHSocket 10.1.1.1:22] Sending message type MSG_KEX_DH_GEX_REQUEST_OLD (30)
- 2015-02-20 14:14:22,558 [CLISSHSocket 10.1.1.1:22] Receiving message type MSG_KEXDH_REPLY (31)
- 2015-02-20 14:14:22,558 [CLISSHSocket 10.1.1.1:22] Server PK fingerprint: a0:ea:da:00:28:4b:fb:d8:79:a1:11:67:d2:07:22:14
- 2015-02-20 14:14:22,559 [CLISSHSocket(0x7f47f4617c90)]<SSH_KEY_EXCHANGE> Setting SSH transform keys
- 2015-02-20 14:14:22,559 [CLISSHSocket 10.1.1.1:22] Sending message type MSG_NEWKEYS (21)
- 2015-02-20 14:14:22,559 [CLISSHSocket 10.1.1.1:22] Receiving message type MSG_NEWKEYS (21)
- 2015-02-20 14:14:22,560 [CLISSHSocket 10.1.1.1:22] Using new keys
- 2015-02-20 14:14:22,560 [CLISSHSocket(0x7f47f4617c90)]<SSH_KEY_EXCHANGE> event(SSH_AUTH)
- 2015-02-20 14:14:22,560 [CLISSHSocket(0x7f47f4617c90)]<SSH_KEY_EXCHANGE> ==> SSH_AUTH
- 2015-02-20 14:14:22,560 [CLISSHSocket 10.1.1.1:22] Requesting service ssh-userauth
- 2015-02-20 14:14:22,560 [CLISSHSocket 10.1.1.1:22] Sending message type MSG_SERVICE_REQUEST (5)
- 2015-02-20 14:14:22,806 [CLISSHSocket 10.1.1.1:22] Receiving message type MSG_SERVICE_ACCEPT (6)
- 2015-02-20 14:14:22,806 [CLISSHSocket 10.1.1.1:22] Starting service ssh-userauth
- 2015-02-20 14:14:22,806 [CLISSHSocket(0x7f47f4617c90)]<SSH_AUTH> event(SSH_AUTH_PASSWORD)
- 2015-02-20 14:14:22,806 [CLISSHSocket(0x7f47f4617c90)]<SSH_AUTH> ==> SSH_AUTH_PASSWORD
- 2015-02-20 14:14:22,806 [CLISSHSocket 10.1.1.1:22] Authenticating with 'none' method
- 2015-02-20 14:14:22,806 [CLISSHSocket 10.1.1.1:22] Sending message type MSG_USERAUTH_REQUEST (50)
- 2015-02-20 14:14:22,856 [CLISSHSocket 10.1.1.1:22] Receiving message type MSG_USERAUTH_FAILURE (51)
- 2015-02-20 14:14:22,856 [CLISSHSocket 10.1.1.1:22] Authentication method 'none' has been failed. Trying next method (keyboard-interactive,password)
- 2015-02-20 14:14:22,856 [CLISSHSocket 10.1.1.1:22] Partially authenticated with 'none'. Trying next method
- 2015-02-20 14:14:22,856 [CLISSHSocket 10.1.1.1:22] Authenticating with 'password' method
- 2015-02-20 14:14:22,856 [CLISSHSocket 10.1.1.1:22] Sending message type MSG_USERAUTH_REQUEST (50)
- 2015-02-20 14:14:22,964 [CLISSHSocket 10.1.1.1:22] Receiving message type MSG_USERAUTH_SUCCESS (52)
- 2015-02-20 14:14:22,964 [CLISSHSocket(0x7f47f4617c90)]<SSH_AUTH_PASSWORD> event(SSH_CHANNEL)
- 2015-02-20 14:14:22,964 [CLISSHSocket(0x7f47f4617c90)]<SSH_AUTH_PASSWORD> ==> SSH_CHANNEL
- 2015-02-20 14:14:22,965 [CLISSHSocket 10.1.1.1:22] Sending message type MSG_CHANNEL_OPEN (90)
- 2015-02-20 14:14:22,965 [CLISSHSocket 10.1.1.1:22] Receiving message type MSG_CHANNEL_OPEN_CONFIRMATION (91)
- 2015-02-20 14:14:22,965 [CLISSHSocket 10.1.1.1:22] Opening channel. local=0 remote=3
- 2015-02-20 14:14:22,966 [CLISSHSocket(0x7f47f4617c90)]<SSH_CHANNEL> event(SSH_PTY)
- 2015-02-20 14:14:22,966 [CLISSHSocket(0x7f47f4617c90)]<SSH_CHANNEL> ==> SSH_PTY
- 2015-02-20 14:14:22,966 [CLISSHSocket 10.1.1.1:22] Requesting PTY
- 2015-02-20 14:14:22,966 [CLISSHSocket 10.1.1.1:22] Sending message type MSG_CHANNEL_REQUEST (98)
- 2015-02-20 14:14:22,967 [CLISSHSocket 10.1.1.1:22] Receiving message type MSG_CHANNEL_SUCCESS (99)
- 2015-02-20 14:14:22,967 [CLISSHSocket(0x7f47f4617c90)]<SSH_PTY> event(SSH_SHELL)
- 2015-02-20 14:14:22,967 [CLISSHSocket(0x7f47f4617c90)]<SSH_PTY> ==> SSH_SHELL
- 2015-02-20 14:14:22,967 [CLISSHSocket 10.1.1.1:22] Requesting shell
- 2015-02-20 14:14:22,967 [CLISSHSocket 10.1.1.1:22] Sending message type MSG_CHANNEL_REQUEST (98)
- 2015-02-20 14:14:22,968 [CLISSHSocket 10.1.1.1:22] Receiving message type MSG_CHANNEL_SUCCESS (99)
- 2015-02-20 14:14:22,968 [CLISSHSocket(0x7f47f4617c90)]<SSH_SHELL> event(START)
- 2015-02-20 14:14:22,968 [CLISSHSocket(0x7f47f4617c90)]<SSH_SHELL> ==> START
- 2015-02-20 14:14:22,968 [CLISSHSocket(0x7f47f4617c90)]<START> set_patterns([('([Uu]sername|[Ll]ogin):', 'USERNAME'), ('[Pp]assword:', 'PASSWORD'), ('^\\S+?>', 'UNPRIVELEGED_PROMPT'), ('^(?P<hostname>[a-zA-Z0-9]\\S{0,19})(?:[-_\\d\\w]+)?(?:\\(config[^\\)]*\\))?#', 'PROMPT'), ('(^ --More--)|(\\?\\s*\\[confirm\\])', 'PAGER')])
- 2015-02-20 14:14:22,970 [CLISSHSocket(0x7f47f4617c90)]<START> on_read: '\r\nCore-WS-C6509-E#'
- 2015-02-20 14:14:22,970 [CLISSHSocket(0x7f47f4617c90)]<START> Starting synchronous FSM check
- 2015-02-20 14:14:22,970 [CLISSHSocket(0x7f47f4617c90)]<START> match '^(?P<hostname>[a-zA-Z0-9]\S{0,19})(?:[-_\d\w]+)?(?:\(config[^\)]*\))?#'
- 2015-02-20 14:14:22,970 [CLISSHSocket(0x7f47f4617c90)]<START> event(PROMPT)
- 2015-02-20 14:14:22,970 [CLISSHSocket(0x7f47f4617c90)]<START> ==> PROMPT
- 2015-02-20 14:14:22,970 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_PROMPT_enter
- 2015-02-20 14:14:22,970 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> Using prompt pattern: ^Core\-WS\-C6509\-E(?:[-_\d\w]+)?(?:\(config[^\)]*\))?#
- 2015-02-20 14:14:22,971 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> set_patterns([('^Core\\-WS\\-C6509\\-E(?:[-_\\d\\w]+)?(?:\\(config[^\\)]*\\))?#', 'PROMPT'), ('(^ --More--)|(\\?\\s*\\[confirm\\])', 'PAGER')])
- 2015-02-20 14:14:23,020 [Cisco.IOS.get_vlans(Core_6509-E, 10.1.1.1)] CLI Provider is ready
- 2015-02-20 14:14:23,020 [Cisco.IOS.get_vlans(Core_6509-E, 10.1.1.1)] Setting up session
- 2015-02-20 14:14:23,020 [Cisco.IOS.get_vlans(Core_6509-E, 10.1.1.1)] Disable paging
- 2015-02-20 14:14:23,020 [Cisco.IOS.get_vlans(Core_6509-E, 10.1.1.1)] cli(terminal length 0)
- 2015-02-20 14:14:23,020 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> submit('terminal length 0', bulk_lines=None, streaming=False)
- 2015-02-20 14:14:23,020 [CLISSHSocket 10.1.1.1:22] Sending message type MSG_CHANNEL_DATA (94)
- 2015-02-20 14:14:23,021 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: 't'
- 2015-02-20 14:14:23,021 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: 'e'
- 2015-02-20 14:14:23,022 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: 'r'
- 2015-02-20 14:14:23,022 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: 'm'
- 2015-02-20 14:14:23,022 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: 'i'
- 2015-02-20 14:14:23,022 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: 'n'
- 2015-02-20 14:14:23,022 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: 'a'
- 2015-02-20 14:14:23,023 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: 'l'
- 2015-02-20 14:14:23,023 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: ' '
- 2015-02-20 14:14:23,023 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: 'l'
- 2015-02-20 14:14:23,023 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: 'e'
- 2015-02-20 14:14:23,023 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: 'n'
- 2015-02-20 14:14:23,023 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: 'g'
- 2015-02-20 14:14:23,024 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: 't'
- 2015-02-20 14:14:23,024 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: 'h'
- 2015-02-20 14:14:23,024 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: ' '
- 2015-02-20 14:14:23,024 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: '0'
- 2015-02-20 14:14:23,024 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: '\r\n'
- 2015-02-20 14:14:23,223 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: 'Command authorization failed.\r\n\r\nCore-WS-C6509-E#'
- 2015-02-20 14:14:23,223 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> Starting synchronous FSM check
- 2015-02-20 14:14:23,223 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> match '^Core\-WS\-C6509\-E(?:[-_\d\w]+)?(?:\(config[^\)]*\))?#'
- 2015-02-20 14:14:23,223 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> Starting synchronous FSM check
- 2015-02-20 14:14:23,223 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> event(PROMPT)
- 2015-02-20 14:14:23,223 Tick
- 2015-02-20 14:14:23,223 Resetting wait ticks
- 2015-02-20 14:14:23,235 [Cisco.IOS.get_vlans(Core_6509-E, 10.1.1.1)] cli(terminal length 0) returns:
- ===[ terminal length 0 ]================================================
- 'Command authorization failed.\n\n'
- ========================================================================
- 2015-02-20 14:14:23,235 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> submit('show version', bulk_lines=None, streaming=False)
- 2015-02-20 14:14:23,235 [CLISSHSocket 10.1.1.1:22] Sending message type MSG_CHANNEL_DATA (94)
- 2015-02-20 14:14:23,236 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: 's'
- 2015-02-20 14:14:23,236 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: 'h'
- 2015-02-20 14:14:23,236 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: 'o'
- 2015-02-20 14:14:23,236 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: 'w'
- 2015-02-20 14:14:23,236 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: ' '
- 2015-02-20 14:14:23,237 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: 'v'
- 2015-02-20 14:14:23,237 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: 'e'
- 2015-02-20 14:14:23,237 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: 'r'
- 2015-02-20 14:14:23,237 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: 's'
- 2015-02-20 14:14:23,237 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: 'i'
- 2015-02-20 14:14:23,238 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: 'o'
- 2015-02-20 14:14:23,238 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: 'n'
- 2015-02-20 14:14:23,238 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: '\r\n'
- 2015-02-20 14:14:23,436 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: 'Cisco IOS Software, s2t54 Software (s2t54-ADVIPSERVICESK9_NPE-M), Version 15.0(1)SY6, RELEASE SOFTWARE (fc4)\r\nTechnical Support: http://www.cisco.com/techsupport\r\nCopyright (c) 1986-2014 by Cisco Systems, Inc.\r\nCompiled Sat 01-Feb-14 04:46 by prod_rel_team\r\n\r\nROM: System Bootstrap, Version 12.2(50r)SYS2, RELEASE SOFTWARE (fc1)\r\n\r\n Core-WS-C6509-E uptime is 30 weeks, 5 days, 14 hours, 29 minutes\r\nUptime for this control processor is 30 weeks, 5 days, 14 hours, 25 minutes\r\nSystem returned to ROM by s/w reset\r\nSystem restarted at 23:45:04 MSK Sat Jul 19 2014\r\nSystem image file is "bootdisk:s2t54-advipservicesk9_npe-mz.SPA.150-1.SY6.bin"\r\nLast reload reason: Reload Command\r\n\r\n\r\n\r\nThis product contains cryptographic features and is subject to United\r\nStates and local country laws governing import, export, transfer and\r\nuse. Delivery of Cisco cryptographic products does not imply\r\nthird-party authority to import, export, distribute or use encryption.\r\nImporters, exporters, distributors and users are responsible for\r\ncompliance with U.S. and local country laws. By using this product you\r\nagree to comply with applicable laws and regulations. If you are unable\r\n --More-- '
- 2015-02-20 14:14:23,436 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> Starting synchronous FSM check
- 2015-02-20 14:14:23,436 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> match '(^ --More--)|(\?\s*\[confirm\])'
- 2015-02-20 14:14:23,436 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> Starting synchronous FSM check
- 2015-02-20 14:14:23,436 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> event(PAGER)
- 2015-02-20 14:14:23,437 [CLISSHSocket 10.1.1.1:22] Sending message type MSG_CHANNEL_DATA (94)
- 2015-02-20 14:14:23,438 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: '\x08\x08\x08\x08\x08\x08\x08\x08\x08 \x08\x08\x08\x08\x08\x08\x08\x08\x08\r\nCore-WS-C6509-E#'
- 2015-02-20 14:14:23,438 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> Starting synchronous FSM check
- 2015-02-20 14:14:23,438 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> match '^Core\-WS\-C6509\-E(?:[-_\d\w]+)?(?:\(config[^\)]*\))?#'
- 2015-02-20 14:14:23,438 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> Starting synchronous FSM check
- 2015-02-20 14:14:23,438 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> event(PROMPT)
- 2015-02-20 14:14:23,449 [Cisco.IOS.get_version(Core_6509-E, 10.1.1.1)] cli(show version) returns:
- ===[ show version ]=====================================================
- 'Cisco IOS Software, s2t54 Software (s2t54-ADVIPSERVICESK9_NPE-M), Version 15.0(1)SY6, RELEASE SOFTWARE (fc4)\nTechnical Support: http://www.cisco.com/techsupport\nCopyright (c) 1986-2014 by Cisco Systems, Inc.\nCompiled Sat 01-Feb-14 04:46 by prod_rel_team\n\nROM: System Bootstrap, Version 12.2(50r)SYS2, RELEASE SOFTWARE (fc1)\n\n Core-WS-C6509-E uptime is 30 weeks, 5 days, 14 hours, 29 minutes\nUptime for this control processor is 30 weeks, 5 days, 14 hours, 25 minutes\nSystem returned to ROM by s/w reset\nSystem restarted at 23:45:04 MSK Sat Jul 19 2014\nSystem image file is "bootdisk:s2t54-advipservicesk9_npe-mz.SPA.150-1.SY6.bin"\nLast reload reason: Reload Command\n\n\n\nThis product contains cryptographic features and is subject to United\nStates and local country laws governing import, export, transfer and\nuse. Delivery of Cisco cryptographic products does not imply\nthird-party authority to import, export, distribute or use encryption.\nImporters, exporters, distributors and users are responsible for\ncompliance with U.S. and local country laws. By using this product you\nagree to comply with applicable laws and regulations. If you are unable\n\n'
- ========================================================================
- 2015-02-20 14:14:23,449 Write to call cache: Cisco.IOS.get_version, {}, {'platform': 's2t54', 'version': '15.0(1)SY6', 'vendor': 'Cisco', 'attributes': {'image': 's2t54-ADVIPSERVICESK9_NPE-M'}}
- 2015-02-20 14:14:23,449 Script returns with result: {'platform': 's2t54', 'version': '15.0(1)SY6', 'vendor': 'Cisco', 'attributes': {'image': 's2t54-ADVIPSERVICESK9_NPE-M'}} (2350.31ms)
- 2015-02-20 14:14:23,449 [Cisco.IOS.get_vlans(Core_6509-E, 10.1.1.1)] cli(show vlan brief)
- 2015-02-20 14:14:23,449 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> submit('show vlan brief', bulk_lines=None, streaming=False)
- 2015-02-20 14:14:23,450 [CLISSHSocket 10.1.1.1:22] Sending message type MSG_CHANNEL_DATA (94)
- 2015-02-20 14:14:23,450 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: 's'
- 2015-02-20 14:14:23,450 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: 'h'
- 2015-02-20 14:14:23,451 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: 'o'
- 2015-02-20 14:14:23,451 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: 'w'
- 2015-02-20 14:14:23,451 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: ' '
- 2015-02-20 14:14:23,451 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: 'v'
- 2015-02-20 14:14:23,451 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: 'l'
- 2015-02-20 14:14:23,451 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: 'a'
- 2015-02-20 14:14:23,452 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: 'n'
- 2015-02-20 14:14:23,452 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: ' '
- 2015-02-20 14:14:23,452 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: 'b'
- 2015-02-20 14:14:23,452 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: 'r'
- 2015-02-20 14:14:23,452 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: 'i'
- 2015-02-20 14:14:23,452 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: 'e'
- 2015-02-20 14:14:23,453 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: 'f'
- 2015-02-20 14:14:23,453 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: '\r\n'
- 2015-02-20 14:14:23,672 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: '\r\nVLAN Name Status Ports\r\n---- -------------------------------- --------- -------------------------------\r\n1 default active Gi1/20\r\n2 VLAN0002 active \r\n10 VLAN0010 active \r\n11 VLAN0011 active \r\n22 VLAN0022 active \r\n70 VLAN0070 active \r\n71 VLAN0071 active \r\n72 VLAN0072 active Gi1/22\r\n73 VLAN0073 active Gi1/23\r\n77 VLAN0077 active \r\n78 VLAN0078 active \r\n80 VLAN0080 active \r\n81 VLAN0081 active \r\n100 VLAN0100 active \r\n101 VLAN0101 active \r\n102 VLAN0102 active \r\n103 VLAN0103 active \r\n104 VLAN0104 active \r\n105 VLAN0105 active \r\n107 VLAN0107 active \r\n111 VLAN0111 active Gi1/19\r\n --More-- '
- 2015-02-20 14:14:23,672 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> Starting synchronous FSM check
- 2015-02-20 14:14:23,672 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> match '(^ --More--)|(\?\s*\[confirm\])'
- 2015-02-20 14:14:23,672 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> Starting synchronous FSM check
- 2015-02-20 14:14:23,672 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> event(PAGER)
- 2015-02-20 14:14:23,672 [CLISSHSocket 10.1.1.1:22] Sending message type MSG_CHANNEL_DATA (94)
- 2015-02-20 14:14:23,674 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: '\x08\x08\x08\x08\x08\x08\x08\x08\x08 \x08\x08\x08\x08\x08\x08\x08\x08\x08\r\nCore-WS-C6509-E#'
- 2015-02-20 14:14:23,674 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> Starting synchronous FSM check
- 2015-02-20 14:14:23,675 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> match '^Core\-WS\-C6509\-E(?:[-_\d\w]+)?(?:\(config[^\)]*\))?#'
- 2015-02-20 14:14:23,675 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> Starting synchronous FSM check
- 2015-02-20 14:14:23,675 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> event(PROMPT)
- 2015-02-20 14:14:23,714 [Cisco.IOS.get_vlans(Core_6509-E, 10.1.1.1)] cli(show vlan brief) returns:
- ===[ show vlan brief ]==================================================
- '\nVLAN Name Status Ports\n---- -------------------------------- --------- -------------------------------\n1 default active Gi1/20\n2 VLAN0002 active \n10 VLAN0010 active \n11 VLAN0011 active \n22 VLAN0022 active \n70 VLAN0070 active \n71 VLAN0071 active \n72 VLAN0072 active Gi1/22\n73 VLAN0073 active Gi1/23\n77 VLAN0077 active \n78 VLAN0078 active \n80 VLAN0080 active \n81 VLAN0081 active \n100 VLAN0100 active \n101 VLAN0101 active \n102 VLAN0102 active \n103 VLAN0103 active \n104 VLAN0104 active \n105 VLAN0105 active \n107 VLAN0107 active \n111 VLAN0111 active Gi1/19\n\n'
- ========================================================================
- 2015-02-20 14:14:23,714 Script returns with result: [{'name': 'default', 'vlan_id': 1}, {'name': 'VLAN0002', 'vlan_id': 2}, {'name': 'VLAN0010', 'vlan_id': 10}, {'name': 'VLAN0011', 'vlan_id': 11}, {'name': 'VLAN0022', 'vlan_id': 22}, {'name': 'VLAN0070', 'vlan_id': 70}, {'name': 'VLAN0071', 'vlan_id': 71}, {'name': 'VLAN0072', 'vlan_id': 72}, {'name': 'VLAN0073', 'vlan_id': 73}, {'name': 'VLAN0077', 'vlan_id': 77}, {'name': 'VLAN0078', 'vlan_id': 78}, {'name': 'VLAN0080', 'vlan_id': 80}, {'name': 'VLAN0081', 'vlan_id': 81}, {'name': 'VLAN0100', 'vlan_id': 100}, {'name': 'VLAN0101', 'vlan_id': 101}, {'name': 'VLAN0102', 'vlan_id': 102}, {'name': 'VLAN0103', 'vlan_id': 103}, {'name': 'VLAN0104', 'vlan_id': 104}, {'name': 'VLAN0105', 'vlan_id': 105}, {'name': 'VLAN0107', 'vlan_id': 107}, {'name': 'VLAN0111', 'vlan_id': 111}] (2615.39ms)
- 2015-02-20 14:14:23,714 [Cisco.IOS.get_vlans(Core_6509-E, 10.1.1.1)] Exiting
- 2015-02-20 14:14:23,714 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> submit('exit', bulk_lines=None, streaming=False)
- 2015-02-20 14:14:23,715 [CLISSHSocket 10.1.1.1:22] Sending message type MSG_CHANNEL_DATA (94)
- 2015-02-20 14:14:23,715 [Cisco.IOS.get_vlans(Core_6509-E, 10.1.1.1)] Closing
- 2015-02-20 14:14:23,715 Requesting call: <bound method CLISSHSocket.close of <CLISSHSocket(0x7f47f4617c90, 10.1.1.1:22, connected)>>(*(), **{'flush': True})
- 2015-02-20 14:14:24,044 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: 'e'
- 2015-02-20 14:14:24,044 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: 'x'
- 2015-02-20 14:14:24,044 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: 'i'
- 2015-02-20 14:14:24,044 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: 't'
- 2015-02-20 14:14:24,045 [CLISSHSocket(0x7f47f4617c90)]<PROMPT> on_read: '\r\n'
- 2015-02-20 14:14:24,142 [CLISSHSocket 10.1.1.1:22] Receiving message type MSG_CHANNEL_REQUEST (98)
- 2015-02-20 14:14:24,143 [CLISSHSocket 10.1.1.1:22] Receiving message type MSG_CHANNEL_EOF (96)
- 2015-02-20 14:14:24,143 [CLISSHSocket 10.1.1.1:22] Receiving message type MSG_CHANNEL_CLOSE (97)
- 2015-02-20 14:14:24,143 [CLISSHSocket 10.1.1.1:22] Sending message type MSG_CHANNEL_CLOSE (97)
- 2015-02-20 14:14:24,143 [CLISSHSocket 10.1.1.1:22] Closing socket
- 2015-02-20 14:14:24,143 Unregister socket CLISSHSocket 10.1.1.1:22
- 2015-02-20 14:14:25,144 Tick
- 2015-02-20 14:14:25,145 Calling delayed <bound method CLISSHSocket.close of <CLISSHSocket(0x7f47f4617c90, 10.1.1.1:22, closing)>>(*(), **{'flush': True})
- 2015-02-20 14:14:25,145 3 TICKS TO EXIT
- 2015-02-20 14:14:26,146 Tick
- 2015-02-20 14:14:26,146 2 TICKS TO EXIT
- 2015-02-20 14:14:27,147 Tick
- 2015-02-20 14:14:27,148 1 TICKS TO EXIT
- 2015-02-20 14:14:28,149 Tick
- 2015-02-20 14:14:28,149 EXIT
- 2015-02-20 14:14:28,151 SCRIPT RESULT: Cisco.IOS.get_vlans(Core_6509-E, 10.1.1.1)
- [{'name': 'default', 'vlan_id': 1},
- {'name': 'VLAN0002', 'vlan_id': 2},
- {'name': 'VLAN0010', 'vlan_id': 10},
- {'name': 'VLAN0011', 'vlan_id': 11},
- {'name': 'VLAN0022', 'vlan_id': 22},
- {'name': 'VLAN0070', 'vlan_id': 70},
- {'name': 'VLAN0071', 'vlan_id': 71},
- {'name': 'VLAN0072', 'vlan_id': 72},
- {'name': 'VLAN0073', 'vlan_id': 73},
- {'name': 'VLAN0077', 'vlan_id': 77},
- {'name': 'VLAN0078', 'vlan_id': 78},
- {'name': 'VLAN0080', 'vlan_id': 80},
- {'name': 'VLAN0081', 'vlan_id': 81},
- {'name': 'VLAN0100', 'vlan_id': 100},
- {'name': 'VLAN0101', 'vlan_id': 101},
- {'name': 'VLAN0102', 'vlan_id': 102},
- {'name': 'VLAN0103', 'vlan_id': 103},
- {'name': 'VLAN0104', 'vlan_id': 104},
- {'name': 'VLAN0105', 'vlan_id': 105},
- {'name': 'VLAN0107', 'vlan_id': 107},
- {'name': 'VLAN0111', 'vlan_id': 111}]
- 2015-02-20 14:14:28,151 Shutting down the factory
- 2015-02-20 14:14:28,151 Metrics:
- noc.socketfactory.handle.closed_reads: 0
- noc.socketfactory.handle.reads: 38
- noc.socketfactory.handle.writes: 1
- noc.socketfactory.loops: 44
- noc.socketfactory.sockets.count: 0
- noc.socketfactory.sockets.register: 1
- noc.socketfactory.sockets.unregister: 0
- noc.socketfactory.ticks: 6
- 2015-02-20 14:14:28,151 0 TICKS TO EXIT
- 2015-02-20 14:14:28,151 Stopping socket factory
Advertisement
Add Comment
Please, Sign In to add comment