Aruba & ProVision-based
1752770 Members
4703 Online
108789 Solutions
New Discussion юеВ

Re: LLDP Rest API not returning all data

 
mhult
Occasional Contributor

LLDP Rest API not returning all data

WB.16.10.0017, HP J9729A 2920-48G-POE+ Switch but also observed on other mothels and firmware.

When I run a "show lldp info remote-device 36-37" on the cli I get output from 2 devices (more lldp devices exist on the switch but left out for the example):

switch# show lldp info remote-device 36-37

LLDP Remote Device Information Detail

Local Port : 36
ChassisType : network-address
ChassisId : 192.168.120.168
PortType : mac-address
PortId : 9c 75 14 05 43 f0
SysName : Ringslink
System Descr : Ringslink
PortDescr : LAN PORT
Pvid :

System Capabilities Supported : bridge, router, telephone
System Capabilities Enabled : bridge, router, telephone

Remote Management Address

MED Information Detail
EndpointClass :Class3
Media Policy Vlan id :120
Media Policy Priority :5
Media Policy Dscp :46
Media Policy Tagged :True
Poe Device Type :PD
Power Requested :13.0 W
Power Source :From PSE
Power Priority :High

------------------------------------------------------------------------------
Local Port : 37
ChassisType : network-address
ChassisId : 192.168.120.156
PortType : mac-address
PortId : 9c 75 14 05 20 f2
SysName : Ringslink
System Descr : Ringslink
PortDescr : LAN PORT
Pvid :

System Capabilities Supported : bridge, router, telephone
System Capabilities Enabled : bridge, router, telephone

Remote Management Address

MED Information Detail
EndpointClass :Class3
Media Policy Vlan id :120
Media Policy Priority :5
Media Policy Dscp :46
Media Policy Tagged :True
Poe Device Type :PD
Power Requested :13.0 W
Power Source :From PSE
Power Priority :High

 

However when I request the REST output from https://switch/rest/v7/lldp/remote-device I only get the output from port 36:

$response = Invoke-RestMethod "https://switch/rest/v7/lldp/remote-device" -Method "GET" -Headers $headers 
Foreach ($lldp_remote_device_element in $response.lldp_remote_device_element) {
$lldp_remote_device_element
}

uri : /lldp/remote-device/36
local_port : 36
chassis_type : RCT_NETWORK_ADDRESS
chassis_id : 192.168.120.168
port_type : LPT_MAC_ADDRESS
port_id : 9c 75 14 05 43 f0
port_description : LAN PORT
system_name : Ringslink
system_description : Ringslink
pvid :
capabilities_supported : @{repeater=False; bridge=True; wlan_access_point=False; router=True; telephone=True; cable_
device=False; station_only=False}
capabilities_enabled : @{repeater=False; bridge=True; wlan_access_point=False; router=True; telephone=True; cable_
device=False; station_only=False}
remote_management_address : {}
poe_plus_info : @{requested_power_in_watts=0.0; actual_power_in_watts=0.0}

 

I do not understand why port 37 is left out of the output. I fact, we have about 130 devices like port 36 but this is the only one that shows up in de REST output of all switches?

3 REPLIES 3
akg7
HPE Pro

Re: LLDP Rest API not returning all data

Hello,

Other devices which have no issues are on same software version?

Thanks!
Note: While I am an HPE Employee, all of my comments (whether noted or not), are my own and are not any official representation of the companyAccept or Kudo
mhult
Occasional Contributor

Re: LLDP Rest API not returning all data

Hi!

Below the combinations of switches and firmwares we have at the moment. Non of those function correct:

Aruba JL255A 2930F-24G-PoE+-4SFP+ Switch
Software revision WC.16.10.0015

Aruba JL258A 2930F-8G-PoE+-2SFP+ Switch
Software revision WC.16.10.0015

HP J9729A 2920-48G-POE+ Switch
Software revision WB.16.10.0017

HP J9729A 2920-48G-POE+ Switch
Software revision WB.16.10.0015

akg7
HPE Pro

Re: LLDP Rest API not returning all data

Hello,
Apologies for delayed response. This issue needs lab intervention, can you log a case with HPE Support by using the below link:
https://support.hpe.com/hpesc/public/home/
Thanks!
Note: While I am an HPE Employee, all of my comments (whether noted or not), are my own and are not any official representation of the companyAccept or Kudo