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

Example: Logging In to Smart Copies, Logging Out of a Smart Copy

Page 92 highlights

Example: Logging In to Smart Copies The following example logs in to the latest Smart Copy created by a schedule. # asmcli login smart-copy --schedule user-hourly --source/source/VolB --latest Logging in 1 Smart Copy target. Logged in donvolb-2017-01-05-17:03:01.225.1 on glengrp Created device /dev/mapper/eql-8-b8b03d-7444e1f3e-626856b008bde08e+donvolb Successfully logged in 1 file system from 1 Smart Copy target. Listing the Smart Copy shows it is logged in: # asmcli list smart-copy --verbose 2 Smart Copies Source: hostname.mycompany.com : /source/VolB Snapshot: 05-Jan-2017 17:05:57.846661 Status: Logged-in Description: Hourly snapshot of user space Schedule: user-hourly ObjectId: 8-b8b03d-7444e1f3e-626856b008bde08e Directory: /var/lib/equallogic/asm/smart-copies/asm-le-dk-test2.com /source-1-21a09d-9ce520990-c75a20bb9b1eb86f/ File: 20170105-220557.846661-8-b8b03d-7444e1f3e-626856b008bde08e.bcd donvolb --> donvolb-2017-01-05-17:03:01.225.1 on glengrp Logging Out of a Smart Copy Use the asmcli logout smart-copy command to log out of a Smart Copy. You must unmount a Smart Copy before you can log out (see Unmounting a Smart Copy). asmcli logout smart-copy Command Syntax The command syntax is as follows: # asmcli logout smart-copy [--group-access-file file-location | -g] [--limit number] [--output=always | error] [--retry-count n | -r] [--retry-wait n | -w] [--user-name user-name | -u] Search option parameters also apply to this command. For information, see ASMCLI Search Options. The following table describes the optional command parameters. Table 34. Logout Smart Copy Optional Command Parameters Parameter Abbr. Argument Description --group-access-file -g file-location Specifies the location of the group access file that contains the user names and encrypted passwords. --limit number Limit the number of Smart Copies ASM will log out to this number. NOTE: Use caution when limiting a large number of Smart Copies; you might inadvertently log off all Smart Copies by specifying too large a number. 92 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

Example: Logging In to Smart Copies
The following example logs in to the latest Smart Copy created by a schedule.
# asmcli login smart-copy --schedule user-hourly --source/source/VolB
--latest
Logging in 1 Smart Copy target.
Logged in donvolb-2017-01-05-17:03:01.225.1 on glengrp
Created device /dev/mapper/eql-8-b8b03d-7444e1f3e-626856b008bde08e+donvolb
Successfully logged in 1 file system from 1 Smart Copy target.
Listing the Smart Copy shows it is logged in:
# asmcli list smart-copy --verbose 2
========================================================
Smart Copies
========================================================
Source: hostname.mycompany.com : /source/VolB
Snapshot: 05-Jan-2017 17:05:57.846661
Status: Logged-in
Description: Hourly snapshot of user space
Schedule: user-hourly
ObjectId: 8-b8b03d-7444e1f3e-626856b008bde08e
Directory: /var/lib/equallogic/asm/smart-copies/asm-le-dk-test2.com
/source-1-21a09d-9ce520990-c75a20bb9b1eb86f/
File: 20170105-220557.846661-8-b8b03d-7444e1f3e-626856b008bde08e.bcd
donvolb --> donvolb-2017-01-05-17:03:01.225.1 on glengrp
Logging Out of a Smart Copy
Use the
asmcli logout smart-copy
command to log out of a Smart Copy. You must unmount a Smart Copy before you can log out
(see
Unmounting a Smart Copy
).
asmcli logout smart-copy Command Syntax
The command syntax is as follows:
# asmcli logout smart-copy
[--group-access-file
file-location
| -g]
[--limit
number
]
[--output=always | error]
[--retry-count
n
| -r]
[--retry-wait
n
| -w]
[--user-name
user-name
| -u]
Search option parameters also apply to this command. For information, see
ASMCLI Search Options
.
The following table describes the optional command parameters.
Table 34. Logout Smart Copy Optional Command Parameters
Parameter
Abbr.
Argument
Description
--group-access-file
-g
file-location
Specifies the location of the group access file that contains the user
names and encrypted passwords.
--limit
number
Limit the number of Smart Copies ASM will log out to this number.
NOTE:
Use caution when limiting a large number of Smart
Copies; you might inadvertently log off all Smart Copies by
specifying too large a number.
92
Auto-Snapshot Manager Command Line Interface