HP 3PAR InForm OS 3.1.1 CLI Administrator's Manual

15 Using mySnapshot
Overview
This chapter describes how to use the mySnapshot utility. The mySnapshot utility enables safe and
easy copy and provisioning access to non-storage professionals such as DBAs, software developers,
and test engineers working with systems. Users can safely and easily restore their own copies of
test data in seconds without relying on the storage administrator.
About mySnapshot
mySnapshot is a copy utility that uses an access control list to associate a user with certain
administrative rights and specified storage resources. Once these administrative rights are granted
for the specified resources, the user can easily replace and restore copies of their own test database
with the InForm OS CLI updatevv command. This enables users who normally only have Browse
rights on the system to be able to update specific snapshots with more recent snapshots, a right
usually only permitted for users with less restrictive roles. This enables faster results for developers
who need to have their snapshots refreshed and reduces the workload for storage administrators.
NOTE: See “Learning About User Accounts” (page 20) for more information about user roles
and rights.
Setting Administrative Rights
To enable a user to easily replace and restore copies of a test database using mySnapshot, it is
necessary to set administrative rights for that user. Administrative rights are set with the InForm OS
CLI setuseracl command. In order to use this command, you must have at least an Edit rights.
See“Learning About User Accounts” (page 20) for additional details.
The following example shows how to set administrative rights for user testuser1 to allow
testuser1 to update copies of virtual volumes test.rw1 and test.rw2:
cli% setuseracl testuser1 updatevv test.rw1 test.rw2
This command sets the access control list (ACL) for user testuser1, therefore enabling this user
access to the updatevv command for the specified volumes only (in this example, test.rw1
and test.rw2). The updatevv command is described further in the following section, “Replacing
Virtual Volume Snapshots” (page 142).
NOTE: In place of the specific virtual volume names used in the above example, it is also possible
to specify a pattern. See the HP 3PAR InForm OS Command Line Interface Reference for additional
details.
You can view current administrative rights for all users with the showuseracl command as follows:
cli% showuseracl
User Operation Object_Names_or_Patterns
testuser1 updatevv test.rw1, test.rw2
testuser2 updatevv avvro*
Overview 141