Description
This command performs discovery for software configuration information.
There are two types of update: full update and differential update. A full update collects all the latest information, regardless of whether the information has been collected previously. A differential update collects only the differences between all the latest information and the information that has been collected previously.
Perform a full update in the following situations:
When recreating the CMDB
When a configuration item has been incorrectly deleted from the Configuration Management window
This command can be executed on the admin server.
Synopsis
[Windows]
cmdbrefresh.exe [-a] -q [type=<Agent type>] |
[Linux]
cmdbrefresh.sh [-a] -q [type=<Agent type>] |
Options
This option updates all observed records (a full update). If this option is omitted, a differential update will be used. Normally a differential update should be performed by omitting this option.
When executing this command on a CMDB agent, specify the type of the agent that the update will apply to. The following agent types can be specified. Specify the type of an agent that has been set up. If this option is omitted, the update will apply to all of the agents that have been set up.
An agent that collects patch management information for WSUS linkage.
This agent type can be specified when this command is executed on the admin server.
Note that this option is for maintenance purposes only, and normally the 1.4.2 swcfmg_patch_updateinfo (Patch Information Update Command) should be used to discover patch-related information.
An agent that collects patch management information for yum linkage.
This agent type can be specified when this command is executed on the admin server.
Note that this option is for maintenance purposes only, and normally the 1.4.2 swcfmg_patch_updateinfo (Patch Information Update Command) should be used to discover patch-related information.
An agent that collects patch management and software management information for UpdateAdvisor linkage.
This agent type can be specified when this command is executed on the admin server.
Note that this option is for maintenance purposes only, and normally the 1.4.2 swcfmg_patch_updateinfo (Patch Information Update Command) should be used.
Return Value
Return value | Meaning |
---|---|
0 | The command has terminated normally. |
Other than 0 | The command has terminated abnormally. |
Command Location
Admin server
[Windows]
[%SWCMDB_INSTALL_PATH% *]\FJSVcmdbm\bin *: The installation directory for the CMDB included with Systemwalker Software Configuration Manager is set to the "%SWCMDB_INSTALL_PATH%" environment variable. |
[Linux]
/opt/FJSVcmdbm/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
This command executes asynchronously with the update processing performed on the target server. This means that update processing may be still executing on the CMDB agent even after the command has returned. The messages in the event log or syslog on the CMDB agent can be used to check whether the update processing has completed.
Example
Issuing an update request to an agent that collects patch management information for WSUS linkage
[Windows]
cmdbrefresh.exe -q type=AGT_CFMGWSUS |
[Linux]
cmdbrefresh.sh -q type=AGT_CFMGWSUS |