通过Windows客户端移动文件夹时发送的Fpolicy通知是什么
适用场景
- ONTAP 9
- FPOLICY
问题解答
- 共享\\cifsvol\test中存在文件夹"folder1":(文件夹路径:-"\\cifsvol\test\folder1")
- 它将移动到文件夹路径"\\cifsvol\test2:(新文件夹路径:-"\\cifsvol\test2\folder1")
[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
- 由于SMB2命令集中没有SMB2移动请求、SMB2客户端会使用setinfo调用执行移动操作
- 文件夹移动是通过重命名调用完成的、其中旧路径(
\test\folder1)
已重命名为新路径(\test2\folder1)
- 已为发送Fpolicy屏幕请求
"SMB_REN_DIR"
追加信息
- 注:
- 如果移动了文件而不是文件夹、则会使用 SMB_REN发送Fpolicy屏幕请求
- 文件"cmode_domain_login.pcapng"已从\\cifsvol移至\\cifsvol\test2
- 启用Fpolicy调试:
CDOT::> set diag
Warning: These diagnostic commands are for use by NetApp personnel only.
Do you want to continue? {y|n}: y
警告
|
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.
- 要捕获数据包跟踪、请参见本知识库文章How to capture packet traces (tcpdump) on ONTAP 9.2+ systems