Advertisement
Izya12

Switch-UzelSvyzi

Apr 24th, 2018
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 50.63 KB | None | 0 0
  1. Switch-UzelSvyzi#sh lldp neighbors Gi1/0/4 d
  2. ------------------------------------------------
  3. Local Intf: Gi1/0/4
  4. Chassis id: IW-224053
  5. Port id: 0004.3503.6b35
  6. Port Description: eth0, CPS-WBS-4
  7. System Name: CPS-WBS-4
  8.  
  9. System Description:
  10. Infinet Wireless R5000 WANFleX H08S01-MINTv1.90.29
  11.  
  12. Time remaining: 169 seconds
  13. System Capabilities: P,B,R
  14. Enabled Capabilities: P,B,R
  15. Management Addresses:
  16. IP: 10.10.20.1
  17. OID:
  18. 1.3.6.1.2.1.1.7.0.
  19. Auto Negotiation - not supported
  20. Physical media capabilities - not advertised
  21. Media Attachment Unit type - not advertised
  22. Vlan ID: - not advertised
  23.  
  24.  
  25. Total entries displayed: 1
  26.  
  27.  
  28. root@Node1:/opt/noc# ./noc script --debug --pretty get_fqdn "CPS-UzelSvyzi"
  29. 2018-04-24 09:03:35,767 [noc.core.dcs.base] Resolve near service postgres
  30. 2018-04-24 09:03:35,767 [noc.core.http.client] HTTP GET http://consul:8500/v1/health/service/postgres?passing=1&near=_agent
  31. 2018-04-24 09:03:35,770 [noc.core.http.client] HTTP Response 200
  32. 2018-04-24 09:03:35,771 [noc.core.dcs.base] Resolved near service postgres to ['10.220.21.122:5432']
  33. 2018-04-24 09:03:36,754 [noc.core.dcs.base] Running resolver for service mongo
  34. 2018-04-24 09:03:36,755 [noc.core.dcs.base] [mongo] Starting resolver
  35. 2018-04-24 09:03:36,755 [noc.core.http.client] HTTP GET http://consul:8500/v1/health/service/mongo?passing=1
  36. 2018-04-24 09:03:36,756 [noc.core.http.client] HTTP Response 200
  37. 2018-04-24 09:03:36,756 [noc.core.dcs.base] [mongo] Set active services to: mongo: 10.220.21.122:27017
  38. 2018-04-24 09:03:36,757 [noc.core.http.client] HTTP GET http://consul:8500/v1/health/service/mongo?index=2013682&passing=1
  39. 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': '********'}
  40. 2018-04-24 09:03:36,824 [noc.core.cache.base] Using cache backend: noc.core.cache.mongo.MongoCache
  41. 2018-04-24 09:03:36,902 [noc.main.models.doccategory] Registering Capability
  42. 2018-04-24 09:03:36,903 [noc.main.models.doccategory] Registering MetricType
  43. 2018-04-24 09:03:36,937 [noc.main.models.doccategory] Registering ConnectionType
  44. 2018-04-24 09:03:36,941 [noc.main.models.doccategory] Registering ObjectModel
  45. 2018-04-24 09:03:36,950 [noc.main.models.textindex] Adding FTS index for sa.managedobject
  46. 2018-04-24 09:03:36,966 [noc.main.models.textindex] Adding FTS index for ip.vrf
  47. 2018-04-24 09:03:36,969 [noc.main.models.textindex] Adding FTS index for vc.vc
  48. 2018-04-24 09:03:36,973 [noc.main.models.textindex] Adding FTS index for ip.prefix
  49. 2018-04-24 09:03:36,977 [noc.main.models.textindex] Adding FTS index for ip.address
  50. 2018-04-24 09:03:37,030 [noc.core.script.loader] Loading script Cisco.IOS.get_fqdn
  51. 2018-04-24 09:03:37,329 [noc.core.profile.loader] Loading profile Cisco.IOS
  52. 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'}
  53. 2018-04-24 09:03:37,329 [script] [Cisco.IOS.get_fqdn|10.20.52.51] Running. Input arguments: {}, timeout 3600
  54. 2018-04-24 09:03:37,329 [script] [Cisco.IOS.get_fqdn|10.20.52.51] [snmp] Creating IOLoop
  55. 2018-04-24 09:03:37,330 [script] [Cisco.IOS.get_fqdn|10.20.52.51] [snmp] Create UDP socket
  56. 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']
  57. 2018-04-24 09:03:47,361 [script] [Cisco.IOS.get_fqdn|10.20.52.51] Open ssh CLI
  58. 2018-04-24 09:03:47,564 [script] [Cisco.IOS.get_fqdn|10.20.52.51] [ssh] Setup session
  59. 2018-04-24 09:03:47,564 [script] [Cisco.IOS.get_fqdn|10.20.52.51] Disable paging
  60. 2018-04-24 09:03:47,564 [script] [Cisco.IOS.get_fqdn|10.20.52.51] [ssh] Creating IOLoop
  61. 2018-04-24 09:03:47,564 [script] [Cisco.IOS.get_fqdn|10.20.52.51] [ssh] Connecting (u'10.20.52.51', 22)
  62. 2018-04-24 09:03:47,652 [script] [Cisco.IOS.get_fqdn|10.20.52.51] [ssh] Connected
  63. 2018-04-24 09:03:47,652 [script] [Cisco.IOS.get_fqdn|10.20.52.51] [ssh] Startup ssh session for user 'noc'
  64. 2018-04-24 09:03:48,597 [script] [Cisco.IOS.get_fqdn|10.20.52.51] [ssh] Connected. Host fingerprint is c3155f1235895b83e93764b0d145ec23eb132c79
  65. 2018-04-24 09:03:48,685 [script] [Cisco.IOS.get_fqdn|10.20.52.51] [ssh] Supported authentication methods: publickey, keyboard-interactive, password
  66. 2018-04-24 09:03:48,686 [script] [Cisco.IOS.get_fqdn|10.20.52.51] [ssh] Trying publickey authentication
  67. 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
  68. 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)
  69. 2018-04-24 09:03:48,686 [script] [Cisco.IOS.get_fqdn|10.20.52.51] [ssh] Trying keyboard-interactive
  70. 2018-04-24 09:03:48,861 [script] [Cisco.IOS.get_fqdn|10.20.52.51] [ssh] Success
  71. 2018-04-24 09:03:48,861 [script] [Cisco.IOS.get_fqdn|10.20.52.51] [ssh] User is authenticated
  72. 2018-04-24 09:03:48,861 [script] [Cisco.IOS.get_fqdn|10.20.52.51] [ssh] Open channel
  73. 2018-04-24 09:03:49,116 [script] [Cisco.IOS.get_fqdn|10.20.52.51] [ssh] State: <START>
  74. 2018-04-24 09:03:49,117 [script] [Cisco.IOS.get_fqdn|10.20.52.51] [ssh] Setting timeout: 60s
  75. 2018-04-24 09:03:49,119 [script] [Cisco.IOS.get_fqdn|10.20.52.51] [ssh] Received: '\r\nSwitch-UzelSvyzi#'
  76. 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[^\)]*\))?#
  77. 2018-04-24 09:03:49,119 [script] [Cisco.IOS.get_fqdn|10.20.52.51] [ssh] State: <PROMT>
  78. 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[^\\)]*\\))?#'
  79. 2018-04-24 09:03:49,119 [script] [Cisco.IOS.get_fqdn|10.20.52.51] [ssh] Resetting timeouts
  80. 2018-04-24 09:03:49,119 [script] [Cisco.IOS.get_fqdn|10.20.52.51] [ssh] Send: 'terminal length 0\n'
  81. 2018-04-24 09:03:49,230 [script] [Cisco.IOS.get_fqdn|10.20.52.51] [ssh] Match: ^Switch\-UzelSvyzi(?:[-_\d\w]+)?(?:\(config[^\)]*\))?#
  82. 2018-04-24 09:03:49,230 [script] [Cisco.IOS.get_fqdn|10.20.52.51] [ssh] State: <PROMT>
  83. 2018-04-24 09:03:49,230 [script] [Cisco.IOS.get_fqdn|10.20.52.51] [ssh] Command: terminal length 0
  84. terminal length 0
  85.  
  86. 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'
  87. 2018-04-24 09:03:50,172 [script] [Cisco.IOS.get_fqdn|10.20.52.51] [ssh] Received: 'hostname Switch-UzelSvyzi\r\nSwitch-UzelSvyzi#'
  88. 2018-04-24 09:03:50,172 [script] [Cisco.IOS.get_fqdn|10.20.52.51] [ssh] Match: ^Switch\-UzelSvyzi(?:[-_\d\w]+)?(?:\(config[^\)]*\))?#
  89. 2018-04-24 09:03:50,172 [script] [Cisco.IOS.get_fqdn|10.20.52.51] [ssh] State: <PROMT>
  90. 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)
  91. show running-config | include ^(hostname|ip domain.name)
  92. hostname Switch-UzelSvyzi
  93.  
  94. 2018-04-24 09:03:50,172 [script] [Cisco.IOS.get_fqdn|10.20.52.51] [snmp] Closing UDP socket
  95. 2018-04-24 09:03:50,172 [script] [Cisco.IOS.get_fqdn|10.20.52.51] [snmp] Closing IOLoop
  96. 2018-04-24 09:03:50,172 [script] [Cisco.IOS.get_fqdn|10.20.52.51] [ssh] Closing channel
  97. 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.
  98. 2018-04-24 09:03:50,670 [script] [Cisco.IOS.get_fqdn|10.20.52.51] [ssh] Closing ssh session
  99. 2018-04-24 09:03:50,671 [script] [Cisco.IOS.get_fqdn|10.20.52.51] [ssh] Closing IOLoop
  100. 2018-04-24 09:03:50,671 [script] [Cisco.IOS.get_fqdn|10.20.52.51] Result: Switch-UzelSvyzi
  101. 2018-04-24 09:03:50,671 [script] [Cisco.IOS.get_fqdn|10.20.52.51] Complete (13341.49ms)
  102. 'Switch-UzelSvyzi'
  103.  
  104.  
  105. root@Node1:/opt/noc# ./noc script --debug --pretty get_chassis_id "CPS-UzelSvyzi"
  106. 2018-04-24 09:04:05,164 [noc.core.dcs.base] Resolve near service postgres
  107. 2018-04-24 09:04:05,164 [noc.core.http.client] HTTP GET http://consul:8500/v1/health/service/postgres?passing=1&near=_agent
  108. 2018-04-24 09:04:05,167 [noc.core.http.client] HTTP Response 200
  109. 2018-04-24 09:04:05,167 [noc.core.dcs.base] Resolved near service postgres to ['10.220.21.122:5432']
  110. 2018-04-24 09:04:06,117 [noc.core.dcs.base] Running resolver for service mongo
  111. 2018-04-24 09:04:06,118 [noc.core.dcs.base] [mongo] Starting resolver
  112. 2018-04-24 09:04:06,118 [noc.core.http.client] HTTP GET http://consul:8500/v1/health/service/mongo?passing=1
  113. 2018-04-24 09:04:06,119 [noc.core.http.client] HTTP Response 200
  114. 2018-04-24 09:04:06,119 [noc.core.dcs.base] [mongo] Set active services to: mongo: 10.220.21.122:27017
  115. 2018-04-24 09:04:06,120 [noc.core.http.client] HTTP GET http://consul:8500/v1/health/service/mongo?index=2013682&passing=1
  116. 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': '********'}
  117. 2018-04-24 09:04:06,184 [noc.core.cache.base] Using cache backend: noc.core.cache.mongo.MongoCache
  118. 2018-04-24 09:04:06,242 [noc.main.models.doccategory] Registering Capability
  119. 2018-04-24 09:04:06,244 [noc.main.models.doccategory] Registering MetricType
  120. 2018-04-24 09:04:06,277 [noc.main.models.doccategory] Registering ConnectionType
  121. 2018-04-24 09:04:06,281 [noc.main.models.doccategory] Registering ObjectModel
  122. 2018-04-24 09:04:06,291 [noc.main.models.textindex] Adding FTS index for sa.managedobject
  123. 2018-04-24 09:04:06,308 [noc.main.models.textindex] Adding FTS index for ip.vrf
  124. 2018-04-24 09:04:06,311 [noc.main.models.textindex] Adding FTS index for vc.vc
  125. 2018-04-24 09:04:06,314 [noc.main.models.textindex] Adding FTS index for ip.prefix
  126. 2018-04-24 09:04:06,319 [noc.main.models.textindex] Adding FTS index for ip.address
  127. 2018-04-24 09:04:06,374 [noc.core.script.loader] Loading script Cisco.IOS.get_chassis_id
  128. 2018-04-24 09:04:06,407 [noc.core.profile.loader] Loading profile Cisco.IOS
  129. 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'}
  130. 2018-04-24 09:04:06,408 [script] [Cisco.IOS.get_chassis_id|10.20.52.51] Running. Input arguments: {}, timeout 3600
  131. 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
  132. 2018-04-24 09:04:06,408 [script] [Cisco.IOS.get_chassis_id|10.20.52.51] Open ssh CLI
  133. 2018-04-24 09:04:06,414 [script] [Cisco.IOS.get_chassis_id|10.20.52.51] [ssh] Setup session
  134. 2018-04-24 09:04:06,414 [script] [Cisco.IOS.get_chassis_id|10.20.52.51] Disable paging
  135. 2018-04-24 09:04:06,414 [script] [Cisco.IOS.get_chassis_id|10.20.52.51] [ssh] Creating IOLoop
  136. 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)
  137. 2018-04-24 09:04:06,513 [script] [Cisco.IOS.get_chassis_id|10.20.52.51] [ssh] Connected
  138. 2018-04-24 09:04:06,513 [script] [Cisco.IOS.get_chassis_id|10.20.52.51] [ssh] Startup ssh session for user 'noc'
  139. 2018-04-24 09:04:07,938 [script] [Cisco.IOS.get_chassis_id|10.20.52.51] [ssh] Connected. Host fingerprint is c3155f1235895b83e93764b0d145ec23eb132c79
  140. 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
  141. 2018-04-24 09:04:11,169 [script] [Cisco.IOS.get_chassis_id|10.20.52.51] [ssh] Trying publickey authentication
  142. 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
  143. 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)
  144. 2018-04-24 09:04:11,169 [script] [Cisco.IOS.get_chassis_id|10.20.52.51] [ssh] Trying keyboard-interactive
  145. 2018-04-24 09:04:11,335 [script] [Cisco.IOS.get_chassis_id|10.20.52.51] [ssh] Success
  146. 2018-04-24 09:04:11,335 [script] [Cisco.IOS.get_chassis_id|10.20.52.51] [ssh] User is authenticated
  147. 2018-04-24 09:04:11,335 [script] [Cisco.IOS.get_chassis_id|10.20.52.51] [ssh] Open channel
  148. 2018-04-24 09:04:11,567 [script] [Cisco.IOS.get_chassis_id|10.20.52.51] [ssh] State: <START>
  149. 2018-04-24 09:04:11,567 [script] [Cisco.IOS.get_chassis_id|10.20.52.51] [ssh] Setting timeout: 60s
  150. 2018-04-24 09:04:11,567 [script] [Cisco.IOS.get_chassis_id|10.20.52.51] [ssh] Received: '\r\nSwitch-UzelSvyzi#'
  151. 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[^\)]*\))?#
  152. 2018-04-24 09:04:11,568 [script] [Cisco.IOS.get_chassis_id|10.20.52.51] [ssh] State: <PROMT>
  153. 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[^\\)]*\\))?#'
  154. 2018-04-24 09:04:11,568 [script] [Cisco.IOS.get_chassis_id|10.20.52.51] [ssh] Resetting timeouts
  155. 2018-04-24 09:04:11,568 [script] [Cisco.IOS.get_chassis_id|10.20.52.51] [ssh] Send: 'terminal length 0\n'
  156. 2018-04-24 09:04:11,729 [script] [Cisco.IOS.get_chassis_id|10.20.52.51] [ssh] Match: ^Switch\-UzelSvyzi(?:[-_\d\w]+)?(?:\(config[^\)]*\))?#
  157. 2018-04-24 09:04:11,729 [script] [Cisco.IOS.get_chassis_id|10.20.52.51] [ssh] State: <PROMT>
  158. 2018-04-24 09:04:11,729 [script] [Cisco.IOS.get_chassis_id|10.20.52.51] [ssh] Command: terminal length 0
  159. terminal length 0
  160.  
  161. 2018-04-24 09:04:11,729 [script] [Cisco.IOS.get_chassis_id|10.20.52.51] [ssh] Send: 'show version\n'
  162. 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#'
  163. 2018-04-24 09:04:11,898 [script] [Cisco.IOS.get_chassis_id|10.20.52.51] [ssh] Match: ^Switch\-UzelSvyzi(?:[-_\d\w]+)?(?:\(config[^\)]*\))?#
  164. 2018-04-24 09:04:11,898 [script] [Cisco.IOS.get_chassis_id|10.20.52.51] [ssh] State: <PROMT>
  165. 2018-04-24 09:04:11,898 [script] [Cisco.IOS.get_chassis_id|10.20.52.51] [ssh] Command: show version
  166. show version
  167. Cisco IOS Software, C2960X Software (C2960X-UNIVERSALK9-M), Version 15.2(2)E6, RELEASE SOFTWARE (fc1)
  168. Technical Support: http://www.cisco.com/techsupport
  169. Copyright (c) 1986-2016 by Cisco Systems, Inc.
  170. Compiled Fri 16-Dec-16 21:27 by prod_rel_team
  171.  
  172. ROM: Bootstrap program is C2960X boot loader
  173. BOOTLDR: C2960X Boot Loader (C2960X-HBOOT-M) Version 15.2(3r)E1, RELEASE SOFTWARE (fc1)
  174.  
  175. Switch-UzelSvyzi uptime is 22 weeks, 6 days, 15 hours, 30 minutes
  176. System returned to ROM by power-on
  177. System restarted at 19:31:44 EKT Tue Nov 14 2017
  178. System image file is "flash:/c2960x-universalk9-mz.152-2.E6/c2960x-universalk9-mz.152-2.E6.bin"
  179. Last reload reason: power-on
  180.  
  181.  
  182.  
  183. This product contains cryptographic features and is subject to United
  184. States and local country laws governing import, export, transfer and
  185. use. Delivery of Cisco cryptographic products does not imply
  186. third-party authority to import, export, distribute or use encryption.
  187. Importers, exporters, distributors and users are responsible for
  188. compliance with U.S. and local country laws. By using this product you
  189. agree to comply with applicable laws and regulations. If you are unable
  190. to comply with U.S. and local laws, return this product immediately.
  191.  
  192. A summary of U.S. laws governing Cisco cryptographic products may be found at:
  193. http://www.cisco.com/wwl/export/crypto/tool/stqrg.html
  194.  
  195. If you require further assistance please contact us by sending email to
  196. export@cisco.com.
  197.  
  198. cisco WS-C2960X-48LPD-L (APM86XXX) processor (revision A0) with 524288K bytes of memory.
  199. Processor board ID JTV2109105U
  200. Last reset from power-on
  201. 3 Virtual Ethernet interfaces
  202. 1 FastEthernet interface
  203. 50 Gigabit Ethernet interfaces
  204. 2 Ten Gigabit Ethernet interfaces
  205. The password-recovery mechanism is enabled.
  206.  
  207. 512K bytes of flash-simulated non-volatile configuration memory.
  208. Base ethernet MAC Address : 08:CC:A7:E5:D1:00
  209. Motherboard assembly number : 73-16687-05
  210. Power supply part number : 341-0528-02
  211. Motherboard serial number : FOC204745PZ
  212. Power supply serial number : DCC2040923T
  213. Model revision number : A0
  214. Motherboard revision number : A0
  215. Model number : WS-C2960RX-48LPD-L
  216. Daughterboard assembly number : 73-14200-03
  217. Daughterboard serial number : FOC204861UR
  218. System serial number : JTV2109105U
  219. Top Assembly Part Number : 68-5897-02
  220. Top Assembly Revision Number : A0
  221. Version ID : V02
  222. Daughterboard revision number : A0
  223. Hardware Board Revision Number : 0x18
  224.  
  225.  
  226. Switch Ports Model SW Version SW Image
  227. ------ ----- ----- ---------- ----------
  228. * 1 52 WS-C2960X-48LPD-L 15.2(2)E6 C2960X-UNIVERSALK9-M
  229.  
  230.  
  231. Configuration register is 0xF
  232.  
  233.  
  234. 2018-04-24 09:04:11,899 [script] [Cisco.IOS.get_chassis_id|10.20.52.51] [ssh] Closing channel
  235. 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.
  236. 2018-04-24 09:04:12,075 [script] [Cisco.IOS.get_chassis_id|10.20.52.51] [ssh] Closing ssh session
  237. 2018-04-24 09:04:12,075 [script] [Cisco.IOS.get_chassis_id|10.20.52.51] [ssh] Closing IOLoop
  238. 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'}]
  239. 2018-04-24 09:04:12,076 [script] [Cisco.IOS.get_chassis_id|10.20.52.51] Complete (5667.77ms)
  240. [{'first_chassis_mac': '08:CC:A7:E5:D1:00',
  241. 'last_chassis_mac': '08:CC:A7:E5:D1:00'}]
  242. root@Node1:/opt/noc#
  243. root@Node1:/opt/noc#
  244. root@Node1:/opt/noc#
  245. root@Node1:/opt/noc# ./noc script --debug --pretty get_lldp_neighbors "CPS-UzelSvyzi"
  246. 2018-04-24 09:04:28,051 [noc.core.dcs.base] Resolve near service postgres
  247. 2018-04-24 09:04:28,051 [noc.core.http.client] HTTP GET http://consul:8500/v1/health/service/postgres?passing=1&near=_agent
  248. 2018-04-24 09:04:28,054 [noc.core.http.client] HTTP Response 200
  249. 2018-04-24 09:04:28,055 [noc.core.dcs.base] Resolved near service postgres to ['10.220.21.122:5432']
  250. 2018-04-24 09:04:28,978 [noc.core.dcs.base] Running resolver for service mongo
  251. 2018-04-24 09:04:28,979 [noc.core.dcs.base] [mongo] Starting resolver
  252. 2018-04-24 09:04:28,979 [noc.core.http.client] HTTP GET http://consul:8500/v1/health/service/mongo?passing=1
  253. 2018-04-24 09:04:28,980 [noc.core.http.client] HTTP Response 200
  254. 2018-04-24 09:04:28,981 [noc.core.dcs.base] [mongo] Set active services to: mongo: 10.220.21.122:27017
  255. 2018-04-24 09:04:28,981 [noc.core.http.client] HTTP GET http://consul:8500/v1/health/service/mongo?index=2013688&passing=1
  256. 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': '********'}
  257. 2018-04-24 09:04:29,056 [noc.core.cache.base] Using cache backend: noc.core.cache.mongo.MongoCache
  258. 2018-04-24 09:04:29,115 [noc.main.models.doccategory] Registering Capability
  259. 2018-04-24 09:04:29,116 [noc.main.models.doccategory] Registering MetricType
  260. 2018-04-24 09:04:29,151 [noc.main.models.doccategory] Registering ConnectionType
  261. 2018-04-24 09:04:29,154 [noc.main.models.doccategory] Registering ObjectModel
  262. 2018-04-24 09:04:29,164 [noc.main.models.textindex] Adding FTS index for sa.managedobject
  263. 2018-04-24 09:04:29,180 [noc.main.models.textindex] Adding FTS index for ip.vrf
  264. 2018-04-24 09:04:29,182 [noc.main.models.textindex] Adding FTS index for vc.vc
  265. 2018-04-24 09:04:29,186 [noc.main.models.textindex] Adding FTS index for ip.prefix
  266. 2018-04-24 09:04:29,190 [noc.main.models.textindex] Adding FTS index for ip.address
  267. 2018-04-24 09:04:29,306 [noc.core.script.loader] Loading script Cisco.IOS.get_lldp_neighbors
  268. 2018-04-24 09:04:29,392 [noc.core.profile.loader] Loading profile Cisco.IOS
  269. 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'}
  270. 2018-04-24 09:04:29,393 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] Running. Input arguments: {}, timeout 3600
  271. 2018-04-24 09:04:29,393 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] Open ssh CLI
  272. 2018-04-24 09:04:29,398 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Setup session
  273. 2018-04-24 09:04:29,398 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] Disable paging
  274. 2018-04-24 09:04:29,399 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Creating IOLoop
  275. 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)
  276. 2018-04-24 09:04:29,502 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Connected
  277. 2018-04-24 09:04:29,503 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Startup ssh session for user 'noc'
  278. 2018-04-24 09:04:30,116 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Connected. Host fingerprint is c3155f1235895b83e93764b0d145ec23eb132c79
  279. 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
  280. 2018-04-24 09:04:30,218 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Trying publickey authentication
  281. 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
  282. 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)
  283. 2018-04-24 09:04:30,219 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Trying keyboard-interactive
  284. 2018-04-24 09:04:30,432 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Success
  285. 2018-04-24 09:04:30,432 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] User is authenticated
  286. 2018-04-24 09:04:30,432 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Open channel
  287. 2018-04-24 09:04:31,058 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] State: <START>
  288. 2018-04-24 09:04:31,058 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Setting timeout: 60s
  289. 2018-04-24 09:04:31,061 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Received: '\r\nSwitch-UzelSvyzi#'
  290. 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[^\)]*\))?#
  291. 2018-04-24 09:04:31,061 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] State: <PROMT>
  292. 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[^\\)]*\\))?#'
  293. 2018-04-24 09:04:31,062 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Resetting timeouts
  294. 2018-04-24 09:04:31,062 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Send: 'terminal length 0\n'
  295. 2018-04-24 09:04:31,151 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Match: ^Switch\-UzelSvyzi(?:[-_\d\w]+)?(?:\(config[^\)]*\))?#
  296. 2018-04-24 09:04:31,151 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] State: <PROMT>
  297. 2018-04-24 09:04:31,151 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Command: terminal length 0
  298. terminal length 0
  299.  
  300. 2018-04-24 09:04:31,151 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Send: 'show lldp neighbors\n'
  301. 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#'
  302. 2018-04-24 09:04:31,333 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Match: ^Switch\-UzelSvyzi(?:[-_\d\w]+)?(?:\(config[^\)]*\))?#
  303. 2018-04-24 09:04:31,333 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] State: <PROMT>
  304. 2018-04-24 09:04:31,333 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Command: show lldp neighbors
  305. show lldp neighbors
  306. Capability codes:
  307. (R) Router, (B) Bridge, (T) Telephone, (C) DOCSIS Cable Device
  308. (W) WLAN Access Point, (P) Repeater, (S) Station, (O) Other
  309.  
  310. Device ID Local Intf Hold-time Capability Port ID
  311. KND-CPS-RW01.knd-oilGi1/0/10 120 R Gi0/0/3
  312. CPS-WBS-2 Gi1/0/2 180 P,B,R 0004.3503.6b34
  313. CPS-WBS-4 Gi1/0/4 180 P,B,R 0004.3503.6b35
  314. CPS-WBS-3 Gi1/0/3 180 P,B,R 0004.3503.6b36
  315. CPS-WBS-1 Gi1/0/1 180 P,B,R 0004.3503.6b37
  316. KND-CPS-RW01.knd-oilGi1/0/10 120 R Gi0/0/3.22
  317. Switch-CPS-2 Gi1/0/49 120 B Gi1/1/2
  318.  
  319. Total entries displayed: 7
  320.  
  321.  
  322. 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'
  323. ------\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#'
  324. 2018-04-24 09:04:31,539 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Match: ^Switch\-UzelSvyzi(?:[-_\d\w]+)?(?:\(config[^\)]*\))?#
  325. 2018-04-24 09:04:31,539 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] State: <PROMT>
  326. 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
  327. show lldp neighbors Gi1/0/10 detail
  328. ------------------------------------------------
  329. Local Intf: Gi1/0/10
  330. Chassis id: a023.9ffe.f760
  331. Port id: Gi0/0/3
  332. Port Description: ## DL to Switch-UzelSvyzi | Gi1/0/10 | 10.20.52.51
  333. System Name: KND-CPS-RW01.knd-oil.ru
  334.  
  335. System Description:
  336. Cisco IOS Software, ISR Software (X86_64_LINUX_IOSD-UNIVERSALK9_NPE-M), Version 15.5(3)S4b, RELEASE SOFTWARE (fc1)
  337. Technical Support: http://www.cisco.com/techsupport
  338. Copyright (c) 1986-2016 by Cisco Systems, Inc.
  339. Compiled Mon 17-Oct-16 20:23 by mcpre
  340.  
  341. Time remaining: 96 seconds
  342. System Capabilities: B,R
  343. Enabled Capabilities: R
  344. Management Addresses:
  345. IP: 10.20.52.50
  346. Auto Negotiation - not supported
  347. Physical media capabilities - not advertised
  348. Media Attachment Unit type - not advertised
  349. Vlan ID: - not advertised
  350.  
  351. ------------------------------------------------
  352. Local Intf: Gi1/0/10
  353. Chassis id: a023.9ffe.f760
  354. Port id: Gi0/0/3.22
  355. Port Description: ## mgmt
  356. System Name: KND-CPS-RW01.knd-oil.ru
  357.  
  358. System Description:
  359. Cisco IOS Software, ISR Software (X86_64_LINUX_IOSD-UNIVERSALK9_NPE-M), Version 15.5(3)S4b, RELEASE SOFTWARE (fc1)
  360. Technical Support: http://www.cisco.com/techsupport
  361. Copyright (c) 1986-2016 by Cisco Systems, Inc.
  362. Compiled Mon 17-Oct-16 20:23 by mcpre
  363.  
  364. Time remaining: 97 seconds
  365. System Capabilities: B,R
  366. Enabled Capabilities: R
  367. Management Addresses:
  368. IP: 10.20.52.50
  369. Auto Negotiation - not supported
  370. Physical media capabilities - not advertised
  371. Media Attachment Unit type - not advertised
  372. Vlan ID: - not advertised
  373.  
  374.  
  375. Total entries displayed: 2
  376.  
  377.  
  378. 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'
  379. ------\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#'
  380. 2018-04-24 09:04:32,038 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Match: ^Switch\-UzelSvyzi(?:[-_\d\w]+)?(?:\(config[^\)]*\))?#
  381. 2018-04-24 09:04:32,038 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] State: <PROMT>
  382. 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
  383. show lldp neighbors Gi1/0/2 detail
  384. ------------------------------------------------
  385. Local Intf: Gi1/0/2
  386. Chassis id: IW-224052
  387. Port id: 0004.3503.6b34
  388. Port Description: eth0, CPS-WBS-2
  389. System Name: CPS-WBS-2
  390.  
  391. System Description:
  392. Infinet Wireless R5000 WANFleX H08S01-MINTv1.90.29
  393.  
  394. Time remaining: 146 seconds
  395. System Capabilities: P,B,R
  396. Enabled Capabilities: P,B,R
  397. Management Addresses:
  398. IP: 10.20.56.31
  399. OID:
  400. 1.3.6.1.2.1.1.7.0.
  401. Auto Negotiation - not supported
  402. Physical media capabilities - not advertised
  403. Media Attachment Unit type - not advertised
  404. Vlan ID: - not advertised
  405.  
  406.  
  407. Total entries displayed: 1
  408.  
  409.  
  410. 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'
  411. 2018-04-24 09:04:32,145 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Received: 'show lldp neig'
  412. ------\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#'
  413. 2018-04-24 09:04:32,263 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Match: ^Switch\-UzelSvyzi(?:[-_\d\w]+)?(?:\(config[^\)]*\))?#
  414. 2018-04-24 09:04:32,263 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] State: <PROMT>
  415. 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
  416. show lldp neighbors Gi1/0/4 detail
  417. ------------------------------------------------
  418. Local Intf: Gi1/0/4
  419. Chassis id: IW-224053
  420. Port id: 0004.3503.6b35
  421. Port Description: eth0, CPS-WBS-4
  422. System Name: CPS-WBS-4
  423.  
  424. System Description:
  425. Infinet Wireless R5000 WANFleX H08S01-MINTv1.90.29
  426.  
  427. Time remaining: 142 seconds
  428. System Capabilities: P,B,R
  429. Enabled Capabilities: P,B,R
  430. Management Addresses:
  431. IP: 10.10.20.1
  432. OID:
  433. 1.3.6.1.2.1.1.7.0.
  434. Auto Negotiation - not supported
  435. Physical media capabilities - not advertised
  436. Media Attachment Unit type - not advertised
  437. Vlan ID: - not advertised
  438.  
  439.  
  440. Total entries displayed: 1
  441.  
  442.  
  443. 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'
  444. ------\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#'
  445. 2018-04-24 09:04:32,506 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Match: ^Switch\-UzelSvyzi(?:[-_\d\w]+)?(?:\(config[^\)]*\))?#
  446. 2018-04-24 09:04:32,506 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] State: <PROMT>
  447. 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
  448. show lldp neighbors Gi1/0/3 detail
  449. ------------------------------------------------
  450. Local Intf: Gi1/0/3
  451. Chassis id: IW-224054
  452. Port id: 0004.3503.6b36
  453. Port Description: eth0, CPS-WBS-3
  454. System Name: CPS-WBS-3
  455.  
  456. System Description:
  457. Infinet Wireless R5000 WANFleX H08S01-MINTv1.90.29
  458.  
  459. Time remaining: 165 seconds
  460. System Capabilities: P,B,R
  461. Enabled Capabilities: P,B,R
  462. Management Addresses:
  463. IP: 10.10.20.1
  464. OID:
  465. 1.3.6.1.2.1.1.7.0.
  466. Auto Negotiation - not supported
  467. Physical media capabilities - not advertised
  468. Media Attachment Unit type - not advertised
  469. Vlan ID: - not advertised
  470.  
  471.  
  472. Total entries displayed: 1
  473.  
  474.  
  475. 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'
  476. ------------\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#'
  477. 2018-04-24 09:04:33,739 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Match: ^Switch\-UzelSvyzi(?:[-_\d\w]+)?(?:\(config[^\)]*\))?#
  478. 2018-04-24 09:04:33,739 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] State: <PROMT>
  479. 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
  480. show lldp neighbors Gi1/0/1 detail
  481. ------------------------------------------------
  482. Local Intf: Gi1/0/1
  483. Chassis id: IW-224055
  484. Port id: 0004.3503.6b37
  485. Port Description: eth0, CPS-WBS-1
  486. System Name: CPS-WBS-1
  487.  
  488. System Description:
  489. Infinet Wireless R5000 WANFleX H08S01-MINTv1.90.29
  490.  
  491. Time remaining: 171 seconds
  492. System Capabilities: P,B,R
  493. Enabled Capabilities: P,B,R
  494. Management Addresses:
  495. IP: 10.10.20.1
  496. OID:
  497. 1.3.6.1.2.1.1.7.0.
  498. Auto Negotiation - not supported
  499. Physical media capabilities - not advertised
  500. Media Attachment Unit type - not advertised
  501. Vlan ID: - not advertised
  502.  
  503.  
  504. Total entries displayed: 1
  505.  
  506.  
  507. 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'
  508. ------\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#'
  509. 2018-04-24 09:04:34,338 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Match: ^Switch\-UzelSvyzi(?:[-_\d\w]+)?(?:\(config[^\)]*\))?#
  510. 2018-04-24 09:04:34,339 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] State: <PROMT>
  511. 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
  512. show lldp neighbors Gi1/0/10 detail
  513. ------------------------------------------------
  514. Local Intf: Gi1/0/10
  515. Chassis id: a023.9ffe.f760
  516. Port id: Gi0/0/3
  517. Port Description: ## DL to Switch-UzelSvyzi | Gi1/0/10 | 10.20.52.51
  518. System Name: KND-CPS-RW01.knd-oil.ru
  519.  
  520. System Description:
  521. Cisco IOS Software, ISR Software (X86_64_LINUX_IOSD-UNIVERSALK9_NPE-M), Version 15.5(3)S4b, RELEASE SOFTWARE (fc1)
  522. Technical Support: http://www.cisco.com/techsupport
  523. Copyright (c) 1986-2016 by Cisco Systems, Inc.
  524. Compiled Mon 17-Oct-16 20:23 by mcpre
  525.  
  526. Time remaining: 93 seconds
  527. System Capabilities: B,R
  528. Enabled Capabilities: R
  529. Management Addresses:
  530. IP: 10.20.52.50
  531. Auto Negotiation - not supported
  532. Physical media capabilities - not advertised
  533. Media Attachment Unit type - not advertised
  534. Vlan ID: - not advertised
  535.  
  536. ------------------------------------------------
  537. Local Intf: Gi1/0/10
  538. Chassis id: a023.9ffe.f760
  539. Port id: Gi0/0/3.22
  540. Port Description: ## mgmt
  541. System Name: KND-CPS-RW01.knd-oil.ru
  542.  
  543. System Description:
  544. Cisco IOS Software, ISR Software (X86_64_LINUX_IOSD-UNIVERSALK9_NPE-M), Version 15.5(3)S4b, RELEASE SOFTWARE (fc1)
  545. Technical Support: http://www.cisco.com/techsupport
  546. Copyright (c) 1986-2016 by Cisco Systems, Inc.
  547. Compiled Mon 17-Oct-16 20:23 by mcpre
  548.  
  549. Time remaining: 94 seconds
  550. System Capabilities: B,R
  551. Enabled Capabilities: R
  552. Management Addresses:
  553. IP: 10.20.52.50
  554. Auto Negotiation - not supported
  555. Physical media capabilities - not advertised
  556. Media Attachment Unit type - not advertised
  557. Vlan ID: - not advertised
  558.  
  559.  
  560. Total entries displayed: 2
  561.  
  562.  
  563. 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'
  564. 2018-04-24 09:04:34,451 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Received: 'show lldp neighbors '
  565. 2018-04-24 09:04:34,552 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Received: 'G'
  566. 2018-04-24 09:04:35,542 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Received: 'i1/0/49 det'
  567. 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#'
  568. 2018-04-24 09:04:36,555 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Match: ^Switch\-UzelSvyzi(?:[-_\d\w]+)?(?:\(config[^\)]*\))?#
  569. 2018-04-24 09:04:36,555 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] State: <PROMT>
  570. 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
  571. show lldp neighbors Gi1/0/49 detail
  572. ------------------------------------------------
  573. Local Intf: Gi1/0/49
  574. Chassis id: 00a3.8e3c.4e00
  575. Port id: Gi1/1/2
  576. Port Description: ## DL to Switch-UzelSvyzi | Gi1/1/2 | 10.20.52.51
  577. System Name: Switch-CPS-2
  578.  
  579. System Description:
  580. Cisco IOS Software, IOS-XE Software, Catalyst L3 Switch Software (CAT3K_CAA-UNIVERSALK9-M), Version 03.07.04E RELEASE SOFTWARE (fc1)
  581. Technical Support: http://www.cisco.com/techsupport
  582. Copyright (c) 1986-2016 by Cisco Systems, Inc.
  583. Compiled Thu 19-May-16
  584.  
  585. Time remaining: 99 seconds
  586. System Capabilities: B,R
  587. Enabled Capabilities: B
  588. Management Addresses:
  589. IP: 10.20.52.3
  590. Auto Negotiation - not supported
  591. Physical media capabilities:
  592. 1000baseT(FD)
  593. Media Attachment Unit type: 26
  594. Vlan ID: 1
  595.  
  596.  
  597. Total entries displayed: 1
  598.  
  599.  
  600. 2018-04-24 09:04:36,555 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Closing channel
  601. 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.
  602. 2018-04-24 09:04:37,058 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Closing ssh session
  603. 2018-04-24 09:04:37,058 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Closing IOLoop
  604. 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'}]
  605. 2018-04-24 09:04:37,061 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] Complete (7667.81ms)
  606. [{'local_interface': 'Gi 1/0/10',
  607. 'neighbors': [{'remote_capabilities': 16,
  608. 'remote_chassis_id': 'A0:23:9F:FE:F7:60',
  609. 'remote_chassis_id_subtype': 4,
  610. 'remote_port': 'Gi0/0/3',
  611. 'remote_port_description': '## DL to Switch-UzelSvyzi | Gi1/0/10 | 10.20.52.51',
  612. 'remote_port_subtype': 1,
  613. 'remote_system_name': 'KND-CPS-RW01.knd-oil.ru'}]},
  614. {'local_interface': 'Gi 1/0/2',
  615. 'neighbors': [{'remote_capabilities': 22,
  616. 'remote_chassis_id': 'IW-224052',
  617. 'remote_chassis_id_subtype': 7,
  618. 'remote_port': '00:04:35:03:6B:34',
  619. 'remote_port_description': 'eth0, CPS-WBS-2',
  620. 'remote_port_subtype': 3,
  621. 'remote_system_name': 'CPS-WBS-2'}]},
  622. {'local_interface': 'Gi 1/0/4',
  623. 'neighbors': [{'remote_capabilities': 22,
  624. 'remote_chassis_id': 'IW-224053',
  625. 'remote_chassis_id_subtype': 7,
  626. 'remote_port': '00:04:35:03:6B:35',
  627. 'remote_port_description': 'eth0, CPS-WBS-4',
  628. 'remote_port_subtype': 3,
  629. 'remote_system_name': 'CPS-WBS-4'}]},
  630. {'local_interface': 'Gi 1/0/3',
  631. 'neighbors': [{'remote_capabilities': 22,
  632. 'remote_chassis_id': 'IW-224054',
  633. 'remote_chassis_id_subtype': 7,
  634. 'remote_port': '00:04:35:03:6B:36',
  635. 'remote_port_description': 'eth0, CPS-WBS-3',
  636. 'remote_port_subtype': 3,
  637. 'remote_system_name': 'CPS-WBS-3'}]},
  638. {'local_interface': 'Gi 1/0/1',
  639. 'neighbors': [{'remote_capabilities': 22,
  640. 'remote_chassis_id': 'IW-224055',
  641. 'remote_chassis_id_subtype': 7,
  642. 'remote_port': '00:04:35:03:6B:37',
  643. 'remote_port_description': 'eth0, CPS-WBS-1',
  644. 'remote_port_subtype': 3,
  645. 'remote_system_name': 'CPS-WBS-1'}]},
  646. {'local_interface': 'Gi 1/0/10',
  647. 'neighbors': [{'remote_capabilities': 16,
  648. 'remote_chassis_id': 'A0:23:9F:FE:F7:60',
  649. 'remote_chassis_id_subtype': 4,
  650. 'remote_port': 'Gi0/0/3',
  651. 'remote_port_description': '## DL to Switch-UzelSvyzi | Gi1/0/10 | 10.20.52.51',
  652. 'remote_port_subtype': 1,
  653. 'remote_system_name': 'KND-CPS-RW01.knd-oil.ru'}]},
  654. {'local_interface': 'Gi 1/0/49',
  655. 'neighbors': [{'remote_capabilities': 4,
  656. 'remote_chassis_id': '00:A3:8E:3C:4E:00',
  657. 'remote_chassis_id_subtype': 4,
  658. 'remote_port': 'Gi1/1/2',
  659. 'remote_port_description': '## DL to Switch-UzelSvyzi | Gi1/1/2 | 10.20.52.51',
  660. 'remote_port_subtype': 1,
  661. 'remote_system_name': 'Switch-CPS-2'}]}]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement