2 .\" The contents of this file are subject to the terms of the
3 .\" Common Development and Distribution License (the "License").
4 .\" You may not use this file except in compliance with the License.
6 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
7 .\" or http://www.opensolaris.org/os/licensing.
8 .\" See the License for the specific language governing permissions
9 .\" and limitations under the License.
11 .\" When distributing Covered Code, include this CDDL HEADER in each
12 .\" file and include the License file at usr/src/OPENSOLARIS.LICENSE.
13 .\" If applicable, add the following below this CDDL HEADER, with the
14 .\" fields enclosed by brackets "[]" replaced with your own identifying
15 .\" information: Portions Copyright [yyyy] [name of copyright owner]
18 .\" Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved
19 .\" Copyright 2016 Nexenta Systems, Inc.
26 .Nd configure and manage file sharing services
36 .Oo Fl p Ar property Oc Ns ...
40 .Bro Fl p Ar property Ns = Ns Ar value Brc Ns ...
48 command operates on file sharing services.
49 The command sets the client and server operational properties, takes and
50 restores configuration snapshots, and gets status of the protocol service.
51 Currently supported services are
59 subcommand requires root privileges or that you assume the Primary Administrator
62 A non-privileged user can change the persistent settings when granted required
63 authorizations, see appropriate sharing protocol man page.
65 The following options are supported where applicable:
68 Displays usage message.
69 Supported for all subcommands.
70 .It Fl p Ar property Ns Op = Ns Ar value
78 supports the subcommands described below:
85 Delete configuration section for the specified protocol.
86 Currently only protocol that has configuration sections is
96 .Oo Fl p Ar property Oc Ns ...
99 Get the property values for the specified protocol.
102 option is provided, get all the properties for the specified protocol.
103 For NFS, properties correspond to entries in the
111 .Bro Fl p Ar property Ns = Ns Ar value Brc Ns ...
114 Set properties for the specified file sharing protocol.
120 Display status of the specified protocol, or, if no protocol is specified, of
121 all file sharing protocols.
125 .It Pa /usr/include/libshare.h
126 Error codes used for exit status.
131 Successful completion.
137 .It Sy Example 1 No Setting a Property
138 The following command sets the minimum version of the server NFS protocol to
141 # sharectl -p server_versmin=3 nfs
143 .It Sy Example 2 No Getting Properties
144 The following command gets the properties for the NFS protocol.
147 lockd_listen_backlog=32
149 lockd_retransmit_timeout=5
151 nfsmapid_domain=sun.com
158 The following command gets the value of the grace_period property for the NFS
161 # sharectl get -p grace_period nfs
164 .It Sy Example 3 No Obtaining Status
165 The following command obtains the status of all file-sharing protocols on a
171 .It Sy Example 4 No Configuring Global Settings
172 The following command shows how an authorized user can use
174 commands to configure global settings for the
176 environment in the service management facility
180 for a description of the example environment,
184 for a description of the SMF.
186 # sharectl set -p section=default -p workgroup=SALES \e
188 # sharectl set -p section=FSERVER -p addr=fserv.ex.com smbfs
189 # sharectl set -p section=RSERVER -p workgroup=REMGROUP \e
190 -p addr=rserv.ex.com smbfs
191 # sharectl set -p section=RSERVER:george -p timeout=30 smbfs
192 # sharectl set -p section="SSERV:*:POKY" -p addr=sserv.ex.com \e
195 .It Sy Example 5 No Displaying Current Settings
196 The following command shows how an authorized user can use the
198 command to view the global settings for
201 The values shown are those set by the previous example.
219 .Sh INTERFACE STABILITY