Description
This command exports RPM package definitions that are subject to Linux patch management and which have already been registered. The definitions are exported to either the standard output or a CSV format file.
By editing the exported information and then importing it again, the RPM package definitions subject to Linux patch management can be added or updated.
Synopsis
[Windows]
swcfmg_patch_exportrpmpolicy.exe [-f <Output file path>] [-e <Output file character encoding>] |
[Linux]
swcfmg_patch_exportrpmpolicy [-f <Output file path>] [-e <Output file character encoding>] |
Options
RPM package definitions subject to Linux patch management that have already been registered will be output to the specified file in CSV format. If the specified file does not exist, a new file will be created. If the file exists, the existing file will be overwritten. If this option is omitted, information will be output to the standard output.
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.
Refer to "2.2.16 Linux Patch Management Target Configuration File" for information on the output file.
Specify the character encoding for the output file.
The following character encoding can be specified. Use uppercase letters.
UTF-8
If this option is omitted, the character encoding for the environment in which this command is to be executed will be used in the output file.
Return value
Return value | 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. |
40 | The command cannot analyze the definition file. |
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
Admin server
[Windows]
<Systemwalker Software Configuration Manager installation directory>\SWCFMGM\bin |
[Linux]
/opt/FJSVcfmgm/bin |
Privilege required/execution environment
[Windows]
Administrator privileges are required. Execute as an administrator.
This command can be executed on the admin server.
[Linux]
This command can only be executed by the system administrator (superuser).
This command can be executed on the admin server.
Cautions
If RPM package definitions subject to Linux patch management have not been registered, only the header information will be output.
#rpm name,rpm architecture,rpm version,rpm release
The swcfmg_patch_exportrpmpolicy command and the swcfmg_patch_importrpmpolicy command cannot both be running at the same time. This means that an error will occur if the command is already executing.
Execute this command while Systemwalker Software Configuration Manager is running.
This command cannot be executed at the same time as other commands. An exclusive control error will occur if a command is executed while another command is executing.
Example
[Windows]
swcfmg_patch_exportrpmpolicy.exe -f C:\work\linuxpatchpolicy.csv |
[Linux]
swcfmg_patch_exportrpmpolicy -f /tmp/linuxpatchpolicy.csv |
Execution results/output format
Standard output
#rpm name,rpm architecture,rpm version,rpm release zlib,x86_64,1.2.3,3
File output (when the "-f" option is specified)
Starting to export the Linux patch management target configuration file. Exporting the Linux patch management target configuration file has completed.
Note that the following header information is output as the first line of the CSV file that is output:
#rpm name,rpm architecture,rpm version,rpm release