Top
Systemwalker Software Configuration Manager Reference Guide
FUJITSU Software

1.2.3 swcfmg_account (User Information Management Command)

Description

This command registers, updates, deletes, moves, changes the password of, and lists user information managed by Systemwalker Software Configuration Manager.

It cannot be used during linkage to ServerView Resource Orchestrator.

Synopsis

[Windows]

swcfmg_account.exe
{ -add -file <User info file path> [-e <Character encoding>] |
-update -file <User info file path> [-e <Character encoding>] |
-move -file <User info file path> [-e <Character encoding>] |
-chpasswd -file <User info file path> [-e <Character encoding>] |
-delete -id <User ID>... |

-list [ -file <Output file path>] [-e<Character encoding>] [-sort tenant-id | tenant-name] }

[Linux]

swcfmg_account
{ -add -file <User info file path> [-e <Character encoding>] |
-update -file <User info file path> [-e <Character encoding>] |
-move -file <User info file path> [-e <Character encoding>] |
-chpasswd -file <User info file path> [-e <Character encoding>] |
-delete -id <User ID>... |
-list [ -file <Output file path>] [-e<Character encoding>] [-sort tenant-id | tenant-name] }

Options

-add -file <user info file>

Registers user information in the directory service using the data entered in the specified user information file. The user information file is in CSV format (refer to "2.2.1 User Information File" for details). User information is stored in the directory service (refer to "Managing User Information" in the Installation Guide for details).

-update -file <user info file>

Updates user information using the data entered in the specified user information file.

The user information file is in CSV format (refer to "2.2.1 User Information File" for details).

-move -file <user info file>

Moves a user (changes the tenant to which the user belongs) using the data entered in the specified user information file.

The user information file is in CSV format (refer to "2.2.1 User Information File" for details).

-chpasswd -file <user info file>

Updates the user password using the data entered in the specified user information file.

The user information file is in CSV format (refer to "2.2.1 User Information File" for details).

-delete -id <user ID>,...

Specify a user ID for deleting a registered user. The user will be deleted from the directory service. Multiple user IDs can be specified by delimiting them with ',' (comma). You can confirm a user ID by executing this command with the "-list" option specified and checking the user information that is output.

-list [-file <output file>]

Outputs, in CSV format, the user information registered using this command.

If -file <output file> is omitted, the information is output to the standard output for this command.

If the specified file does not exist, a new file will be created. If the file exists, the existing file will be overwritten.

If the file cannot be output because of an error, either a new file will not be created or, if an existing file was to be overwritten, the existing file will be kept as it is, without being overwritten.

Refer to "2.2.1 User Information File" for information on the output file.

-e <char encoding>

Specify the character encoding for the file.

The character encodings below can be specified (single-byte uppercase characters must be used):

  • UTF-8

If this option is omitted, the character encoding of the execution environment of this command will be used.

-sort tenant-id | tenant-name

If this option is specified, user information is displayed in ascending "tenant-id" order. "tenant-name" is the former option. For new operations, use "tenant-id".

Return value

Return value

Meaning

0

The command has terminated normally.

10

A parameter error has occurred.

20

The specified I/O path is incorrect.

30

The specified character encoding is incorrect.

50

The file description is incorrect.

70

The specified user ID does not exist.

80

The user cannot be deleted because there is a server group owned by the user to be deleted.

100

Systemwalker Software Configuration Manager is not running.

101

A command that cannot be executed at the same time as this command is already running.

102

You do not have the privileges required to execute this command.

103

Connection to the directory service failed.

104

This command cannot be used during linkage to ServerView Resource Orchestrator.

110

A write error has occurred.

200

Setup has not been performed.

255

A system error has occurred.

Command location

Admin server

[Windows]

<Systemwalker Software Configuration Manager installation directory>\SWCFMGM\bin

[Linux]

/opt/FJSVcfmgm/bin

Privilege required/execution environment

[Windows]

[Linux]

Notes

Common notes
Notes on registration
Notes on update
Notes on moving
Notes on password changes
Notes on deletion
Notes on list display
Notes on registration, update, moving, and password change errors

Example

Execution results/output format