Status

sfp server status

Check the status of a tenant's services

sfp server status

Display the current operational status of all services for a specified tenant.

USAGE
  $ sfp server status -t <value> [--json] [--passphrase <value>
    [--identity-file <value> --ssh-connection <value>]] [-g <value>...]
    [--loglevel
    trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]

FLAGS
  -t, --tenant=<value>              (required) Name of the tenant to check
  --json                            Output status in JSON format
  
  SSH OPTIONS
  --ssh-connection=<value>          SSH connection string in the format user@host[:port]
  --identity-file=<value>           Path to SSH private key file
  --passphrase=<value>              Passphrase for the SSH private key if required
  
  OTHER OPTIONS
  -g, --logsgroupsymbol=<value>...  Symbol used by CICD platform to group/collapse logs
  --loglevel=<option>               [default: info] logging level for this command invocation
                                    <options: trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL>

DESCRIPTION
  Check the status of a tenant's services

  This command provides information about:
  - Service health status (running/stopped/error)
  - Container status
  - Resource usage
  - Uptime information

EXAMPLES
  $ sfp server status --tenant my-app

  $ sfp server status --tenant my-app --json

  $ sfp server status --tenant my-app --ssh-connection [email protected] --identity-file ~/.ssh/id_rsa

Output Information

The status command provides comprehensive information about:

  • API Server: Main application server status

  • Workers: Status of critical, normal, and batch workers

  • Supporting Services: Redis and Caddy status

  • Resource Usage: Memory and CPU utilization

  • Uptime: How long services have been running

Output Formats

Standard Output

JSON Output

Remote Server Management

Check status of a tenant on a remote server:

Use Cases

Monitoring Script

Health Check Integration

Status Values

  • running: All services are operational

  • partial: Some services are running, others are stopped

  • stopped: All services are stopped

  • error: One or more services have encountered errors

  • unknown: Unable to determine status

Note: Use the JSON output format for integration with monitoring and automation systems.

Tip: Combine with sfp server health for more detailed health information.

Last updated