Table of ContentsLibraryView in Frames

Storage system access control command examples

The examples show some of the commands you can run when you use storacle.exe to manage storage access and to determine space reservation status on volumes.

Launch storacle.exe

This example launches the storacl tool.

storacl
Launch storacl.exe and connect to storage system

This example launches the storacl tool and connects to the storage system called SYSTEM1.

storacl -stor SYSTEM1
Disable access control on a storage system

This example disables access control to the root user on the storage system called System1.

delete -stor System1 -user root
Create a new role

This example creates a role called TESTROLE with the ability to list storage system objects.

role add -rn TESTROLE -OPN SD.Storage.Read
Add operations to an existing role

This example adds storage write access to the role called TESTROLE:

role add -rn TESTROLE -OPN SD.Storage.Write
Remove operations from an existing role

This example removes storage read access from the role called TESTROLE:

role remove -rn TESTROLE -OPN SD.Storage.Read
Add user access rights

This example adds the access rights defined by the SDProvision and SDBackup role to the domain user usr1 on the volume volTest on storage system System1.

user add -rsn System1:/vol/volTest -rtype vol -un mydomain\usr1 -RN SDProvision SDBackup
Remove roles assigned to a user for a resource

This example removes only the SDBackup role for the domain user usr1 on the volume volTest on the storage system System1.

user remove -rsn System1:/vol/volvpn -rtype vol -un mydomain\usr1 -RN SDBackup
List resources accessible to a user

This example lists the resources that are accessible by the domain user usr1.

user list -un mydomain\user1
List resources accessible to all users

This example lists the resources that are accessible to all users.

user list
Remove all access rights to a user

This example removes all access rights to the domain user usr1.

user remove -un mydomain\usr1
List storage system resources

This example lists all volumes on the storage system.

storage list -rtype vol

This example lists all aggregates in the storage system.

storage list -rtype aggr
List volumes accessible to a host

This example lists storage system volumes accessible by HOST1.

hvol list -h HOST1
Remove volume access from a host

This example makes the volume volTest inaccessible to the host HOST1.

hvol remove -h HOST1 -vol volTest
Remove a host entry from a storage system

This example removes the entry for HOST1 from the storage system.

host remove -h HOST1
Check the current LUN space reservation policy

This example checks the current LUN space reservation policy on the volume vol1 on System1 using the root user to log in to the storage system.

spacereserve get -vol vol1 -stor System1 -user root

When no protocol type is specified, storacl uses HTTPS as the default. The default HTTPS port is 443. The default HTTP port is 80.

Enable space reservation

This example enables space reservation on the volume vol1 on System1 by logging on to the storage system as the user root.

spacereserve set -vol vol1 -val true -stor System1 -user root
Disable space reservation

This example disables space reservation on the volume vol1 on the storage system System1.

spacereserve set -vol vol1 -val false -stor System1