Description
This command imports RPM package definitions subject to Linux patch management.
Edit the files exported using the swcfmg_patch_exportrpmpolicy command (the Linux patch management target definition export command), and then use this command to add or update the definitions.
Synopsis
[Windows]
swcfmg_patch_importrpmpolicy.exe -f <Input file path> [-e <Input file character encoding>] |
[Linux]
swcfmg_patch_importrpmpolicy -f <Input file path> [-e <Input file character encoding>] |
Options
The RPM package definitions subject to Linux patch management will be registered using the data entered in the specified input file.
The input file uses CSV format. Refer to "2.7 Linux Patch Management Target Configuration File" for information on the input file.
Specify the character encoding for the input 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 input file.
Return Value
Return value | Meaning |
---|---|
0 | The command has terminated normally. |
10 | There is a parameter error. |
20 | There is an error with the specified input path. |
30 | The specified character encoding is incorrect. |
40 | The command cannot analyze the Linux patch management target configuration file. |
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/Execution Environment
[Windows]
Administrator privileges are required. When using Windows Server 2008 or Windows Server 2012, run 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
The information in the input file being imported always takes effect. If information that has been previously registered is updated, the existing definitions will be replaced with the information in the input file.
If there is an error with the input file, registration of the definitions will be canceled. The following kind of error message will be output to the trace log.
The definition in line {0} is incorrect. (Cause: {1})
One of the following messages will be output for (Cause).
Meaning: Review the number of elements in the line indicated.
Meaning: Set the value of rpm-name in the line indicated.
Meaning: Set the value of rpm-version in the line indicated.
If multiple definitions have been set up for a single RPM package name, the definition with the highest priority will take effect. Refer to "2.7 Linux Patch Management Target Configuration File" for information on the priority of definitions. If any definitions are disabled, the following kind of warning message will be output to the trace log.
The following definition has been disabled by a priority judgment. #rpm name,rpm architecture,rpm version,rpm release zlib,x86_64,1.2.3,3 zlib,x86_64,1.2.3,4 zlib,x86_64,,
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.
Behavior is not guaranteed if the character encoding specified for this command does not match the character encoding specified for the input file. These character encodings must match.
This command does not perform authorizations for RPM packages. This command only imports definitions for the RPM packages that are to be subject to Linux patch management. Authorizations are automatically performed when the infrastructure administrator registers RPM packages with the yum repository server.
Example
[Windows]
swcfmg_patch_importrpmpolicy.exe -f C:\work\linuxpatchpolicy.csv |
[Linux]
swcfmg_patch_importrpmpolicy -f /tmp/linuxpatchpolicy.csv |