Dell EqualLogic PS6210XS EqualLogic Host Integration Tools for Linux Version 1 - Page 121

Bash Command Completion, EqualLogic Host Connection Manager Command Line Interface ehcmcli

Page 121 highlights

C Bash Command Completion Command-line interfaces in HIT/Linux are integrated with a Bash programmable command completion facility. The Bash commandcompletion script, installed as /etc/bash_completion.d/equallogic, integrates with the following CLIs: • Remote Setup Wizard Command Line Interface (rswcli) • Auto-Snapshot ManagerCommand Line Interface (asmcli) • EqualLogic Host Connection Manager Command Line Interface (ehcmcli) • EqualLogic Configuration Utility (eqlconfig) • EqualLogic Host Performance and Configuration Tuning Suite (eqltune) • EqualLogic Log Gathering Facility (eqllog) Using Bash command completion, you can type part of a command-line element, such as a command, and then enter a single tab. If your input is sufficiently unique, Bash will complete the element. If the input is not sufficient for Bash to complete the entire element, it completes the element up to the point where it needs more input to make it unique. In this case, enter a second tab and Bash will respond with a list of valid inputs. For example, for ASMCLI Bash completes the command-verb, command-noun, and any options (see General Command Syntax for ASMCLI): # asmcli Bash provides a valid list of command-verbs: # asmcli create delete do help list login logout mount restore unmount update If you enter asmcli c followed by a tab, Bash completes the command-verb: #asmcli create Now, when you enter two tabs, Bash lists valid command-nouns for the create command-verb: #asmcli collection create password schedule smart-copy If you enter s followed by a tab, Bash shows two options: # asmcli create s schedule smart-copy To be sufficiently unique, entering sm followed by a tab will pertain only to the smart-copy option. In this case, Bash completes the entire command: # asmcli create smart-copy If you enter another tab, Bash responds with two hyphens, indicating it expects a parameter: # asmcli create smart-copy -- Enter two more tabs and Bash provides a list of acceptable parameters: # asmcli create smart-copy ---collection --destination --freeze-time --output --retry-count --source --user-name --comment --force --group-access-file --read-only --retry-wait --type --verbose Bash Command Completion 121

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127

Bash Command Completion
Command-line interfaces in HIT/Linux are integrated with a Bash programmable command completion facility. The Bash command-
completion script, installed as
/etc/bash_completion.d/equallogic
, integrates with the following CLIs:
Remote Setup Wizard Command Line Interface (rswcli)
Auto-Snapshot ManagerCommand Line Interface (asmcli)
EqualLogic Host Connection Manager Command Line Interface (ehcmcli)
EqualLogic Configuration Utility (eqlconfig)
EqualLogic Host Performance and Configuration Tuning Suite (eqltune)
EqualLogic Log Gathering Facility (eqllog)
Using Bash command completion, you can type part of a command-line element, such as a command, and then enter a single tab. If your
input is sufficiently unique, Bash will complete the element. If the input is not sufficient for Bash to complete the entire element, it
completes the element up to the point where it needs more input to make it unique. In this case, enter a second tab and Bash will respond
with a list of valid inputs.
For example, for ASMCLI Bash completes the command-verb, command-noun, and any options (see
General Command Syntax for
ASMCLI
):
# asmcli
<TAB><TAB>
Bash provides a valid list of command-verbs:
# asmcli
create
delete
do
help
list
login
logout
mount
restore
unmount
update
If you enter
asmcli c
followed by a tab, Bash completes the command-verb:
#asmcli create
Now, when you enter two tabs, Bash lists valid command-nouns for the
create
command-verb:
#asmcli
collection
create
password
schedule
smart-copy
If you enter
s
followed by a tab, Bash shows two options:
# asmcli create s
<TAB>
schedule
smart-copy
To be sufficiently unique, entering
sm
followed by a tab will pertain only to the
smart-copy
option. In this case, Bash completes the
entire command:
# asmcli create smart-copy
If you enter another tab, Bash responds with two hyphens, indicating it expects a parameter:
# asmcli create smart-copy --
Enter two more tabs and Bash provides a list of acceptable parameters:
# asmcli create smart-copy --
--collection --destination --freeze-time --output --retry-count --source
--user-name --comment
--force
--group-access-file --read-only --retry-wait
--type --verbose
C
Bash Command Completion
121