Creating A Schema (Cli) - Oracle ZFS Storage Appliance Administration Manual

Hide thumbs Also See for ZFS Storage Appliance:
Table of Contents

Advertisement

Creating a Schema (CLI)

1.
Go to the schema context (shares schema).
2.
Create a new property named "contact" (create contact).
3.
Set the description for the property (set description="Owner Contact").
4.
Set the type of the property (set type=EmailAddress).
5.
Commit the changes (commit).
Go to an existing share or project.
6.
7.
Set the "custom:contact" property.
Example Schema
Example 16
The schema context can be found at Shares > Schema".
carp:> shares schema
carp:shares schema> show
Properties:
NAME
owner
Each property is a child of the schema context, using the name of the property as the token. To
create a property, use the create command:
carp:shares schema> create department
carp:shares schema department (uncommitted)> get
carp:shares schema department (uncommitted)> set description="Department Code"
carp:shares schema department (uncommitted)> commit
carp:shares schema>
Within the context of a particular property, fields can be set using the standard CLI commands:
carp:shares schema> select owner
TYPE
DESCRIPTION
EmailAddress Owner Contact
type = String
description = department
description = Department Code (uncommitted)
Creating a Schema (CLI)
Shares and Projects
423

Advertisement

Table of Contents
loading

Table of Contents