Giter Club home page Giter Club logo

Comments (6)

yograj099 avatar yograj099 commented on June 25, 2024 1

Thanks a lot ! This really helped .

from idrac-redfish-scripting.

texroemer avatar texroemer commented on June 25, 2024

@ma-husyk

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.

ma-husyk avatar ma-husyk commented on June 25, 2024

worked as always :)

from idrac-redfish-scripting.

yograj099 avatar yograj099 commented on June 25, 2024

What all fibre channel parameters can be changed through Write/PUT/Patch via redfish api?

from idrac-redfish-scripting.

texroemer avatar texroemer commented on June 25, 2024

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.

texroemer avatar texroemer commented on June 25, 2024

Attribute registry guide is also available online for all attributes iDRAC support.

https://dl.dell.com/content/manual66164609-integrated-dell-remote-access-controller-9-version-7-xx-series-attribute-registry.pdf?language=en-us

from idrac-redfish-scripting.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.