Top
Systemwalker Software Configuration Manager Developer's Guide
FUJITSU Software

5.4.1 swcfmg_patch_def (Patch Information Management Command)

Description

Registers, updates, deletes, and lists patch information managed by Systemwalker Software Configuration Manager.

Synopsis

[Windows]

swcfmg_patch_def.exe

{ -add [-sourceid "Information collection source ID"] -file "Patch information file path" [-e "Character encoding"] |
-update [-sourceid "Information collection source ID"] -file "Patch information file path" [-e "Character encoding"] |
-delete -id "Patch ID",... |
-list [-sourceid "Information collection source ID"] [-file "Output file path"] [-e "Character encoding"] }

[Linux]

swcfmg_patch_def

{ -add [-sourceid "Information collection source ID"] -file "Patch information file path" [-e "Character encoding"] |
-update [-sourceid "Information collection source ID"] -file "Patch information file path" [-e "Character encoding"] |
-delete -id "Patch ID",... |
-list [-sourceid "Information collection source ID"] [-file "Output file path"] [-e "Character encoding"] }

Options

-add [-sourceid "Information collection source ID"] -file "Patch information file path"

Registers patch information using the specified patch information file. The patch information is registered as a patch of the information collection source specified using the information collection source ID. When the information collection source ID is omitted, it is registered as a manually registered patch.

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

-update [-sourceid "Information collection source ID"] -file "Patch information file path"

Updates patch information using the specified patch information file. Updates the patches of the information collection source specified using the information collection source ID. When the information collection source ID is omitted, a manually registered patch is updated.

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

-delete -id "Patch ID",...

Specify a patch ID to delete registered patch information. Multiple patch IDs can be specified by delimiting them with "," (commas).

The patch IDs are configured during registration of this command or discovery of the software information. Specifying -list enables patch information to be checked from the output patch information.

-list [-sourceid "Information collection source ID"] [-file "Output file path"]

Outputs registered patch information in CSV format.

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.

For details on the output file, refer to "6.4.1 Patch Information File".

-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 patch information file.

50

The patch information file description is incorrect.

70

The specified information collection source ID or patch ID does not exist.

80

As the applied patch information is registered in the patch information to be deleted, it cannot 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 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 updating
Notes regarding deletion
Notes regarding list display
Notes regarding registration and update errors

Examples