HPE 3PAR Administration: Common CLI Commands by Category - 夜莺博客

HPE 3PAR Administration: Common CLI Commands by Category

HPE 3PAR arrays are powerful but notoriously verbose to administer, and most daily tasks - checking alert state, finding a failed disk, mapping a volume to a host - start with the right show command. This article groups the common 3PAR CLI commands by administration task so storage admins can find the exact command without paging through the full command-line interface reference guide.

System Health and Status Commands

cli% showalert -n                # new alerts
cli% showalert -v               # verbose alert details
cli% showsys -d                 # system model, serial number, details
cli% showversion                # software versions
cli% showdate                   # date/time on all nodes
cli% shownodeenv                # node environmental status (voltages, temps)
cli% showeventlog -min 20       # events in the last 20 minutes

showsys -d is usually the first command support asks for, and showeventlog quickly surfaces what changed right before a problem.

Physical Disks, Cages and Ports

cli% showpd                    # all physical disks
cli% showpd -failed -degraded  # failed and degraded disks
cli% showpd -c <diskid>        # chunklet details for one disk
cli% showpdch -fail            # every failed chunklet in the system
cli% showcage -d <cage>        # cage details
cli% showport                 # FC and iSCSI ports
cli% showportlesb             # Link Error Status Block (fibre errors)

showpd -failed -degraded is the fastest way to answer "do I have a bad disk", and showportlesb exposes link error statistics when hosts report flaky storage connectivity.

Virtual Volumes, CPGs and Mapping

cli% showcpg                   # Common Provisioning Groups
cli% showvv                   # virtual volumes
cli% showvv -v <vvname>       # details for one volume
cli% showvlun                 # all LUN exports
cli% showvlun -v <vvname> -pathsum   # paths for a volume
cli% showvlun -host <host> -pathsum  # paths for a host
cli% showhost -desc <host>    # host details incl. WWNs
cli% showvvmap                # VV to LD mapping
cli% showld                  # logical disks

When a host "lost its disk", the classic diagnostic sequence is showvlun -host <host> -pathsum to confirm the expected number of paths, then showportlesb and showpd to isolate whether the problem is in the fabric or the array.

Provisioning and Maintenance Commands

cli% createvv -spt -usr_cp -sdg CPG1 -p VV1 100g
cli% growvv -p VV1 50g
cli% removevv VV1
cli% createvlun -host <host> -auto VV1
cli% checkhealth               # overall system health checks
cli% checkpd -s <diskid>       # disk surface scan

Volume and CPG names must be quoted or escaped when they contain special characters, and destructive commands (removevv, removevlun) prompt for confirmation before executing.

Related Reading on This Site

See the HPE 3PAR CLI cheat sheet with 50+ commands and the 3PAR controller failure handling guide for the hardware side.

原文链接:https://spectra.com/hpe-3par-common-cli-command-line-interface-commands