Top
Systemwalker Software Configuration Manager Reference Guide
FUJITSU Software

1.2.19 swcfmg_report_policy (Policy Information Management Command)

Description

Registers, updates, deletes, lists, and reports about policies managed by Systemwalker Software Configuration Manager.

Synopsis

[Windows]

swcfmg_report_policy.exe
{ -add -file "Policy information file path" [-e "Character encoding"]  |
-update -file "Policy information file path" [-e "Character encoding"] |
-delete  -id "Policy ID" |
-list [ -file "Output file path"] [-e "Character encoding"] |
-report [ -file "Output file path"] [-e "Character encoding"]  }

[Linux]

swcfmg_report_policy
{ -add -file "Policy information file path" [-e "Character encoding"]  |
-update -file "Policy information file path" [-e "Character encoding"] |
-delete  -id "Policy ID" |
-list [ -file "Output file path"] [-e "Character encoding"] |
-report [ -file "Output file path"] [-e "Character encoding"]  }

Options

-add -file "Policy information file path"

Registers a policy using the data entered in the specified policy information file.

The policy information file is in CSV format. For details on the policy information file, refer to "2.2.10 Policy Information File".

-update -file "Policy information file path"

Updates a policy using the data entered in the specified policy information file.

The policy information file is in CSV format. For details on the policy information file, refer to "2.2.10 Policy Information File".

-delete -id "Policy ID"

Deletes the policy that has the specified policy ID.

-list [-file "output file path"]

Outputs the policy registered using this command in CSV format. For details on the file, refer to "2.2.10 Policy Information 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 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.

-report [-file "output file path"]

Outputs policy compliance status.

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.

For details on output files, refer to "Notes".

-e "Character encoding"

Specify the character encoding for the file.

The following character encoding can be specified. Use uppercase letters.

  • UTF-8

    If this option is omitted, the character encoding of the execution environment of this command will be used.

Return codes

Return Code

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.

70

The specified policy ID 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 already running.

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

[Windows]

Systemwalker Software Configuration Manager installation directory\SWCFMGM\bin

[Linux]

/opt/FJSVcfmgm/bin

Privilege required

[Windows]

[Linux]

Notes

Common notes
Notes on registration
Notes on update
Notes on deletion
Notes on list display
Notes on registration and update errors

Examples