Izya12

Switch-UzelSvyzi

Apr 24th, 2018
250
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\[email protected].\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.  
  197. cisco WS-C2960X-48LPD-L (APM86XXX) processor (revision A0) with 524288K bytes of memory.
  198. Processor board ID JTV2109105U
  199. Last reset from power-on
  200. 3 Virtual Ethernet interfaces
  201. 1 FastEthernet interface
  202. 50 Gigabit Ethernet interfaces
  203. 2 Ten Gigabit Ethernet interfaces
  204. The password-recovery mechanism is enabled.
  205.  
  206. 512K bytes of flash-simulated non-volatile configuration memory.
  207. Base ethernet MAC Address : 08:CC:A7:E5:D1:00
  208. Motherboard assembly number : 73-16687-05
  209. Power supply part number : 341-0528-02
  210. Motherboard serial number : FOC204745PZ
  211. Power supply serial number : DCC2040923T
  212. Model revision number : A0
  213. Motherboard revision number : A0
  214. Model number : WS-C2960RX-48LPD-L
  215. Daughterboard assembly number : 73-14200-03
  216. Daughterboard serial number : FOC204861UR
  217. System serial number : JTV2109105U
  218. Top Assembly Part Number : 68-5897-02
  219. Top Assembly Revision Number : A0
  220. Version ID : V02
  221. Daughterboard revision number : A0
  222. Hardware Board Revision Number : 0x18
  223.  
  224.  
  225. Switch Ports Model SW Version SW Image
  226. ------ ----- ----- ---------- ----------
  227. * 1 52 WS-C2960X-48LPD-L 15.2(2)E6 C2960X-UNIVERSALK9-M
  228.  
  229.  
  230. Configuration register is 0xF
  231.  
  232.  
  233. 2018-04-24 09:04:11,899 [script] [Cisco.IOS.get_chassis_id|10.20.52.51] [ssh] Closing channel
  234. 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.
  235. 2018-04-24 09:04:12,075 [script] [Cisco.IOS.get_chassis_id|10.20.52.51] [ssh] Closing ssh session
  236. 2018-04-24 09:04:12,075 [script] [Cisco.IOS.get_chassis_id|10.20.52.51] [ssh] Closing IOLoop
  237. 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'}]
  238. 2018-04-24 09:04:12,076 [script] [Cisco.IOS.get_chassis_id|10.20.52.51] Complete (5667.77ms)
  239. [{'first_chassis_mac': '08:CC:A7:E5:D1:00',
  240. 'last_chassis_mac': '08:CC:A7:E5:D1:00'}]
  241. root@Node1:/opt/noc#
  242. root@Node1:/opt/noc#
  243. root@Node1:/opt/noc#
  244. root@Node1:/opt/noc# ./noc script --debug --pretty get_lldp_neighbors "CPS-UzelSvyzi"
  245. 2018-04-24 09:04:28,051 [noc.core.dcs.base] Resolve near service postgres
  246. 2018-04-24 09:04:28,051 [noc.core.http.client] HTTP GET http://consul:8500/v1/health/service/postgres?passing=1&near=_agent
  247. 2018-04-24 09:04:28,054 [noc.core.http.client] HTTP Response 200
  248. 2018-04-24 09:04:28,055 [noc.core.dcs.base] Resolved near service postgres to ['10.220.21.122:5432']
  249. 2018-04-24 09:04:28,978 [noc.core.dcs.base] Running resolver for service mongo
  250. 2018-04-24 09:04:28,979 [noc.core.dcs.base] [mongo] Starting resolver
  251. 2018-04-24 09:04:28,979 [noc.core.http.client] HTTP GET http://consul:8500/v1/health/service/mongo?passing=1
  252. 2018-04-24 09:04:28,980 [noc.core.http.client] HTTP Response 200
  253. 2018-04-24 09:04:28,981 [noc.core.dcs.base] [mongo] Set active services to: mongo: 10.220.21.122:27017
  254. 2018-04-24 09:04:28,981 [noc.core.http.client] HTTP GET http://consul:8500/v1/health/service/mongo?index=2013688&passing=1
  255. 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': '********'}
  256. 2018-04-24 09:04:29,056 [noc.core.cache.base] Using cache backend: noc.core.cache.mongo.MongoCache
  257. 2018-04-24 09:04:29,115 [noc.main.models.doccategory] Registering Capability
  258. 2018-04-24 09:04:29,116 [noc.main.models.doccategory] Registering MetricType
  259. 2018-04-24 09:04:29,151 [noc.main.models.doccategory] Registering ConnectionType
  260. 2018-04-24 09:04:29,154 [noc.main.models.doccategory] Registering ObjectModel
  261. 2018-04-24 09:04:29,164 [noc.main.models.textindex] Adding FTS index for sa.managedobject
  262. 2018-04-24 09:04:29,180 [noc.main.models.textindex] Adding FTS index for ip.vrf
  263. 2018-04-24 09:04:29,182 [noc.main.models.textindex] Adding FTS index for vc.vc
  264. 2018-04-24 09:04:29,186 [noc.main.models.textindex] Adding FTS index for ip.prefix
  265. 2018-04-24 09:04:29,190 [noc.main.models.textindex] Adding FTS index for ip.address
  266. 2018-04-24 09:04:29,306 [noc.core.script.loader] Loading script Cisco.IOS.get_lldp_neighbors
  267. 2018-04-24 09:04:29,392 [noc.core.profile.loader] Loading profile Cisco.IOS
  268. 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'}
  269. 2018-04-24 09:04:29,393 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] Running. Input arguments: {}, timeout 3600
  270. 2018-04-24 09:04:29,393 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] Open ssh CLI
  271. 2018-04-24 09:04:29,398 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Setup session
  272. 2018-04-24 09:04:29,398 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] Disable paging
  273. 2018-04-24 09:04:29,399 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Creating IOLoop
  274. 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)
  275. 2018-04-24 09:04:29,502 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Connected
  276. 2018-04-24 09:04:29,503 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Startup ssh session for user 'noc'
  277. 2018-04-24 09:04:30,116 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Connected. Host fingerprint is c3155f1235895b83e93764b0d145ec23eb132c79
  278. 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
  279. 2018-04-24 09:04:30,218 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Trying publickey authentication
  280. 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
  281. 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)
  282. 2018-04-24 09:04:30,219 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Trying keyboard-interactive
  283. 2018-04-24 09:04:30,432 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Success
  284. 2018-04-24 09:04:30,432 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] User is authenticated
  285. 2018-04-24 09:04:30,432 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Open channel
  286. 2018-04-24 09:04:31,058 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] State: <START>
  287. 2018-04-24 09:04:31,058 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Setting timeout: 60s
  288. 2018-04-24 09:04:31,061 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Received: '\r\nSwitch-UzelSvyzi#'
  289. 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[^\)]*\))?#
  290. 2018-04-24 09:04:31,061 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] State: <PROMT>
  291. 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[^\\)]*\\))?#'
  292. 2018-04-24 09:04:31,062 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Resetting timeouts
  293. 2018-04-24 09:04:31,062 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Send: 'terminal length 0\n'
  294. 2018-04-24 09:04:31,151 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Match: ^Switch\-UzelSvyzi(?:[-_\d\w]+)?(?:\(config[^\)]*\))?#
  295. 2018-04-24 09:04:31,151 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] State: <PROMT>
  296. 2018-04-24 09:04:31,151 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Command: terminal length 0
  297. terminal length 0
  298.  
  299. 2018-04-24 09:04:31,151 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Send: 'show lldp neighbors\n'
  300. 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#'
  301. 2018-04-24 09:04:31,333 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Match: ^Switch\-UzelSvyzi(?:[-_\d\w]+)?(?:\(config[^\)]*\))?#
  302. 2018-04-24 09:04:31,333 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] State: <PROMT>
  303. 2018-04-24 09:04:31,333 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Command: show lldp neighbors
  304. show lldp neighbors
  305. Capability codes:
  306. (R) Router, (B) Bridge, (T) Telephone, (C) DOCSIS Cable Device
  307. (W) WLAN Access Point, (P) Repeater, (S) Station, (O) Other
  308.  
  309. Device ID Local Intf Hold-time Capability Port ID
  310. KND-CPS-RW01.knd-oilGi1/0/10 120 R Gi0/0/3
  311. CPS-WBS-2 Gi1/0/2 180 P,B,R 0004.3503.6b34
  312. CPS-WBS-4 Gi1/0/4 180 P,B,R 0004.3503.6b35
  313. CPS-WBS-3 Gi1/0/3 180 P,B,R 0004.3503.6b36
  314. CPS-WBS-1 Gi1/0/1 180 P,B,R 0004.3503.6b37
  315. KND-CPS-RW01.knd-oilGi1/0/10 120 R Gi0/0/3.22
  316. Switch-CPS-2 Gi1/0/49 120 B Gi1/1/2
  317.  
  318. Total entries displayed: 7
  319.  
  320.  
  321. 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'
  322. ------\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#'
  323. 2018-04-24 09:04:31,539 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Match: ^Switch\-UzelSvyzi(?:[-_\d\w]+)?(?:\(config[^\)]*\))?#
  324. 2018-04-24 09:04:31,539 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] State: <PROMT>
  325. 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
  326. show lldp neighbors Gi1/0/10 detail
  327. ------------------------------------------------
  328. Local Intf: Gi1/0/10
  329. Chassis id: a023.9ffe.f760
  330. Port id: Gi0/0/3
  331. Port Description: ## DL to Switch-UzelSvyzi | Gi1/0/10 | 10.20.52.51
  332. System Name: KND-CPS-RW01.knd-oil.ru
  333.  
  334. System Description:
  335. Cisco IOS Software, ISR Software (X86_64_LINUX_IOSD-UNIVERSALK9_NPE-M), Version 15.5(3)S4b, RELEASE SOFTWARE (fc1)
  336. Technical Support: http://www.cisco.com/techsupport
  337. Copyright (c) 1986-2016 by Cisco Systems, Inc.
  338. Compiled Mon 17-Oct-16 20:23 by mcpre
  339.  
  340. Time remaining: 96 seconds
  341. System Capabilities: B,R
  342. Enabled Capabilities: R
  343. Management Addresses:
  344. IP: 10.20.52.50
  345. Auto Negotiation - not supported
  346. Physical media capabilities - not advertised
  347. Media Attachment Unit type - not advertised
  348. Vlan ID: - not advertised
  349.  
  350. ------------------------------------------------
  351. Local Intf: Gi1/0/10
  352. Chassis id: a023.9ffe.f760
  353. Port id: Gi0/0/3.22
  354. Port Description: ## mgmt
  355. System Name: KND-CPS-RW01.knd-oil.ru
  356.  
  357. System Description:
  358. Cisco IOS Software, ISR Software (X86_64_LINUX_IOSD-UNIVERSALK9_NPE-M), Version 15.5(3)S4b, RELEASE SOFTWARE (fc1)
  359. Technical Support: http://www.cisco.com/techsupport
  360. Copyright (c) 1986-2016 by Cisco Systems, Inc.
  361. Compiled Mon 17-Oct-16 20:23 by mcpre
  362.  
  363. Time remaining: 97 seconds
  364. System Capabilities: B,R
  365. Enabled Capabilities: R
  366. Management Addresses:
  367. IP: 10.20.52.50
  368. Auto Negotiation - not supported
  369. Physical media capabilities - not advertised
  370. Media Attachment Unit type - not advertised
  371. Vlan ID: - not advertised
  372.  
  373.  
  374. Total entries displayed: 2
  375.  
  376.  
  377. 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'
  378. ------\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#'
  379. 2018-04-24 09:04:32,038 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Match: ^Switch\-UzelSvyzi(?:[-_\d\w]+)?(?:\(config[^\)]*\))?#
  380. 2018-04-24 09:04:32,038 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] State: <PROMT>
  381. 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
  382. show lldp neighbors Gi1/0/2 detail
  383. ------------------------------------------------
  384. Local Intf: Gi1/0/2
  385. Chassis id: IW-224052
  386. Port id: 0004.3503.6b34
  387. Port Description: eth0, CPS-WBS-2
  388. System Name: CPS-WBS-2
  389.  
  390. System Description:
  391. Infinet Wireless R5000 WANFleX H08S01-MINTv1.90.29
  392.  
  393. Time remaining: 146 seconds
  394. System Capabilities: P,B,R
  395. Enabled Capabilities: P,B,R
  396. Management Addresses:
  397. IP: 10.20.56.31
  398. OID:
  399. 1.3.6.1.2.1.1.7.0.
  400. Auto Negotiation - not supported
  401. Physical media capabilities - not advertised
  402. Media Attachment Unit type - not advertised
  403. Vlan ID: - not advertised
  404.  
  405.  
  406. Total entries displayed: 1
  407.  
  408.  
  409. 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'
  410. 2018-04-24 09:04:32,145 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Received: 'show lldp neig'
  411. ------\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#'
  412. 2018-04-24 09:04:32,263 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Match: ^Switch\-UzelSvyzi(?:[-_\d\w]+)?(?:\(config[^\)]*\))?#
  413. 2018-04-24 09:04:32,263 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] State: <PROMT>
  414. 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
  415. show lldp neighbors Gi1/0/4 detail
  416. ------------------------------------------------
  417. Local Intf: Gi1/0/4
  418. Chassis id: IW-224053
  419. Port id: 0004.3503.6b35
  420. Port Description: eth0, CPS-WBS-4
  421. System Name: CPS-WBS-4
  422.  
  423. System Description:
  424. Infinet Wireless R5000 WANFleX H08S01-MINTv1.90.29
  425.  
  426. Time remaining: 142 seconds
  427. System Capabilities: P,B,R
  428. Enabled Capabilities: P,B,R
  429. Management Addresses:
  430. IP: 10.10.20.1
  431. OID:
  432. 1.3.6.1.2.1.1.7.0.
  433. Auto Negotiation - not supported
  434. Physical media capabilities - not advertised
  435. Media Attachment Unit type - not advertised
  436. Vlan ID: - not advertised
  437.  
  438.  
  439. Total entries displayed: 1
  440.  
  441.  
  442. 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'
  443. ------\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#'
  444. 2018-04-24 09:04:32,506 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Match: ^Switch\-UzelSvyzi(?:[-_\d\w]+)?(?:\(config[^\)]*\))?#
  445. 2018-04-24 09:04:32,506 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] State: <PROMT>
  446. 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
  447. show lldp neighbors Gi1/0/3 detail
  448. ------------------------------------------------
  449. Local Intf: Gi1/0/3
  450. Chassis id: IW-224054
  451. Port id: 0004.3503.6b36
  452. Port Description: eth0, CPS-WBS-3
  453. System Name: CPS-WBS-3
  454.  
  455. System Description:
  456. Infinet Wireless R5000 WANFleX H08S01-MINTv1.90.29
  457.  
  458. Time remaining: 165 seconds
  459. System Capabilities: P,B,R
  460. Enabled Capabilities: P,B,R
  461. Management Addresses:
  462. IP: 10.10.20.1
  463. OID:
  464. 1.3.6.1.2.1.1.7.0.
  465. Auto Negotiation - not supported
  466. Physical media capabilities - not advertised
  467. Media Attachment Unit type - not advertised
  468. Vlan ID: - not advertised
  469.  
  470.  
  471. Total entries displayed: 1
  472.  
  473.  
  474. 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'
  475. ------------\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#'
  476. 2018-04-24 09:04:33,739 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Match: ^Switch\-UzelSvyzi(?:[-_\d\w]+)?(?:\(config[^\)]*\))?#
  477. 2018-04-24 09:04:33,739 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] State: <PROMT>
  478. 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
  479. show lldp neighbors Gi1/0/1 detail
  480. ------------------------------------------------
  481. Local Intf: Gi1/0/1
  482. Chassis id: IW-224055
  483. Port id: 0004.3503.6b37
  484. Port Description: eth0, CPS-WBS-1
  485. System Name: CPS-WBS-1
  486.  
  487. System Description:
  488. Infinet Wireless R5000 WANFleX H08S01-MINTv1.90.29
  489.  
  490. Time remaining: 171 seconds
  491. System Capabilities: P,B,R
  492. Enabled Capabilities: P,B,R
  493. Management Addresses:
  494. IP: 10.10.20.1
  495. OID:
  496. 1.3.6.1.2.1.1.7.0.
  497. Auto Negotiation - not supported
  498. Physical media capabilities - not advertised
  499. Media Attachment Unit type - not advertised
  500. Vlan ID: - not advertised
  501.  
  502.  
  503. Total entries displayed: 1
  504.  
  505.  
  506. 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'
  507. ------\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#'
  508. 2018-04-24 09:04:34,338 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Match: ^Switch\-UzelSvyzi(?:[-_\d\w]+)?(?:\(config[^\)]*\))?#
  509. 2018-04-24 09:04:34,339 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] State: <PROMT>
  510. 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
  511. show lldp neighbors Gi1/0/10 detail
  512. ------------------------------------------------
  513. Local Intf: Gi1/0/10
  514. Chassis id: a023.9ffe.f760
  515. Port id: Gi0/0/3
  516. Port Description: ## DL to Switch-UzelSvyzi | Gi1/0/10 | 10.20.52.51
  517. System Name: KND-CPS-RW01.knd-oil.ru
  518.  
  519. System Description:
  520. Cisco IOS Software, ISR Software (X86_64_LINUX_IOSD-UNIVERSALK9_NPE-M), Version 15.5(3)S4b, RELEASE SOFTWARE (fc1)
  521. Technical Support: http://www.cisco.com/techsupport
  522. Copyright (c) 1986-2016 by Cisco Systems, Inc.
  523. Compiled Mon 17-Oct-16 20:23 by mcpre
  524.  
  525. Time remaining: 93 seconds
  526. System Capabilities: B,R
  527. Enabled Capabilities: R
  528. Management Addresses:
  529. IP: 10.20.52.50
  530. Auto Negotiation - not supported
  531. Physical media capabilities - not advertised
  532. Media Attachment Unit type - not advertised
  533. Vlan ID: - not advertised
  534.  
  535. ------------------------------------------------
  536. Local Intf: Gi1/0/10
  537. Chassis id: a023.9ffe.f760
  538. Port id: Gi0/0/3.22
  539. Port Description: ## mgmt
  540. System Name: KND-CPS-RW01.knd-oil.ru
  541.  
  542. System Description:
  543. Cisco IOS Software, ISR Software (X86_64_LINUX_IOSD-UNIVERSALK9_NPE-M), Version 15.5(3)S4b, RELEASE SOFTWARE (fc1)
  544. Technical Support: http://www.cisco.com/techsupport
  545. Copyright (c) 1986-2016 by Cisco Systems, Inc.
  546. Compiled Mon 17-Oct-16 20:23 by mcpre
  547.  
  548. Time remaining: 94 seconds
  549. System Capabilities: B,R
  550. Enabled Capabilities: R
  551. Management Addresses:
  552. IP: 10.20.52.50
  553. Auto Negotiation - not supported
  554. Physical media capabilities - not advertised
  555. Media Attachment Unit type - not advertised
  556. Vlan ID: - not advertised
  557.  
  558.  
  559. Total entries displayed: 2
  560.  
  561.  
  562. 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'
  563. 2018-04-24 09:04:34,451 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Received: 'show lldp neighbors '
  564. 2018-04-24 09:04:34,552 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Received: 'G'
  565. 2018-04-24 09:04:35,542 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Received: 'i1/0/49 det'
  566. 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#'
  567. 2018-04-24 09:04:36,555 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Match: ^Switch\-UzelSvyzi(?:[-_\d\w]+)?(?:\(config[^\)]*\))?#
  568. 2018-04-24 09:04:36,555 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] State: <PROMT>
  569. 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
  570. show lldp neighbors Gi1/0/49 detail
  571. ------------------------------------------------
  572. Local Intf: Gi1/0/49
  573. Chassis id: 00a3.8e3c.4e00
  574. Port id: Gi1/1/2
  575. Port Description: ## DL to Switch-UzelSvyzi | Gi1/1/2 | 10.20.52.51
  576. System Name: Switch-CPS-2
  577.  
  578. System Description:
  579. Cisco IOS Software, IOS-XE Software, Catalyst L3 Switch Software (CAT3K_CAA-UNIVERSALK9-M), Version 03.07.04E RELEASE SOFTWARE (fc1)
  580. Technical Support: http://www.cisco.com/techsupport
  581. Copyright (c) 1986-2016 by Cisco Systems, Inc.
  582. Compiled Thu 19-May-16
  583.  
  584. Time remaining: 99 seconds
  585. System Capabilities: B,R
  586. Enabled Capabilities: B
  587. Management Addresses:
  588. IP: 10.20.52.3
  589. Auto Negotiation - not supported
  590. Physical media capabilities:
  591. 1000baseT(FD)
  592. Media Attachment Unit type: 26
  593. Vlan ID: 1
  594.  
  595.  
  596. Total entries displayed: 1
  597.  
  598.  
  599. 2018-04-24 09:04:36,555 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Closing channel
  600. 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.
  601. 2018-04-24 09:04:37,058 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Closing ssh session
  602. 2018-04-24 09:04:37,058 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] [ssh] Closing IOLoop
  603. 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'}]
  604. 2018-04-24 09:04:37,061 [script] [Cisco.IOS.get_lldp_neighbors|10.20.52.51] Complete (7667.81ms)
  605. [{'local_interface': 'Gi 1/0/10',
  606. 'neighbors': [{'remote_capabilities': 16,
  607. 'remote_chassis_id': 'A0:23:9F:FE:F7:60',
  608. 'remote_chassis_id_subtype': 4,
  609. 'remote_port': 'Gi0/0/3',
  610. 'remote_port_description': '## DL to Switch-UzelSvyzi | Gi1/0/10 | 10.20.52.51',
  611. 'remote_port_subtype': 1,
  612. 'remote_system_name': 'KND-CPS-RW01.knd-oil.ru'}]},
  613. {'local_interface': 'Gi 1/0/2',
  614. 'neighbors': [{'remote_capabilities': 22,
  615. 'remote_chassis_id': 'IW-224052',
  616. 'remote_chassis_id_subtype': 7,
  617. 'remote_port': '00:04:35:03:6B:34',
  618. 'remote_port_description': 'eth0, CPS-WBS-2',
  619. 'remote_port_subtype': 3,
  620. 'remote_system_name': 'CPS-WBS-2'}]},
  621. {'local_interface': 'Gi 1/0/4',
  622. 'neighbors': [{'remote_capabilities': 22,
  623. 'remote_chassis_id': 'IW-224053',
  624. 'remote_chassis_id_subtype': 7,
  625. 'remote_port': '00:04:35:03:6B:35',
  626. 'remote_port_description': 'eth0, CPS-WBS-4',
  627. 'remote_port_subtype': 3,
  628. 'remote_system_name': 'CPS-WBS-4'}]},
  629. {'local_interface': 'Gi 1/0/3',
  630. 'neighbors': [{'remote_capabilities': 22,
  631. 'remote_chassis_id': 'IW-224054',
  632. 'remote_chassis_id_subtype': 7,
  633. 'remote_port': '00:04:35:03:6B:36',
  634. 'remote_port_description': 'eth0, CPS-WBS-3',
  635. 'remote_port_subtype': 3,
  636. 'remote_system_name': 'CPS-WBS-3'}]},
  637. {'local_interface': 'Gi 1/0/1',
  638. 'neighbors': [{'remote_capabilities': 22,
  639. 'remote_chassis_id': 'IW-224055',
  640. 'remote_chassis_id_subtype': 7,
  641. 'remote_port': '00:04:35:03:6B:37',
  642. 'remote_port_description': 'eth0, CPS-WBS-1',
  643. 'remote_port_subtype': 3,
  644. 'remote_system_name': 'CPS-WBS-1'}]},
  645. {'local_interface': 'Gi 1/0/10',
  646. 'neighbors': [{'remote_capabilities': 16,
  647. 'remote_chassis_id': 'A0:23:9F:FE:F7:60',
  648. 'remote_chassis_id_subtype': 4,
  649. 'remote_port': 'Gi0/0/3',
  650. 'remote_port_description': '## DL to Switch-UzelSvyzi | Gi1/0/10 | 10.20.52.51',
  651. 'remote_port_subtype': 1,
  652. 'remote_system_name': 'KND-CPS-RW01.knd-oil.ru'}]},
  653. {'local_interface': 'Gi 1/0/49',
  654. 'neighbors': [{'remote_capabilities': 4,
  655. 'remote_chassis_id': '00:A3:8E:3C:4E:00',
  656. 'remote_chassis_id_subtype': 4,
  657. 'remote_port': 'Gi1/1/2',
  658. 'remote_port_description': '## DL to Switch-UzelSvyzi | Gi1/1/2 | 10.20.52.51',
  659. 'remote_port_subtype': 1,
  660. 'remote_system_name': 'Switch-CPS-2'}]}]
Advertisement
Add Comment
Please, Sign In to add comment