Top
Systemwalker Software Configuration Manager Reference Guide
FUJITSU Software

1.2.7 swcfmg_server (Server Information Management Command)

Description

This command registers, updates, deletes, and lists server information managed by Systemwalker Software Configuration Manager.

This command cannot be used to register, update, or delete servers managed by ServerView Resource Orchestrator or OpenStack.

Synopsis

[Windows]

swcfmg_server.exe
{ -add -file <Server information file path> [-e <Character encoding>] [-t] |
-update {-file <Server information file path> [-e <Character encoding>] [-t] |
-delete {-serverid <Server ID>,... | -ip <IP address>,...} |
-list [ -file <Output file path>] [-e <Character encoding>] [-servername <Server name>] [-servergroupid <Server group ID>] [{-siteid <Site ID>} | -all] [-site | -getserverid] [-sort servergroup-id | lplatform-id] }

[Linux]

swcfmg_server
{ -add -file <Server information file path> [-e <Character encoding>] [-t] |
-update -file <Server information file path> [-e <Character encoding>] [-t] |
-delete {-serverid <Server ID>,... | -ip <IP address>,...} |
-list [ -file <Output file path>] [-e <Character encoding>] [-servername <Server name>] [-servergroupid <Server group ID>] [{-siteid <Site ID>} | -all] [-site | -getserverid] [-sort servergroup-id | lplatform-id] }

Options

-add -file <server info file>

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

The server information file is in CSV format (refer to "2.2.5 Server Information File" for details).

-update -file <server info file>

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

The server information file is in CSV format (refer to "2.2.5 Server Information File" for details).

-delete {-serverid <Server ID>,... | -ip <IP address>,...}

Specify a server ID or an IP address to delete a registered server. Multiple server IDs or IP addresses can be specified by delimiting them with ',' (comma).

-list [-file <output file>]

Outputs, in CSV format, the server information registered using this command and swcfmg_define_serverinfo (Managed Server Information Definition 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.

By specifying the options below, you can filter the server information to be output. Otherwise all the server information registered using this command and swcfmg_define_serverinfo (Managed Server Information Definition command) is output.

[-servername <Server name>]

Specify the server name of the server to be output.

[-servergroupid <Server group ID>]

Specify the server group ID of the server to be output.

[{-siteid <Site ID>} | -all]

Specify the site ID of the server to output. The following site ID can be specified. When -all is specified, server information of all sites is output.

  • OpenStack: OpenStack server

  • ROR: Server of ServerView Resource Orchestrator

  • Direct: Manually registered server

You can specify the output format by specifying the options below:

[-site | -getserverid]

When this option is omitted or the "-site" option is specified, the server information is output in CSV format. For details on the output file when this option is omitted, refer to "2.2.5 Server Information File". For details on the output file when the "-site" option is specified, refer to "2.4.2 Site Server Information File". When the "-getserverid" option is specified, only the server ID of the server is output.

-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.

-t

Performs the connection test. If this option is specified, the connection test will be performed after server information is registered or updated. If this option is omitted, the connection test will not be performed (refer to "1.2.11 swcfmg_connectiontest (Connection Test Command)" for details).

-sort servergroup-id | lplatform-id

If this option is specified, server information is displayed in ascending "Server group ID" order. "lplatform-id" is the former option. For new operations, use "servergroup-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 IP address does not exist.

80

The connection test failed.

81

This operation cannot be performed for server groups or servers managed using ServerView Resource Orchestrator.

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 deletion
Notes on list display
Notes on registration and update errors

Example

Execution results/output format