How to determine switch a PoE device is connected to

Document created by cdnadmin on Jan 24, 2014
Version 1Show Document
  • View in full screen mode
This document was generated from CDN thread

Created by: Brian Anderson on 14-01-2011 10:16:35 PM
Is there a way to back-map the switch or router that a given endpoint is plugged into in order to determine what we should perform save queries on?

I believe we can correlate endpoints that have the same host address (or alternately, the same ID portion of the Energywise ID), but is there a canonical way to determine the switch? We currently see a switch come back with a value of ¿1001¿ in the index portion of the the Energywise ID. Can we assume this will always be the case or is there a better method.

Thanks,
Brian for Jamie

Subject: RE: How to determine switch a PoE device is connected to
Replied by: Brock Miller on 18-01-2011 09:43:18 PM
Is there a way to back-map the switch or router that a given endpoint is plugged into in order to determine what we should perform save queries on?

I believe we can correlate endpoints that have the same host address (or alternately, the same ID portion of the Energywise ID), but is there a canonical way to determine the switch? We currently see a switch come back with a value of ¿1001¿ in the index portion of the the Energywise ID. Can we assume this will always be the case or is there a better method.

Thanks,
Brian for Jamie

Hi Brian/Jamie,
 
Connected endpoints that do NOT natively run the SDK (e.g. dumb PoE phone) will share the ID portion of their EnergyWise ID with the switch that they are connected.  The index portion of the ID, however, will be unique to that device.  They will also share the same host address as their connected switch.
 
For domain members (switches, routers, etc.), you can use the EW_ATTRIBUTE_TYPE_NEIGHBOR attribute to collect detailed neighbor/topology information from the network.  This includes the EnergyWise ID of all domain members in the domain, which can be used to correlate, if needed.  This will also let you know which endpoints are connected to a given switch (EW-capable endpoints only).
 
Additionally, the EW_ATTRIBUTE_TYPE_DEVICE_TYPE field is populated with the hardware model string (e.g. WS-C3560G-48PS-E) of the domain member.  While this is not as robust, it can be used as way to determine the type of device.
 
Hope this helps, thanks!

Attachments

    Outcomes