Object Repository action commands that you can run from the CLI

Actions can be used with the objects that are returned from a query or imported from a JSON file previously exported (see --import-objects).

The most basic of the actions is to simply out the objects with --action-show. You can select to include host information for agents, oids and references.

The other commands listed in the table below perform similar functionality to that available in the Object Repository tab.

Command

Description

--import-objects file_name

Import objects from JSON file.

--action-confirm

Indicates objects imported or queried are confirmed. This option is not recommended and the agent extensions should be allowed to confirm objects exist.

--action-export file_name

Export queried objects to JSON file.

--action-count

Object count of objects imported or queried.

--action-add

Add the specified objects imported or queried.

--action-delete

Deletes the objects imported or queried. Deleted objects can be removed on next dbschema_sync execution when services are inactive.

--action-deprecate

Deprecate the objects imported or queried.

--action-not-found seconds

Indicates objects imported or queried are not-found if the object has not been confirmed to exist in the period of time specified. Best used with --query-objects or --query-path-prefix. This option is usually not needed as the agent extensions mark objects not found when they are removed from the monitored technology.

--action-register

Register for monitoring objects imported or queried.

--action-unregister

Unregister for monitoring objects imported or queried.

--action-show

Show queried or imported objects. Additional information can be output with --show-host-info, --show-oid or --show-ref.

--show-host-info

Show host information when used with --action-show.

--show-oid

Show object identifier when used with --action-show.

--show-ref

Show object references when used with --action-show.

Was this page helpful? Yes No Submitting... Thank you

Comments