View Issue Details

IDProjectCategoryView StatusLast Update
1365RackTablesdefaultpublic2015-02-09 17:32
ReporterAxenow Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionno change required 
PlatformAll Cisco RouterOSIOS / IOS XEOS Version12.2-12.4, 15.0
Product Version0.20.8 
Summary1365: Live ports/cdp/lldp don't work for Cisco Routers
DescriptionWhen I try to run "Live ports/cdp/lldp" on any cisco router function callScript doesn't return information.
Steps To Reproduce* Add cisco router.
* Select HW to Cisco 29XX/28XX
* Select SW Type to Cisco IOS 12.X/15.X
* Run SNMP Sync to get all ports
* Run Live ports/cdp/lldp
TagsNo tags attached.

Activities

infrastation

infrastation

2014-12-11 12:13

administrator   ~0002571

How to setup: http://wiki.racktables.org/index.php/RackTablesAdminGuide#Configuring_CLI_gateways_to_network_devices
Axenow

Axenow

2014-12-11 12:31

reporter   ~0002573

When I add string to function ios12ReadCDPStatus
function ios12ReadCDPStatus ($input)
{
>>> echo "$input";
        $ret = array();
        foreach (explode ("\n", $input) as $line)

it shows me result in the browser:

???????? User Access Verification Username: conf Password: ROUTER_NAME#terminal length 0 ROUTER_NAME#terminal no monitor ROUTER_NAME#show cdp neighbors detailConnection to ROUTER_NAME.sw.ru 23 port [tcp/telnet] succeeded!

So - it could connect to device.
But it seems, that command "show cdp neighbors" doesn't return anything.

When I try to get live cdp for switch, I have got this result:
???????? User Access Verification Username: conf Password: SWITCH_NAME#terminal length 0 SWITCH_NAME#terminal no monitor SWITCH_NAME#show cdp neighbors detail ------------------------- Device ID: qqqqq(SSI182106XQ) Entry address(es): IP address: X.X.X.X Platform: N5K-C5548UP, Capabilities: Router Switch IGMP CVTA phone port Interface: TenGigabitEthernet1/51, Port ID (outgoing port): Ethernet1/29 Holdtime : 158 sec Version : Cisco Nexus Operating System (NX-OS) Software, Version 5.2(1)N1(8b) advertisement version: 2 Native VLAN: 1 Duplex: full Management address(es): IP address: X.X.X.X Unidirectional Mode: off ------------------------- Device ID: qqqq(SSI182106XQ) Entry address(es): IP address: X.X.X.X Platform: N5K-C5548UP, Capabilities: Router Switch IGMP CVTA phone port Interface: GigabitEthernet1/42, Port ID (outgoing port): mgmt0

I have "show cdp neighbors detail" output result.
infrastation

infrastation

2014-12-11 15:17

administrator   ~0002575

I recall both CDP and LLDP were working OK for IOS regardless of what the remote devices were. Does LLDP fail too?

Could you change the debug line to dump ($input) to show the original input text?
Axenow

Axenow

2014-12-11 15:25

reporter   ~0002577

Last edited: 2014-12-11 15:25

Yes, LLDP failes too.
How can I change the debug line?
If check the Page Source, it shows:
 <div class="msgbar"></div>
 <div class="pagebar">????????

User Access Verification

Username: username
Password:

ROUTER_NAME#terminal length 0
ROUTER_NAME#terminal no monitor
ROUTER_NAME#show cdp neighbors detailConnection to Router_NAME 23 port [tcp/telnet] succeeded!
<form method=post id=importDPData name=importDPData action='?module=redirect&page=object&tab=livecdp&op=importDPData'>
<input type=hidden name="object_id"

Device information:
HW Type: cisco 2821
SW Type: Cisco IOS 15.1
SW version: 15.1(4)M7

infrastation

infrastation

2014-12-13 21:09

administrator   ~0002583

Could you provide the full original text that the device returns for "show cdp neighbors detail"?
Axenow

Axenow

2014-12-15 08:38

reporter  

show_cdp_nei.txt (2,597 bytes)   
device_namesh cdp neighbors detail 
-------------------------
Device ID: device_name
Entry address(es): 
  IP address: ip_address
Platform: cisco WS-C4948E-F,  Capabilities: Router Switch IGMP 
Interface: GigabitEthernet0/0/0,  Port ID (outgoing port): GigabitEthernet1/47
Holdtime : 167 sec

Version :
Cisco IOS Software, Catalyst 4500 L3 Switch Software (cat4500e-ENTSERVICESK9-M), Version 12.2(54)WO, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2010 by Cisco Systems, Inc.
Compiled Thu 16-Dec-10 11:06 by prod_rel_team

advertisement version: 2
VTP Management Domain: ''
Native VLAN: 1
Duplex: full
Management address(es): 
  IP address: ip_address

-------------------------
Device ID: device_name
Entry address(es): 
  IP address: ip_address
Platform: cisco WS-C4948E-F,  Capabilities: Router Switch IGMP 
Interface: GigabitEthernet0,  Port ID (outgoing port): GigabitEthernet1/45
Holdtime : 167 sec

Version :
Cisco IOS Software, Catalyst 4500 L3 Switch Software (cat4500e-ENTSERVICESK9-M), Version 12.2(54)WO, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2010 by Cisco Systems, Inc.
Compiled Thu 16-Dec-10 11:06 by prod_rel_team

advertisement version: 2
VTP Management Domain: ''
Native VLAN: 500
Duplex: full
Management address(es): 
  IP address: ip_address

-------------------------
Device ID: device_name
Entry address(es): 
  IP address: ip_address
Platform: cisco ASR1001,  Capabilities: Router IGMP 
Interface: GigabitEthernet0/0/2,  Port ID (outgoing port): GigabitEthernet0/0/3
Holdtime : 155 sec

Version :
Cisco IOS Software, ASR1000 Software (X86_64_LINUX_IOSD-UNIVERSALK9-M), Version 15.4(2)S2, RELEASE SOFTWARE (fc4)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2014 by Cisco Systems, Inc.
Compiled Fri 17-Oct-14 23:29 by mcpre

advertisement version: 2
Duplex: full
Management address(es): 
  IP address: ip_address

-------------------------
Device ID: device_name
Entry address(es): 
  IP address: ip_address
Platform: cisco ASR1001,  Capabilities: Router IGMP 
Interface: GigabitEthernet0/0/3,  Port ID (outgoing port): GigabitEthernet0/0/2
Holdtime : 140 sec

Version :
Cisco IOS Software, ASR1000 Software (X86_64_LINUX_IOSD-UNIVERSALK9-M), Version 15.4(2)S2, RELEASE SOFTWARE (fc4)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2014 by Cisco Systems, Inc.
Compiled Fri 17-Oct-14 23:29 by mcpre

advertisement version: 2
Duplex: full
Management address(es): 
  IP address: ip_address


Total cdp entries displayed : 4
show_cdp_nei.txt (2,597 bytes)   
Axenow

Axenow

2014-12-15 08:38

reporter   ~0002585

In attached file "show_cdp_nei"
infrastation

infrastation

2014-12-21 14:11

administrator   ~0002587

ios12ReadCDPStatus() parses that as follows:

Array
(
    [gi0/0/0] => Array
        (
            [0] => Array
                (
                    [device] => device_name
                    [port] => GigabitEthernet1/47
                )

        )

    [gi0] => Array
        (
            [0] => Array
                (
                    [device] => device_name
                    [port] => GigabitEthernet1/45
                )

        )

    [gi0/0/2] => Array
        (
            [0] => Array
                (
                    [device] => device_name
                    [port] => GigabitEthernet0/0/3
                )

        )

    [gi0/0/3] => Array
        (
            [0] => Array
                (
                    [device] => device_name
                    [port] => GigabitEthernet0/0/2
                )

        )

)

Are there any error messages on the Live CDP object tab?
Axenow

Axenow

2014-12-21 19:56

reporter   ~0002589

Last edited: 2014-12-21 19:59

No.
Just blank white screen.
As I wrote before, the array, which is sent to ios12ReadCDPStatus doesn't have cdp information.

>>> User Access Verification Username: conf Password: ROUTER_NAME#terminal length 0 ROUTER_NAME#terminal no monitor ROUTER_NAME#show cdp neighbors detailConnection to ROUTER_NAME.sw.ru 23 port [tcp/telnet] succeeded!

It can connect to device, but the output of show cdp neighbour command isn't appeared in program.

When I do this for any switches - it works.

infrastation

infrastation

2014-12-22 06:40

administrator   ~0002591

Could you study with a packet analyzer what happens after the IOS device prints "ROUTER_NAME#show cdp neighbors detail"? Does it or the RackTables server close the TCP connection?
Axenow

Axenow

2014-12-23 09:11

reporter   ~0002593

It closes connection:
300 1.571996 SOURCE_IP_DEVICE DESINATION_IP_OF_RACKTABLES TCP 56 23?36912 [FIN, PSH, ACK] Seq=173 Ack=88 Win=4042 Len=0
infrastation

infrastation

2014-12-25 12:39

administrator   ~0002595

Maybe the device fails to implement TCP properly, this is not common for IOS but sometimes happens. Does it enable to work around if you set $params[0]['protocol'] to 'telnet'? If so, does it work set to 'netcat' if you update the device to the latest IOS version?
Axenow

Axenow

2014-12-25 16:34

reporter   ~0002597

Last edited: 2014-12-25 16:37

Neither 'telnet' or 'netcat' doesn't work. (
On these devices are installed one of the latest IOS.
It doesn't work ONLY on routers. Any switches: Nexus, Dell, Cisco Catalyst work correctly.

infrastation

infrastation

2014-12-27 14:52

administrator   ~0002599

Could you troubleshoot locally and tell where exactly the difference appears between a working (switch) and a non-working (router) telnet sessions?
Axenow

Axenow

2015-01-15 11:09

reporter   ~0002649

I will try to do it after 20th of January.
Axenow

Axenow

2015-02-09 13:21

reporter   ~0002689

I've upgraded racktables to 0.20.11 from github and now this feature works.
This ticket can be closed.
infrastation

infrastation

2015-02-09 17:32

administrator   ~0002691

Glad to hear! Closing now.

Issue History

Date Modified Username Field Change
2014-12-10 00:30 Axenow New Issue
2014-12-10 00:30 Axenow Status new => assigned
2014-12-10 00:30 Axenow Assigned To => adoom42
2014-12-10 00:57 adoom42 Assigned To adoom42 =>
2014-12-10 00:57 adoom42 Status assigned => new
2014-12-11 12:13 infrastation Note Added: 0002571
2014-12-11 12:13 infrastation Category SNMP => default
2014-12-11 12:31 Axenow Note Added: 0002573
2014-12-11 15:17 infrastation Note Added: 0002575
2014-12-11 15:25 Axenow Note Added: 0002577
2014-12-11 15:25 Axenow Note Edited: 0002577
2014-12-13 21:09 infrastation Note Added: 0002583
2014-12-15 00:11 infrastation Status new => feedback
2014-12-15 08:38 Axenow File Added: show_cdp_nei.txt
2014-12-15 08:38 Axenow Note Added: 0002585
2014-12-15 08:38 Axenow Status feedback => new
2014-12-21 14:11 infrastation Note Added: 0002587
2014-12-21 19:56 Axenow Note Added: 0002589
2014-12-21 19:59 Axenow Note Edited: 0002589
2014-12-22 06:40 infrastation Note Added: 0002591
2014-12-23 09:11 Axenow Note Added: 0002593
2014-12-25 12:39 infrastation Note Added: 0002595
2014-12-25 16:34 Axenow Note Added: 0002597
2014-12-25 16:37 Axenow Note Edited: 0002597
2014-12-27 14:52 infrastation Note Added: 0002599
2015-01-11 02:16 infrastation Status new => feedback
2015-01-15 11:09 Axenow Note Added: 0002649
2015-01-15 11:09 Axenow Status feedback => new
2015-02-09 13:21 Axenow Note Added: 0002689
2015-02-09 17:32 infrastation Note Added: 0002691
2015-02-09 17:32 infrastation Status new => closed
2015-02-09 17:32 infrastation Resolution open => no change required