Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Switch-UzelSvyzi#sh lldp neighbors Gi1/0/4 d
- ------------------------------------------------
- Local Intf: Gi1/0/4
- Chassis id: IW-224053
- Port id: 0004.3503.6b35
- Port Description: eth0, CPS-WBS-4
- System Name: CPS-WBS-4
- System Description:
- Infinet Wireless R5000 WANFleX H08S01-MINTv1.90.29
- Time remaining: 169 seconds
- System Capabilities: P,B,R
- Enabled Capabilities: P,B,R
- Management Addresses:
- IP: 10.10.20.1
- OID:
- 1.3.6.1.2.1.1.7.0.
- Auto Negotiation - not supported
- Physical media capabilities - not advertised
- Media Attachment Unit type - not advertised
- Vlan ID: - not advertised
- Total entries displayed: 1
- root@Node1:/opt/noc# ./noc script --debug --pretty get_fqdn "CPS-UzelSvyzi"
- 2018-04-24 09:03:35,767 [noc.core.dcs.base] Resolve near service postgres
- 2018-04-24 09:03:35,767 [noc.core.http.client] HTTP GET http://consul:8500/v1/health/service/postgres?passing=1&near=_agent
- 2018-04-24 09:03:35,770 [noc.core.http.client] HTTP Response 200
- 2018-04-24 09:03:35,771 [noc.core.dcs.base] Resolved near service postgres to ['10.220.21.122:5432']
- 2018-04-24 09:03:36,754 [noc.core.dcs.base] Running resolver for service mongo
- 2018-04-24 09:03:36,755 [noc.core.dcs.base] [mongo] Starting resolver
- 2018-04-24 09:03:36,755 [noc.core.http.client] HTTP GET http://consul:8500/v1/health/service/mongo?passing=1
- 2018-04-24 09:03:36,756 [noc.core.http.client] HTTP Response 200
- 2018-04-24 09:03:36,756 [noc.core.dcs.base] [mongo] Set active services to: mongo: 10.220.21.122:27017
- 2018-04-24 09:03:36,757 [noc.core.http.client] HTTP GET http://consul:8500/v1/health/service/mongo?index=2013682&passing=1
- 2018-04-24 09:03:36,758 [noc.lib.nosql] Connecting to MongoDB {'username': 'noc', 'authentication_source': 'noc', 'readPreference': 'secondaryPreferred', 'replicaSet': 'noc', 'db': 'noc', 'socketKeepAlive': True, 'host': 'mongodb://noc:********@10.220.21.122:27017/noc', 'password': '********'}
- 2018-04-24 09:03:36,824 [noc.core.cache.base] Using cache backend: noc.core.cache.mongo.MongoCache
- 2018-04-24 09:03:36,902 [noc.main.models.doccategory] Registering Capability
- 2018-04-24 09:03:36,903 [noc.main.models.doccategory] Registering MetricType
- 2018-04-24 09:03:36,937 [noc.main.models.doccategory] Registering ConnectionType
- 2018-04-24 09:03:36,941 [noc.main.models.doccategory] Registering ObjectModel
- 2018-04-24 09:03:36,950 [noc.main.models.textindex] Adding FTS index for sa.managedobject
- 2018-04-24 09:03:36,966 [noc.main.models.textindex] Adding FTS index for ip.vrf
- 2018-04-24 09:03:36,969 [noc.main.models.textindex] Adding FTS index for vc.vc
- 2018-04-24 09:03:36,973 [noc.main.models.textindex] Adding FTS index for ip.prefix
- 2018-04-24 09:03:36,977 [noc.main.models.textindex] Adding FTS index for ip.address
- 2018-04-24 09:03:37,030 [noc.core.script.loader] Loading script Cisco.IOS.get_fqdn
- 2018-04-24 09:03:37,329 [noc.core.profile.loader] Loading profile Cisco.IOS
- 2018-04-24 09:03:37,329 [script] [Cisco.IOS.get_fqdn|10.20.52.51] Filling get_version cache with {'platform': u'WS-C2960X-48LPD-L', 'version': u'15.2(2)E6', 'vendor': u'Cisco Systems'}
- 2018-04-24 09:03:37,329 [script] [Cisco.IOS.get_fqdn|10.20.52.51] Running. Input arguments: {}, timeout 3600
- 2018-04-24 09:03:37,329 [script] [Cisco.IOS.get_fqdn|10.20.52.51] [snmp] Creating IOLoop
- 2018-04-24 09:03:37,330 [script] [Cisco.IOS.get_fqdn|10.20.52.51] [snmp] Create UDP socket
- 2018-04-24 09:03:37,330 [noc.core.ioloop.snmp] [10.20.52.51] SNMP GET ['1.3.6.1.2.1.1.5.0']
- 2018-04-24 09:03:47,361 [script] [Cisco.IOS.get_fqdn|10.20.52.51] Open ssh CLI
- 2018-04-24 09:03:47,564 [script] [Cisco.IOS.get_fqdn|10.20.52.51] [ssh] Setup session
- 2018-04-24 09:03:47,564 [script] [Cisco.IOS.get_fqdn|10.20.52.51] Disable paging
- 2018-04-24 09:03:47,564 [script] [Cisco.IOS.get_fqdn|10.20.52.51] [ssh] Creating IOLoop
- 2018-04-24 09:03:47,564 [script] [Cisco.IOS.get_fqdn|10.20.52.51] [ssh] Connecting (u'10.20.52.51', 22)
- 2018-04-24 09:03:47,652 [script] [Cisco.IOS.get_fqdn|10.20.52.51] [ssh] Connected
- 2018-04-24 09:03:47,652 [script] [Cisco.IOS.get_fqdn|10.20.52.51] [ssh] Startup ssh session for user 'noc'
- 2018-04-24 09:03:48,597 [script] [Cisco.IOS.get_fqdn|10.20.52.51] [ssh] Connected. Host fingerprint is c3155f1235895b83e93764b0d145ec23eb132c79
- 2018-04-24 09:03:48,685 [script] [Cisco.IOS.get_fqdn|10.20.52.51] [ssh] Supported authentication methods: publickey, keyboard-interactive, password
- 2018-04-24 09:03:48,686 [script] [Cisco.IOS.get_fqdn|10.20.52.51] [ssh] Trying publickey authentication
- 2018-04-24 09:03:48,686 [script] [Cisco.IOS.get_fqdn|10.20.52.51] [ssh] public_key=etc/noc_ssh/id_rsa.pub private_key=etc/noc_ssh/id_rsa
- 2018-04-24 09:03:48,686 [script] [Cisco.IOS.get_fqdn|10.20.52.51] [ssh] Failed: Unable to open public key file (Code: -16)
- 2018-04-24 09:03:48,686 [script] [Cisco.IOS.get_fqdn|10.20.52.51] [ssh] Trying keyboard-interactive
- 2018-04-24 09:03:48,861 [script] [Cisco.IOS.get_fqdn|10.20.52.51] [ssh] Success
- 2018-04-24 09:03:48,861 [script] [Cisco.IOS.get_fqdn|10.20.52.51] [ssh] User is authenticated
- 2018-04-24 09:03:48,861 [script] [Cisco.IOS.get_fqdn|10.20.52.51] [ssh] Open channel
- 2018-04-24 09:03:49,116 [script] [Cisco.IOS.get_fqdn|10.20.52.51] [ssh] State: <START>
- 2018-04-24 09:03:49,117 [script] [Cisco.IOS.get_fqdn|10.20.52.51] [ssh] Setting timeout: 60s
- 2018-04-24 09:03:49,119 [script] [Cisco.IOS.get_fqdn|10.20.52.51] [ssh] Received: '\r\nSwitch-UzelSvyzi#'
- 2018-04-24 09:03:49,119 [script] [Cisco.IOS.get_fqdn|10.20.52.51] [ssh] Match: ^(?P<hostname>[a-zA-Z0-9/.]\S{0,35})(?:[-_\d\w]+)?(?:\(config[^\)]*\))?#
- 2018-04-24 09:03:49,119 [script] [Cisco.IOS.get_fqdn|10.20.52.51] [ssh] State: <PROMT>
- 2018-04-24 09:03:49,119 [script] [Cisco.IOS.get_fqdn|10.20.52.51] [ssh] Refining pattern prompt to '^Switch\\-UzelSvyzi(?:[-_\\d\\w]+)?(?:\\(config[^\\)]*\\))?#'
- 2018-04-24 09:03:49,119 [script] [Cisco.IOS.get_fqdn|10.20.52.51] [ssh] Resetting timeouts
- 2018-04-24 09:03:49,119 [script] [Cisco.IOS.get_fqdn|10.20.52.51] [ssh] Send: 'terminal length 0\n'
- 2018-04-24 09:03:49,230 [script] [Cisco.IOS.get_fqdn|10.20.52.51] [ssh] Match: ^Switch\-UzelSvyzi(?:[-_\d\w]+)?(?:\(config[^\)]*\))?#
- 2018-04-24 09:03:49,230 [script] [Cisco.IOS.get_fqdn|10.20.52.51] [ssh] State: <PROMT>
- 2018-04-24 09:03:49,230 [script] [Cisco.IOS.get_fqdn|10.20.52.51] [ssh] Command: terminal length 0
- terminal length 0
- 2018-04-24 09:03:49,230 [script] [Cisco.IOS.get_fqdn|10.20.52.51] [ssh] Send: 'show running-config | include ^(hostname|ip domain.name)\n'
- 2018-04-24 09:03:50,172 [script] [Cisco.IOS.get_fqdn|10.20.52.51] [ssh] Received: 'hostname Switch-UzelSvyzi\r\nSwitch-UzelSvyzi#'
- 2018-04-24 09:03:50,172 [script] [Cisco.IOS.get_fqdn|10.20.52.51] [ssh] Match: ^Switch\-UzelSvyzi(?:[-_\d\w]+)?(?:\(config[^\)]*\))?#
- 2018-04-24 09:03:50,172 [script] [Cisco.IOS.get_fqdn|10.20.52.51] [ssh] State: <PROMT>
- 2018-04-24 09:03:50,172 [script] [Cisco.IOS.get_fqdn|10.20.52.51] [ssh] Command: show running-config | include ^(hostname|ip domain.name)
- show running-config | include ^(hostname|ip domain.name)
- hostname Switch-UzelSvyzi
- 2018-04-24 09:03:50,172 [script] [Cisco.IOS.get_fqdn|10.20.52.51] [snmp] Closing UDP socket
- 2018-04-24 09:03:50,172 [script] [Cisco.IOS.get_fqdn|10.20.52.51] [snmp] Closing IOLoop
- 2018-04-24 09:03:50,172 [script] [Cisco.IOS.get_fqdn|10.20.52.51] [ssh] Closing channel
- 2018-04-24 09:03:50,670 [script] [Cisco.IOS.get_fqdn|10.20.52.51] [ssh] Cannot close channel clearly: Unable to close the channel.
- 2018-04-24 09:03:50,670 [script] [Cisco.IOS.get_fqdn|10.20.52.51] [ssh] Closing ssh session
- 2018-04-24 09:03:50,671 [script] [Cisco.IOS.get_fqdn|10.20.52.51] [ssh] Closing IOLoop
- 2018-04-24 09:03:50,671 [script] [Cisco.IOS.get_fqdn|10.20.52.51] Result: Switch-UzelSvyzi
- 2018-04-24 09:03:50,671 [script] [Cisco.IOS.get_fqdn|10.20.52.51] Complete (13341.49ms)
- 'Switch-UzelSvyzi'
- root@Node1:/opt/noc# ./noc script --debug --pretty get_chassis_id "CPS-UzelSvyzi"
- 2018-04-24 09:04:05,164 [noc.core.dcs.base] Resolve near service postgres
- 2018-04-24 09:04:05,164 [noc.core.http.client] HTTP GET http://consul:8500/v1/health/service/postgres?passing=1&near=_agent
- 2018-04-24 09:04:05,167 [noc.core.http.client] HTTP Response 200
- 2018-04-24 09:04:05,167 [noc.core.dcs.base] Resolved near service postgres to ['10.220.21.122:5432']
- 2018-04-24 09:04:06,117 [noc.core.dcs.base] Running resolver for service mongo
- 2018-04-24 09:04:06,118 [noc.core.dcs.base] [mongo] Starting resolver
- 2018-04-24 09:04:06,118 [noc.core.http.client] HTTP GET http://consul:8500/v1/health/service/mongo?passing=1
- 2018-04-24 09:04:06,119 [noc.core.http.client] HTTP Response 200
- 2018-04-24 09:04:06,119 [noc.core.dcs.base] [mongo] Set active services to: mongo: 10.220.21.122:27017
- 2018-04-24 09:04:06,120 [noc.core.http.client] HTTP GET http://consul:8500/v1/health/service/mongo?index=2013682&passing=1
- 2018-04-24 09:04:06,120 [noc.lib.nosql] Connecting to MongoDB {'username': 'noc', 'authentication_source': 'noc', 'readPreference': 'secondaryPreferred', 'replicaSet': 'noc', 'db': 'noc', 'socketKeepAlive': True, 'host': 'mongodb://noc:********@10.220.21.122:27017/noc', 'password': '********'}
- 2018-04-24 09:04:06,184 [noc.core.cache.base] Using cache backend: noc.core.cache.mongo.MongoCache
- 2018-04-24 09:04:06,242 [noc.main.models.doccategory] Registering Capability
- 2018-04-24 09:04:06,244 [noc.main.models.doccategory] Registering MetricType
- 2018-04-24 09:04:06,277 [noc.main.models.doccategory] Registering ConnectionType
- 2018-04-24 09:04:06,281 [noc.main.models.doccategory] Registering ObjectModel
- 2018-04-24 09:04:06,291 [noc.main.models.textindex] Adding FTS index for sa.managedobject
- 2018-04-24 09:04:06,308 [noc.main.models.textindex] Adding FTS index for ip.vrf
- 2018-04-24 09:04:06,311 [noc.main.models.textindex] Adding FTS index for vc.vc
- 2018-04-24 09:04:06,314 [noc.main.models.textindex] Adding FTS index for ip.prefix
- 2018-04-24 09:04:06,319 [noc.main.models.textindex] Adding FTS index for ip.address
- 2018-04-24 09:04:06,374 [noc.core.script.loader] Loading script Cisco.IOS.get_chassis_id
- 2018-04-24 09:04:06,407 [noc.core.profile.loader] Loading profile Cisco.IOS
- 2018-04-24 09:04:06,408 [script] [Cisco.IOS.get_chassis_id|10.20.52.51] Filling get_version cache with {'platform': u'WS-C2960X-48LPD-L', 'version': u'15.2(2)E6', 'vendor': u'Cisco Systems'}
- 2018-04-24 09:04:06,408 [script] [Cisco.IOS.get_chassis_id|10.20.52.51] Running. Input arguments: {}, timeout 3600
- 2018-04-24 09:04:06,408 [script] [Cisco.IOS.get_chassis_id|10.20.52.51] WARNING: Using deprecated @BaseScript.match() decorator. Consider porting to the new matcher API
- 2018-04-24 09:04:06,408 [script] [Cisco.IOS.get_chassis_id|10.20.52.51] Open ssh CLI
- 2018-04-24 09:04:06,414 [script] [Cisco.IOS.get_chassis_id|10.20.52.51] [ssh] Setup session
- 2018-04-24 09:04:06,414 [script] [Cisco.IOS.get_chassis_id|10.20.52.51] Disable paging
- 2018-04-24 09:04:06,414 [script] [Cisco.IOS.get_chassis_id|10.20.52.51] [ssh] Creating IOLoop
- 2018-04-24 09:04:06,415 [script] [Cisco.IOS.get_chassis_id|10.20.52.51] [ssh] Connecting (u'10.20.52.51', 22)
- 2018-04-24 09:04:06,513 [script] [Cisco.IOS.get_chassis_id|10.20.52.51] [ssh] Connected
- 2018-04-24 09:04:06,513 [script] [Cisco.IOS.get_chassis_id|10.20.52.51] [ssh] Startup ssh session for user 'noc'
- 2018-04-24 09:04:07,938 [script] [Cisco.IOS.get_chassis_id|10.20.52.51] [ssh] Connected. Host fingerprint is c3155f1235895b83e93764b0d145ec23eb132c79
- 2018-04-24 09:04:11,168 [script] [Cisco.IOS.get_chassis_id|10.20.52.51] [ssh] Supported authentication methods: publickey, keyboard-interactive, password
- 2018-04-24 09:04:11,169 [script] [Cisco.IOS.get_chassis_id|10.20.52.51] [ssh] Trying publickey authentication
- 2018-04-24 09:04:11,169 [script] [Cisco.IOS.get_chassis_id|10.20.52.51] [ssh] public_key=etc/noc_ssh/id_rsa.pub private_key=etc/noc_ssh/id_rsa
- 2018-04-24 09:04:11,169 [script] [Cisco.IOS.get_chassis_id|10.20.52.51] [ssh] Failed: Unable to open public key file (Code: -16)
- 2018-04-24 09:04:11,169 [script] [Cisco.IOS.get_chassis_id|10.20.52.51] [ssh] Trying keyboard-interactive
- 2018-04-24 09:04:11,335 [script] [Cisco.IOS.get_chassis_id|10.20.52.51] [ssh] Success
- 2018-04-24 09:04:11,335 [script] [Cisco.IOS.get_chassis_id|10.20.52.51] [ssh] User is authenticated
- 2018-04-24 09:04:11,335 [script] [Cisco.IOS.get_chassis_id|10.20.52.51] [ssh] Open channel
- 2018-04-24 09:04:11,567 [script] [Cisco.IOS.get_chassis_id|10.20.52.51] [ssh] State: <START>
- 2018-04-24 09:04:11,567 [script] [Cisco.IOS.get_chassis_id|10.20.52.51] [ssh] Setting timeout: 60s
- 2018-04-24 09:04:11,567 [script] [Cisco.IOS.get_chassis_id|10.20.52.51] [ssh] Received: '\r\nSwitch-UzelSvyzi#'
- 2018-04-24 09:04:11,568 [script] [Cisco.IOS.get_chassis_id|10.20.52.51] [ssh] Match: ^(?P<hostname>[a-zA-Z0-9/.]\S{0,35})(?:[-_\d\w]+)?(?:\(config[^\)]*\))?#
- 2018-04-24 09:04:11,568 [script] [Cisco.IOS.get_chassis_id|10.20.52.51] [ssh] State: <PROMT>
- 2018-04-24 09:04:11,568 [script] [Cisco.IOS.get_chassis_id|10.20.52.51] [ssh] Refining pattern prompt to '^Switch\\-UzelSvyzi(?:[-_\\d\\w]+)?(?:\\(config[^\\)]*\\))?#'
- 2018-04-24 09:04:11,568 [script] [Cisco.IOS.get_chassis_id|10.20.52.51] [ssh] Resetting timeouts
- 2018-04-24 09:04:11,568 [script] [Cisco.IOS.get_chassis_id|10.20.52.51] [ssh] Send: 'terminal length 0\n'
- 2018-04-24 09:04:11,729 [script] [Cisco.IOS.get_chassis_id|10.20.52.51] [ssh] Match: ^Switch\-UzelSvyzi(?:[-_\d\w]+)?(?:\(config[^\)]*\))?#
- 2018-04-24 09:04:11,729 [script] [Cisco.IOS.get_chassis_id|10.20.52.51] [ssh] State: <PROMT>
- 2018-04-24 09:04:11,729 [script] [Cisco.IOS.get_chassis_id|10.20.52.51] [ssh] Command: terminal length 0
- terminal length 0
- 2018-04-24 09:04:11,729 [script] [Cisco.IOS.get_chassis_id|10.20.52.51] [ssh] Send: 'show version\n'
- 2018-04-24 09:04:11,898 [script] [Cisco.IOS.get_chassis_id|10.20.52.51] [ssh] Received: 'Cisco IOS Software, C2960X Software (C2960X-UNIVERSALK9-M), Version 15.2(2)E6, RELEASE SOFTWARE (fc1)\r\nTechnical Support: http://www.cisco.com/techsupport\r\nCopyright (c) 1986-2016 by Cisco Systems, Inc.\r\nCompiled Fri 16-Dec-16 21:27 by prod_rel_team\r\n\r\nROM: Bootstrap program is C2960X boot loader\r\nBOOTLDR: C2960X Boot Loader (C2960X-HBOOT-M) Version 15.2(3r)E1, RELEASE SOFTWARE (fc1)\r\n\r\nSwitch-UzelSvyzi uptime is 22 weeks, 6 days, 15 hours, 30 minutes\r\nSystem returned to ROM by power-on\r\nSystem restarted at 19:31:44 EKT Tue Nov 14 2017\r\nSystem image file is "flash:/c2960x-universalk9-mz.152-2.E6/c2960x-universalk9-mz.152-2.E6.bin"\r\nLast reload reason: power-on\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\nto comply with U.S. and local laws, return this product immediately.\r\n\r\nA summary of U.S. laws governing Cisco cryptographic products may be found at:\r\nhttp://www.cisco.com/wwl/export/crypto/tool/stqrg.html\r\n\r\nIf you require further assistance please contact us by sending email to\r\nexport@cisco.com.\r\n\r\ncisco WS-C2960X-48LPD-L (APM86XXX) processor (revision A0) with 524288K bytes of memory.\r\nProcessor board ID JTV2109105U\r\nLast reset from power-on\r\n3 Virtual Ethernet interfaces\r\n1 FastEthernet interface\r\n50 Gigabit Ethernet interfaces\r\n2 Ten Gigabit Ethernet interfaces\r\nThe password-recovery mechanism is enabled.\r\n\r\n512K bytes of flash-simulated non-volatile configuration memory.\r\nBase ethernet MAC Address : 08:CC:A7:E5:D1:00\r\nMotherboard assembly number : 73-16687-05\r\nPower supply part number : 341-0528-02\r\nMotherboard serial number : FOC204745PZ\r\nPower supply serial number : DCC2040923T\r\nModel revision number : A0\r\nMotherboard revision number : A0\r\nModel number : WS-C2960RX-48LPD-L\r\nDaughterboard assembly number : 73-14200-03\r\nDaughterboard serial number : FOC204861UR\r\nSystem serial number : JTV2109105U\r\nTop Assembly Part Number : 68-5897-02\r\nTop Assembly Revision Number : A0\r\nVersion ID : V02\r\nDaughterboard revision number : A0\r\nHardware Board Revision Number : 0x18\r\n\r\n\r\nSwitch Ports Model SW Version SW Image \r\n------ ----- ----- ---------- ---------- \r\n* 1 52 WS-C2960X-48LPD-L 15.2(2)E6 C2960X-UNIVERSALK9-M \r\n\r\n\r\nConfiguration register is 0xF\r\n\r\nSwitch-UzelSvyzi#'
- 2018-04-24 09:04:11,898 [script] [Cisco.IOS.get_chassis_id|10.20.52.51] [ssh] Match: ^Switch\-UzelSvyzi(?:[-_\d\w]+)?(?:\(config[^\)]*\))?#
- 2018-04-24 09:04:11,898 [script] [Cisco.IOS.get_chassis_id|10.20.52.51] [ssh] State: <PROMT>
- 2018-04-24 09:04:11,898 [script] [Cisco.IOS.get_chassis_id|10.20.52.51] [ssh] Command: show version
- show version
- Cisco IOS Software, C2960X Software (C2960X-UNIVERSALK9-M), Version 15.2(2)E6, RELEASE SOFTWARE (fc1)
- Technical Support: http://www.cisco.com/techsupport
- Copyright (c) 1986-2016 by Cisco Systems, Inc.
- Compiled Fri 16-Dec-16 21:27 by prod_rel_team
- ROM: Bootstrap program is C2960X boot loader
- BOOTLDR: C2960X Boot Loader (C2960X-HBOOT-M) Version 15.2(3r)E1, RELEASE SOFTWARE (fc1)
- Switch-UzelSvyzi uptime is 22 weeks, 6 days, 15 hours, 30 minutes
- System returned to ROM by power-on
- System restarted at 19:31:44 EKT Tue Nov 14 2017
- System image file is "flash:/c2960x-universalk9-mz.152-2.E6/c2960x-universalk9-mz.152-2.E6.bin"
- Last reload reason: power-on
- This product contains cryptographic features and is subject to United
- States and local country laws governing import, export, transfer and
- use. Delivery of Cisco cryptographic products does not imply
- third-party authority to import, export, distribute or use encryption.
- Importers, exporters, distributors and users are responsible for
- compliance with U.S. and local country laws. By using this product you
- agree to comply with applicable laws and regulations. If you are unable
- to comply with U.S. and local laws, return this product immediately.
- A summary of U.S. laws governing Cisco cryptographic products may be found at:
- http://www.cisco.com/wwl/export/crypto/tool/stqrg.html
- If you require further assistance please contact us by sending email to
- export@cisco.com.
- cisco WS-C2960X-48LPD-L (APM86XXX) processor (revision A0) with 524288K bytes of memory.
- Processor board ID JTV2109105U
- Last reset from power-on
- 3 Virtual Ethernet interfaces
- 1 FastEthernet interface
- 50 Gigabit Ethernet interfaces
- 2 Ten Gigabit Ethernet interfaces
- The password-recovery mechanism is enabled.
- 512K bytes of flash-simulated non-volatile configuration memory.
- Base ethernet MAC Address : 08:CC:A7:E5:D1:00
- Motherboard assembly number : 73-16687-05
- Power supply part number : 341-0528-02
- Motherboard serial number : FOC204745PZ
- Power supply serial number : DCC2040923T
- Model revision number : A0
- Motherboard revision number : A0
- Model number : WS-C2960RX-48LPD-L
- Daughterboard assembly number : 73-14200-03
- Daughterboard serial number : FOC204861UR
- System serial number : JTV2109105U
- Top Assembly Part Number : 68-5897-02
- Top Assembly Revision Number : A0
- Version ID : V02
- Daughterboard revision number : A0
- Hardware Board Revision Number : 0x18
- Switch Ports Model SW Version SW Image
- ------ ----- ----- ---------- ----------
- * 1 52 WS-C2960X-48LPD-L 15.2(2)E6 C2960X-UNIVERSALK9-M
- Configuration register is 0xF
- 2018-04-24 09:04:11,899 [script] [Cisco.IOS.get_chassis_id|10.20.52.51] [ssh] Closing channel
- 2018-04-24 09:04:12,075 [script] [Cisco.IOS.get_chassis_id|10.20.52.51] [ssh] Cannot close channel clearly: Unable to close the channel.
- 2018-04-24 09:04:12,075 [script] [Cisco.IOS.get_chassis_id|10.20.52.51] [ssh] Closing ssh session
- 2018-04-24 09:04:12,075 [script] [Cisco.IOS.get_chassis_id|10.20.52.51] [ssh] Closing IOLoop
- 2018-04-24 09:04:12,076 [script] [Cisco.IOS.get_chassis_id|10.20.52.51] Result: [{'last_chassis_mac': '08:CC:A7:E5:D1:00', 'first_chassis_mac': '08:CC:A7:E5:D1:00'}]
- 2018-04-24 09:04:12,076 [script] [Cisco.IOS.get_chassis_id|10.20.52.51] Complete (5667.77ms)
- [{'first_chassis_mac': '08:CC:A7:E5:D1:00',
- 'last_chassis_mac': '08:CC:A7:E5:D1:00'}]
- root@Node1:/opt/noc#
- root@Node1:/opt/noc#
- root@Node1:/opt/noc#
- root@Node1:/opt/noc# ./noc script --debug --pretty get_lldp_neighbors "CPS-UzelSvyzi"
- 2018-04-24 09:04:28,051 [noc.core.dcs.base] Resolve near service postgres
- 2018-04-24 09:04:28,051 [noc.core.http.client] HTTP GET http://consul:8500/v1/health/service/postgres?passing=1&near=_agent
- 2018-04-24 09:04:28,054 [noc.core.http.client] HTTP Response 200
- 2018-04-24 09:04:28,055 [noc.core.dcs.base] Resolved near service postgres to ['10.220.21.122:5432']
- 2018-04-24 09:04:28,978 [noc.core.dcs.base] Running resolver for service mongo
- 2018-04-24 09:04:28,979 [noc.core.dcs.base] [mongo] Starting resolver
- 2018-04-24 09:04:28,979 [noc.core.http.client] HTTP GET http://consul:8500/v1/health/service/mongo?passing=1
- 2018-04-24 09:04:28,980 [noc.core.http.client] HTTP Response 200
- 2018-04-24 09:04:28,981 [noc.core.dcs.base] [mongo] Set active services to: mongo: 10.220.21.122:27017
- 2018-04-24 09:04:28,981 [noc.core.http.client] HTTP GET http://consul:8500/v1/health/service/mongo?index=2013688&passing=1
- 2018-04-24 09:04:28,982 [noc.lib.nosql] Connecting to MongoDB {'username': 'noc', 'authentication_source': 'noc', 'readPreference': 'secondaryPreferred', 'replicaSet': 'noc', 'db': 'noc', 'socketKeepAlive': True, 'host': 'mongodb://noc:********@10.220.21.122:27017/noc', 'password': '********'}
- 2018-04-24 09:04:29,056 [noc.core.cache.base] Using cache backend: noc.core.cache.mongo.MongoCache
- 2018-04-24 09:04:29,115 [noc.main.models.doccategory] Registering Capability
- 2018-04-24 09:04:29,116 [noc.main.models.doccategory] Registering MetricType
- 2018-04-24 09:04:29,151 [noc.main.models.doccategory] Registering ConnectionType
- 2018-04-24 09:04:29,154 [noc.main.models.doccategory] Registering ObjectModel
- 2018-04-24 09:04:29,164 [noc.main.models.textindex] Adding FTS index for sa.managedobject
- 2018-04-24 09:04:29,180 [noc.main.models.textindex] Adding FTS index for ip.vrf
- 2018-04-24 09:04:29,182 [noc.main.models.textindex] Adding FTS index for vc.vc
- 2018-04-24 09:04:29,186 [noc.main.models.textindex] Adding FTS index for ip.prefix
- 2018-04-24 09:04:29,190 [noc.main.models.textindex] Adding FTS index for ip.address
- 2018-04-24 09:04:29,306 [noc.core.script.loader] Loading script Cisco.IOS.get_lldp_neighbors
- 2018-04-24 09:04:29,392 [noc.core.profile.loader] Loading profile Cisco.IOS
- 2018-04-24 09:04:29,393 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] Filling get_version cache with {'platform': u'WS-C2960X-48LPD-L', 'version': u'15.2(2)E6', 'vendor': u'Cisco Systems'}
- 2018-04-24 09:04:29,393 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] Running. Input arguments: {}, timeout 3600
- 2018-04-24 09:04:29,393 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] Open ssh CLI
- 2018-04-24 09:04:29,398 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Setup session
- 2018-04-24 09:04:29,398 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] Disable paging
- 2018-04-24 09:04:29,399 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Creating IOLoop
- 2018-04-24 09:04:29,399 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Connecting (u'10.20.52.51', 22)
- 2018-04-24 09:04:29,502 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Connected
- 2018-04-24 09:04:29,503 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Startup ssh session for user 'noc'
- 2018-04-24 09:04:30,116 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Connected. Host fingerprint is c3155f1235895b83e93764b0d145ec23eb132c79
- 2018-04-24 09:04:30,218 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Supported authentication methods: publickey, keyboard-interactive, password
- 2018-04-24 09:04:30,218 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Trying publickey authentication
- 2018-04-24 09:04:30,218 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] public_key=etc/noc_ssh/id_rsa.pub private_key=etc/noc_ssh/id_rsa
- 2018-04-24 09:04:30,219 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Failed: Unable to open public key file (Code: -16)
- 2018-04-24 09:04:30,219 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Trying keyboard-interactive
- 2018-04-24 09:04:30,432 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Success
- 2018-04-24 09:04:30,432 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] User is authenticated
- 2018-04-24 09:04:30,432 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Open channel
- 2018-04-24 09:04:31,058 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] State: <START>
- 2018-04-24 09:04:31,058 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Setting timeout: 60s
- 2018-04-24 09:04:31,061 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Received: '\r\nSwitch-UzelSvyzi#'
- 2018-04-24 09:04:31,061 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Match: ^(?P<hostname>[a-zA-Z0-9/.]\S{0,35})(?:[-_\d\w]+)?(?:\(config[^\)]*\))?#
- 2018-04-24 09:04:31,061 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] State: <PROMT>
- 2018-04-24 09:04:31,061 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Refining pattern prompt to '^Switch\\-UzelSvyzi(?:[-_\\d\\w]+)?(?:\\(config[^\\)]*\\))?#'
- 2018-04-24 09:04:31,062 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Resetting timeouts
- 2018-04-24 09:04:31,062 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Send: 'terminal length 0\n'
- 2018-04-24 09:04:31,151 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Match: ^Switch\-UzelSvyzi(?:[-_\d\w]+)?(?:\(config[^\)]*\))?#
- 2018-04-24 09:04:31,151 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] State: <PROMT>
- 2018-04-24 09:04:31,151 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Command: terminal length 0
- terminal length 0
- 2018-04-24 09:04:31,151 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Send: 'show lldp neighbors\n'
- Bridge, (T) Telephone, (C) DOCSIS Cable Device\r\n (W) WLAN Access Point, (P) Repeater, (S) Station, (O) Other\r\n\r\nDevice ID Local Intf Hold-time Capability Port ID\r\nKND-CPS-RW01.knd-oilGi1/0/10 120 R Gi0/0/3\r\nCPS-WBS-2 Gi1/0/2 180 P,B,R 0004.3503.6b34\r\nCPS-WBS-4 Gi1/0/4 180 P,B,R 0004.3503.6b35\r\nCPS-WBS-3 Gi1/0/3 180 P,B,R 0004.3503.6b36\r\nCPS-WBS-1 Gi1/0/1 180 P,B,R 0004.3503.6b37\r\nKND-CPS-RW01.knd-oilGi1/0/10 120 R Gi0/0/3.22\r\nSwitch-CPS-2 Gi1/0/49 120 B Gi1/1/2\r\n\r\nTotal entries displayed: 7\r\n\r\nSwitch-UzelSvyzi#'
- 2018-04-24 09:04:31,333 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Match: ^Switch\-UzelSvyzi(?:[-_\d\w]+)?(?:\(config[^\)]*\))?#
- 2018-04-24 09:04:31,333 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] State: <PROMT>
- 2018-04-24 09:04:31,333 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Command: show lldp neighbors
- show lldp neighbors
- Capability codes:
- (R) Router, (B) Bridge, (T) Telephone, (C) DOCSIS Cable Device
- (W) WLAN Access Point, (P) Repeater, (S) Station, (O) Other
- Device ID Local Intf Hold-time Capability Port ID
- KND-CPS-RW01.knd-oilGi1/0/10 120 R Gi0/0/3
- CPS-WBS-2 Gi1/0/2 180 P,B,R 0004.3503.6b34
- CPS-WBS-4 Gi1/0/4 180 P,B,R 0004.3503.6b35
- CPS-WBS-3 Gi1/0/3 180 P,B,R 0004.3503.6b36
- CPS-WBS-1 Gi1/0/1 180 P,B,R 0004.3503.6b37
- KND-CPS-RW01.knd-oilGi1/0/10 120 R Gi0/0/3.22
- Switch-CPS-2 Gi1/0/49 120 B Gi1/1/2
- Total entries displayed: 7
- 2018-04-24 09:04:31,334 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Send: 'show lldp neighbors Gi1/0/10 detail\n'
- ------\r\nLocal Intf: Gi1/0/10\r\nChassis id: a023.9ffe.f760\r\nPort id: Gi0/0/3\r\nPort Description: ## DL to Switch-UzelSvyzi | Gi1/0/10 | 10.20.52.51\r\nSystem Name: KND-CPS-RW01.knd-oil.ru\r\n\r\nSystem Description: \r\nCisco IOS Software, ISR Software (X86_64_LINUX_IOSD-UNIVERSALK9_NPE-M), Version 15.5(3)S4b, RELEASE SOFTWARE (fc1)\r\nTechnical Support: http://www.cisco.com/techsupport\r\nCopyright (c) 1986-2016 by Cisco Systems, Inc.\r\nCompiled Mon 17-Oct-16 20:23 by mcpre\r\n\r\nTime remaining: 96 seconds\r\nSystem Capabilities: B,R\r\nEnabled Capabilities: R\r\nManagement Addresses:\r\n IP: 10.20.52.50\r\nAuto Negotiation - not supported\r\nPhysical media capabilities - not advertised\r\nMedia Attachment Unit type - not advertised\r\nVlan ID: - not advertised\r\n\r\n------------------------------------------------\r\nLocal Intf: Gi1/0/10\r\nChassis id: a023.9ffe.f760\r\nPort id: Gi0/0/3.22\r\nPort Description: ## mgmt\r\nSystem Name: KND-CPS-RW01.knd-oil.ru\r\n\r\nSystem Description: \r\nCisco IOS Software, ISR Software (X86_64_LINUX_IOSD-UNIVERSALK9_NPE-M), Version 15.5(3)S4b, RELEASE SOFTWARE (fc1)\r\nTechnical Support: http://www.cisco.com/techsupport\r\nCopyright (c) 1986-2016 by Cisco Systems, Inc.\r\nCompiled Mon 17-Oct-16 20:23 by mcpre\r\n\r\nTime remaining: 97 seconds\r\nSystem Capabilities: B,R\r\nEnabled Capabilities: R\r\nManagement Addresses:\r\n IP: 10.20.52.50\r\nAuto Negotiation - not supported\r\nPhysical media capabilities - not advertised\r\nMedia Attachment Unit type - not advertised\r\nVlan ID: - not advertised\r\n\r\n\r\nTotal entries displayed: 2\r\n\r\nSwitch-UzelSvyzi#'
- 2018-04-24 09:04:31,539 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Match: ^Switch\-UzelSvyzi(?:[-_\d\w]+)?(?:\(config[^\)]*\))?#
- 2018-04-24 09:04:31,539 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] State: <PROMT>
- 2018-04-24 09:04:31,539 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Command: show lldp neighbors Gi1/0/10 detail
- show lldp neighbors Gi1/0/10 detail
- ------------------------------------------------
- Local Intf: Gi1/0/10
- Chassis id: a023.9ffe.f760
- Port id: Gi0/0/3
- Port Description: ## DL to Switch-UzelSvyzi | Gi1/0/10 | 10.20.52.51
- System Name: KND-CPS-RW01.knd-oil.ru
- System Description:
- Cisco IOS Software, ISR Software (X86_64_LINUX_IOSD-UNIVERSALK9_NPE-M), Version 15.5(3)S4b, RELEASE SOFTWARE (fc1)
- Technical Support: http://www.cisco.com/techsupport
- Copyright (c) 1986-2016 by Cisco Systems, Inc.
- Compiled Mon 17-Oct-16 20:23 by mcpre
- Time remaining: 96 seconds
- System Capabilities: B,R
- Enabled Capabilities: R
- Management Addresses:
- IP: 10.20.52.50
- Auto Negotiation - not supported
- Physical media capabilities - not advertised
- Media Attachment Unit type - not advertised
- Vlan ID: - not advertised
- ------------------------------------------------
- Local Intf: Gi1/0/10
- Chassis id: a023.9ffe.f760
- Port id: Gi0/0/3.22
- Port Description: ## mgmt
- System Name: KND-CPS-RW01.knd-oil.ru
- System Description:
- Cisco IOS Software, ISR Software (X86_64_LINUX_IOSD-UNIVERSALK9_NPE-M), Version 15.5(3)S4b, RELEASE SOFTWARE (fc1)
- Technical Support: http://www.cisco.com/techsupport
- Copyright (c) 1986-2016 by Cisco Systems, Inc.
- Compiled Mon 17-Oct-16 20:23 by mcpre
- Time remaining: 97 seconds
- System Capabilities: B,R
- Enabled Capabilities: R
- Management Addresses:
- IP: 10.20.52.50
- Auto Negotiation - not supported
- Physical media capabilities - not advertised
- Media Attachment Unit type - not advertised
- Vlan ID: - not advertised
- Total entries displayed: 2
- 2018-04-24 09:04:31,542 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Send: 'show lldp neighbors Gi1/0/2 detail\n'
- ------\r\nLocal Intf: Gi1/0/2\r\nChassis id: IW-224052\r\nPort id: 0004.3503.6b34\r\nPort Description: eth0, CPS-WBS-2\r\nSystem Name: CPS-WBS-2\r\n\r\nSystem Description: \r\nInfinet Wireless R5000 WANFleX H08S01-MINTv1.90.29\r\n\r\nTime remaining: 146 seconds\r\nSystem Capabilities: P,B,R\r\nEnabled Capabilities: P,B,R\r\nManagement Addresses:\r\n IP: 10.20.56.31\r\n OID:\r\n 1.3.6.1.2.1.1.7.0.\r\nAuto Negotiation - not supported\r\nPhysical media capabilities - not advertised\r\nMedia Attachment Unit type - not advertised\r\nVlan ID: - not advertised\r\n\r\n\r\nTotal entries displayed: 1\r\n\r\nSwitch-UzelSvyzi#'
- 2018-04-24 09:04:32,038 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Match: ^Switch\-UzelSvyzi(?:[-_\d\w]+)?(?:\(config[^\)]*\))?#
- 2018-04-24 09:04:32,038 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] State: <PROMT>
- 2018-04-24 09:04:32,038 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Command: show lldp neighbors Gi1/0/2 detail
- show lldp neighbors Gi1/0/2 detail
- ------------------------------------------------
- Local Intf: Gi1/0/2
- Chassis id: IW-224052
- Port id: 0004.3503.6b34
- Port Description: eth0, CPS-WBS-2
- System Name: CPS-WBS-2
- System Description:
- Infinet Wireless R5000 WANFleX H08S01-MINTv1.90.29
- Time remaining: 146 seconds
- System Capabilities: P,B,R
- Enabled Capabilities: P,B,R
- Management Addresses:
- IP: 10.20.56.31
- OID:
- 1.3.6.1.2.1.1.7.0.
- Auto Negotiation - not supported
- Physical media capabilities - not advertised
- Media Attachment Unit type - not advertised
- Vlan ID: - not advertised
- Total entries displayed: 1
- 2018-04-24 09:04:32,038 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Send: 'show lldp neighbors Gi1/0/4 detail\n'
- 2018-04-24 09:04:32,145 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Received: 'show lldp neig'
- ------\r\nLocal Intf: Gi1/0/4\r\nChassis id: IW-224053\r\nPort id: 0004.3503.6b35\r\nPort Description: eth0, CPS-WBS-4\r\nSystem Name: CPS-WBS-4\r\n\r\nSystem Description: \r\nInfinet Wireless R5000 WANFleX H08S01-MINTv1.90.29\r\n\r\nTime remaining: 142 seconds\r\nSystem Capabilities: P,B,R\r\nEnabled Capabilities: P,B,R\r\nManagement Addresses:\r\n IP: 10.10.20.1\r\n OID:\r\n 1.3.6.1.2.1.1.7.0.\r\nAuto Negotiation - not supported\r\nPhysical media capabilities - not advertised\r\nMedia Attachment Unit type - not advertised\r\nVlan ID: - not advertised\r\n\r\n\r\nTotal entries displayed: 1\r\n\r\nSwitch-UzelSvyzi#'
- 2018-04-24 09:04:32,263 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Match: ^Switch\-UzelSvyzi(?:[-_\d\w]+)?(?:\(config[^\)]*\))?#
- 2018-04-24 09:04:32,263 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] State: <PROMT>
- 2018-04-24 09:04:32,263 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Command: show lldp neighbors Gi1/0/4 detail
- show lldp neighbors Gi1/0/4 detail
- ------------------------------------------------
- Local Intf: Gi1/0/4
- Chassis id: IW-224053
- Port id: 0004.3503.6b35
- Port Description: eth0, CPS-WBS-4
- System Name: CPS-WBS-4
- System Description:
- Infinet Wireless R5000 WANFleX H08S01-MINTv1.90.29
- Time remaining: 142 seconds
- System Capabilities: P,B,R
- Enabled Capabilities: P,B,R
- Management Addresses:
- IP: 10.10.20.1
- OID:
- 1.3.6.1.2.1.1.7.0.
- Auto Negotiation - not supported
- Physical media capabilities - not advertised
- Media Attachment Unit type - not advertised
- Vlan ID: - not advertised
- Total entries displayed: 1
- 2018-04-24 09:04:32,264 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Send: 'show lldp neighbors Gi1/0/3 detail\n'
- ------\r\nLocal Intf: Gi1/0/3\r\nChassis id: IW-224054\r\nPort id: 0004.3503.6b36\r\nPort Description: eth0, CPS-WBS-3\r\nSystem Name: CPS-WBS-3\r\n\r\nSystem Description: \r\nInfinet Wireless R5000 WANFleX H08S01-MINTv1.90.29\r\n\r\nTime remaining: 165 seconds\r\nSystem Capabilities: P,B,R\r\nEnabled Capabilities: P,B,R\r\nManagement Addresses:\r\n IP: 10.10.20.1\r\n OID:\r\n 1.3.6.1.2.1.1.7.0.\r\nAuto Negotiation - not supported\r\nPhysical media capabilities - not advertised\r\nMedia Attachment Unit type - not advertised\r\nVlan ID: - not advertised\r\n\r\n\r\nTotal entries displayed: 1\r\n\r\nSwitch-UzelSvyzi#'
- 2018-04-24 09:04:32,506 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Match: ^Switch\-UzelSvyzi(?:[-_\d\w]+)?(?:\(config[^\)]*\))?#
- 2018-04-24 09:04:32,506 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] State: <PROMT>
- 2018-04-24 09:04:32,507 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Command: show lldp neighbors Gi1/0/3 detail
- show lldp neighbors Gi1/0/3 detail
- ------------------------------------------------
- Local Intf: Gi1/0/3
- Chassis id: IW-224054
- Port id: 0004.3503.6b36
- Port Description: eth0, CPS-WBS-3
- System Name: CPS-WBS-3
- System Description:
- Infinet Wireless R5000 WANFleX H08S01-MINTv1.90.29
- Time remaining: 165 seconds
- System Capabilities: P,B,R
- Enabled Capabilities: P,B,R
- Management Addresses:
- IP: 10.10.20.1
- OID:
- 1.3.6.1.2.1.1.7.0.
- Auto Negotiation - not supported
- Physical media capabilities - not advertised
- Media Attachment Unit type - not advertised
- Vlan ID: - not advertised
- Total entries displayed: 1
- 2018-04-24 09:04:32,508 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Send: 'show lldp neighbors Gi1/0/1 detail\n'
- ------------\r\nLocal Intf: Gi1/0/1\r\nChassis id: IW-224055\r\nPort id: 0004.3503.6b37\r\nPort Description: eth0, CPS-WBS-1\r\nSystem Name: CPS-WBS-1\r\n\r\nSystem Description: \r\nInfinet Wireless R5000 WANFleX H08S01-MINTv1.90.29\r\n\r\nTime remaining: 171 seconds\r\nSystem Capabilities: P,B,R\r\nEnabled Capabilities: P,B,R\r\nManagement Addresses:\r\n IP: 10.10.20.1\r\n OID:\r\n 1.3.6.1.2.1.1.7.0.\r\nAuto Negotiation - not supported\r\nPhysical media capabilities - not advertised\r\nMedia Attachment Unit type - not advertised\r\nVlan ID: - not advertised\r\n\r\n\r\nTotal entries displayed: 1\r\n\r\nSwitch-UzelSvyzi#'
- 2018-04-24 09:04:33,739 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Match: ^Switch\-UzelSvyzi(?:[-_\d\w]+)?(?:\(config[^\)]*\))?#
- 2018-04-24 09:04:33,739 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] State: <PROMT>
- 2018-04-24 09:04:33,739 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Command: show lldp neighbors Gi1/0/1 detail
- show lldp neighbors Gi1/0/1 detail
- ------------------------------------------------
- Local Intf: Gi1/0/1
- Chassis id: IW-224055
- Port id: 0004.3503.6b37
- Port Description: eth0, CPS-WBS-1
- System Name: CPS-WBS-1
- System Description:
- Infinet Wireless R5000 WANFleX H08S01-MINTv1.90.29
- Time remaining: 171 seconds
- System Capabilities: P,B,R
- Enabled Capabilities: P,B,R
- Management Addresses:
- IP: 10.10.20.1
- OID:
- 1.3.6.1.2.1.1.7.0.
- Auto Negotiation - not supported
- Physical media capabilities - not advertised
- Media Attachment Unit type - not advertised
- Vlan ID: - not advertised
- Total entries displayed: 1
- 2018-04-24 09:04:33,739 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Send: 'show lldp neighbors Gi1/0/10 detail\n'
- ------\r\nLocal Intf: Gi1/0/10\r\nChassis id: a023.9ffe.f760\r\nPort id: Gi0/0/3\r\nPort Description: ## DL to Switch-UzelSvyzi | Gi1/0/10 | 10.20.52.51\r\nSystem Name: KND-CPS-RW01.knd-oil.ru\r\n\r\nSystem Description: \r\nCisco IOS Software, ISR Software (X86_64_LINUX_IOSD-UNIVERSALK9_NPE-M), Version 15.5(3)S4b, RELEASE SOFTWARE (fc1)\r\nTechnical Support: http://www.cisco.com/techsupport\r\nCopyright (c) 1986-2016 by Cisco Systems, Inc.\r\nCompiled Mon 17-Oct-16 20:23 by mcpre\r\n\r\nTime remaining: 93 seconds\r\nSystem Capabilities: B,R\r\nEnabled Capabilities: R\r\nManagement Addresses:\r\n IP: 10.20.52.50\r\nAuto Negotiation - not supported\r\nPhysical media capabilities - not advertised\r\nMedia Attachment Unit type - not advertised\r\nVlan ID: - not advertised\r\n\r\n------------------------------------------------\r\nLocal Intf: Gi1/0/10\r\nChassis id: a023.9ffe.f760\r\nPort id: Gi0/0/3.22\r\nPort Description: ## mgmt\r\nSystem Name: KND-CPS-RW01.knd-oil.ru\r\n\r\nSystem Description: \r\nCisco IOS Software, ISR Software (X86_64_LINUX_IOSD-UNIVERSALK9_NPE-M), Version 15.5(3)S4b, RELEASE SOFTWARE (fc1)\r\nTechnical Support: http://www.cisco.com/techsupport\r\nCopyright (c) 1986-2016 by Cisco Systems, Inc.\r\nCompiled Mon 17-Oct-16 20:23 by mcpre\r\n\r\nTime remaining: 94 seconds\r\nSystem Capabilities: B,R\r\nEnabled Capabilities: R\r\nManagement Addresses:\r\n IP: 10.20.52.50\r\nAuto Negotiation - not supported\r\nPhysical media capabilities - not advertised\r\nMedia Attachment Unit type - not advertised\r\nVlan ID: - not advertised\r\n\r\n\r\nTotal entries displayed: 2\r\n\r\nSwitch-UzelSvyzi#'
- 2018-04-24 09:04:34,338 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Match: ^Switch\-UzelSvyzi(?:[-_\d\w]+)?(?:\(config[^\)]*\))?#
- 2018-04-24 09:04:34,339 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] State: <PROMT>
- 2018-04-24 09:04:34,339 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Command: show lldp neighbors Gi1/0/10 detail
- show lldp neighbors Gi1/0/10 detail
- ------------------------------------------------
- Local Intf: Gi1/0/10
- Chassis id: a023.9ffe.f760
- Port id: Gi0/0/3
- Port Description: ## DL to Switch-UzelSvyzi | Gi1/0/10 | 10.20.52.51
- System Name: KND-CPS-RW01.knd-oil.ru
- System Description:
- Cisco IOS Software, ISR Software (X86_64_LINUX_IOSD-UNIVERSALK9_NPE-M), Version 15.5(3)S4b, RELEASE SOFTWARE (fc1)
- Technical Support: http://www.cisco.com/techsupport
- Copyright (c) 1986-2016 by Cisco Systems, Inc.
- Compiled Mon 17-Oct-16 20:23 by mcpre
- Time remaining: 93 seconds
- System Capabilities: B,R
- Enabled Capabilities: R
- Management Addresses:
- IP: 10.20.52.50
- Auto Negotiation - not supported
- Physical media capabilities - not advertised
- Media Attachment Unit type - not advertised
- Vlan ID: - not advertised
- ------------------------------------------------
- Local Intf: Gi1/0/10
- Chassis id: a023.9ffe.f760
- Port id: Gi0/0/3.22
- Port Description: ## mgmt
- System Name: KND-CPS-RW01.knd-oil.ru
- System Description:
- Cisco IOS Software, ISR Software (X86_64_LINUX_IOSD-UNIVERSALK9_NPE-M), Version 15.5(3)S4b, RELEASE SOFTWARE (fc1)
- Technical Support: http://www.cisco.com/techsupport
- Copyright (c) 1986-2016 by Cisco Systems, Inc.
- Compiled Mon 17-Oct-16 20:23 by mcpre
- Time remaining: 94 seconds
- System Capabilities: B,R
- Enabled Capabilities: R
- Management Addresses:
- IP: 10.20.52.50
- Auto Negotiation - not supported
- Physical media capabilities - not advertised
- Media Attachment Unit type - not advertised
- Vlan ID: - not advertised
- Total entries displayed: 2
- 2018-04-24 09:04:34,339 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Send: 'show lldp neighbors Gi1/0/49 detail\n'
- 2018-04-24 09:04:34,451 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Received: 'show lldp neighbors '
- 2018-04-24 09:04:34,552 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Received: 'G'
- 2018-04-24 09:04:35,542 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Received: 'i1/0/49 det'
- 2018-04-24 09:04:36,555 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Received: 'ail\r\n------------------------------------------------\r\nLocal Intf: Gi1/0/49\r\nChassis id: 00a3.8e3c.4e00\r\nPort id: Gi1/1/2\r\nPort Description: ## DL to Switch-UzelSvyzi | Gi1/1/2 | 10.20.52.51\r\nSystem Name: Switch-CPS-2\r\n\r\nSystem Description: \r\nCisco IOS Software, IOS-XE Software, Catalyst L3 Switch Software (CAT3K_CAA-UNIVERSALK9-M), Version 03.07.04E RELEASE SOFTWARE (fc1)\r\nTechnical Support: http://www.cisco.com/techsupport\r\nCopyright (c) 1986-2016 by Cisco Systems, Inc.\r\nCompiled Thu 19-May-16 \r\n\r\nTime remaining: 99 seconds\r\nSystem Capabilities: B,R\r\nEnabled Capabilities: B\r\nManagement Addresses:\r\n IP: 10.20.52.3\r\nAuto Negotiation - not supported\r\nPhysical media capabilities:\r\n 1000baseT(FD)\r\nMedia Attachment Unit type: 26\r\nVlan ID: 1\r\n\r\n\r\nTotal entries displayed: 1\r\n\r\nSwitch-UzelSvyzi#'
- 2018-04-24 09:04:36,555 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Match: ^Switch\-UzelSvyzi(?:[-_\d\w]+)?(?:\(config[^\)]*\))?#
- 2018-04-24 09:04:36,555 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] State: <PROMT>
- 2018-04-24 09:04:36,555 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Command: show lldp neighbors Gi1/0/49 detail
- show lldp neighbors Gi1/0/49 detail
- ------------------------------------------------
- Local Intf: Gi1/0/49
- Chassis id: 00a3.8e3c.4e00
- Port id: Gi1/1/2
- Port Description: ## DL to Switch-UzelSvyzi | Gi1/1/2 | 10.20.52.51
- System Name: Switch-CPS-2
- System Description:
- Cisco IOS Software, IOS-XE Software, Catalyst L3 Switch Software (CAT3K_CAA-UNIVERSALK9-M), Version 03.07.04E RELEASE SOFTWARE (fc1)
- Technical Support: http://www.cisco.com/techsupport
- Copyright (c) 1986-2016 by Cisco Systems, Inc.
- Compiled Thu 19-May-16
- Time remaining: 99 seconds
- System Capabilities: B,R
- Enabled Capabilities: B
- Management Addresses:
- IP: 10.20.52.3
- Auto Negotiation - not supported
- Physical media capabilities:
- 1000baseT(FD)
- Media Attachment Unit type: 26
- Vlan ID: 1
- Total entries displayed: 1
- 2018-04-24 09:04:36,555 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Closing channel
- 2018-04-24 09:04:37,057 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Cannot close channel clearly: Unable to close the channel.
- 2018-04-24 09:04:37,058 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Closing ssh session
- 2018-04-24 09:04:37,058 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Closing IOLoop
- 2018-04-24 09:04:37,060 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] Result: [{'neighbors': [{'remote_port_subtype': 1, 'remote_port_description': '## DL to Switch-UzelSvyzi | Gi1/0/10 | 10.20.52.51', 'remote_port': 'Gi0/0/3', 'remote_capabilities': 16, 'remote_chassis_id': 'A0:23:9F:FE:F7:60', 'remote_system_name': 'KND-CPS-RW01.knd-oil.ru', 'remote_chassis_id_subtype': 4}], 'local_interface': 'Gi 1/0/10'}, {'neighbors': [{'remote_port_subtype': 3, 'remote_port_description': 'eth0, CPS-WBS-2', 'remote_port': '00:04:35:03:6B:34', 'remote_capabilities': 22, 'remote_chassis_id': 'IW-224052', 'remote_system_name': 'CPS-WBS-2', 'remote_chassis_id_subtype': 7}], 'local_interface': 'Gi 1/0/2'}, {'neighbors': [{'remote_port_subtype': 3, 'remote_port_description': 'eth0, CPS-WBS-4', 'remote_port': '00:04:35:03:6B:35', 'remote_capabilities': 22, 'remote_chassis_id': 'IW-224053', 'remote_system_name': 'CPS-WBS-4', 'remote_chassis_id_subtype': 7}], 'local_interface': 'Gi 1/0/4'}, {'neighbors': [{'remote_port_subtype': 3, 'remote_port_description': 'eth0, CPS-WBS-3', 'remote_port': '00:04:35:03:6B:36', 'remote_capabilities': 22, 'remote_chassis_id': 'IW-224054', 'remote_system_name': 'CPS-WBS-3', 'remote_chassis_id_subtype': 7}], 'local_interface': 'Gi 1/0/3'}, {'neighbors': [{'remote_port_subtype': 3, 'remote_port_description': 'eth0, CPS-WBS-1', 'remote_port': '00:04:35:03:6B:37', 'remote_capabilities': 22, 'remote_chassis_id': 'IW-224055', 'remote_system_name': 'CPS-WBS-1', 'remote_chassis_id_subtype': 7}], 'local_interface': 'Gi 1/0/1'}, {'neighbors': [{'remote_port_subtype': 1, 'remote_port_description': '## DL to Switch-UzelSvyzi | Gi1/0/10 | 10.20.52.51', 'remote_port': 'Gi0/0/3', 'remote_capabilities': 16, 'remote_chassis_id': 'A0:23:9F:FE:F7:60', 'remote_system_name': 'KND-CPS-RW01.knd-oil.ru', 'remote_chassis_id_subtype': 4}], 'local_interface': 'Gi 1/0/10'}, {'neighbors': [{'remote_port_subtype': 1, 'remote_port_description': '## DL to Switch-UzelSvyzi | Gi1/1/2 | 10.20.52.51', 'remote_port': 'Gi1/1/2', 'remote_capabilities': 4, 'remote_chassis_id': '00:A3:8E:3C:4E:00', 'remote_system_name': 'Switch-CPS-2', 'remote_chassis_id_subtype': 4}], 'local_interface': 'Gi 1/0/49'}]
- 2018-04-24 09:04:37,061 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] Complete (7667.81ms)
- [{'local_interface': 'Gi 1/0/10',
- 'neighbors': [{'remote_capabilities': 16,
- 'remote_chassis_id': 'A0:23:9F:FE:F7:60',
- 'remote_chassis_id_subtype': 4,
- 'remote_port': 'Gi0/0/3',
- 'remote_port_description': '## DL to Switch-UzelSvyzi | Gi1/0/10 | 10.20.52.51',
- 'remote_port_subtype': 1,
- 'remote_system_name': 'KND-CPS-RW01.knd-oil.ru'}]},
- {'local_interface': 'Gi 1/0/2',
- 'neighbors': [{'remote_capabilities': 22,
- 'remote_chassis_id': 'IW-224052',
- 'remote_chassis_id_subtype': 7,
- 'remote_port': '00:04:35:03:6B:34',
- 'remote_port_description': 'eth0, CPS-WBS-2',
- 'remote_port_subtype': 3,
- 'remote_system_name': 'CPS-WBS-2'}]},
- {'local_interface': 'Gi 1/0/4',
- 'neighbors': [{'remote_capabilities': 22,
- 'remote_chassis_id': 'IW-224053',
- 'remote_chassis_id_subtype': 7,
- 'remote_port': '00:04:35:03:6B:35',
- 'remote_port_description': 'eth0, CPS-WBS-4',
- 'remote_port_subtype': 3,
- 'remote_system_name': 'CPS-WBS-4'}]},
- {'local_interface': 'Gi 1/0/3',
- 'neighbors': [{'remote_capabilities': 22,
- 'remote_chassis_id': 'IW-224054',
- 'remote_chassis_id_subtype': 7,
- 'remote_port': '00:04:35:03:6B:36',
- 'remote_port_description': 'eth0, CPS-WBS-3',
- 'remote_port_subtype': 3,
- 'remote_system_name': 'CPS-WBS-3'}]},
- {'local_interface': 'Gi 1/0/1',
- 'neighbors': [{'remote_capabilities': 22,
- 'remote_chassis_id': 'IW-224055',
- 'remote_chassis_id_subtype': 7,
- 'remote_port': '00:04:35:03:6B:37',
- 'remote_port_description': 'eth0, CPS-WBS-1',
- 'remote_port_subtype': 3,
- 'remote_system_name': 'CPS-WBS-1'}]},
- {'local_interface': 'Gi 1/0/10',
- 'neighbors': [{'remote_capabilities': 16,
- 'remote_chassis_id': 'A0:23:9F:FE:F7:60',
- 'remote_chassis_id_subtype': 4,
- 'remote_port': 'Gi0/0/3',
- 'remote_port_description': '## DL to Switch-UzelSvyzi | Gi1/0/10 | 10.20.52.51',
- 'remote_port_subtype': 1,
- 'remote_system_name': 'KND-CPS-RW01.knd-oil.ru'}]},
- {'local_interface': 'Gi 1/0/49',
- 'neighbors': [{'remote_capabilities': 4,
- 'remote_chassis_id': '00:A3:8E:3C:4E:00',
- 'remote_chassis_id_subtype': 4,
- 'remote_port': 'Gi1/1/2',
- 'remote_port_description': '## DL to Switch-UzelSvyzi | Gi1/1/2 | 10.20.52.51',
- 'remote_port_subtype': 1,
- 'remote_system_name': 'Switch-CPS-2'}]}]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement