dell / iDRAC-Redfish-Scripting

Python and PowerShell scripting for Dell EMC PowerEdge iDRAC REST API with DMTF Redfish
GNU General Public License v2.0
609 stars 279 forks source link

Redfish API for switch connection information #226

Closed vnikolin closed 2 years ago

vnikolin commented 2 years ago

I'm working with Dell R650/740/750 and iDRAC 5.x. I'm looking for Redfish API that would provide network connection switch information ie. mac/switch name/port name etc. Similar information can be fetched with "racadm switchconnection view" or viewed from iDRAC UI "Switch Connection ID" and "Switch Port Connection ID". I see some reference in Redfish documentation it but I'm unable to find API in actual system. Any suggestions pls lmk.

Thanks! V

URL /redfish/v1/Dell/Systems//NetworkPorts/DellSwitchConnection/

texroemer commented 2 years ago

Hi @vnikolin

GET on URI "redfish/v1/Managers/iDRAC.Embedded.1", under Oem you should see URI "/redfish/v1/Systems/System.Embedded.1/NetworkPorts/Oem/Dell/DellSwitchConnections". Run GET on this URI to get the switch details you're looking for, same output as RACADM and GUI.

image

Let me know if you don't see this URI under Oem.

Thanks Tex

vnikolin commented 2 years ago

Thanks for the info Tex! Found it.

Just a quick follow up... is there any other API to provide any other switch information ie. switch name etc?

image

texroemer commented 2 years ago

Currently not supported by iDRAC to get switch details like model, manufacturer, firmware version, etc using any iDRAC interface. DMTF does support Switch resource but iDRAC currently doesn't support. I'll escalate this request to Dell internal teams to see if this support can be added in a future iDRAC release.

Thanks Tex

vnikolin commented 2 years ago

Thanks again for the quick follow up Tex!

Regards, V

texroemer commented 2 years ago

No problem, glad to help!

-Tex