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 Session Resource Information

Querying Session Resource Information

Function

Query session resource information. If you use the following command containing the -I parameter, you can query information about a specified session resource. If you use the following command without the -I parameter, you can query information about all session resources.

Format

./urest -H HOST -p PORT -U USERNAME -P PASSWORD getsession -I ID

Parameters

Parameter

Description

Value

HOST

IPv4 or IPv6 address or domain name of the server iBMC. It is a mandatory parameter. If an IPv6 address is used, the IPv6 address, such as [1001::1001], must be enclosed in parentheses.

-

PORT

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

If the actual port number is not 443, enter the actual port number.

USERNAME

iBMC administrator user name. It is a mandatory parameter.

-

PASSWORD

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

-

ID

Session ID. It is an optional parameter.

-

Usage Guidelines

The interface is applicable to uREST V118 or later versions.

Example

Obtain help information.

linux-2hqw:~/Downloads/bin # ./urest -H 10.10.10.10 -U ****** -P ****** getsession –h
usage: urest getsession [-h] [-I ID]
 
optional arguments:
-h, --help  show this help message and exit
-I ID       session ID

Query session resource information.

linux-2hqw:~/Downloads/bin # ./urest -H 10.10.10.10 -U ****** -P ****** getsession
------------------------------------------------------------
ID                              :bc3c4a26ab19b38d
Name                            :User Session
UserAccount                     :Administrator
LoginTime                       :2019-05-09T04:51:55-09:00
UserIP                          :192.168.2.105
UserTag                         :GUI
MySession                       :
UserId                          :2
UserValidDays                   :
AccountInsecurePromptEnabled    :
UserRole                        :Administrator
------------------------------------------------------------
ID                              :acedbb6b8667ea9a
Name                            :User Session
UserAccount                     :Administrator
LoginTime                       :2019-05-07T09:54:33-09:00
UserIP                          :192.168.2.110
UserTag                         :KVM(Shared)
MySession                       :
UserId                          :
UserValidDays                   :
AccountInsecurePromptEnabled    :
UserRole                        :
------------------------------------------------------------

Command Output

Table 3-43 Command output

Parameter

Description

ID

Indicates the ID of a session resource.

Name

Indicates the name of a session.

UserAccount

Indicates the user of a session.

LoginTime

Indicates the time when a session is created.

UserIP

Indicates the user IP address of a session.

UserTag

Indicates the login port of a session.

  • GUI
  • CLI
  • Redfish
  • VNC
  • KVM

MySession

Indicates whether a session is created by the current user.

  • true: The session is created by the current user.
  • false: The session is not created by the current user.

UserId

Indicates the user ID.

UserValidDays

Indicates the validity period of the user account.

AccountInsecurePromptEnabled

Enables account risk notification.

UserRole

Indicates a user role.

Translation
Download
Updated: 2020-02-13

Document ID: EDOC1000176182

Views: 122183

Downloads: 591

Average rating:
This Document Applies to these Products

Related Version

Related Documents

Share
Previous Next