Top
Systemwalker Software Configuration Manager Developer's Guide
FUJITSU Software

3.2.1 swcfmg_software (Software Information Management Command)

Description

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

Use this command to register software information to ensure that software not collected by discovery (software incompatible with UpdateAdvisor (middleware)) will be displayed as installed software on the management console, or to allow software parameters to be configured.

Synopsis

[Windows]

swcfmg_software.exe

{ -add -file <Software information file path> [-e <Character encoding>] |

-update -file <Software information file path> [-e <Character encoding>] |

-delete -id <Software ID>,... |

-list [ -file <Output file path>] [-e <Character encoding>] }

[Linux]

swcfmg_software

{ -add -file <Software information file path> [-e <Character encoding>] |

-update -file <Software information file path> [-e <Character encoding>] |

-delete -id <Software ID>,... |

-list [-file <Output file path>] [-e <Character encoding>] }

Options

-add -file <Software information file path>

Registers software information using the specified software information file

The software information file is in CSV format. Refer to "4.2.1 Software Information File" for information on software information files.

-update -file <Software information file path>

Updates software information using the specified software information file

The software information file is in CSV format. Refer to "4.2.1 Software Information File" for information on software information files.

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

Deletes registered software information. Multiple software IDs can be specified by delimiting them with ',' (comma).

The software ID is automatically set during software information registration. Specifying -list allows the software ID to be checked from the software information output.

-list [-file <Output file path>]

Outputs registered software 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 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.

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

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

50

The software information file description is incorrect.

70

The specified software ID does not exist.

80

The software information targeted for deletion cannot be deleted because the parameter settings information or the installed software information has been registered.

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

Execution results/output format