BladeSystem - General
1753767 Members
5751 Online
108799 Solutions
New Discussion

Re: Unable to Update "ReadCachePercent" value using iLORest API

 
aloksinghk
Occasional Contributor

Unable to Update "ReadCachePercent" value using iLORest API

Hi, 

Usign ILORest API I want to change one parameter "ReadCachePercent", my command is getting successful and commiting the changes but when I check this parameter value in Intelligent provisioning  > RAID Configuration >  SMART Array Controller > Tool > Cache Manager, 

I see no changes there.  Commands used 

# ilorest rawpatch storage.json --biospassword=XXXXXXXX
iLOrest : RESTful Interface Tool version 2.3
Copyright (c) 2014, 2018 Hewlett Packard Enterprise Development LP
----------------------------------------------------------------------------------------------------------------------------------------------------------------------
The operation completed successfully.
# ilorest commit
iLOrest : RESTful Interface Tool version 2.3
Copyright (c) 2014, 2018 Hewlett Packard Enterprise Development LP
----------------------------------------------------------------------------------------------------------------------------------------------------------------------
Committing changes...
No type currently selected. Please use the 'types' command to
get a list of types, or input your type by using the '--selector' flag.
# ilorest rawget "/redfish/v1/systems/1/smartstorageconfig/settings/"
iLOrest : RESTful Interface Tool version 2.3
Copyright (c) 2014, 2018 Hewlett Packard Enterprise Development LP
----------------------------------------------------------------------------------------------------------------------------------------------------------------------
[200] The operation completed successfully.
{
"RebuildPriority": "RapidLow",
"CurrentParallelSurfaceScanCount": 1,
"PredictiveSpareRebuild": "Disabled",
"EncryptionConfiguration": "None",
"EncryptionEULA": null,
"Location": "Slot 0",
"InconsistencyRepairPolicy": "Disabled",
"ReadCachePercent": 10,

But when check system after reboot, it shows 100 again. I am using below storage.json file 

{
"path": "/redfish/v1/systems/1/smartstorageconfig/settings/",
"body": {
"ReadCachePercent": 10
}
}

 

Also tried with below command and getting error

# ilorest set ReadCachePercent=10 -u Administrator -p password --url XXX.XXX.XXX --selector=SmartStorageConfig.
iLOrest : RESTful Interface Tool version 2.3
Copyright (c) 2014, 2018 Hewlett Packard Enterprise Development LP
----------------------------------------------------------------------------------------------------------------------------------------------------------------------
Discovering data...Done
ERROR: 'NoneType' object has no attribute 'lower'

 

 

1 REPLY 1
aloksinghk
Occasional Contributor

Re: Unable to Update "ReadCachePercent" value using iLORest API

I am getting belwo error when try to change ReadCachePercent 

"@odata.id": "/redfish/v1/systems/1/smartstorageconfig/settings/"
},
"ETag": "4FA31419",
"Messages": [
{
"RelatedProperties": [
"#/ReadCachePercent"
],
"MessageArgs": [
"10"
],
"MessageId": "SmartStorageMessages.2.0.0.CanChangeEditableControllerReadCachePercentBadPowerSource"
},
{
"MessageId": "SmartStorageMessages.2.0.0.Success"