Synopsis
discover -dir "output dir"
Options
Specify the output directory for the software information CSV file (softwareinfo.csv) and the patch information CSV file (patchinfo.csv). If the path contains spaces, enclose it in double quotation marks (").
Output format
"0" is returned if the script ends normally, and some other value is returned otherwise - error messages are sent either to the standard output or to the standard error output.
+ "output directory"
+ Software information CSV file of collected software (softwareinfo.csv)
+ Patch information CSV file of collected patches (patchinfo.csv)
Notes
The directory in which the command is stored will be considered the current directory.
An error will occur if the directory does not exist, or if it exists and contains files or directories.
Output the software information CSV file and patch information CSV file using the character encoding of the system of the server on which this script is running.
Describe a single entry of information of software installed on the server per line of CSV. For details on the CSV file, refer to "6.2.3 Collection Information CSV File".
The same software cannot be described multiple times. When describing multi-instance software, specify a different value for the installation location.
The value of the identification item cannot be omitted. When the value is omitted or incorrect, the software information in the line indicated will not be registered. The identification item of the OS type can be omitted. When omitted, the OS type of the target server is configured.
The values of collection items other than identification items can be omitted. When the value is omitted or incorrect, the value specified in the corresponding software definition will be configured. When the value is not configured in the software definition, this collection item will not be collected.
Describe a single entry of information of patches applied to the server per line of CSV. For details on the CSV file, refer to "6.2.3 Collection Information CSV File".
The same patch cannot be applied to the same installed software multiple times. A single patch cannot be applied to multiple software.
Specify the software to which the patch is applied in the collection item of the target software. For the software information CSV file, which is simultaneously output, specify the local ID of the corresponding software. The collection item of the target software cannot be omitted.
The value of the identification item cannot be omitted. When the value is omitted or incorrect, the patch information in the line indicated will not be registered. The identification item of the OS type can be omitted. When omitted, the OS type of the target server is configured.
The values of collection items other than identification items can be omitted. When the value is omitted or incorrect, the value specified in the corresponding patch definition will be configured. When the value is not configured in the patch definition, this collection item will not be collected. When the collection item of the software name is omitted and a value is not configured in the patch definition, the name of the software to be patched is configured.
Output Example
Output examples of the software information CSV file and the patch information CSV file are shown below. When the collection items of software and patches are defined as follows, and when a single entry of software information installed on a server and information of patches applied to that software are collected, specify the software information CSV file and the patch information CSV file as follows.
Order | Collection Item | Identification Item | |
---|---|---|---|
Collection items of the software | 1 | Software name | Yes |
2 | Version | Yes | |
3 | OS type | Yes | |
4 | Installation location | - | |
Patch collection item | 1 | Patch name | Yes |
2 | OS type | Yes | |
3 | Target software | - | |
4 | Application date | - |
Specification examples
Software information CSV file
software1,SoftwareA,V1.0,,C:\work
Patch information CSV file
patch1,PatchA,,software1,2015/3/4 14:14