Velocity • Durability

Version 12.0.0

7. Command Summary

Every PanCTL command described in the Command Reference chapter that follows, grouped the same way as its sections. Each command links to its group’s own section. The auth commands are covered in Chapter 3, the profiles commands in Chapter 4, shell in Section 2.3, and completion in Chapter 9; they are not repeated in the table below.

Command Purpose
realm get Show realm-wide state and configuration
nodes list List all nodes
nodes get <dataserial> Show one node’s details
nodes reboot <dataserial> Reboot a node (asks for confirmation)
nodes drain <dataserial> Start draining a node (asks for confirmation)
nodes get-drain <dataserial> Show a node’s drain progress
nodes stop-drain <dataserial> Stop a drain that is already running
storagesets list List all StorageSets
storagesets get <id> Show one StorageSet
storagesets create --name <name> [--spares-requested <n>] Create a StorageSet
storagesets update <id> -f <file> Update a StorageSet
storagesets delete <id> Delete a StorageSet (asks for confirmation)
storagesets add-storage --storageset-id <id> --dataserials <a,b,c> [options] Add nodes to a StorageSet
tenants list List all tenants
tenants get <tenant_id> Show one tenant
tenants create --name <name> --display-name <label> --email <addr> [options] Create a tenant
tenants update <tenant_id> -f <file> Update a tenant
tenants delete <tenant_id> Delete a tenant (asks for confirmation; fails with 409 until its S3 instances, volumes, and subnets are removed)
tenants assign-storagesets --tenant <ref> --storageset-id <id> --quota <size> Grant/resize a tenant’s capacity in a StorageSet
tenants unassign-storagesets --tenant <ref> --storageset-id <id> Remove a tenant’s access to a StorageSet
tenants list-storagesets --tenant <ref> List StorageSets assigned to a tenant
tenants get-storageset --tenant <ref> --storageset-id <id> Show one tenant/storage-set assignment
volumes list [--tenant <ref> \| --all-tenants] List volumes
volumes get <volume_id> [--tenant <ref>] Show one volume
volumes create --name <path> --storageset-id <id> --hard-quota <size> [options] Create a volume
volumes update <volume_id> -f <file> Update quotas, recovery priority, and other settings
volumes rename <volume_id> -f <file> Rename (change the path of) a volume
volumes delete <volume_id> Delete a volume (asks for confirmation)
subnets list [--tenant <ref>] List subnets (realm-wide, or one tenant’s)
subnets get <subnet> --tenant <ref> Show one subnet
subnets create --tenant <ref> --name <name> --cidr <addr/prefix> [options] Create a subnet
subnets update <subnet> --tenant <ref> [options] Update a subnet
subnets delete <subnet> --tenant <ref> Delete a subnet (asks for confirmation)
subnets mount-info <subnet> --tenant <ref> Show which Directors a client on the subnet mounts to
subnets segment-type get or subnets segment-type set <vlan\|vxlan> Read or set the realm-wide network segment type
subnets attachments list <subnet> --tenant <ref> List client attachments on a subnet
subnets attachments get <subnet> <attachment_id> --tenant <ref> Show one attachment
subnets attachments create <subnet> --tenant <ref> --underlay-ip <ip> [options] Attach a client
subnets attachments delete <subnet> <attachment_id> --tenant <ref> Remove an attachment (asks for confirmation)
users list [--tenant <ref>] List users in a tenant
users get <user_id> [--tenant <ref>] Show one user
users create --tenant <ref> --username <name> [options] Create a user
users update <user_id> --tenant <ref> [--display-name <label>] [-f <file>] Update a user
users delete <user_id> --tenant <ref> Delete a user (asks for confirmation)
users get-roles --user <id> --tenant <ref> Show a user’s roles
users set-roles --user <id> --tenant <ref> --roles <a,b> Replace a user’s roles (asks for confirmation)
service-accounts list List service accounts
service-accounts get <id> Show one service account
service-accounts create --name <name> [--display-name <name>] [--description <text>] Create a service account
service-accounts update <id> [options] Update display name/description
service-accounts delete <id> Delete a service account (asks for confirmation)
service-accounts get-roles --service-account <id> Show a service account’s roles
service-accounts set-roles --service-account <id> --roles <a,b> Replace a service account’s roles (asks for confirmation)
service-accounts tokens create --service-account <id> --name <label> --expires-in-days <n> Mint an API token for the service account
service-accounts tokens list --service-account <id> [--active-only] List a service account’s tokens
service-accounts tokens revoke <token_id> --service-account <id> [--reason <text>] Revoke a token (asks for confirmation)
roles list Show all roles and their permitted actions
s3 enabled get/s3 enabled set <true\|false> Enable or disable the S3 gateway realm-wide
s3 prefix get/s3 prefix set <path> View or set the realm-wide path prefix
s3 create-config --tenant <ref> [options] Create a tenant’s S3 configuration
s3 get-config --tenant <ref> Show a tenant’s S3 configuration
s3 set-config --tenant <ref> [options] Update a tenant’s S3 configuration
s3 delete-config --tenant <ref> Delete a tenant’s S3 configuration
s3 aggregator <on\|off> --tenant <ref> Turn a tenant’s S3 aggregator on or off
s3 dns <off\|panfs\|external> --tenant <ref> Set how S3 DNS is published for a tenant
s3 tls renew --tenant <ref> Renew a tenant’s S3 TLS certificate
s3 instances list --tenant <ref> List S3 gateway instances
s3 instances get <iid> --tenant <ref> Show one S3 gateway instance
s3 instances create <iid> <dataserial> --tenant <ref> Create an S3 gateway instance on a node
s3 instances start <iid> --tenant <ref>/start-all Start one or every S3 gateway instance
s3 instances stop <iid> --tenant <ref>/stop-all Stop one or every S3 gateway instance
s3 instances delete <iid> --tenant <ref> Delete an S3 gateway instance
s3 instances delete-all --tenant <ref> --yes Delete every S3 gateway instance for a tenant
s3 buckets create <name> --owner <access_key> --tenant <ref> Create an S3 bucket owned by a PanFS user
s3 buckets list --tenant <ref> List S3 buckets
s3 buckets delete <name> --tenant <ref> Delete an empty S3 bucket
s3 buckets delete-policy <name> --tenant <ref> Remove a bucket’s policy (asks for confirmation)
fs-users list --tenant <ref> List a tenant’s PanFS users and their S3 access keys
fs-users get <fs_user_id> --tenant <ref> Show one PanFS user
fs-users create --tenant <ref> --name <name> [options] Create a PanFS user
fs-users update <fs_user_id> --tenant <ref> [options] Change a PanFS user
fs-users delete <fs_user_id> --tenant <ref> Delete a PanFS user (asks for confirmation)
fs-users s3-secret <fs_user_id> --tenant <ref> Show a user’s S3 access key and secret
fs-users rotate-s3-secret <fs_user_id> --tenant <ref> Rotate a user’s S3 secret
events list [--limit <n>] [--tenant <ref> \| --all-tenants] List recent system events
alerts list [--tenant <ref> \| --all-tenants] List currently active alerts
audit list [options] List administrative audit log entries
audit get <request_id> Show one audit log entry’s detail
log-collections create [options] Start a realm log collection
log-collections list List collections, newest first
log-collections get <collection_id> Show one collection in full
log-collections download <collection_id> [--output <file>] Fetch a collection’s archive
log-collections delete <collection_id> Stop a run, clean the nodes, and remove the archive (asks for confirmation)
api <METHOD> <path> [--query k=v] [-f <file\|->] Send one authenticated request to any PanAPI path
api list, api explain <path>, api version Read the cached API specification