commit | 23f44657333de5e01ba4b78a4b14e57c42188ef8 | [log] [tgz] |
---|---|---|
author | Jian Zhang <zhangjian.3032@bytedance.com> | Thu Mar 17 17:13:10 2022 +0800 |
committer | Vernon Mauery <vernon.mauery@linux.intel.com> | Wed Apr 13 00:37:08 2022 +0000 |
tree | fae725dbf639c301a9b384b50ad56743e08cab5b | |
parent | 5adc2d411be69b0c49e433d1aaf59cc093f8f0ee [diff] |
host-ipmid: sol: Add get/set sol conf params command Move set/get sol config parameter command from net-ipmid to host-ipmid, these commands could be set by other interface, not Lan only. Notice: In host-ipmid, will get/set the dbus properties only, need sol manager register the signal to update sol manager when properties changed. When we use ipmitool command with channel num parameter, if you do not specify the channel num, the default channel num always be 0xE in command, and, we always treat channel 0xE channel is current channel. So, if you use a command "ipmitool sol info" in console, because this is not a lan channel, it will return "Error requesting SOL parameter 'Set In Progress (0)': Invalid data field in request". In net-ipmid use current channel only, ignored the channel number in parameter, always return the current lan channel. Tested: 1. Check sol conf. ipmitool sol info 1 Set in progress : set-complete Enabled : true Force Encryption : false Force Authentication : false Privilege Level : ADMINISTRATOR Character Accumulate Level (ms) : 500 Character Send Threshold : 1 Retry Count : 7 Retry Interval (ms) : 1000 Volatile Bit Rate (kbps) : IPMI-Over-Serial-Setting Non-Volatile Bit Rate (kbps) : IPMI-Over-Serial-Setting Payload Channel : 1 (0x01) Payload Port : 623 2. Sel sol conf with a non-lan channel, in my env, lan channel num is 1 ipmitool sol set enabled false 1 ipmitool sol set force-encryption true 1 ipmitool sol set force-authentication true 1 ipmitool sol set privilege-level user 1 ipmitool sol set character-accumulate-level 200 1 ipmitool sol set character-send-threshold 200 1 ipmitool sol set retry-count 5 1 ipmitool sol set retry-interval 20 1 or ipmitool -I lanplus -H x -U x -P x sol set enabled false ipmitool -I lanplus -H x -U x -P x sol set force-encryption true ipmitool -I lanplus -H x -U x -P x sol set force-authentication true ipmitool -I lanplus -H x -U x -P x sol set privilege-level user ipmitool -I lanplus -H x -U x -P x sol set character-accumulate-level 200 ipmitool -I lanplus -H x -U x -P x sol set character-send-threshold 200 ipmitool -I lanplus -H x -U x -P x sol set retry-count 5 ipmitool -I lanplus -H x -U x -P x sol set retry-interval 20 3. Check sol conf, same as set. ipmitool sol info 1 Set in progress : set-complete Enabled : false Force Encryption : true Force Authentication : true Privilege Level : USER Character Accumulate Level (ms) : 1000 Character Send Threshold : 200 Retry Count : 5 Retry Interval (ms) : 200 Volatile Bit Rate (kbps) : IPMI-Over-Serial-Setting Non-Volatile Bit Rate (kbps) : IPMI-Over-Serial-Setting Payload Channel : 1 (0x01) Payload Port : 623 Change-Id: I1ac65881c41ad644ffc19720c0b00988eaca03e4 Signed-off-by: Jian Zhang <zhangjian.3032@bytedance.com>
To build this package, do the following steps:
1. ./bootstrap.sh 2. ./configure ${CONFIGURE_FLAGS} 3. make
To clean the repository run ./bootstrap.sh clean
.