2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-30 09:36:41 +00:00

Merge pull request #6480 from gurevichmark/thermal_mode

OpenBMC Thermal Mode [Perl]
This commit is contained in:
besawn 2019-11-13 10:21:04 -05:00 committed by GitHub
commit b2b44e52b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 35 additions and 0 deletions

View File

@ -83,6 +83,10 @@ OpenBMC specific:
\ **rspconfig**\ \ *noderange*\ \ **sshcfg**\
\ **rspconfig**\ \ *noderange*\ \ **thermalmode**\
\ **rspconfig**\ \ *noderange*\ \ **thermalmode={default|custom|heavy_io|max_base_fan_floor}**\
\ **rspconfig**\ \ *noderange*\ \ **timesyncmethod**\
\ **rspconfig**\ \ *noderange*\ \ **timesyncmethod={manual|ntp}**\
@ -521,6 +525,12 @@ OPTIONS
\ **thermalmode**\
Display or set the thermal mode of the system to a setting, depending on your system, adapter, and cable type. After a factory reset of the system, the thermal mode setting is lost and must be reapplied. To choose the correct setting for your system, see https://www.ibm.com/support/knowledgecenter/POWER9/p9ei3/p9ei3_thermal_mode.htm [OpenBMC]
\ **timesyncmethod**\
Set the method for time synchronization on the BMC. [OpenBMC]

View File

@ -193,6 +193,8 @@ my %usage = (
rspconfig <noderange> timesyncmethod={ntp|manual}
rspconfig <noderange> bootmode
rspconfig <noderange> bootmode={safe|regular|setup}
rspconfig <noderange> thermalmode
rspconfig <noderange> thermalmode={default|custom|heavy_io|max_base_fan_floor}
rspconfig <noderange> autoreboot
rspconfig <noderange> autoreboot={0|1}
",

View File

@ -60,6 +60,10 @@ B<rspconfig> I<noderange> B<powersupplyredundancy={disabled|enabled}>
B<rspconfig> I<noderange> B<sshcfg>
B<rspconfig> I<noderange> B<thermalmode>
B<rspconfig> I<noderange> B<thermalmode={default|custom|heavy_io|max_base_fan_floor}>
B<rspconfig> I<noderange> B<timesyncmethod>
B<rspconfig> I<noderange> B<timesyncmethod={manual|ntp}>
@ -402,6 +406,10 @@ B<-d> will download a single dump or all generated dumps from the BMC to /var/lo
=back
=item B<thermalmode>
Display or set the thermal mode of the system to a setting, depending on your system, adapter, and cable type. After a factory reset of the system, the thermal mode setting is lost and must be reapplied. To choose the correct setting for your system, see https://www.ibm.com/support/knowledgecenter/POWER9/p9ei3/p9ei3_thermal_mode.htm [OpenBMC]
=item B<timesyncmethod>
Set the method for time synchronization on the BMC. [OpenBMC]

View File

@ -676,6 +676,21 @@ my %api_config_info = (
manual => "xyz.openbmc_project.Time.Synchronization.Method.Manual",
},
},
RSPCONFIG_THERMAL_MODE => {
command => "rspconfig",
url => "/control/thermal/0",
attr_url => "Current",
display_name => "BMC ThermalMode",
instruct_msg => "",
type => "attribute",
subcommand => "thermalmode",
attr_value => {
default => "DEFAULT",
custom => "CUSTOM",
heavy_io => "HEAVY_IO",
max_base_fan_floor => "MAX_BASE_FAN_FLOOR",
},
},
);
$::RESPONSE_OK = "200 OK";