Using the lbcli Utility

To use the lbcli utility, you will need to access the Linux operating system command line on the server that is running the Lightbits cluster. You can access the Linux server via a direct connection to the physical server or remotely via secure shell (SSH) to the server.

lbcli Command Syntax

The lbcli command syntax includes the following parameters.

lbcli {operation} {resource_type} {mandatory_parameters...} [optional_parameters...]

lbcli CLI Utility Command Syntax

Parameter NameDescription
OperationSpecifies the operation performed on one or more resources.
Resource TypeSets the resource type that the command will address.
Mandatory ParametersParameters that are required for command completeness.
Optional ParametersParameters that are not required for command completeness.

For example, the command syntax for creating a volume is as follows, where the operation is 'create', the resource type is 'volume', a mandatory parameter is 'name', and the optional parameter is 'ip-acl'.

There are additional mandatory parameters for this command.

lbcli create volume name=vol1 --ip-acl=10.0.0.1

Operations

The lbcli CLI utility uses operations to refer to the uppermost management level tasks that can be performed by lbcli. Operations such as create and delete are used for creating and deleting resources. Therefore, a resource type must be specified to use these operations. Other commands may require other sub-operations and parameters.

CommandDescription
loginLogs in to the Lightbits cluster using the IdP server (Beta).
createCreates a resource.
deleteDeletes a resource.
getRetrieves information about a resource.
listRetrieves information about a list of resources.
updateUpdates information about resources.
addAdds an entity into the cluster.
enableEnables an entity, such as a cluster server.
disableRemoves entities from the cluster.
replaceReplaces entities.
upgradeUpgrades cluster/server operations.
helpDisplays help content about any command.
versionPrints the lbcli version information.
rollbackRolls back to a previous snapshot.
fetchFetches logs.
completionGenerates the autocompletion script for the specified shell.
setSets parameters for resource of type: [trusted-host-secrets].
logoutLogs out of the Lightbits cluster (Beta).

All create/update Lightbits lbcli operations are asynchronous. Some operations take some time to complete. Additionally, some operations can only be done on resources that are in an active state. For example, you cannot update a volume that is not active (i.e., one that has an operation still being executed on it). Therefore it is advised to add a checking or polling mechanism to your API calls to ensure that the operation has succeeded. Deleting a snapshot is an exception, as this is a background operation. All list/get Lightbits lbcli operations are synchronous.

Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard