Print this page
Marcel's code review fixes
Marcel's update to 7651
   1 .\"
   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.
   5 .\"
   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.
  10 .\"
  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]
  16 .\"
  17 .\"
  18 .\" Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved
  19 .\" Copyright 2016 Nexenta Systems, Inc.
  20 .\"
  21 .Dd March 1, 2016
  22 .Dt SHARECTL 1M
  23 .Os
  24 .Sh NAME
  25 .Nm sharectl
  26 .Nd configure and manage file sharing services
  27 .Sh SYNOPSIS
  28 .Nm
  29 .Ar subcommand
  30 .Op Fl h
  31 .Nm
  32 .Cm delsect
  33 .Ar section protocol
  34 .Nm
  35 .Cm get
  36 .Oo Fl p Ar property Oc Ns ...
  37 .Ar protocol
  38 .Nm
  39 .Cm set
  40 .Bro Fl p Ar property Ns = Ns Ar value Brc Ns ...
  41 .Ar protocol


 123 .Sh EXIT STATUS
 124 .Bl -tag -width Ds
 125 .It Sy 0
 126 Successful completion.
 127 .It Sy non-zero
 128 Command failed.
 129 .El
 130 .Sh EXAMPLES
 131 .Bl -tag -width Ds
 132 .It Sy Example 1 No Setting a Property
 133 The following command sets the minimum version of the server NFS protocol to
 134 version 3.
 135 .Bd -literal
 136 # sharectl -p server_versmin=3 nfs
 137 .Ed
 138 .It Sy Example 2 No Getting Properties
 139 The following command gets the properties for the NFS protocol.
 140 .Bd -literal
 141 # sharectl get nfs
 142 lockd_listen_backlog=32
 143 lockd_servers=20
 144 lockd_retransmit_timeout=5
 145 grace_period=90
 146 nfsmapid_domain=sun.com
 147 servers=16
 148 server_versmin=2
 149 server_versmax=4
 150 max_connections=-1
 151 .Ed
 152 .Pp
 153 The following command gets the value of the grace_period property for the NFS
 154 protocol.
 155 .Bd -literal
 156 # sharectl get -p grace_period nfs
 157 grace_period=90
 158 .Ed
 159 .It Sy Example 3 No Obtaining Status
 160 The following command obtains the status of all file-sharing protocols on a
 161 system.
 162 .Bd -literal
 163 # sharectl status
 164 nfs      enabled
 165 .Ed
 166 .It Sy Example 4 No Configuring Global Settings
 167 The following command shows how an authorized user can use


   1 .\"
   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.
   5 .\"
   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.
  10 .\"
  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]
  16 .\"
  17 .\"
  18 .\" Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved
  19 .\" Copyright 2016 Nexenta Systems, Inc.
  20 .\"
  21 .Dd December 16, 2016
  22 .Dt SHARECTL 1M
  23 .Os
  24 .Sh NAME
  25 .Nm sharectl
  26 .Nd configure and manage file sharing services
  27 .Sh SYNOPSIS
  28 .Nm
  29 .Ar subcommand
  30 .Op Fl h
  31 .Nm
  32 .Cm delsect
  33 .Ar section protocol
  34 .Nm
  35 .Cm get
  36 .Oo Fl p Ar property Oc Ns ...
  37 .Ar protocol
  38 .Nm
  39 .Cm set
  40 .Bro Fl p Ar property Ns = Ns Ar value Brc Ns ...
  41 .Ar protocol


 123 .Sh EXIT STATUS
 124 .Bl -tag -width Ds
 125 .It Sy 0
 126 Successful completion.
 127 .It Sy non-zero
 128 Command failed.
 129 .El
 130 .Sh EXAMPLES
 131 .Bl -tag -width Ds
 132 .It Sy Example 1 No Setting a Property
 133 The following command sets the minimum version of the server NFS protocol to
 134 version 3.
 135 .Bd -literal
 136 # sharectl -p server_versmin=3 nfs
 137 .Ed
 138 .It Sy Example 2 No Getting Properties
 139 The following command gets the properties for the NFS protocol.
 140 .Bd -literal
 141 # sharectl get nfs
 142 lockd_listen_backlog=32
 143 lockd_servers=256
 144 lockd_retransmit_timeout=5
 145 grace_period=90
 146 nfsmapid_domain=sun.com
 147 servers=1024
 148 server_versmin=2
 149 server_versmax=4
 150 max_connections=-1
 151 .Ed
 152 .Pp
 153 The following command gets the value of the grace_period property for the NFS
 154 protocol.
 155 .Bd -literal
 156 # sharectl get -p grace_period nfs
 157 grace_period=90
 158 .Ed
 159 .It Sy Example 3 No Obtaining Status
 160 The following command obtains the status of all file-sharing protocols on a
 161 system.
 162 .Bd -literal
 163 # sharectl status
 164 nfs      enabled
 165 .Ed
 166 .It Sy Example 4 No Configuring Global Settings
 167 The following command shows how an authorized user can use