PDF 文書ファイルをダウンロードする (9905 KB)
sharectl(1M)Name | Synopsis | Description | Options | Examples | Exit Status | Files | Attributes | See Also Name
Synopsissharectl [-h] sharectl status [-h] [protocol] sharectl get [-h] [-p property]... protocol sharectl set [-h] [-p property=value]... protocol DescriptionThe sharectl command operates on file-sharing protocols, such as NFS. The command sets the client and server operational properties, takes and restores configuration snapshots, and gets status of the protocol service. The get and set subcommands (see below) require root privileges or that you assume the Primary Administrator role. A non–privileged user can change the Solaris CIFS client's persistent settings when granted the SMBFS Management rights profile in the /etc/user_attr file. See user_attr(4) and rbac(5). An authorized user can use sharectl to set global values for Solaris CIFS server properties in the Solaris server management facility. See smb(4). Options
The following options are supported: Subcommandssharectl supports the subcommands described below. The form of a sharectl command is:
ExamplesExample 1 Setting a PropertyThe following command sets the minimum version of the server NFS protocol to version 3.
Example 2 Getting PropertiesThe following command gets the properties for the NFS protocol.
The following command gets the value of the grace_period property for the NFS protocol.
Example 3 Obtaining StatusThe following command obtains the status of all file-sharing protocols on a system.
Example 4 Configuring Global SettingsThe following command shows how an authorized user can use sharectl commands to configure global settings for the ex.com environment in the service management facility (SMF). See nsmbrc(4) for a description of the example environment, ex.com. See smf(5) for a description of the SMF.
Example 5 Displaying Current SettingsThe following command shows how an authorized user can use the sharectl get command to view the global settings for smbfs in the SMF. The values shown are those set by the previous example.
Exit StatusFilesAttributesSee attributes(5) for descriptions of the following attributes:
See AlsoSunOS 5.11 Last Revised 16 Mar 2009Name | Synopsis | Description | Options | Examples | Exit Status | Files | Attributes | See Also |
||||||||||||||