CLI Guide
Table Of Contents
- Dell EMC PowerVault ME4 Series Storage System CLI Guide
- Contents
- Using the CLI
- Categorical list of commands
- Alphabetical list of commands
- abort copy
- abort replication
- abort scrub
- abort verify
- add disk-group
- add host-group-members
- add host-members
- add ipv6-address
- add spares
- add storage
- add volume-group-members
- check firmware-upgrade-health
- check support-assist
- clear cache
- clear disk-metadata
- clear dns-parameters
- clear events
- clear expander-status
- clear fde-keys
- clear fenced-data
- clear replication-queue
- clear support-assist-proxy
- copy volume
- create certificate
- create chap-record
- create host
- create host-group
- create peer-connection
- create replication-set
- create schedule
- create snapshots
- create task
- create user
- create vdisk
- create volume
- create volume-group
- create volume-set
- delete all-snapshots
- delete chap-records
- delete host-groups
- delete hosts
- delete initiator-nickname
- delete peer-connection
- delete pools
- delete remote-system
- delete replication-set
- delete schedule
- delete snapshot
- delete task
- delete user
- delete vdisks
- delete volume-groups
- delete volumes
- dequarantine
- exit
- expand disk-group
- expand vdisk
- expand volume
- fail
- help
- map volume
- meta
- ping
- query peer-connection
- recover replication-set
- release volume
- remove disk-groups
- remove host-group-members
- remove host-members
- remove ipv6-address
- remove spares
- remove volume-group-members
- replicate
- rescan
- reset all-statistics
- reset controller-statistics
- reset disk-error-statistics
- reset disk-group-statistics
- reset disk-statistics
- reset dns-management-hostname
- reset host-link
- reset host-port-statistics
- reset pool-statistics
- reset smis-configuration
- reset snapshot
- reset vdisk-statistics
- reset volume-statistics
- restart mc
- restart sc
- restore defaults
- resume replication-set
- rollback volume
- scrub disk-groups
- scrub vdisk
- scrub volume
- send support-assist-logs
- set advanced-settings
- set chap-record
- set cli-parameters
- set cloud-iq
- set controller-date
- set debug-log-parameters
- set disk
- set disk-group
- set disk-parameters
- set dns-management-hostname
- set dns-parameters
- set email-parameters
- set enclosure
- set expander-fault-isolation
- set expander-phy
- set fde-import-key
- set fde-lock-key
- set fde-state
- set host
- set host-group
- set host-parameters
- set host-port-mode
- set initiator
- set ipv6-network-parameters
- set iscsi-parameters
- set led
- set network-parameters
- set ntp-parameters
- set password
- set peer-connection
- set pool
- set prompt
- set protocols
- set replication-set
- set schedule
- set snapshot-space
- set snmp-parameters
- set support-assist
- set support-assist-info
- set support-assist-proxy
- set syslog-parameters
- set system
- set task
- set user
- set vdisk
- set volume
- set volume-cache-parameters
- set volume-group
- show advanced-settings
- show cache-parameters
- show certificate
- show chap-records
- show cli-parameters
- show cloud-iq
- show configuration
- show controller-date
- show controllers
- show controller-statistics
- show debug-log-parameters
- show disk-groups
- show disk-group-statistics
- show disk-parameters
- show disks
- show disk-statistics
- show dns-management-hostname
- show dns-parameters
- show email-parameters
- show enclosures
- show events
- show expander-status
- show fan-modules
- show fans
- show fde-state
- show fenced-data
- show frus
- show host-groups
- show host-phy-statistics
- show host-port statistics
- show initiators
- show inquiry
- show ipv6-addresses
- show ipv6-network-parameters
- show iscsi-parameters
- show license
- show maps
- show network-parameters
- show ntp-status
- show peer-connections
- show pools
- show pool-statistics
- show ports
- show power-supplies
- show protocols
- show provisioning
- show redundancy-mode
- show refresh-counters
- show remote-systems
- show replication-sets
- show replication-snapshot-history
- show sas-link-health
- show schedules
- show sensor-status
- show service-tag-info
- show sessions
- show shutdown-status
- show snapshot-space
- show snapshots
- show snmp-parameters
- show support-assist
- show syslog-parameters
- show system
- show system-parameters
- show tasks
- show tiers
- show tier-statistics
- show unwritable-cache
- show users
- show vdisks
- show vdisk-statistics
- show versions
- show volume-copies
- show volume-groups
- show volume-names
- show volume-reservations
- show volume-statistics
- show volumes
- shutdown
- suspend replication-set
- test
- trust
- unfail controller
- unmap volume
- verify disk-groups
- verify links
- verify vdisk
- API basetype properties
- adapt-expand-preview
- advanced-settings-table
- cache-parameter
- cache-settings
- certificate-status
- chap-records
- cli-parameters
- cloud-iq
- code-load-readiness
- code-load-readiness-reasons
- communication-ports
- compact-flash
- contact-information
- controller-cache-parameters
- controllers
- controller-statistics
- copy-volumes
- cs-replicate-tasks
- cs-replication
- cs-replication-set
- current-replication-snapshots
- debug-log-parameters
- disk-groups
- disk-groups-preview
- disk-group-statistics
- disk-group-statistics-paged
- disk-hist-statistics
- disk-statistics
- dns-parameters
- drawers
- drive-parameters
- drive-summary
- drives
- email-parameters
- enclosure-fru
- enclosure-list
- enclosures
- events
- eventsLogs
- expander-ports
- expander-versions
- expanders
- fan
- fan-module-versions
- fan-modules
- fc-port
- fde-state
- fenced-data
- fru-versions
- host
- host-group
- host-group-view
- host-port-statistics
- host-view-mappings
- initiator
- initiator-view
- inquiry
- io-modules
- iom-versions
- ipv6-network-parameters
- iscsi-parameters
- iscsi-port
- license
- local-ports
- local-ports-detail
- log-header-table
- mgmt-hostnames
- midplane-versions
- network-parameters
- ntp-status
- peer-connection-info
- peer-connections
- peer-controllers
- peer-ports
- pool-hist-statistics
- pool-statistics
- pool-summary
- pools
- port
- power-supplies
- product-info
- provisioning
- proxy-information
- psu-versions
- readcache-hist-statistics
- redundancy
- refresh-counters
- remote-ports
- remote-ports-detail
- remote-system
- replication-snapshot-history
- reset-snapshot-tasks
- resettable-statistics
- sas-host-phy-statistics
- sas-port
- sas-status-controller-a
- sas-status-drawer
- schedules
- security-communications-protocols
- sensors
- service-tag-info
- sessions
- show-other-MC-status
- shutdown-status
- sideplanes
- snap-space
- snapshots
- snapshot-with-retention-tasks
- snap-tasks
- snmp-parameters
- spares-preview
- status
- storage-preview
- support-assist
- syslog-parameters
- system
- system-parameters-table
- tasks
- tier-hist-statistics
- tier-statistics
- tier-summary
- tiers
- time-settings-table
- unhealthy-component
- unused-disks-preview
- unwritable-cache
- users
- vdisk-hist-statistics
- vdisk-statistics
- versions
- virtual-disk-summary
- virtual-disks
- volume-groups
- volume-group-view
- volume-group-view-mappings
- volume-names
- volume-reservations
- volumes
- volume-statistics
- volume-view
- volume-view-mappings
- Settings changed by restore defaults
Using CLI interactively
The CLI is an interactive application. When you are logged into the CLI, the CLI waits for a command and then responds to the
command.
NOTE: In the interactive mode, confirmation is required for commands that can cause data unavailability or data loss.
The following example shows interactively starting an SSH session, logging into the CLI, running a command, and exiting the
CLI:
$: ssh manage@IP-address
Password:
Product name
System Name: Name
System Location: Location
Version: firmware version
# show controller-date
Controller Date: 2019-09-30 11:05:12
Time Zone Offset: -07:00
Success: Command completed successfully. (2019-09-30 11:05:12)
# exit
Using a script to access the CLI
Basic command-line semantics provide prompts for user input, and response time is indeterminate. Scripts need to use an
“expect”-type mechanism to scan output for prompts. It is recommended and more efficient to use the HTTP interface to
access the API.
Two login methods are supported:
● HTTPS authentication using an SHA256 hash to return a session key that is sent for each request. The session key is valid
has a 30-minute inactivity timeout. Use of SHA256 is now recommended instead of MD5, which is deprecated.
To log in to the HTTPS API, the username and password must be joined with an underscore as a separator
(username_password). The username and password is then sent through an SHA256 hash. The SHA256 hash is
represented in lower case hexadecimal format. This string is appended to the login function for the API, https://IP-
address/api/login/hash. For example:
https://10.0.0.2/api/login/539e12f63b693a9970a97b885e857f8b
● HTTPS basic authentication using the Authorization header. If this login method is used, the username and password
must be joined with a ‘:’ (username:password) and then encoded in Base64. For example:
Authorization: Basic base64-string
Use the following URL for basic authentication:
https://IP-address/api/login
For both methods, the response that is returned is in XML and the content contains an OBJECT element. Within the OBJECT
element, a PROPERTY element with the name attribute of response contains the session key. These XML API elements are
described in XML API elements on page 14.
The following example shows how to construct a Perl script to communicate with the XML API using HTTPS:
NOTE:
The API provides default self-signed certificates for an HTTPS connection. To validate the certificate, download it
through a browser and then set the following environment variable to point to the certificate:
# export HTTPS_CA_FILE=path-to-certificate
# Include required libraries
use LWP::UserAgent;
use Digest::SHA qw(sha256_hex);
use XML::LibXML;
12
Using the CLI