< Home

files-share resource

Function

Using the files-share resource command, you can add file sharing resources.

Using the undo files-share resource command, you can delete file sharing resources.

Format

files-share resource { nfs | smb } resource-alias resource-path [ resource-description ]

undo files-share resource resource-alias

Parameters

Parameter Description Value
nfs Specifies the Network File System (NFS) as the file sharing protocol. -
smb Specifies the Server Message Block (SMB) as the file sharing protocol. -
resource-alias Specifies the alias of resources. The value is a string of 1 to 31 case-sensitive characters. In dual-system hot backup networking, "%" cannot be included.
resource-path Specifies the path of resources, including host IP addresses/host names, and sharing paths.
  • Format of the SMB resources: //IP address (host name)/shared folder. The path for SMB resources can contain only the one-level shared folder directory.
  • Format of the NFS resources: //IP address (host name)/dir1/dir2/shared folder. The path for NFS resources can contain the multi-level shared folder directory.
The value is a string of 1 to 122 characters. For example: //10.2.3.4/path1/path2.The SMB resource path is case insensitive; the NFS resource path is case sensitive.
resource-description Specifies the description of resources. The value is a string of 1 to 55 case-sensitive characters.

Views

Function service view

Default Level

2: Configuration level

Usage Guidelines

None

Example

# Add resources of the file sharing function. The resource name is mov-share and the resource path is //10.2.3.4/movie.

<sysname> system-view
[sysname] v-gateway abc
[sysname-abc] service
[sysname-abc-service] files-share resource nfs mov-share //10.2.3.4/movie classicalmovie
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic