Comments (3)
iDRAC 7/8 does not support OEM extension to set individual iDRAC attributes with Redfish, you must leverage Server Configuration Profile (SCP) feature to set iDRAC attributes (scripts below).
Set-ExportServerConfigurationProfileLocalREDFISH
Set-ImportServerConfigurationProfileLocalREDFISH
Set-ImportServerConfigurationProfileLocalFilenameREDFISH
Can you let me know what attributes you're trying to set so i can send you a workflow example.
Thanks
Tex
from idrac-redfish-scripting.
Hi Tex, thanks for the rapid reply.
I need to be able to Disable\Enable the attribute EmailAlert.1.Enable.
I am running this on IDRAC9 with success:
Set-IdracLcSystemAttributesREDFISH -idrac_ip -idrac_username root -idrac_password calvin -attribute_names "EmailAlert.1.Enable" -attribute_group idrac -attribute_values "Disabled"
Should have a way to do it on iDRAC8 as it has the same option under alerts.
Thanks for your help.
Daniel
from idrac-redfish-scripting.
Example below using SCP to set attribute EmailAlert.1.Enable to Disabled. Please copy SCP file contents below to create XML file and run the cmdlet. I also left other email alert attributes in the SCP file incase you want to configure them. If not please edit the SCP file and either remove them or comment out.
PS C:\> type .\SCP_file.xml
<SystemConfiguration>
<Component FQDD="iDRAC.Embedded.1">
<Attribute Name="EmailAlert.1#Enable">Disabled</Attribute>
<Attribute Name="EmailAlert.1#Address"/>
<Attribute Name="EmailAlert.1#CustomMsg"/>
<Attribute Name="EmailAlert.2#Enable">Disabled</Attribute>
<Attribute Name="EmailAlert.2#Address"/>
<Attribute Name="EmailAlert.2#CustomMsg"/>
<Attribute Name="EmailAlert.3#Enable">Disabled</Attribute>
<Attribute Name="EmailAlert.3#Address"/>
<Attribute Name="EmailAlert.3#CustomMsg"/>
<Attribute Name="EmailAlert.4#Enable">Disabled</Attribute>
<Attribute Name="EmailAlert.4#Address"/>
<Attribute Name="EmailAlert.4#CustomMsg"/>
</Component>
</SystemConfiguration>
PS C:\> Set-ImportServerConfigurationProfileLocalFilenameREDFISH -idrac_ip 192.168.0.120 -idrac_username root -idrac_password calvin -Target IDRAC -FileName SCP_file.xml
5
- PASS, statuscode 202 returned to successfully create import server configuration profile (SCP) job: JID_116824721214
- INFO, import job ID not marked completed, current job status: Running
- INFO, import job ID not marked completed, current job status: Running
- INFO, import job ID not marked completed, current job status: Running
- INFO, import job ID not marked completed, current job status: Running
- INFO, import job ID not marked completed, current job status: Completed
- INFO, JID_116824721214 job ID marked as completed
- INFO, job completed in @{Minutes=0; Seconds=3}
- Detailed final job status and configuration results for import job ID 'JID_116824721214' -
{"@odata.context":"/redfish/v1/$metadata#Task.Task"
"@odata.id":"/redfish/v1/TaskService/Tasks/JID_116824721214"
"@odata.type":"#Task.v1_7_1.Task"
"Description":"Server Configuration and other Tasks running on iDRAC are listed here"
"EndTime":"2024-03-28T22:21:15-05:00"
"Id":"JID_116824721214"
"Messages":[{"Message":"The operation successfully completed."
"MessageID":"SYS413"
"Oem":{"Dell":{"@odata.type":"#DellManager.v1_0_0.ServerConfigurationProfileResults"
"DisplayValue":"Enable Email Alerts"
"ErrCode":"0"
"FQDD":"iDRAC.Embedded.1"
"Name":"EmailAlert.1#Enable"
"NewValue":"Disabled"
"OldValue":"Enabled"
"Status":"Success"}}
"Severity":"OK"}
{"Message":"Successfully imported and applied Server Configuration Profile."
"MessageArgs":[]
"[email protected]":0
"MessageId":"IDRAC.2.9.SYS053"}]
"[email protected]":2
"Name":"Import Configuration"
"Oem":{"Dell":{"@odata.type":"#DellJob.v1_5_0.DellJob"
"CompletionTime":"2024-03-28T22:21:15"
"Description":"Job Instance"
"EndTime":null
"Id":"JID_116824721214"
"JobState":"Completed"
"JobType":"ImportConfiguration"
"Message":"Successfully imported and applied Server Configuration Profile."
"MessageArgs":[]
"MessageId":"IDRAC.2.9.SYS053"
"Name":"Configure: Import Server Configuration Profile"
"PercentComplete":100
"StartTime":"TIME_NOW"
"TargetSettingsURI":null}}
"PercentComplete":100
"TaskState":"Completed"
"TaskStatus":"OK"}
from idrac-redfish-scripting.
Related Issues (20)
- DELL/iDRAC -Redfish HOT 5
- MetricReports PowerMetrics HOT 3
- Redfish Query for Host OS Network Interfaces HOT 7
- Can add an example for querying from iDrac KeyVault by Redfish API? HOT 2
- 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
- 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
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.