No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

FusionServer Tools 2.0 uREST User Guide 16

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Querying a User

Querying a User

Function

Query the iBMC user information.

Format

./urest -H HOST -p PORT -U USERNAME -P PASSWORD getuser -N NAME

Parameters

Parameter

Description

Value

HOST

iBMC IP address or domain name. It is a mandatory parameter. If an IPv6 address is used, the IPv6 address must be included in square brackets, such as [1001::1001].

-

PORT

Port number. The default value is 443. It is an optional parameter.

Enter the port number if the default value 443 is not used.

USERNAME

iBMC user name. It is a mandatory parameter.

-

PASSWORD

Password of the iBMC user. It is a mandatory parameter.

-

NAME

User name. It is an optional parameter.

-

Usage Guidelines

None

Example

Obtain help information.

linux-2hqw:~/Downloads/bin # ./urest -H 10.10.10.10 -U ****** -P ****** getuser -h
usage: urest getuser [-h] [-N NAME] 

optional arguments: 
  -h, --help  show this help message and exit 
  -N NAME     user name

Query a user.

linux-2hqw:~/Downloads/bin # ./urest -H 10.10.10.10 -U ****** -P ****** getuser
------------------------------------------------------------ 
UserId            : 2 
UserName          : root 
RoleId            : Administrator 
Locked            : False 
Enabled           : True 
LoginInterface    : Web,SNMP,IPMI,SSH,SFTP,Local,Redfish 
AccountInsecurePromptEnabled: False
------------------------------------------------------------

System Response

Table 3-38 Output description

Parameter

Description

UserId

User ID.

UserName

Account user name.

RoleId

ID of the role resource configured for the account.

Locked

This attribute indicates that the account service is automatically locked because the lock threshold is exceeded. When this attribute is set to True, the account is locked. The user administrator can set this attribute to False to unlock the account.

Enabled

The user administrator uses this attribute to disable the account that has deleted user information. When this attribute is set to True, the user can log in. When this attribute is set to False, the account is disabled and the user cannot log in.

LoginInterface

Login interface.

AccountInsecurePromptEnabled

Enabling status of the function for prompting a user to change the default password during iBMC login. When this attribute is set to True, the function is enabled. When this attribute is set to False, the function is disabled.

Translation
Download
Updated: 2020-02-13

Document ID: EDOC1000176182

Views: 121462

Downloads: 588

Average rating:
This Document Applies to these Products

Related Version

Related Documents

Share
Previous Next