Comments (6)
Thanks a lot ! This really helped .
from idrac-redfish-scripting.
To get all FC or NIC devices in your server, run a GET on URI "redfish/v1/Systems/System.Embedded.1/NetworkAdapters". This will return URIs for all NIC / FC devices in your server with slot information. You can then run on a GET on that specific URI for detailed information on that device.
Example of GET on URI "redfish/v1/Systems/System.Embedded.1/NetworkAdapters":
@odata.context | "/redfish/v1/$metadata#NetworkAdapterCollection.NetworkAdapterCollection" |
@odata.id | "/redfish/v1/Systems/System.Embedded.1/NetworkAdapters" |
@odata.type | "#NetworkAdapterCollection.NetworkAdapterCollection" |
Description | "Collection Of Network Adapter" |
Members | |
0 | |
@odata.id | "/redfish/v1/Systems/System.Embedded.1/NetworkAdapters/NIC.Integrated.1" |
1 | |
@odata.id | "/redfish/v1/Systems/System.Embedded.1/NetworkAdapters/FC.Slot.4" |
[email protected] | 2 |
Name | "Network Adapter Collection" |
from idrac-redfish-scripting.
worked as always :)
from idrac-redfish-scripting.
What all fibre channel parameters can be changed through Write/PUT/Patch via redfish api?
from idrac-redfish-scripting.
Hi @yograj099
Supported DMTF properties (DMTF only supports a limited number) for FC cards are available under URI:
redfish/v1/Chassis/System.Embedded.1/NetworkAdapters/{NetworkAdapterId}/NetworkDeviceFunctions/{NetworkDeviceFunctionId}?$select=FibreChannel
URI example: redfish/v1/Chassis/System.Embedded.1/NetworkAdapters/FC.Slot.2/NetworkDeviceFunctions/FC.Slot.2-1?$select=FibreChannel
Support OEM properties (large number of supported properties) for FC are available under URI:
redfish/v1/Chassis/System.Embedded.1/NetworkAdapters/{NetworkAdapterId}/NetworkDeviceFunctions/{NetworkDeviceFunctionId}/Oem/Dell/DellNetworkAttributes/{NetworkDeviceFunctionId}?$select=Attributes
URI example:
redfish/v1/Chassis/System.Embedded.1/NetworkAdapters/FC.Slot.2/NetworkDeviceFunctions/FC.Slot.2-1/Oem/Dell/DellNetworkAttributes/FC.Slot.2-1?$select=Attributes
Example of supported DMTF properties listed:
C:\Python310>python SetNetworkDevicePropertiesREDFISH.py -ip 192.168.0.120 -u root -p calvin --get-properties FC.Slot.2-1
- Properties for network device FC.Slot.2-1 -
- iSCSIBoot Attributes -
- FibreChannel Attributes -
BootTargets: [{'LUNID': '0', 'WWPN': '00:00:00:00:00:00:00:00'}]
[email protected]: 1
FCoEActiveVLANId: None
FCoELocalVLANId: None
PermanentWWNN: 20:00:00:10:9B:90:66:30
PermanentWWPN: 10:00:00:10:9B:90:66:30
WWNN: 20:00:00:10:9B:90:66:30
WWNSource: ProvidedByFabric
WWPN: 10:00:00:10:9B:90:66:30
Example of OEM properties supported:
C:\Python310>python GetSetOemNetworkDevicePropertiesREDFISH.py -ip 192.168.0.120 -u root -p calvin --get-all-attributes FC.Slot.2-1
- FC.Slot.2-1 Attributes -
Attribute Name: DeviceName, Attribute Value: LPe35002-M2-D
Attribute Name: WWN, Attribute Value: 20:00:00:10:9B:90:66:30
Attribute Name: WWPN, Attribute Value: 10:00:00:10:9B:90:66:30
Attribute Name: VirtualWWN, Attribute Value: 20:00:00:10:9B:90:66:30
Attribute Name: VirtualWWPN, Attribute Value: 10:00:00:10:9B:90:66:30
Attribute Name: FirstNVMeTargetNQN, Attribute Value: None
Attribute Name: FirstNVMeTargetWWPN, Attribute Value: 00:00:00:00:00:00:00:00
Attribute Name: FirstNVMeTgtCntlrID, Attribute Value: 00000
Attribute Name: FirstNVMeTgtNSID, Attribute Value: 0000000000
Attribute Name: SecondNVMeTargetNQN, Attribute Value: None
Attribute Name: SecondNVMeTargetWWPN, Attribute Value: 00:00:00:00:00:00:00:00
Attribute Name: SecondNVMeTgtCntlrID, Attribute Value: 00000
Attribute Name: SecondNVMeTgtNSID, Attribute Value: 0000000000
Attribute Name: ThirdNVMeTargetNQN, Attribute Value: None
Attribute Name: ThirdNVMeTargetWWPN, Attribute Value: 00:00:00:00:00:00:00:00
Attribute Name: ThirdNVMeTgtCntlrID, Attribute Value: 00000
Attribute Name: ThirdNVMeTgtNSID, Attribute Value: 0000000000
Attribute Name: FourthNVMeTargetNQN, Attribute Value: None
Attribute Name: FourthNVMeTargetWWPN, Attribute Value: 00:00:00:00:00:00:00:00
Attribute Name: FourthNVMeTgtCntlrID, Attribute Value: 00000
Attribute Name: FourthNVMeTgtNSID, Attribute Value: 0000000000
Attribute Name: BusDeviceFunction, Attribute Value: A1:00:00
Attribute Name: PCIDeviceID, Attribute Value: F400
Attribute Name: FamilyVersion, Attribute Value: 03.07.16
Attribute Name: EFIVersion, Attribute Value: 14.2.566.12
Attribute Name: FirstFCTargetWWPN, Attribute Value: 00:00:00:00:00:00:00:00
Attribute Name: SecondFCTargetWWPN, Attribute Value: 00:00:00:00:00:00:00:00
Attribute Name: ELX_ThirdFCTargetWWPN, Attribute Value: 00:00:00:00:00:00:00:00
Attribute Name: ELX_FourthFCTargetWWPN, Attribute Value: 00:00:00:00:00:00:00:00
Attribute Name: ELX_FifthFCTargetWWPN, Attribute Value: 00:00:00:00:00:00:00:00
Attribute Name: ELX_SixthFCTargetWWPN, Attribute Value: 00:00:00:00:00:00:00:00
Attribute Name: ELX_SeventhFCTargetWWPN, Attribute Value: 00:00:00:00:00:00:00:00
Attribute Name: ELX_EighthFCTargetWWPN, Attribute Value: 00:00:00:00:00:00:00:00
Attribute Name: PortNumber, Attribute Value: 0
Attribute Name: PortLoginTimeout, Attribute Value: 1
Attribute Name: ELX_MaxLUNSPerTarget, Attribute Value: 256
Attribute Name: ELX_FirstFCBootDeviceOrder, Attribute Value: 0
Attribute Name: ELX_SecondFCBootDeviceOrder, Attribute Value: 0
Attribute Name: ELX_ThirdFCBootDeviceOrder, Attribute Value: 0
Attribute Name: ELX_FourthFCBootDeviceOrder, Attribute Value: 0
Attribute Name: ELX_FifthFCBootDeviceOrder, Attribute Value: 0
Attribute Name: ELX_SixthFCBootDeviceOrder, Attribute Value: 0
Attribute Name: ELX_SeventhFCBootDeviceOrder, Attribute Value: 0
Attribute Name: ELX_EighthFCBootDeviceOrder, Attribute Value: 0
Attribute Name: FirstFCTargetLUN, Attribute Value: 0
Attribute Name: SecondFCTargetLUN, Attribute Value: 0
Attribute Name: ELX_ThirdFCTargetLUN, Attribute Value: 0
Attribute Name: ELX_FourthFCTargetLUN, Attribute Value: 0
Attribute Name: ELX_FifthFCTargetLUN, Attribute Value: 0
Attribute Name: ELX_SixthFCTargetLUN, Attribute Value: 0
Attribute Name: ELX_SeventhFCTargetLUN, Attribute Value: 0
Attribute Name: ELX_EighthFCTargetLUN, Attribute Value: 0
Attribute Name: PortSpeed, Attribute Value: Auto
Attribute Name: ELX_BootTargetScanMethod, Attribute Value: NVRAM_BOOTSCAN
Attribute Name: ELX_FaPWWNSupport, Attribute Value: Disabled
Attribute Name: ELX_FABLSupport, Attribute Value: Disabled
Attribute Name: ELX_FECSupport, Attribute Value: Enabled
Attribute Name: ELX_LegacySpin, Attribute Value: Disabled
Attribute Name: ELX_LegacyEDD, Attribute Value: Disabled
Attribute Name: ELX_LegacyStartUnit, Attribute Value: Disabled
Attribute Name: ELX_LegacyEnvVar, Attribute Value: Disabled
Attribute Name: ELX_LegacyAutoBoot, Attribute Value: Disabled
Attribute Name: ELX_LegacyAutoScan, Attribute Value: DISABLE_AUTOSCAN
Attribute Name: ELX_TrunkModeSupport, Attribute Value: Disabled
Attribute Name: ELX_TrunkPort1LinkSpeed, Attribute Value: NA
Attribute Name: ELX_TrunkingLink1State, Attribute Value: Inactive
Attribute Name: ELX_TrunkingLink2State, Attribute Value: Inactive
Attribute Name: EnableNVMeBoot, Attribute Value: Disabled
Attribute Name: BootScanSelection, Attribute Value: Disabled
For attribute type, possible values, regex, etc please refer to the attribute registry to get these details.
URI : redfish/v1/Registries/NetworkAttributesRegistry_{NetworkDeviceFunctionId}/NetworkAttributesRegistry_{NetworkDeviceFunctionId}.json
URI example: redfish/v1/Registries/NetworkAttributesRegistry_FC.Slot.2-1/NetworkAttributesRegistry_FC.Slot.2-1.json
Thanks
Tex
from idrac-redfish-scripting.
Attribute registry guide is also available online for all attributes iDRAC support.
from idrac-redfish-scripting.
Related Issues (20)
- Switching the storage controller from PERC to HBA and vice-versa HOT 3
- InsertEjectVirtualMediaREDFISH.py unable to insert ISO file residing on CIFS share; works from iDRAC GUI HOT 15
- Importing CA certificate to iDRAC via Redfish HOT 6
- Traceback error running ExportSystemConfigurationLocalREDFISH.py HOT 2
- Delete portion of CreateDeleteIdracUsersREDFISH.py only disables the account; it doesn't delete it. HOT 2
- Redfish Resource not found - Export Configuration HOT 1
- Can't insert CD and RemovableMedia virtual media simultaneously HOT 5
- iDRAC Version 7.00.00.171 Traceback Errors HOT 14
- Export/import certificates HOT 1
- Account Services Question HOT 6
- Set-IdracLcSystemAttributesREDFISH does not work on iDRAC8 HOT 3
- Invoke-ChangeIdracUserPasswordREDFISH - New-Object : Exception calling ".ctor" with .... HOT 5
- GetFirmwareInventoryREDFISH.py - Enhancement request: Add or create new version to save to network share HOT 2
- LLDP is not providing the Device ID and the Port ID information. HOT 1
- Use redfish to mount local iso for OS install similar to how webUI works HOT 2
- iDRAC per FQDN via Redfish HOT 13
- Exported ServerConfigurationProfile has commented out properties HOT 2
- Where is the script GetBiosBootOrderBootSourceStateREDFISH.py? HOT 2
- Attribute HttpDev1Interface Vs PxeDev1Interface HOT 7
- Redfish Query HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from idrac-redfish-scripting.