Giter Club home page Giter Club logo

Comments (7)

jonas-werner avatar jonas-werner commented on September 22, 2024

I believe the paths in "GetIdracLcSystemAttributesREDFISH.py" are only valid for 14G servers.

For 13G the quick and easy way to change settings is to export and import server config files (SCP). This works for essentially any setting the server is equipped with.

For example for IPMI:

  1. Set "ExportSystemConfigurationLocalREDFISH.py" to export the section you want (iDRAC for the IPMI setting). This is done on the following line in the script:
    payload = {"ExportFormat":"XML","ShareParameters":{"Target":"iDRAC"}}

You can use "All" for all settings or otherwise System, RAID, etc for other sections.

  1. Run "ExportSystemConfigurationLocalREDFISH.py" against the server you wish to pull the settings from.
  2. Modify the resulting XML file (Change <Attribute Name="IPMILan.1#Enable">Enabled</Attribute>)
  3. Run "ImportSystemConfigurationLocalFilenameREDFISH.py" and use your modified XML file as input

This will change any settings on the server to match the XML file.

For booting to PXE:

You can either use the Redfish script to change the boot order or modify the setting directly in the same fashion as the IPMI setting. Either update the "boot once" variable to PXE for a one-off boot target change or update the boot order for a permanent change.

from idrac-redfish-scripting.

texroemer avatar texroemer commented on September 22, 2024

Jonas is correct. Get / Set iDRAC, System or Lifecycle Controller attributes using Redfish is currently only supported with iDRAC 9 on 14G. iDRAC 8 on 12G / 13G doesn't have support yet but support will be added for future iDRAC release.

I also updated the scripts to check for supported iDRAC version and return warning if current iDRAC version detected doesn't support this feature.

Thanks

from idrac-redfish-scripting.

texroemer avatar texroemer commented on September 22, 2024

Forgot to mention you can get Lifecycle controller / iDRAC or System attributes using Server Configuration Profile feature. Here's an example of running the script and getting only LifeCycle Controller attributes. Before running the script, i modified the dictionary to pass in a target value of "LifecycleController" to get only these attributes.

Dictionary i modified:

payload = {"ExportFormat":"XML","ShareParameters":{"Target":"LifecycleController"}}

Example of running the script:

C:\Python27>ExportSystemConfigurationLocalREDFISH.py 192.168.0.100 root calvin

  • Job ID successfully created for ExportSystemConfiguration method

  • Export locally successfully passed. Attributes exported:

SystemConfiguration Model="PowerEdge R730" ServiceTag="CDVB7R1" TimeStamp="Tue Mar 13 17:51:00 2018">
!--Export type is Normal,XML,Selective-->
!--Exported configuration may contain commented attributes. Attributes may be commented due to dependency, destructive nature, preserving server identity or for security reasons.-->
Component FQDD="LifecycleController.Embedded.1">
Attribute Name="LCAttributes.1#CollectSystemInventoryOnRestart">Enabled
Attribute Name="LCAttributes.1#PartConfigurationUpdate">Apply always
Attribute Name="LCAttributes.1#PartFirmwareUpdate">Match firmware of replaced part
!-- Enabled-->
Attribute Name="LCAttributes.1#IPChangeNotifyPS">Off
Attribute Name="LCAttributes.1#VirtualAddressManagementApplication">
Attribute Name="LCAttributes.1#ProvisioningServer">
Attribute Name="LCAttributes.1#BIOSRTDRequested">False
Attribute Name="LCAttributes.1#AutoUpdate">Disabled
Attribute Name="LCAttributes.1#AutoBackup">Disabled
/Component>
/SystemConfiguration>

Job ID = JID_209814562259
Name = Export: Server Configuration Profile
Message = Successfully exported Server Configuration Profile
JobStatus = Completed

JID_209814562259 completed in: 0:00:02

Exported attributes also saved in file: 2018-3-13_19513_export.xml

C:\Python27>

from idrac-redfish-scripting.

jimbr70 avatar jimbr70 commented on September 22, 2024

Appreciate various comments, from which I have a very good working implementation. Helped tremendously to know of version compatibility.

from idrac-redfish-scripting.

texroemer avatar texroemer commented on September 22, 2024

Good to hear!

Thanks

from idrac-redfish-scripting.

jimbr70 avatar jimbr70 commented on September 22, 2024

from idrac-redfish-scripting.

texroemer avatar texroemer commented on September 22, 2024

Hi,

This is currently not supported by iDRAC in current shipping versions but support will be available in next iDRAC8 release 2.60 which will be posted Q2 of this year (June - July time frame). Once 2.60 iDRAC version is released, to get FCoE WWN using Redfish, you will run a GET on URI:

"redfish/v1/Systems/System.Embedded.1/NetworkAdapters/"FC ID"/NetworkDeviceFunctions/"FC port ID""

Example:

"redfish/v1/Systems/System.Embedded.1/NetworkAdapters/FC.Slot.4/NetworkDeviceFunctions/FC.Slot.4-1"

As a workaround for now, you can get this information using RACADM:

Example:

racadm>>get fc.PortConfig.1
racadm get fc.PortConfig.1
[Key=FC.Slot.4-1#PortConfig]
#DeviceName=QLogic QLE2740 32Gb FC Adapter
#PortNumber=1
PortSpeed=Auto
VirtualWWN=20:00:00:24:FF:12:FC:B1
VirtualWWPN=21:00:00:24:FF:12:FC:B1
#WWN=20:00:00:24:FF:12:FC:B1
#WWPN=21:00:00:24:FF:12:FC:B1

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.