Top
Systemwalker Software Configuration Manager Developer's Guide
FUJITSU Software

5.4.2 swcfmg_patch_applied (Applied Patch Information Management Command)

Description

Registers, deletes, and lists patch information applied to a managed server.

The information collection item displays manually registered patches as applied patches in the management console.

Synopsis

[Windows]

swcfmg_patch_applied.exe

{ -add -file "Applied patch information file path" [-e "Character encoding"] |
-delete -file "Applied patch information file path" [-e "Character encoding"] |
-list [{-serverid "Server ID",... | -ip "IP address",...} ] [ -file "Output file path"] [-e "Character encoding"] [-all] }

[Linux]

swcfmg_patch_applied

{ -add -file "Applied patch information file path" [-e "Character encoding"] |
-delete -file "Applied patch information file path" [-e "Character encoding"] |
-list [{-serverid "Server ID",... | -ip "IP address",...} ] [ -file "Output file path"] [-e "Character encoding"] [-all] }

Options

-add -file "Applied patch information file path"

Registers applied patch information using the specified applied patch information file.

The applied patch information file is in CSV format. For details on the applied patch information file, refer to "6.4.2 Applied Patch Information File".

-delete -file "Applied patch information file path"

Deletes applied patch information using the specified applied patch information file.

The applied patch information file is in CSV format. For details on the applied patch information file, refer to "6.4.2 Applied Patch Information File".

-list [{-serverid "Server ID",... | -ip "IP address",...} ] [ -file "Output file path"]

Outputs the applied patch information registered using this command in CSV format. This file is in CSV format. For details on the file, refer to "6.2.3 Collection Information CSV File". If -file "Output file path" is omitted, information will be output to the standard output for the 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 output to the file fails due to an error, no new file will be created. If an existing file was to be overwritten, it will be kept as is without being overwritten.

[-file "Output file path"]

Specify the output file path.

If this option is omitted, information will be output to the standard output for the 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 output to the file fails due to an error, no new file will be created. If an existing file was to be overwritten, it will be kept as is without being overwritten.

For details on the output file, refer to "6.4.2 Applied Patch Information File" in File Reference.

[-all]

Outputs not only the applied patches whose information collection source is manually registered, but all the applied patch information of all information collection sources.

-e "Character 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.

Return values

Return Value

Meaning

0

Completed normally.

10

A parameter error has occurred.

20

There is an error in the specified I/O file path.

30

The specified character encoding is incorrect.

40

Failed to read the applied patch information file.

50

The applied patch information file description is incorrect.

100

Systemwalker Software Configuration Manager is not running.

101

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

102

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

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 for execution

[Windows]

[Linux]

Notes

Common notes
Notes regarding registration
Notes regarding deletion
Notes regarding list display
Notes regarding registration and deletion errors

Examples