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

Examples: Updating Group Access Information

Page 62 highlights

Parameter --user-name Abbr. -u Argument user-name Description Specifies the user name on the PS Series group. Examples: Updating Group Access Information This section includes examples of replacing a group access file, changing a group name, updating a group access file for a management IP, and removing a stored password for a group. Example 1: Replacing Information in a Group Access File In this example, information in an existing group access file is replaced with new values (ASMCLI prompts for the password): # asmcli update group-access --name eqlgroup1 --ip-address 192.0x.x.xx # asmcli update group-access --name eqlgroup1 --user-name j_smith Password for j_smith on eqlgroup1: Example 2: Changing the Group Name This example specifies the --new-name option to change the name of group sample to eqlgroup8: # asmcli update group-access --name sample --new-name eqlgroup8 Successfully renamed group "sample" to "eqlgroup8" in file "/etc/ mycompany/asm-group-access". Example 3: Updating the Group Access File for a Management IP This example configures a PS Series group with a separate IP address for management. Use the --management option to specify the management IP address: # asmcli update group-access --name eqlgroup1 --ip-address 192.x.x.xx --management 192.x.x.xx You can also use the update group-access command to remove the management IP address by specifying the --management option without a value, as follows: # asmcli update group-access --name eqlgroup1 --management Example 4: Removing a Stored Password for a Group In this example, Group2 has an encrypted password stored in its group access file. The --no-password option in the update group-access command updates the stored credentials to remove the password. When you create a Smart Copy of Group2, ASMCLI will prompt you to enter the password. # asmcli list group-access Group Access Group name: Group1 IP address: 192.x.x.xx User names: user-voladmin Group name: Group2 IP address: 192.x.x.xy User names: user-voladmin Group name: Group3 IP address: 192.x.x.xz User names: user-voladmin (No stored password) 3 Groups defined. # asmcli update group-access --name EqlGroup2 --user-name user-voladmin 62 Auto-Snapshot Manager Command Line Interface

  • 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

Parameter
Abbr.
Argument
Description
--user-name
-u
user-name
Specifies the user name on the PS Series group.
Examples: Updating Group Access Information
This section includes examples of replacing a group access file, changing a group name, updating a group access file for a management IP,
and removing a stored password for a group.
Example 1: Replacing Information in a Group Access File
In this example, information in an existing group access file is replaced with new values (ASMCLI prompts for the password):
# asmcli update group-access --name eqlgroup1 --ip-address
192.0x.x.xx
# asmcli update group-access --name eqlgroup1 --user-name j_smith
Password for j_smith on eqlgroup1:
Example 2: Changing the Group Name
This example specifies the
--new-name
option to change the name of group
sample
to
eqlgroup8
:
# asmcli update group-access --name sample --new-name eqlgroup8
Successfully renamed group "sample" to "eqlgroup8" in file "/etc/
mycompany/asm-group-access".
Example 3: Updating the Group Access File for a Management IP
This example configures a PS Series group with a separate IP address for management. Use the
--management
option to specify the
management IP address:
# asmcli update group-access --name eqlgroup1 --ip-address
192.x.x.xx --management 192.x.x.xx
You can also use the
update group-access
command to remove the management IP address by specifying the
--management
option without a value, as follows:
# asmcli update group-access --name eqlgroup1 --management
Example 4: Removing a Stored Password for a Group
In this example,
Group2
has an encrypted password stored in its group access file. The
--no-password
option in the
update
group-access
command updates the stored credentials to remove the password. When you create a Smart Copy of
Group2
, ASMCLI
will prompt you to enter the password.
# asmcli list group-access
========================================================
Group Access
========================================================
Group name: Group1
IP address: 192.x.x.xx
User names: user-voladmin
Group name: Group2
IP address: 192.x.x.xy
User names: user-voladmin
Group name: Group3
IP address: 192.x.x.xz
User names: user-voladmin (No stored password)
3 Groups defined.
# asmcli update group-access --name EqlGroup2 --user-name user-voladmin
62
Auto-Snapshot Manager Command Line Interface