lbcli list servers

List of servers resources.

Bash
Copy

Examples:

Bash
Copy
FlagShortTypeDefaultDescription
--uuidstringThe UUID of the server.
--namestringServer name.
--riskOfServiceLossStatestring“None”Indicates if disabling a server will cause a service loss for some volume.
--help-hboolHelp for servers.

This command returns the following fields for each server. The default output format is human-readable. The human-readable output only shows some of these fields. The json/yaml output format is also supported and includes additional fields.

The fields in bold below will be returned by the human-readable output.

FieldTypeDescription
NamestringThe server name.
IDintegerServer ID.
Risk Of Service Loss StatestringIndicates if disabling a server will cause a service loss for some volume.
StatestringEnable/Disable status of the server.
LightOS VersionstringThe current Lightbits version.
Upgrade StatusstringUpgrade status of the specific server (only in json/yaml format).
ApiEndpointslist of stringsList of API endpoints exposed on this server (only in json/yaml format).
Server End Pointslist of stringsList of server control endpoints URIs; i.e., http://192.168.80.14:2379 (only in json/yaml format)
EtagStringFor internal use (only in json/yaml format).
NodesUUIDslist of stringsList of Lightbits nodes (identified by UUID) running over this server (only in json/yaml format).
LastUpgrade/Statusstring

3.3.1 and above

Current status of the upgrade. The possible values are:

  • None
  • Upgrading
  • Rebooting
  • Recovering
  • UpgradeFailed

For a healthy upgrade flow, the upgrade should cycle through these statuses:

None > Upgrading > Rebooting > Recovering > None

LastUpgrade/StartTimetimestampStart time of the upgrade on this server.
LastUpgrade/EndTimetimestampEnd time of the upgrade on this server.
LastUpgrade/TargetVersionstringLighbits version the server is being upgraded to.
LastUpgrade/ErrorMessagestring

Detailed error message if the upgrade operation failed.

Note: ErrorMessage is limited to 40 characters, so in some cases long error messages will be concatenated.

LastUpgrade/ProgressStepintProgress of the upgrade operation.
LastUpgrade/ProgressTotalintThe total steps in the upgrade operation.

All upgrade information is structured into LastUpgrade. This will return either the information for a current ongoing upgrade, or if not, the upgrade in process will return information for the last upgrade that was run over this server.

Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
On This Page
lbcli list servers