- Community Home
- >
- Servers and Operating Systems
- >
- HPE Synergy
- >
- HPE Synergy
- >
- Re: Get switch ports details for Uplinks
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-14-2024 03:24 AM - last edited on тАО06-16-2024 11:27 PM by support_s
тАО06-14-2024 03:24 AM - last edited on тАО06-16-2024 11:27 PM by support_s
Get switch ports details for Uplinks
I tried to retrieve the information on the Switch networks where the uplink of the virtual connection of our Synergy. Unfortunately, the information does not come up with the following script, someone could help me?
The idea also of having SAN information
- Tags:
- Port
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-14-2024 07:58 AM
тАО06-14-2024 07:58 AM
Re: Get switch ports details for Uplinks
Hello,
Please refer to the document "HPE OneView 8.9 API Reference for HPE Synergy" and see if it helps.
Regards,
Views expressed herein are my personal opinion and are not the views of HPE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-14-2024 08:11 AM
тАО06-14-2024 08:11 AM
Re: Get switch ports details for Uplinks
Hello,
Thank you for sharing the API documentation, unfortunately not able to find the way to get switch details.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-14-2024 08:48 AM
тАО06-14-2024 08:48 AM
Re: Get switch ports details for Uplinks
Hello,
I issued the GET call to "/rest/interconnects/<id>/ports" in a lab environment I have access to. There is a section in the json output in the "neighbor" section where I can see this is part of the details:
"remotePortDescription": "FortyGigE1/0/50 Interface",
"remotePortId": "FortyGigE1/0/50",
"remotePortIdType": "interfaceName",
"remoteSystemCapabilities": "Bridge, Router",
"remoteSystemDescription": "HPE Comware Platform Software, Software Version 7.1.070, Release 2612P08-US\r\nHPE FF 5940 48SFP+ 6QSFP+ Switch\r\nCopyright (c) 2010-2020 Hewlett Packard Enterprise Development LP",
It seems that if LLDP is enabled on the TOR, you should be able to get similar output.
Regards
I am an HPE Employee.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
![Accept or Kudo](/html/assets/hpe_banner_SME_signature.png)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-14-2024 08:50 AM
тАО06-14-2024 08:50 AM
Re: Get switch ports details for Uplinks
FYI...I did not include any of the other details above that would be identifying (MAC, name, etc.) for the switch, but you should be able to see the same type of info in your environment.
Regards
I am an HPE Employee.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
![Accept or Kudo](/html/assets/hpe_banner_SME_signature.png)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-14-2024 09:11 AM
тАО06-14-2024 09:11 AM
Re: Get switch ports details for Uplinks
you are right, just I was about to notify you that I got it.
do you know how to get details from SAN switches?
Also from the GUI interface, I'm able to see Q3:1 connected but details are not retrieved, it can be an LLDP issue?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-14-2024 09:34 AM
тАО06-14-2024 09:34 AM
Re: Get switch ports details for Uplinks
Hello,
The same GET call should work to get details from SAN switches connected to ports using FCoE and native FC. I was able to test this on the FCoE ports, but I do not have a system available with a VC FC module to test against, but the same command should work. This will likely not work on non managed interconnects (Brocade switch).
Regards
I am an HPE Employee.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
![Accept or Kudo](/html/assets/hpe_banner_SME_signature.png)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-18-2024 04:11 AM - last edited on тАО06-19-2024 10:41 PM by Sunitha_Mod
тАО06-18-2024 04:11 AM - last edited on тАО06-19-2024 10:41 PM by Sunitha_Mod
Re: Get switch ports details for Uplinks
My problem is that I can't figure out how to match the logic functions 'b' of the converging cards with their respective 'Uplink'.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-25-2024 09:51 PM
тАО06-25-2024 09:51 PM
Re: Get switch ports details for Uplinks
# Retrieve information about all interconnects
$interconnects = Get-OVInterconnect
# Loop through each interconnect and retrieve port information
foreach ($interconnect in $interconnects) {
# Retrieve ports for the current interconnect
$ports = Send-OVRequest -Uri "$($interconnect.uri)/ports" -Session $ovSession
# Output port information
foreach ($port in $ports.members) {
Write-Host "Interconnect Name: $($interconnect.name)"
Write-Host "Port Name: $($port.portName)"
Write-Host "Enabled: $($port.enabled)"
Write-Host "Port Status: $($port.status)"
Write-Host "Port Type: $($port.portType)"
Write-Host "Connected To: $($port.connectedTo)"
Write-Host "-"
}
}
# Retrieve SAN information
$sans = Get-OVSanManager
# Loop through each SAN and retrieve related information
foreach ($san in $sans) {
Write-Host "SAN Name: $($san.name)"
Write-Host "SAN Status: $($san.status)"
Write-Host "SAN Type: $($san.type)"
Write-Host "-"
}
I'm an HPE employee.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
![Accept or Kudo](/html/assets/hpe_banner_SME_signature.png)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-27-2024 02:52 AM
тАО06-27-2024 02:52 AM
Query: Get switch ports details for Uplinks
Hello,
Let us know if you were able to resolve the issue.
If you have no further query, and you are satisfied with the answer then kindly mark the topic as Solved so that it is helpful for all community members.
Please click on "Thumbs Up/Kudo" icon to give a "Kudo".
Thank you for being a HPE valuable community member.