No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Command Reference

OceanStor 18000 V3 Series V300R006

This document is applicable to OceanStor 18500 V3 and 18800 V3. Based on the CLI provided by DeviceManager, this document describes how to use various commands classified by functions and how to set the CLI and manage the storage system through these commands. The document that you browse online matches the latest C version of the product. Click Download to download documents of other C versions.
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
show share cifs

show share cifs

Function

The show share cifs command is used to query a CIFS share.

Format

show share cifs [ share_id=? | file_system_id=? | share_type=? ]

Parameters

Parameter

Description

Value

share_id=?

Indicates the ID of the CIFS share.

The value is an integer ranging from 0 to 18446744073709551615.

file_system_id=?

Indicates the ID of the file system.

The value is an integer between 0 and 65535.

share_type

Indicates the type of the CIFS share.

The value can be "normal", "homedir", or "all", where:

  • "normal": normal share.
  • "homedir": homedir share.
  • "all": all shares.

The default value is "normal".

Level

Guest

Usage Guidelines

"share_id", "file_system_id", and "share_type" are mutually exclusive.

Example

  • Query all normal CIFS shares.
    admin:/>show share cifs 
    Share ID  Name File System ID  Local Path  Share Type      
    --------  -----  --------------  ----------  ---------- 
    3         cifs1  0               /fs001/  Normal 
    4         cifs2  0               /fs001/  Normal 
    5         cifs3  3               /fs002/  Normal 
    6         cifs4  3               /fs002/  Normal
  • Query all CIFS shares, including normal CIFS shares and homedir CIFS shares.
    admin:/>show share cifs share_type=all 
    Share ID  Name File System ID  Local Path  Share Type 
    --------  -----  --------------  ----------  ---------- 
    3         cifs1  0               /fs001/  Normal 
    4         cifs2  0               /fs001/  Normal 
    5         cifs3  3               /fs002/  Normal 
    6         home1  -               %d/%w  Homedir
  • Query a specified CIFS share.
    admin:/>show share cifs share_id=61 
      
      Share ID                   : 61        
      Name                       : abc122f2d  
      File System ID             : --        
      Description                :           
      Local Path                 : /abc      
      Oplock Enabled             : Enable 
      Notify Enabled             : Enable 
      Continue Available Enabled : Disable 
      Offline File Mode          : manual 
      Smb2 CA Enabled            : Enable 
      IP Access Control          : Disable 
      ABE Enabled                : Disable 
      Audit Items                : None      
      File Extenson Filter       : Disable 
      Apply Default ACL          : Enable  
      Share Type              : Homedir 
      Show Previous Versions Enabled : Enable 
      Show Snapshot Enabled          : Enable 
      Browse Enabled             :Enable
  • Query a specified CIFS share in developer view.
    developer:/>show share cifs share_id=61 
      
      Share ID                   : 61        
      Name                    : abc122f2d  
      File System ID             : --        
      Description                :           
      Local Path                 : /abc      
      Oplock Enabled             : Enable 
      Notify Enabled             : Enable 
      Continue Available Enabled : Disable 
      Offline File Mode          : manual 
      Smb2 CA Enabled            : Enable 
      IP Access Control          : Disable 
      ABE Enabled                : Disable 
      Audit Items                : None      
      File Extenson Filter       : Disable 
      Apply Default ACL          : Enable  
      Share Type              : Homedir 
      Show Previous Versions Enabled : Enable 
      Show Snapshot Enabled          : Enable 
      Browse Enabled             :Enable 
      Readdir Timeout(s)         :55
  • Query the CIFS share that is associated with a specified file system.
    admin:/>show share cifs file_system_id=1 
      
    Share ID  Name     File System ID  Local Path  Oplock Enabled  Notify Enabled  Continue Available Enabled  Offline File Mode  Smb2 CA Enabled  IP Access Control  ABE Enabled  Audit Items  File Extenson Filter  Apply Default ACL  Share Type  Show Previous Versions Enabled  Show Snapshot Enabled Browse Enabled 
    --------  -------  --------------  ----------  --------------  --------------  --------------------------  -----------------  ---------------  -----------------  -----------  -----------  --------------------  -----------------  ----------  ------------------------------  --------------------- -------------- 
    26        a1       1               /fs1/       Enable          Enable          Disable                     manual             Enable           Disable            Disable      None         Enable                Enable             Normal      Enable                          Enable                Enable           
    27        a2       1               /fs1/       Enable          Enable          Disable                     manual             Enable           Disable            Disable      None         Disable               Enable             Normal  Enable                          Enable                Enable           
    28        a3       1               /fs1/       Enable          Enable          Disable                     manual             Enable           Disable            Disable      None         Disable               Enable             Normal      Enable                          Enable                Enable           
    29        a4       1               /fs1/       Enable          Enable          Disable                     manual             Enable           Disable            Disable      None         Disable               Enable             Normal      Enable                          Enable                Enable          
  • Query the CIFS share that is associated with a specified file system in developer view.
    developer:/>show share cifs file_system_id=1 
      
    Share ID  Name     File System ID  Local Path  Oplock Enabled  Notify Enabled  Continue Available Enabled  Offline File Mode  Smb2 CA Enabled  IP Access Control  ABE Enabled  Audit Items  File Extenson Filter  Apply Default ACL  Share Type  Show Previous Versions Enabled  Show Snapshot Enabled Browse Enabled Readdir Timeout(s) 
    --------  -------  --------------  ----------  --------------  --------------  --------------------------  -----------------  ---------------  -----------------  -----------  -----------  --------------------  -----------------  ----------  ------------------------------  --------------------- --------------  ------------------ 
    26        a1       1               /fs1/       Enable          Enable          Disable                     manual             Enable           Disable            Disable      None         Enable                Enable             Normal      Enable                          Enable                Enable          55 
    27        a2       1               /fs1/       Enable          Enable          Disable                     manual             Enable           Disable            Disable      None         Disable               Enable             Normal      Enable                          Enable                Enable          55 
    28        a3       1               /fs1/       Enable          Enable          Disable                     manual             Enable           Disable            Disable  None         Disable               Enable             Normal      Enable                          Enable                Enable          55 
    29        a4       1               /fs1/       Enable          Enable          Disable                     manual             Enable           Disable            Disable      None         Disable               Enable             Normal      Enable                          Enable                Enable          55

System Response

The following table describes the parameter meanings.

Parameter

Meaning

Share ID

Indicates the share ID.

Name

Indicates the share name.

File System ID

Indicates the file system associated with the CIFS.

Local Path

Indicates the local path directory.

Description

Indicates the description information.

Oplock Enabled

Indicates the switch of the opportunistic locking. By using opportunistic locking, a client can lock a file. A server can cancel the locking.

Notify Enabled

Indicates the switch of the notify function.

Continue Available Enabled

Indicates the switch of the continue available function.

ABE Enabled

Indicates the switch of the permission-based directory enumeration.

IP Access Control

Indicates the switch of the IP access control.

Smb2 CA Enabled

Indicates the switch of the SMB2 continuous available function.

Offline File Mode

Offline cache mode.

Audit Items

Audit log option.

File Extenson Filter

Switch of filtering file name extensions.

Apply Default ACL

Application of the default ACL switch in the shared root directory.

Share Type

Indicates the type of the CIFS share.

Show Previous Versions Enabled

Function of showing previous versions.

Show Snapshot Enabled

Function of showing the .snapshot folder.

Browse Enabled

Indicates the switch to browse the share.

Translation
Download
Updated: 2019-07-12

Document ID: EDOC1000138390

Views: 235650

Downloads: 150

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next