跳转到主内容

通过Windows客户端移动文件夹时发送的Fpolicy通知是什么

Views:
2
Visibility:
Public
Votes:
0
Category:
ontap-9
Specialty:
nas<a>2009-306763</a>
Last Updated:

适用场景

  • ONTAP 9
  • FPOLICY

问题解答

移动文件夹后、Fpolicy屏幕请求 "SMB_REN_DIR" 将作为通知发送到FPOLICY服务器
 
实验室:
 
  • 共享\\cifsvol\test中存在文件夹"folder1":(文件夹路径:-"\\cifsvol\test\folder1")
  • 它将移动到文件夹路径"\\cifsvol\test2:(新文件夹路径:-"\\cifsvol\test2\folder1")
 
Fpolicy通知
 
Fpolicy日志显示:(启用了调试日志记录)

[kern_fpolicy:debug:6292] _tcpSendFSMXmlReq returned got [<?xml version="1.0"?><Header><NotfType>SCREEN_REQ</NotfType><ContentLen>1134</ContentLen><DataFormat>XML</DataFormat></Header> <?xml version="1.0"?><FscreenReq><ReqId>518</ReqId><ReqType>SMB_REN_DIR</ReqType><NotfInfo><SmbRenReq><CommonInfo><ProtCommonInfo><ClientIp>10.216.41.190</ClientIp><UsrIdType>MAPPED_ID</UsrIdType><UsrContext><MappedId><Uid>0</Uid><WinSid>S-1-5-21-4227258846-2863433890-2438189577-500</WinSid></MappedId></UsrContext><FileOwner><WinSid>S-1-5-32-544</WinSid></FileOwner><AccessPath><Path><PathNameType>WIN_NAME</PathNameType><PathName>\test\folder1</PathName></Path><Path><PathNameType>UNIX_NAME</PathNameType><PathName>/test/folder1</PathName></Path></AccessPath><VolMsid>2154003189</VolMsid><FileSize>4096</FileSize><NumHardLnk>2</NumHardLnk><IsOfflineAttr>0</IsOfflineAttr><FileType>DIR</FileType><IsSparse>0</IsSparse><IsDense>0</IsDense></ProtCommonInfo><DisplayPath>\\98_SVM1\cifsvol\test\folder1</DisplayPath><ProtVer><MajorNum>3</MajorNum><MinorNum>0</MinorNum></ProtVer></CommonInfo><TargetAccessPath><Path><PathNameType>WIN_NAME</PathNameType><PathName>\test2\folder1</PathName></Path><Path><PathNameType>UNIX_NAME</PathNameType><PathName>/test2/folder1</PathName></Path></TargetAccessPath></SmbRenReq></NotfInfo></FscreenReq>] message of length 1263 for FPolicy server [0x0x805aa5100] src/fsm/fsm_external_engine.cc:6240
 
数据包跟踪将显示:(取自ONTAP End)
  • 由于SMB2命令集中没有SMB2移动请求、SMB2客户端会使用setinfo调用执行移动操作
  • 文件夹移动是通过重命名调用完成的、其中旧路径(\test\folder1) 已重命名为新路径(\test2\folder1)
  • 已为发送Fpolicy屏幕请求 "SMB_REN_DIR"
clipboard_e05499b331c112f1440f9349412b00539.png

追加信息

  • 注:
    • 如果移动了文件而不是文件夹、则会使用 SMB_REN发送Fpolicy屏幕请求 
    • 文件"cmode_domain_login.pcapng"已从\\cifsvol移至\\cifsvol\test2

Fpolicy通知

Fpolicy通知

  • 启用Fpolicy调试:

CDOT::> set diag
Warning: These diagnostic commands are for use by NetApp personnel only.
Do you want to continue? {y|n}: y

警告

These diagnostic commands are for use by NetApp personnel only.

Exit diag mode ( use command "set admin" ) once the below debugging is enabled

CDOT::*> fpolicy log show -node *-module fpolicy::fsm

Node        Module                   Level
---------------- ---------------------------------------- ----------
CDOT-01
         fpolicy::fsm                info
CDOT-02
         fpolicy::fsm                info
2 entries were displayed.

CDOT::vserver fpolicy*> fpolicy log modify -node * -module fpolicy::fsm -level debug
2 entries were modified.

CDOT::vserver fpolicy*> fpolicy log show -node * -module fpolicy::fsm
Node        Module                   Level
---------------- ---------------------------------------- ----------
CDOT-01
         fpolicy::fsm                debug
CDOT-02
         fpolicy::fsm                debug
2 entries were displayed.

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.