Description
Outputs the patch information or the patch application status.
Synopsis
[Windows]
swcfmg_patch_info.exe { -list -t "Patch type" [-sourceid "Information collection source ID"] [-file "Output file path"] [-e "Character encoding"] | -server -t "Patch type" [-sourceid "Information collection source ID"] [-snap "Snapshot name"] [-file "Output file path"] [-e "Character encoding"] [{-serverid "Server ID" | -ip "IP address"}] [-status "Application status"] } |
[Linux]
swcfmg_patch_info { -list -t "Patch type" [-sourceid "Information collection source ID"] [-file "Output file path"] [-e "Character encoding"] | -server -t "Patch type" [-sourceid "Information collection source ID"] [-snap "Snapshot name"] [-file "Output file path"] [-e "Character encoding"] [{-serverid "Server ID" | -ip "IP address"}] [-status "Application status"] } |
Options
Outputs patch information in CSV format. For details on the output format, refer to "2.5.3 Patch Information List CSV File". One of the following patch information will be output:
Windows OS patches: patches authorized on WSUS
Linux OS patches: patches registered in the yum repository server, or defined as management targets
Solaris OS patches: patches already applied to the managed server
Software patches: released patches registered with Systemwalker Software Configuration Manager
Outputs the patch application status in CSV format. For details on the output format, refer to "2.5.2 Patch Application Status List CSV File".
Outputs the patch information or the patch application status for the patch specified for the patch type. Specify the following patch types:
windows: Windows patches
linux: Linux patches
solaris: Solaris OS patches
middleware: Software patches
Outputs the patch information or the patch application status collected from the information collection source specified using the information collection source ID. This option is effective only when "middleware" is specified for the -t option. When this option is omitted and "middleware" is specified for the -t option, this command outputs the patch information or the patch application status collected from the information collection source of UpdateAdvisor.
When the snapshot name is specified, outputs the patch application status of the specified snapshot.
Specify the file path where the patch information or the patch application status is to be output. If omitted, the information is output to the standard output for this 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.
Specify the character encoding for the file.
The following character encoding 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.
When outputting the patch application status, you can filter the patches to be output, by specifying the options below. If you do not specify any option, all patches will be output.
Specify the server ID or IP address of the server to output the application status for. If omitted, the application statuses of all servers are output.
Specify the patch application status to be output. The following application statuses can be specified:
applied: already applied
unapplied: not applied
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. |
70 | The specified server or snapshot does not exist. |
100 | Systemwalker Software Configuration Manager is not running. |
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
[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.
Notes
Execute this command while Systemwalker Software Configuration Manager is running.
Examples
Patch information display
[Windows]
swcfmg_patch_info.exe -list -t windows -file C:\work\patchinfo.csv |
[Linux]
swcfmg_patch_info -list -t windows -file /tmp/patchinfo.csv |
Patch application status display
[Windows]
swcfmg_patch_info.exe -server -t windows -file C:\work\patchstatus.csv -ip 192.168.1.1 |
[Linux]
swcfmg_patch_info -server -t windows -file /tmp/patchstatus.csv -ip 192.168.1.1 |