CLI Guide

Table Of Contents
Chapter 1: Using the CLI...............................................................................................................11
Accessing the CLI............................................................................................................................................................... 11
CLI output formats............................................................................................................................................................. 11
Using CLI interactively......................................................................................................................................................12
Using a script to access the CLI.....................................................................................................................................12
Using XML API output................................................................................................................................................ 14
Using JSON API output.............................................................................................................................................. 15
Scripting guidelines......................................................................................................................................................15
XML API optimization..................................................................................................................................................17
Command syntax................................................................................................................................................................17
Command completion, editing, and history................................................................................................................. 19
Size representations.........................................................................................................................................................20
Event log.............................................................................................................................................................................. 21
Chapter 2: Categorical list of commands..................................................................................... 22
Chapter 3: Alphabetical list of commands....................................................................................24
abort copy........................................................................................................................................................................... 28
abort replication.................................................................................................................................................................29
abort scrub..........................................................................................................................................................................29
abort verify......................................................................................................................................................................... 30
add disk-group................................................................................................................................................................... 30
add host-group-members................................................................................................................................................33
add host-members............................................................................................................................................................ 34
add ipv6-address............................................................................................................................................................... 34
add spares...........................................................................................................................................................................35
add storage......................................................................................................................................................................... 36
add volume-group-members...........................................................................................................................................37
check firmware-upgrade-health ................................................................................................................................... 38
check support-assist........................................................................................................................................................ 39
clear cache..........................................................................................................................................................................39
clear disk-metadata.......................................................................................................................................................... 40
clear dns-parameters........................................................................................................................................................ 41
clear events......................................................................................................................................................................... 41
clear expander-status....................................................................................................................................................... 41
clear fde-keys.....................................................................................................................................................................42
clear fenced-data.............................................................................................................................................................. 42
clear replication-queue.....................................................................................................................................................43
clear support-assist-proxy.............................................................................................................................................. 43
copy volume........................................................................................................................................................................44
create certificate...............................................................................................................................................................45
create chap-record........................................................................................................................................................... 46
create host.......................................................................................................................................................................... 47
create host-group............................................................................................................................................................. 48
Contents
Contents 3