Top
Systemwalker Runbook Automation Reference Guide
Systemwalker

1.4.7 cmdbrefresh (Observed Record Collection Request Command)

Description

This command outputs update requests to the Agent, and updates the observed records that are managed in CMDB. There are two types of update: a full update and a differential update. A full update collects all information from scratch, regardless of whether it has already been collected up to that point. A differential update collects information that differs from previously collected information.

If all observed records are specified for update, the update may not be reflected in deleted observed records (the observed records might remain in CMDB), therefore all records should only be updated in the following cases:

This command can be executed in both the Manager and the Linked Server.


Synopsis

[Windows]

cmdbrefresh.exe [-a] -q [server=Host name | type=Agent type]

[Linux]

cmdbrefresh.sh [-a] -q [server=Host name | type=Agent type]


Options

-a

This option updates all observed records (update all). If this option is omitted, update differences will apply. In normal cases, omit this option so that update differences will apply.

-q server=Host name

To execute this option on the Manager, specify the host name of the update target Linked Server. At the time of the Agent installation, specify the value that was entered for the host name used by the CMDB Agent.

If this option is omitted, all Linked Server recognized by the Manager will be update targets.

-q type=Agent type

This option specifies the type of update target Agent when this command is executed on the Agent. The Agent types that can be specified are shown below. Specify an Agent type that has already been set up. If this option is omitted, all Agents that have been set up will be updated.

  • AGT_CENTINV

    An agent that collects the Systemwalker Centric Manager inventory information.

  • AGT_CENTREP

    An agent that collects the Systemwalker Centric Manager node information.

  • AGT_INV

    An agent that automatically collects inventory information about the servers connected to the network.

  • AGT_ADSC

    An agent that detects node automatically and collects node information


Combining options

The options that can be combined are different for the Manager and the Linked Server, as shown below:

Additionally, when this command is executed on the Manager, the agents that can be specified in server=host name are those that have a record of having notified the Manager at least once about the information that was collected. The reason for this is that the Manager can recognize the existence of the Agents in the first notification of information.


Return Values

0:

Normal termination

Value other than 0:

Abnormal termination


Command Location

[Windows]

<Systemwalker Runbook Automation installation directory>\CMDB\FJSVcmdbm\bin
Note: The default location is C:\Fujitsu\Systemwalker\SWRBAM

[Linux]

/opt/FJSVcmdbm/bin


[Windows]

%SWCMDB_INSTALL_PATH%\FJSVcmdba\bin

Note: The installation destination of the CMDB agent included in the agent of Systemwalker Runbook Automation is set to environment variable %SWCMDB_INSTALL_PATH%.

[Linux]

/opt/FJSVcmdba/bin


Privilege Required/Execution Environment

[Windows]

[Linux]

Note

This command and the update process on the target server are performed asynchronously. For this reason, the update process may be running on the agent side even after this command returns. Refer to event log and system log message on the Agent side to check for the completion of update processing.