Skip to main content

px pxe get

List Portworx resources

Aliases: list

note

The following commands support a set of global flags that apply to all px pxe commands.
For details, see the Global Flags section.

px pxe get alert

List and get information about Portworx alerts

Aliases: alerts

Examples:

  # Get portworx related alerts
kubectl px pxe get alert

# Fetch alerts based on particular alert id. Fetch all alerts based on "VolumeCreateSuccess" id
kubectl px pxe get alert --id "VolumeCreateSuccess"

# Fetch alerts between a time window
kubectl px pxe get alert --start-time "2019-09-19T09:40:26.371Z" --end-time "2019-09-19T09:43:59.371Z"

# Fetch alerts with min severity level
kubectl px pxe get alert --severity "alarm"

# Fetch alerts based on resource type. Here we fetch all "volume" related alerts
kubectl px pxe get alert -t "volume"

# Fetch alerts based on resource id. Here we fetch alerts related to "cluster"
kubectl px pxe get alert --id "1f95a5e7-6a38-41f9-9cb2-8bb4f8ab72c5"

Flags

FlagInput typeDescriptionDefaultRequired
--all, -AboolShow all alertsfalseOptional
--end-time, -estringend time span (RFC 3339)-Optional
--id, -istringAlert id-Optional
--output, -ostringOutput in yaml|json|wide-Optional
--resource-idstringResource ID for a specific type-Optional
--severity, -vstringMin severity value (Valid Values: [notify warn warning alarm]) (default "notify")notifyOptional
--start-time, -bstringstart time span (RFC 3339)-Optional
--type, -tstringalert type (Valid Values: [volume node cluster drive all])allOptional

px pxe get clouddrive

List all cloud drives

Aliases: cd, cloud-drive, cloud-drives, clouddrives

Flags

FlagInput typeDescriptionDefaultRequired
--output, -ostringOutput in yaml|json-Optional

px pxe get cluster

Show Portworx and Kubernetes information for every context in your kubeconfig

Aliases: clusters

Examples:

  # Scan through all the contexts in your kubeconfig and display cluster information
kubectl px pxe get cluster

# Show cluster information for contexts that match contain 'east-coast' in the name
kubectl px pxe get cluster --context-match='*east-coast*,*south*'

# Output all Kubernetes and Portworx cluster information as json for your contexts that match '*on-prem*'
kubectl px pxe get cluster -o json --context-match='*on-prem*'

Flags

FlagInput typeDescriptionDefaultRequired
--context-matchstringComma separated list of expressions match the appropriate context-Optional
--output, -ostringOutput in yaml|json|wide-Optional

px pxe get diags

Get all Portworx diagnostics CRs

Aliases: diag, diagnostics

Examples:

  # Get all diagnostic CRs
kubectl px pxe get diags

# Get diagnostic CRs in wide format
kubectl px pxe get diags -o wide

# Get diagnostic CRs in JSON format
kubectl px pxe get diags -o json

# Get diagnostic CRs in YAML format
kubectl px pxe get diags -o yaml

Flags

FlagInput typeDescriptionDefaultRequired
--output, -ostringOutput in wide-Optional

px pxe get node

List Portworx nodes information

Aliases: nodes

Examples:

  # List all Portworx nodes
kubectl px pxe get node

# List nodes with detailed information in wide format
kubectl px pxe get node -o wide

# List nodes and show labels
kubectl px pxe get node --show-labels

# Output node information in JSON format
kubectl px pxe get node -o json

# Output node information in YAML format
kubectl px pxe get node -o yaml

Flags

FlagInput typeDescriptionDefaultRequired
--output, -ostringOutput in yaml|json|wide-Optional
--show-labelsboolShow labels in the last column of the outputfalseOptional

px pxe get pvc

Show Portworx volume information for Kubernetes PVCs

Aliases: pvcs

Examples:

  # Get information for all pvcs that are Portworx volumes
kubectl px pxe get pvc

# Get information for pvc abc
kubectl px pxe get pvc abc

# Get information for pvcs abc and xyz
kubectl px pxe get pvc abc xyz

Flags

FlagInput typeDescriptionDefaultRequired
--all-namespacesboolKubernetes namespacefalseOptional
--output, -ostringOutput in yaml|json|wide-Optional
--show-labelsboolShow labels in the last column of the outputfalseOptional

px pxe get volume

Get information about Portworx volumes

Aliases: volumes, vol

Examples:

# Get information about the portworx volumes
kubectl px pxe get volume

Flags

FlagInput typeDescriptionDefaultRequired
--output, -ostringOutput in yaml|json|wide-Optional
--ownerstringOwner of volume-Optional
--selector, -lstringSelector (label query) comma-separated name=value pairs-Optional
--show-k8s-infoboolShow kubernetes informationfalseOptional
--show-labelsboolShow labels in the last column of the outputfalseOptional
--volumegroupstringVolume group id-Optional