mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-10 10:37:22 +00:00
ID:457 - Display User ID enable/disable status
Commit implements `Enable status` which shows/is in alignment with (22.27) Get User Access Command and displays User ID Enable/Disable status of given User ID at given channel.
This commit is contained in:
parent
ea471ed5fa
commit
cc9a6b3964
@ -52,6 +52,7 @@ extern const struct valstr ipmi_auth_algorithms[];
|
||||
extern const struct valstr ipmi_integrity_algorithms[];
|
||||
extern const struct valstr ipmi_encryption_algorithms[];
|
||||
extern const struct valstr ipmi_oem_info[];
|
||||
extern const struct valstr ipmi_user_enable_status_vals[];
|
||||
|
||||
extern const struct valstr picmg_frucontrol_vals[];
|
||||
extern const struct valstr picmg_clk_family_vals[];
|
||||
|
@ -734,7 +734,8 @@ ipmi_get_user_access(struct ipmi_intf *intf, uint8_t channel, uint8_t user_id)
|
||||
(user_access.ipmi_messaging) ? "en" : "dis");
|
||||
printf("Privilege Level : %s\n",
|
||||
val2str(user_access.privilege_limit, ipmi_privlvl_vals));
|
||||
|
||||
printf("Enable Status : %s\n",
|
||||
val2str(user_access.enable_status, ipmi_user_enable_status_vals));
|
||||
curr_uid ++;
|
||||
} while (!user_id && curr_uid <= max_uid);
|
||||
|
||||
|
@ -646,6 +646,14 @@ const struct valstr ipmi_encryption_algorithms[] = {
|
||||
{ 0x00, NULL }
|
||||
};
|
||||
|
||||
const struct valstr ipmi_user_enable_status_vals[] = {
|
||||
{ 0x00, "unknown" },
|
||||
{ 0x40, "enabled" },
|
||||
{ 0x80, "disabled" },
|
||||
{ 0xC0, "reserved" },
|
||||
{ 0xFF, NULL },
|
||||
};
|
||||
|
||||
const struct valstr picmg_frucontrol_vals[] = {
|
||||
{ 0, "Cold Reset" },
|
||||
{ 1, "Warm Reset" },
|
||||
|
Loading…
x
Reference in New Issue
Block a user