Top
Systemwalker Software Configuration Manager Reference Guide
FUJITSU Software

1.2.18 swcfmg_report_view (View Information Management Command)

Description

Registers, updates, deletes, lists, displays details of, and reports about views managed by Systemwalker Software Configuration Manager.

Synopsis

[Windows]

swcfmg_report_view.exe
{ -add [ -id "View ID" ] -name "View name" -file "View definition file path"  |
-update -id "View ID" [-name "View name" ] [-file "View definition file path"] |
-delete -id "View ID" |
-list [ -file "Output file path" ] [-e "Character encoding"] |
-get -id "View ID" [ -file "Output file path" ] |
-report id "View ID" [ -policyid "Policy ID" ] -file "Output file path" [-e "Character encoding"] }

[Linux]

swcfmg_report_view
{ -add [ -id "View ID" ] -name "View name" -file "View definition file path"  |
-update -id "View ID" [-name "View name" ] [-file "View definition file path"] |
-delete -id "View ID" |
-list [ -file "Output file path" ] [-e "Character encoding"] |
-get -id "View ID" [ -file "Output file path" ] |
-report id "View ID" [ -policyid "Policy ID" ] -file "Output file path" [-e "Character encoding"] }

Options

-add [ -id "View ID" ] -name "View name" -file "View definition file path"

Registers a view. Specify the view ID and view name of the view to register. When the view ID is omitted, the ID is automatically numbered. For the "-file" option, specify the path of the view definition file. For details of the view definition file, refer to "2.2.9 View Definition File".

-update -id "View ID" [-name "View name" ] [-file "View definition file path"]

Updates the view specified using the view ID. Specify the view ID of the view to update. When updating a view definition, specify the path of the view definition file for the -file option. For information on the view definition file, refer to "2.2.9 View Definition File".

-delete -id "View ID"

Deletes the view specified using the view ID. Use the "-list" option of this command to check the view ID.

-list [-file "output file path"]

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

For details on the format of output files, refer to "Notes".

-get -id "View ID" [ -file "Output file path" ]

Outputs the definition of the view specified using the view ID.

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 information on the output file, refer to "2.2.9 View Definition File".

-report -id "View ID" [ -policyid "Policy ID" ] -file "Output file path"

Outputs the configuration information displayed in the view specified using the view ID. When a policy is specified using a policy ID, only the configuration information in violation of that policy is output. When the policy ID is omitted, all entries of configuration information are output.

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.

50

The file description is incorrect.

70

The specified view or policy 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 reporting

Examples