Restoring the share definition requires restoring the root directory of the share file space, which under most circumstances can be done as follows: dsmc rest \\NetAppFiler\CifsShareName\ -dirsonly.
Restoring 0 \\NetAppFiler\CifsShareName\ [Done]
If the CIFS share definition is deleted on the Net Appliance file server, the client is unable to directly restore the share definition because the share is no longer accessible.
md c:\tempdir net share tempshare=c:\tempdir
/remark:"Temporary Share for Restoring Deleted CIFS Share"
net use z: \\LocalMachineName\tempshare
dsmc res \\NetAppFiler\CifsShareName\ z:\ -dirsonly
This restores the original share definition (including permissions) on the file server.
Older versions of the Tivoli® Storage Manager server might have a problem which prevents restoring the root directory and the CIFS share definition. If this problem occurs, it can be circumvented by using by one of the following methods:
dsmc res \\NetAppFiler\CifsShareName\ -test=disablenqr -dirsonly
dsmc res \\NetAppFiler\CifsShareName\ -dirsonly -pick