sentry-bundles

Retrieves the bundle list from a remote sentry.

Command properties

PropertyDescription
Command typeTransforming
Required permissionAdministrator
License usageN/A
Parallel executionSupported
Distributed executionNot supported

Syntax

sentry-bundles [timeout=INT]

Options

timeout=INT
RPC timeout in seconds. Accepts a value between 1 and 600. (Default: 30)

Input fields

FieldTypeRequiredDescription
guidstringRequiredSentry unique identifier.

Output fields

FieldTypeDescription
guidstringSentry unique identifier.
bundle_idlongBundle ID.
symbolic_namestringBundle symbolic name.
versionstringBundle version.
statestringBundle state.
last_modifiedtimestampLast modification time.
integritystringIntegrity status.
_errorstringError message if an error occurred.

Possible values for the state field:

ValueDescription
ACTIVEThe bundle has started normally.
INSTALLEDThe bundle's dependencies are not resolved.
RESOLVEDThe bundle's dependencies are resolved but it has not started.
STARTINGThe bundle is starting.
STOPPINGThe bundle is stopping.
UNINSTALLEDThe bundle has been removed.

Possible values for the integrity field:

ValueDescription
no signatureNo digitally signed hash value exists.
hash errorSHA-512 hash computation for the bundle file failed (e.g., I/O error).
verifiedMatches the digitally signed hash value.
modifiedDoes not match the digitally signed hash value (tampered).

Error codes

Parsing errors
Error codeMessageDescription
23100No permission to call sentry RPC.A user without administrator privileges ran the command.
23101Invalid sentry RPC timeout option value. Use a value between 1 and 600.The timeout option value is not a number or is outside the range 1–600.
Runtime errors

Depending on the guid field value, the following error messages may be assigned to the _error field:

Error messageDescription
guid is nullThe guid field value in the input record is null.
guid should be stringThe guid field value in the input record is not a string.
guid should be non empty stringThe guid field value in the input record is an empty string.
not connectedThe sentry is not connected.
timeoutThe RPC request timed out.
disconnectedThe connection was lost while processing the RPC request.

Other RPC exception messages may be assigned to the _error field depending on the state of the system where the sentry is installed.

Description

The sentry-bundles command sends asynchronous RPC messages requesting bundle list information to remote sentries identified by the guid field of each input record. When a response is received from a sentry, the bundle information is added to the input record and output.

The maximum length of the asynchronous RPC request queue is 100 by default and can be adjusted using the logpresso.core.sentry_rpc_parallel environment variable. When the queue is full and some sentries respond or time out, new RPC messages are sent to fill the freed slots.

Results are output in the order RPC responses are received, so the output record order may differ from the input record order.

To retrieve results from all Data Nodes at once in a cluster environment, use the sonar-sentry-bundles command.

Examples

  1. Retrieve the bundle list from all sentries

    system sentries | fields guid | sentry-bundles
    

    Retrieves the bundle list from all connected sentries.

  2. Retrieve only ACTIVE bundles from all sentries

    system sentries | fields guid | sentry-bundles | search state == "ACTIVE"
    

    Filters only bundles in the ACTIVE state from all sentries.