Top
Systemwalker Software Configuration Manager Reference Guide
FUJITSU Software

1.2.5 swcfmg_servergroup/swcfmg_lplatform (Server Group Information Management Command)

Description

Note

The swcfmg_lplatform command is the former command for registration, updating, moving, owner modification, deletion, and listing of server group information. For new operations, use the swcfmg_servergroup command.

Registers, updates, moves, changes the owner of, deletes, and lists server group information managed by Systemwalker Software Configuration Manager.

It cannot register, update, move, change the owner of, or delete server groups managed by ServerView Resource Orchestrator or OpenStack.

Synopsis

[Windows]

swcfmg_servergroup.exe
{ -add -file <Server group information file path> [-e <Character encoding>] |
-update -file <Server group information file path> [-e <Character encoding>] |
-move -file <Server group information file path> [-e <Character encoding>] |
-delete -id <Server group ID>,...|
-list [ -file <Output file path>] [-e<Character encoding>] [-sort tenant-id | tenant-name] [-site] [-all] }

[Linux]

swcfmg_servergroup
{ -add -file <Server group information file path> [-e <Character encoding>] |
-update -file <Server group information file path> [-e <Character encoding>] |
-move -file <Server group information file path> [-e <Character encoding>] |
-delete -id <Server group ID>,...|
-list [ -file <Output file path>] [-e<Character encoding>] [-sort tenant-id | tenant-name] [-site] [-all] }

Options

-add -file <Server group information file path>

Registers server group information using the data entered in the specified server group information file.

The server group information file is in CSV format. For details, refer to "2.2.3 Server Group Information File ".

-update -file <Server group information file path>

Updates server group information using the data entered in the specified server group information file.

The server group information file is in CSV format. For details, refer to "2.2.3 Server Group Information File ".

-move -file <Server group information file path>

Moves or changes the owner of a server group using the data entered in the specified server group information file.

The server group information file is in CSV format. For details, refer to "2.2.3 Server Group Information File ".

-delete -id <Server group ID>,...

Specify a server group ID to delete a registered server group. Multiple server group IDs can be specified by delimiting them with ',' (comma).

You can confirm a server group ID by executing this command with the "-list" option specified and checking the server group information that is output.

-list [-file <output file>]

Outputs the server group information registered using this command and the server group information created using swcfmg_define_serverinfo (Managed Server Information Definition command), in CSV format.

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.

For information on the output file, refer to "2.2.3 Server Group Information 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.

-site

utputs the server group information in the format of "site server group information file". When this option is omitted, the server group information is output in the format of "server group information file".

-all

This option outputs not only the server group information registered using this command and the server group information created using swcfmg_define_serverinfo (Managed Server Information Definition command), but also the server group information managed using ServerView Resource Orchestrator or OpenStack.

-sort tenant-id | tenant-name

If this option is specified, server group 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 server group ID does not exist.

80

The server group cannot be deleted because there is a server belonging to the server group.

81

This operation cannot be performed for server groups managed by ServerView Resource Orchestrator or OpenStack.

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.

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, or changing the owner
Notes on deletion
Notes on list display
Notes on update, moving, and owner change errors

Example

Execution results/output format