User Management

Number

Function

Command

1 List all users
Copy
Copied!
            

ipmitool user list [<channel number>]

Example:
Copy
Copied!
            

ipmitool user list 1

2 User creation
Copy
Copied!
            

ipmitool user set name <user id> <user name>

Example:
Copy
Copied!
            

ipmitool user set name 2 ADMIN

3 Set user password
Copy
Copied!
            

ipmitool user set password <user id> <password>

Example:
Copy
Copied!
            

ipmitool user set password 2 ADMIN123

Password policy:
  • Minimum length: 13
  • Minimum upper-case characters: 1
  • Minimum lower-case characters: 1
  • Minimum digits: 1

NOTE: Root account locks after four consecutive failed attempts and automatically unlocks after 10 minutes.

4 Enable user
Copy
Copied!
            

ipmitool user enable <user id>

Example:
Copy
Copied!
            

ipmitool user enable 2

5 Disable user
Copy
Copied!
            

ipmitool user disable <user id>

Example:
Copy
Copied!
            

ipmitool user disable 2

6 Set user privilege
Copy
Copied!
            

ipmitool user priv <user id> <privilege level(1-4)> [<channel number>]

Where “privilege level” means one of the following:
  • 1 – callback level
  • 2 – user level
  • 3 – operator level
  • 4 – administrator level

Example:

Copy
Copied!
            

ipmitool user priv 2 0x3 1

7 Enable remote IPMI command functionality for user
Copy
Copied!
            

ipmitool channel setaccess [<channel number>] <user id> ipmi = on\|off

Example:
Copy
Copied!
            

ipmitool channel setaccess 1 2 ipmi=on

8 Lanplus commands to execute IPMI commands remotely for users with admin permissions
Copy
Copied!
            

ipmitool -C 17 -I lanplus -U <user> -P <password> -H <bmc_ip_address> <ipmi command>

Example:
Copy
Copied!
            

ipmitool -C 17 -I lanplus -U root -P 0penBmc -H 192.168.1.110 user list 1

10 Delete user
Copy
Copied!
            

ipmitool user set name <user id> ""

Example:
Copy
Copied!
            

ipmitool user set name 2 ""

The BMC factory reset helps to reset the BMC login password. If you do a factory reset, you will reset all user-level configurations that were done previously and reload the default configurations.

The following shows the different ways to run a factory reset. You can choose any of them.

  1. From the BMC console:

    Copy
    Copied!
                

    root@mgx-3809:~# ipmitool raw 0x32 0x66


  2. From Redfish:

    Copy
    Copied!
                

    export bmc=<BMC IP> export token=`curl -k -H "Content-Type: application/json" -X POST https://${bmc}/login -d '{"username" : "root", "password" : "<BMC Password>"}' | grep token | awk '{print $2;}' | tr -d '"'` curl -k -H "X-Auth-Token:token"https://token" https://token"https://${bmc}/redfish/v1/Managers/BMC_0/Actions/Manager.ResetToDefaults -d '{"ResetToDefaultsType": "ResetAll"}' -X POST


  3. From the BMC Web UI:

    Go to Operations -> Factory reset -> Reset BMC and server settings.

Previous Power Management
Next BMC Management Network Interface
© Copyright 2024, NVIDIA. Last updated on Jan 19, 2024.