lsuser

Use the lsuser command to display a list of the users that is created on the clustered system (system).

Syntax

 lsuser    [  -nohdr  ]   [  -delim  delimiter  ]   [  -filtervalue  attribute=value  ]   [  -filtervalue?  ]   [ {  usergrp_name  |  usergrp_id  } ]

Parameters

-nohdr
(Optional) By default, headings are displayed for each column of data in a concise style view, and for each item of data in a detailed style view. The -nohdr parameter suppresses the display of these headings.
Note: If there is no data to be displayed, headings are not displayed.
-delimdelimiter
(Optional) By default in a concise view, all columns of data are space-separated. The width of each column is set to the maximum width of each item of data. In a detailed view, each item of data has its own row, and if the headers are displayed, the data is separated from the header by a space. If you enter -delim : on the command line, the colon character (:) separates all items of data in a concise view; for example, the spacing of columns does not occur. In a detailed view, the data is separated from its header by the specified delimiter.
-filtervalueattribute=value
(Optional) Specifies a list of one or more filters. Only objects with a value that matches the filter attribute value are displayed.
Note: Some filters allow the use of a wildcard when you enter the command. The following rules apply to the use of wildcards with the Lenovo Storage V series CLI:
  • The wildcard character is the asterisk (*).
  • The command can contain a maximum of one wildcard.
  • When you use a wildcard, enclose the filter entry within double quotation marks (""), as follows:
    lsuser -filtervalue "usergrp_name=md*"
-filtervalue?
(Optional) Displays the valid filter attributes for the -filtervalueattribute=value parameter:
  • password
  • ssh_key
  • remote
  • usergrp_id
  • usergrp_name
usergrp_name | usergrp_id
(Optional) Specifies the ID or name of the user for which the association is being deleted. If this parameter is specified, the detailed view for the specified user is displayed in the output. If you do not specify an ID or name, the concise view is displayed.

Description

This command displays a list of users that is created on the system.

A concise invocation example

lsuser

The resulting output:

id   name        password   ssh_key   remote   usergrp_id   usergrp_name      
0    superuser   yes        no        no       0            SecurityAdmin
1    simon       no         yes       no       2            CopyOperator      
2    jane        yes        no        no       3            Service           
3    kip         yes        yes       yes                                             

A detailed invocation example

lsuser 1

The resulting output:

id 1
name tpc_admin
password yes
ssh_key no
remote no
usergrp_id 0
usergrp_name SecurityAdmin