Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- LLDP Local info on eth0
- +---------------+-------------------------------------------------------------+
- | ChassisID: | IW-224053 (local) |
- | SysName: | CPS-WBS-4 |
- | SysDescr: | Infinet Wireless R5000 WANFleX H08S01-MINTv1.90.29 |
- | Caps: | Repeater*, Bridge*, Router* |
- | PortID: | 00:04:35:03:6B:35 (mac) |
- | PortDescr: | eth0, CPS-WBS-4 |
- | MFS: | 1728 bytes |
- | MgmtIP: | 10.10.20.1 |
- +---------------+-------------------------------------------------------------+
- CPS-WBS-4#1> lldp report
- LLDP Neighbors Table on eth0
- +---------------+-------------------------------------------------------------+
- | LLDP Mode: TxRx, Forward: disabled |
- +---------------+-------------------------------------------------------------+
- | ChassisID: | 08:CC:A7:E5:D1:00 (mac) |
- | SysName: | Switch-UzelSvyzi |
- | SysDescr: | Cisco IOS Software, C2960X Software |
- | | (C2960X-UNIVERSALK9-M), Version 15.2(2)E6, RELEASE |
- | | SOFTWARE (fc1)?Technical Support: |
- | | http://www.cisco.com/techsupport?Copyright (c) 1986-2016 |
- | | by Cisco Systems, Inc.?Compiled Fri 16-Dec-16 21:27 by |
- | | prod_rel_team |
- | Caps: | Bridge*, Router |
- | PortID: | Gi1/0/4 (ifName) |
- | PortDescr: | - Infinet BS | |
- | AutoNeg: | Supported, Enabled 0x6c01 |
- | MAU: | 100BASE-TX-FD |
- | MgmtIP: | 10.20.52.51 |
- | PVID: | 1 |
- | Last report: | 1 seconds ago, TTL 120 seconds, Age 43 days 17:01:44 |
- +---------------+-------------------------------------------------------------+
- root@Node1:/opt/noc# ./noc script --debug --pretty get_fqdn "CPS-WBS-4"
- 2018-04-24 08:55:15,559 [noc.core.dcs.base] Resolve near service postgres
- 2018-04-24 08:55:15,560 [noc.core.http.client] HTTP GET http://consul:8500/v1/health/service/postgres?passing=1&near=_agent
- 2018-04-24 08:55:15,563 [noc.core.http.client] HTTP Response 200
- 2018-04-24 08:55:15,563 [noc.core.dcs.base] Resolved near service postgres to ['10.220.21.122:5432']
- 2018-04-24 08:55:17,970 [noc.core.dcs.base] Running resolver for service mongo
- 2018-04-24 08:55:17,971 [noc.core.dcs.base] [mongo] Starting resolver
- 2018-04-24 08:55:17,971 [noc.core.http.client] HTTP GET http://consul:8500/v1/health/service/mongo?passing=1
- 2018-04-24 08:55:17,972 [noc.core.http.client] HTTP Response 200
- 2018-04-24 08:55:17,973 [noc.core.dcs.base] [mongo] Set active services to: mongo: 10.220.21.122:27017
- 2018-04-24 08:55:17,973 [noc.core.http.client] HTTP GET http://consul:8500/v1/health/service/mongo?index=2013374&passing=1
- 2018-04-24 08:55:17,974 [noc.lib.nosql] Connecting to MongoDB {'username': 'noc', 'authentication_source': 'noc', 'readPreference': 'secondaryPreferred', 'replicaSet': 'noc', 'db': 'noc', 'socketKeepAlive': True, 'host': 'mongodb://noc:********@10.220.21.122:27017/noc', 'password': '********'}
- 2018-04-24 08:55:18,237 [noc.core.cache.base] Using cache backend: noc.core.cache.mongo.MongoCache
- 2018-04-24 08:55:18,826 [noc.main.models.doccategory] Registering Capability
- 2018-04-24 08:55:18,827 [noc.main.models.doccategory] Registering MetricType
- 2018-04-24 08:55:19,126 [noc.main.models.doccategory] Registering ConnectionType
- 2018-04-24 08:55:19,131 [noc.main.models.doccategory] Registering ObjectModel
- 2018-04-24 08:55:19,157 [noc.main.models.textindex] Adding FTS index for sa.managedobject
- 2018-04-24 08:55:19,209 [noc.main.models.textindex] Adding FTS index for ip.vrf
- 2018-04-24 08:55:19,213 [noc.main.models.textindex] Adding FTS index for vc.vc
- 2018-04-24 08:55:19,223 [noc.main.models.textindex] Adding FTS index for ip.prefix
- 2018-04-24 08:55:19,328 [noc.main.models.textindex] Adding FTS index for ip.address
- 2018-04-24 08:55:19,592 [noc.core.script.loader] Loading script InfiNet.WANFlexX.get_fqdn
- 2018-04-24 08:55:19,827 [noc.core.profile.loader] Loading profile InfiNet.WANFlexX
- 2018-04-24 08:55:19,827 [script] [InfiNet.WANFlexX.get_fqdn|10.20.56.33] Filling get_version cache with {'platform': u'R5000', 'version': u'H08S01-MINTv1.90.29', 'vendor': u'INFINET'}
- 2018-04-24 08:55:19,828 [script] [InfiNet.WANFlexX.get_fqdn|10.20.56.33] Running. Input arguments: {}, timeout 3600
- 2018-04-24 08:55:19,828 [script] [InfiNet.WANFlexX.get_fqdn|10.20.56.33] [snmp] Creating IOLoop
- 2018-04-24 08:55:19,828 [script] [InfiNet.WANFlexX.get_fqdn|10.20.56.33] [snmp] Create UDP socket
- 2018-04-24 08:55:19,828 [noc.core.ioloop.snmp] [10.20.56.33] SNMP GET ['1.3.6.1.2.1.1.5.0']
- 2018-04-24 08:55:19,871 [noc.core.ioloop.snmp] [10.20.56.33] GET result: 'CPS-WBS-4'
- 2018-04-24 08:55:19,871 [script] [InfiNet.WANFlexX.get_fqdn|10.20.56.33] [snmp] Closing UDP socket
- 2018-04-24 08:55:19,871 [script] [InfiNet.WANFlexX.get_fqdn|10.20.56.33] [snmp] Closing IOLoop
- 2018-04-24 08:55:19,871 [script] [InfiNet.WANFlexX.get_fqdn|10.20.56.33] Result: CPS-WBS-4
- 2018-04-24 08:55:19,872 [script] [InfiNet.WANFlexX.get_fqdn|10.20.56.33] Complete (44.05ms)
- 'CPS-WBS-4'
- root@Node1:/opt/noc# ./noc script --debug --pretty get_chassis_id "CPS-WBS-4"
- 2018-04-24 08:59:51,426 [noc.core.dcs.base] Resolve near service postgres
- 2018-04-24 08:59:51,426 [noc.core.http.client] HTTP GET http://consul:8500/v1/health/service/postgres?passing=1&near=_agent
- 2018-04-24 08:59:51,429 [noc.core.http.client] HTTP Response 200
- 2018-04-24 08:59:51,429 [noc.core.dcs.base] Resolved near service postgres to ['10.220.21.122:5432']
- 2018-04-24 08:59:52,386 [noc.core.dcs.base] Running resolver for service mongo
- 2018-04-24 08:59:52,386 [noc.core.dcs.base] [mongo] Starting resolver
- 2018-04-24 08:59:52,386 [noc.core.http.client] HTTP GET http://consul:8500/v1/health/service/mongo?passing=1
- 2018-04-24 08:59:52,388 [noc.core.http.client] HTTP Response 200
- 2018-04-24 08:59:52,388 [noc.core.dcs.base] [mongo] Set active services to: mongo: 10.220.21.122:27017
- 2018-04-24 08:59:52,388 [noc.core.http.client] HTTP GET http://consul:8500/v1/health/service/mongo?index=2013583&passing=1
- 2018-04-24 08:59:52,389 [noc.lib.nosql] Connecting to MongoDB {'username': 'noc', 'authentication_source': 'noc', 'readPreference': 'secondaryPreferred', 'replicaSet': 'noc', 'db': 'noc', 'socketKeepAlive': True, 'host': 'mongodb://noc:********@10.220.21.122:27017/noc', 'password': '********'}
- 2018-04-24 08:59:52,451 [noc.core.cache.base] Using cache backend: noc.core.cache.mongo.MongoCache
- 2018-04-24 08:59:52,513 [noc.main.models.doccategory] Registering Capability
- 2018-04-24 08:59:52,514 [noc.main.models.doccategory] Registering MetricType
- 2018-04-24 08:59:52,550 [noc.main.models.doccategory] Registering ConnectionType
- 2018-04-24 08:59:52,553 [noc.main.models.doccategory] Registering ObjectModel
- 2018-04-24 08:59:52,563 [noc.main.models.textindex] Adding FTS index for sa.managedobject
- 2018-04-24 08:59:52,579 [noc.main.models.textindex] Adding FTS index for ip.vrf
- 2018-04-24 08:59:52,581 [noc.main.models.textindex] Adding FTS index for vc.vc
- 2018-04-24 08:59:52,585 [noc.main.models.textindex] Adding FTS index for ip.prefix
- 2018-04-24 08:59:52,590 [noc.main.models.textindex] Adding FTS index for ip.address
- 2018-04-24 08:59:52,637 [noc.core.script.loader] Loading script InfiNet.WANFlexX.get_chassis_id
- 2018-04-24 08:59:52,686 [noc.core.profile.loader] Loading profile InfiNet.WANFlexX
- 2018-04-24 08:59:52,686 [script] [InfiNet.WANFlexX.get_chassis_id|10.20.56.33] Filling get_version cache with {'platform': u'R5000', 'version': u'H08S01-MINTv1.90.29', 'vendor': u'INFINET'}
- 2018-04-24 08:59:52,686 [script] [InfiNet.WANFlexX.get_chassis_id|10.20.56.33] Running. Input arguments: {}, timeout 3600
- 2018-04-24 08:59:52,686 [script] [InfiNet.WANFlexX.get_chassis_id|10.20.56.33] Open telnet CLI
- 2018-04-24 08:59:52,688 [script] [InfiNet.WANFlexX.get_chassis_id|10.20.56.33] [telnet] Creating IOLoop
- 2018-04-24 08:59:52,690 [script] [InfiNet.WANFlexX.get_chassis_id|10.20.56.33] [telnet] Connecting (u'10.20.56.33', 23)
- 2018-04-24 08:59:52,716 [script] [InfiNet.WANFlexX.get_chassis_id|10.20.56.33] [telnet] Connected
- 2018-04-24 08:59:52,716 [script] [InfiNet.WANFlexX.get_chassis_id|10.20.56.33] [telnet] State: <START>
- 2018-04-24 08:59:52,716 [script] [InfiNet.WANFlexX.get_chassis_id|10.20.56.33] [telnet] Setting timeout: 60s
- 2018-04-24 08:59:52,745 [script] [InfiNet.WANFlexX.get_chassis_id|10.20.56.33] [telnet] Received: '\r\n'
- 2018-04-24 08:59:52,776 [script] [InfiNet.WANFlexX.get_chassis_id|10.20.56.33] [telnet] Received WILL ECHO
- 2018-04-24 08:59:52,776 [script] [InfiNet.WANFlexX.get_chassis_id|10.20.56.33] [telnet] Send DO ECHO
- 2018-04-24 08:59:52,776 [script] [InfiNet.WANFlexX.get_chassis_id|10.20.56.33] [telnet] Received DONT LINEMODE
- 2018-04-24 08:59:52,776 [script] [InfiNet.WANFlexX.get_chassis_id|10.20.56.33] [telnet] Send WONT LINEMODE
- 2018-04-24 08:59:52,776 [script] [InfiNet.WANFlexX.get_chassis_id|10.20.56.33] [telnet] Received DO SGA
- 2018-04-24 08:59:52,776 [script] [InfiNet.WANFlexX.get_chassis_id|10.20.56.33] [telnet] Send WILL SGA
- 2018-04-24 08:59:52,777 [script] [InfiNet.WANFlexX.get_chassis_id|10.20.56.33] [telnet] Received DO NAWS
- 2018-04-24 08:59:52,777 [script] [InfiNet.WANFlexX.get_chassis_id|10.20.56.33] [telnet] Send WILL NAWS
- 2018-04-24 08:59:52,777 [script] [InfiNet.WANFlexX.get_chassis_id|10.20.56.33] [telnet] Send IAC SB '\x1f' '\x00\x80\x00\x80' IAC SE
- 2018-04-24 08:59:52,777 [script] [InfiNet.WANFlexX.get_chassis_id|10.20.56.33] [telnet] Received: 'WANFleX Access Control 0\r\nCPS-WBS-4 / 224053\r\n\r\n\rLogin:\r\x1b[6C\x1b[K\r\x1b[6C'
- 2018-04-24 08:59:52,777 [script] [InfiNet.WANFlexX.get_chassis_id|10.20.56.33] [telnet] Match: ([Uu]ser ?[Nn]ame|[Ll]ogin): ?
- 2018-04-24 08:59:52,777 [script] [InfiNet.WANFlexX.get_chassis_id|10.20.56.33] [telnet] State: <USERNAME>
- 2018-04-24 08:59:52,777 [script] [InfiNet.WANFlexX.get_chassis_id|10.20.56.33] [telnet] Send: '1\r'
- 2018-04-24 08:59:52,778 [script] [InfiNet.WANFlexX.get_chassis_id|10.20.56.33] [telnet] Setting timeout: 30s
- 2018-04-24 08:59:52,806 [script] [InfiNet.WANFlexX.get_chassis_id|10.20.56.33] [telnet] Received DONT SGA
- 2018-04-24 08:59:52,807 [script] [InfiNet.WANFlexX.get_chassis_id|10.20.56.33] [telnet] Send WONT SGA
- 2018-04-24 08:59:52,832 [script] [InfiNet.WANFlexX.get_chassis_id|10.20.56.33] [telnet] Received: '1\r\n\rPassword:'
- 2018-04-24 08:59:52,832 [script] [InfiNet.WANFlexX.get_chassis_id|10.20.56.33] [telnet] Match: [Pp]ass[Ww]ord: ?
- 2018-04-24 08:59:52,833 [script] [InfiNet.WANFlexX.get_chassis_id|10.20.56.33] [telnet] State: <PASSWORD>
- 2018-04-24 08:59:52,833 [script] [InfiNet.WANFlexX.get_chassis_id|10.20.56.33] [telnet] Send: '1\r'
- 2018-04-24 08:59:52,833 [script] [InfiNet.WANFlexX.get_chassis_id|10.20.56.33] [telnet] Setting timeout: 30s
- 2018-04-24 08:59:52,857 [script] [InfiNet.WANFlexX.get_chassis_id|10.20.56.33] [telnet] Received: '\r\n'
- 2018-04-24 08:59:52,921 [script] [InfiNet.WANFlexX.get_chassis_id|10.20.56.33] [telnet] Received: '\r\n\r\n R5000\r\n InfiNet Wireless\r\n www.infinetwireless.com\r\n All rights reserved, 1997-2017\r\n R5000 WANFleX H08S01-MINTv1.90.29 * Oct 5 2017 11:14:37 * SN:224053\r\n\r\nDevice name: CPS-WBS-4\r\n\r\n *** Please setup correct DATE & TIME via "date" or "sntp" command ***\r\n\r\nUptime: 137 days 00:20:44\r\nLast reboot reason: unexpected restart\r\n*** Please change default Login and Password !!! ***\r\n\r\n\rCPS-WBS-4#2> \r\x1b[13C\x1b[K\r\x1b[13C'
- 2018-04-24 08:59:52,921 [script] [InfiNet.WANFlexX.get_chassis_id|10.20.56.33] [telnet] Match: (?P<hostname>\S+?)#\d+>
- 2018-04-24 08:59:52,921 [script] [InfiNet.WANFlexX.get_chassis_id|10.20.56.33] [telnet] State: <PROMT>
- 2018-04-24 08:59:52,921 [script] [InfiNet.WANFlexX.get_chassis_id|10.20.56.33] [telnet] Refining pattern prompt to 'CPS\\-WBS\\-4#\\d+>'
- 2018-04-24 08:59:52,921 [script] [InfiNet.WANFlexX.get_chassis_id|10.20.56.33] [telnet] Resetting timeouts
- 2018-04-24 08:59:52,922 [script] [InfiNet.WANFlexX.get_chassis_id|10.20.56.33] [telnet] Send: 'lldp local\n\r'
- 2018-04-24 08:59:52,946 [script] [InfiNet.WANFlexX.get_chassis_id|10.20.56.33] [telnet] Received: 'l'
- 2018-04-24 08:59:53,007 [script] [InfiNet.WANFlexX.get_chassis_id|10.20.56.33] [telnet] Received: 'ldp local\r\n LLDP Local info on eth0 \r\n+---------------+-------------------------------------------------------------+\r\n| ChassisID: | IW-224053 (local) |\r\n| SysName: | CPS-WBS-4 |\r\n| SysDescr: | Infinet Wireless R5000 WANFleX H08S01-MINTv1.90.29 |\r\n| Caps: | Repeater*, Bridge*, Router* |\r\n| PortID: | 00:04:35:03:6B:35 (mac) |\r\n| PortDescr: | eth0, CPS-WBS-4 |\r\n| MFS: | 1728 bytes |\r\n| MgmtIP: | 10.10.20.1 |\r\n+---------------+-------------------------------------------------------------+\r\n\r\n\rCPS-WBS-4#2> \r\x1b[13C\x1b[K\r\x1b[13C'
- 2018-04-24 08:59:53,007 [script] [InfiNet.WANFlexX.get_chassis_id|10.20.56.33] [telnet] Match: CPS\-WBS\-4#\d+>
- 2018-04-24 08:59:53,007 [script] [InfiNet.WANFlexX.get_chassis_id|10.20.56.33] [telnet] State: <PROMT>
- 2018-04-24 08:59:53,007 [script] [InfiNet.WANFlexX.get_chassis_id|10.20.56.33] [telnet] Command: lldp local
- lldp local
- LLDP Local info on eth0
- +---------------+-------------------------------------------------------------+
- | ChassisID: | IW-224053 (local) |
- | SysName: | CPS-WBS-4 |
- | SysDescr: | Infinet Wireless R5000 WANFleX H08S01-MINTv1.90.29 |
- | Caps: | Repeater*, Bridge*, Router* |
- | PortID: | 00:04:35:03:6B:35 (mac) |
- | PortDescr: | eth0, CPS-WBS-4 |
- | MFS: | 1728 bytes |
- | MgmtIP: | 10.10.20.1 |
- +---------------+-------------------------------------------------------------+
- 2018-04-24 08:59:53,008 [script] [InfiNet.WANFlexX.get_chassis_id|10.20.56.33] [telnet] Closing IOLoop
- 2018-04-24 08:59:53,008 [script] [InfiNet.WANFlexX.get_chassis_id|10.20.56.33] Result: [{'last_chassis_mac': '00:04:35:03:6B:35', 'first_chassis_mac': '00:04:35:03:6B:35'}]
- 2018-04-24 08:59:53,008 [script] [InfiNet.WANFlexX.get_chassis_id|10.20.56.33] Complete (322.05ms)
- [{'first_chassis_mac': '00:04:35:03:6B:35',
- 'last_chassis_mac': '00:04:35:03:6B:35'}]
- root@Node1:/opt/noc# ./noc script --debug --pretty get_lldp_neighbors "CPS-WBS-4"
- 2018-04-24 09:00:32,696 [noc.core.dcs.base] Resolve near service postgres
- 2018-04-24 09:00:32,697 [noc.core.http.client] HTTP GET http://consul:8500/v1/health/service/postgres?passing=1&near=_agent
- 2018-04-24 09:00:32,699 [noc.core.http.client] HTTP Response 200
- 2018-04-24 09:00:32,700 [noc.core.dcs.base] Resolved near service postgres to ['10.220.21.122:5432']
- 2018-04-24 09:00:33,604 [noc.core.dcs.base] Running resolver for service mongo
- 2018-04-24 09:00:33,605 [noc.core.dcs.base] [mongo] Starting resolver
- 2018-04-24 09:00:33,606 [noc.core.http.client] HTTP GET http://consul:8500/v1/health/service/mongo?passing=1
- 2018-04-24 09:00:33,607 [noc.core.http.client] HTTP Response 200
- 2018-04-24 09:00:33,607 [noc.core.dcs.base] [mongo] Set active services to: mongo: 10.220.21.122:27017
- 2018-04-24 09:00:33,607 [noc.core.http.client] HTTP GET http://consul:8500/v1/health/service/mongo?index=2013583&passing=1
- 2018-04-24 09:00:33,608 [noc.lib.nosql] Connecting to MongoDB {'username': 'noc', 'authentication_source': 'noc', 'readPreference': 'secondaryPreferred', 'replicaSet': 'noc', 'db': 'noc', 'socketKeepAlive': True, 'host': 'mongodb://noc:********@10.220.21.122:27017/noc', 'password': '********'}
- 2018-04-24 09:00:33,672 [noc.core.cache.base] Using cache backend: noc.core.cache.mongo.MongoCache
- 2018-04-24 09:00:33,729 [noc.main.models.doccategory] Registering Capability
- 2018-04-24 09:00:33,730 [noc.main.models.doccategory] Registering MetricType
- 2018-04-24 09:00:33,767 [noc.main.models.doccategory] Registering ConnectionType
- 2018-04-24 09:00:33,772 [noc.main.models.doccategory] Registering ObjectModel
- 2018-04-24 09:00:33,782 [noc.main.models.textindex] Adding FTS index for sa.managedobject
- 2018-04-24 09:00:33,800 [noc.main.models.textindex] Adding FTS index for ip.vrf
- 2018-04-24 09:00:33,803 [noc.main.models.textindex] Adding FTS index for vc.vc
- 2018-04-24 09:00:33,807 [noc.main.models.textindex] Adding FTS index for ip.prefix
- 2018-04-24 09:00:33,812 [noc.main.models.textindex] Adding FTS index for ip.address
- 2018-04-24 09:00:33,874 [noc.core.script.loader] Loading script InfiNet.WANFlexX.get_lldp_neighbors
- 2018-04-24 09:00:34,007 [noc.core.profile.loader] Loading profile InfiNet.WANFlexX
- 2018-04-24 09:00:34,007 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.33] Filling get_version cache with {'platform': u'R5000', 'version': u'H08S01-MINTv1.90.29', 'vendor': u'INFINET'}
- 2018-04-24 09:00:34,007 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.33] Running. Input arguments: {}, timeout 3600
- 2018-04-24 09:00:34,007 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.33] Open telnet CLI
- 2018-04-24 09:00:34,011 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.33] [telnet] Creating IOLoop
- 2018-04-24 09:00:34,011 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.33] [telnet] Connecting (u'10.20.56.33', 23)
- 2018-04-24 09:00:34,037 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.33] [telnet] Connected
- 2018-04-24 09:00:34,037 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.33] [telnet] State: <START>
- 2018-04-24 09:00:34,037 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.33] [telnet] Setting timeout: 60s
- 2018-04-24 09:00:34,062 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.33] [telnet] Received: '\r\n'
- 2018-04-24 09:00:34,086 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.33] [telnet] Received WILL ECHO
- 2018-04-24 09:00:34,086 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.33] [telnet] Send DO ECHO
- 2018-04-24 09:00:34,087 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.33] [telnet] Received DONT LINEMODE
- 2018-04-24 09:00:34,087 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.33] [telnet] Send WONT LINEMODE
- 2018-04-24 09:00:34,087 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.33] [telnet] Received DO SGA
- 2018-04-24 09:00:34,087 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.33] [telnet] Send WILL SGA
- 2018-04-24 09:00:34,087 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.33] [telnet] Received DO NAWS
- 2018-04-24 09:00:34,088 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.33] [telnet] Send WILL NAWS
- 2018-04-24 09:00:34,088 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.33] [telnet] Send IAC SB '\x1f' '\x00\x80\x00\x80' IAC SE
- 2018-04-24 09:00:34,088 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.33] [telnet] Received: 'WANFleX Access Control 0\r\nCPS-WBS-4 / 224053\r\n\r\n\rLogin:\r\x1b[6C\x1b[K\r\x1b[6C'
- 2018-04-24 09:00:34,088 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.33] [telnet] Match: ([Uu]ser ?[Nn]ame|[Ll]ogin): ?
- 2018-04-24 09:00:34,088 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.33] [telnet] State: <USERNAME>
- 2018-04-24 09:00:34,088 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.33] [telnet] Send: '1\r'
- 2018-04-24 09:00:34,089 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.33] [telnet] Setting timeout: 30s
- 2018-04-24 09:00:34,112 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.33] [telnet] Received DONT SGA
- 2018-04-24 09:00:34,112 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.33] [telnet] Send WONT SGA
- 2018-04-24 09:00:34,136 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.33] [telnet] Received: '1\r\n\rPassword:'
- 2018-04-24 09:00:34,136 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.33] [telnet] Match: [Pp]ass[Ww]ord: ?
- 2018-04-24 09:00:34,136 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.33] [telnet] State: <PASSWORD>
- 2018-04-24 09:00:34,136 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.33] [telnet] Send: '1\r'
- 2018-04-24 09:00:34,137 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.33] [telnet] Setting timeout: 30s
- 2018-04-24 09:00:34,161 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.33] [telnet] Received: '\r\n'
- 2018-04-24 09:00:34,225 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.33] [telnet] Received: '\r\n\r\n R5000\r\n InfiNet Wireless\r\n www.infinetwireless.com\r\n All rights reserved, 1997-2017\r\n R5000 WANFleX H08S01-MINTv1.90.29 * Oct 5 2017 11:14:37 * SN:224053\r\n\r\nDevice name: CPS-WBS-4\r\n\r\n *** Please setup correct DATE & TIME via "date" or "sntp" command ***\r\n\r\nUptime: 137 days 00:21:25\r\nLast reboot reason: unexpected restart\r\n*** Please change default Login and Password !!! ***\r\n\r\n\rCPS-WBS-4#2> \r\x1b[13C\x1b[K\r\x1b[13C'
- 2018-04-24 09:00:34,226 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.33] [telnet] Match: (?P<hostname>\S+?)#\d+>
- 2018-04-24 09:00:34,226 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.33] [telnet] State: <PROMT>
- 2018-04-24 09:00:34,226 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.33] [telnet] Refining pattern prompt to 'CPS\\-WBS\\-4#\\d+>'
- 2018-04-24 09:00:34,226 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.33] [telnet] Resetting timeouts
- 2018-04-24 09:00:34,227 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.33] [telnet] Send: 'lldp report\r'
- 2018-04-24 09:00:34,251 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.33] [telnet] Received: 'l'
- 2018-04-24 09:00:34,252 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.33] [telnet] Received: 'ldp report\r\n LLDP Neighbors Table on eth0 \r\n+---------------+-------------------------------------------------------------+\r\n| LLDP Mode: TxRx, Forward: disabled |\r\n+---------------+-------------------------------------------------------------+\r\n| ChassisID: | 08:CC:A7:E5:D1:00 (mac) |\r\n| SysName: | Switch-UzelSvyzi |\r\n| SysDescr: | Cisco IOS Software, C2960X Software |\r\n| | (C2960X-UNIVERSALK9-M), Version 15.2(2)E6, RELEASE |\r\n| | SOFTWARE (fc1)?Technical Support: |\r\n| | http://www.cisco.com/techsupport?Copyright (c) 1986-2016 |\r\n| | by Cisco Systems, Inc.?Compiled Fri 16-Dec-16 21:27 by |\r\n| | prod_rel_team |\r\n| Caps: | Bridge*, Router |\r\n| PortID: | Gi1/0/4 (ifName) |\r\n| PortDescr: | - Infinet BS | |\r\n| AutoNeg: | Supported, Enabled 0x6c01 |\r\n| MAU: | 100BASE-TX-FD |\r\n| MgmtIP: | 10.20.52.51 '
- 2018-04-24 09:00:34,274 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.33] [telnet] Received: ' |\r\n| PVID: | 1 |\r\n| Last report: | 11 seconds ago, TTL 120 seconds, Age 43 days 17:09:22 |\r\n+---------------+-------------------------------------------------------------+\r\n\r\n\rCPS-WBS-4#2> \r\x1b[13C\x1b[K\r\x1b[13C'
- 2018-04-24 09:00:34,275 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.33] [telnet] Match: CPS\-WBS\-4#\d+>
- 2018-04-24 09:00:34,275 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.33] [telnet] State: <PROMT>
- 2018-04-24 09:00:34,275 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.33] [telnet] Command: lldp report
- lldp report
- LLDP Neighbors Table on eth0
- +---------------+-------------------------------------------------------------+
- | LLDP Mode: TxRx, Forward: disabled |
- +---------------+-------------------------------------------------------------+
- | ChassisID: | 08:CC:A7:E5:D1:00 (mac) |
- | SysName: | Switch-UzelSvyzi |
- | SysDescr: | Cisco IOS Software, C2960X Software |
- | | (C2960X-UNIVERSALK9-M), Version 15.2(2)E6, RELEASE |
- | | SOFTWARE (fc1)?Technical Support: |
- | | http://www.cisco.com/techsupport?Copyright (c) 1986-2016 |
- | | by Cisco Systems, Inc.?Compiled Fri 16-Dec-16 21:27 by |
- | | prod_rel_team |
- | Caps: | Bridge*, Router |
- | PortID: | Gi1/0/4 (ifName) |
- | PortDescr: | - Infinet BS | |
- | AutoNeg: | Supported, Enabled 0x6c01 |
- | MAU: | 100BASE-TX-FD |
- | MgmtIP: | 10.20.52.51 |
- | PVID: | 1 |
- | Last report: | 11 seconds ago, TTL 120 seconds, Age 43 days 17:09:22 |
- +---------------+-------------------------------------------------------------+
- 2018-04-24 09:00:34,276 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.33] [telnet] Closing IOLoop
- 2018-04-24 09:00:34,276 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.33] Result: [{'neighbors': [{'remote_port_subtype': 5, 'remote_capabilities': 0, 'remote_chassis_id_subtype': 3, 'remote_chassis_id': '08:CC:A7:E5:D1:00', 'remote_port': 'Gi1/0/4'}], 'local_interface': 'eth0'}]
- 2018-04-24 09:00:34,277 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.33] Complete (269.42ms)
- [{'local_interface': 'eth0',
- 'neighbors': [{'remote_capabilities': 0,
- 'remote_chassis_id': '08:CC:A7:E5:D1:00',
- 'remote_chassis_id_subtype': 3,
- 'remote_port': 'Gi1/0/4',
- 'remote_port_subtype': 5}]}]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement