Subscribe

How to find the NetApp cluster to which a volume belongs from NFS FPolicy XML request

Hi,

 

I have configured NetApp FPolicy on a NFS volume. The FPolicy server I have developed get requests from NetApp. I am filtering the following operations (NFS_REN, NFS_REN_DIR, NFS_DEL, NFS_DEL_DIR, NFS_SET_ATTR).

 

I am using Data ONTAP 9.1. In the respose that NetApp sends, I have volume-msid from which I can find the volume to which a file belongs.

 

But if a user has multiple NetApp clusters, is there some way to identify from which cluster the request has come? i.e. Suppose a user has two NetApp physical clusters and SVMs on both clusters with FPolicy configured for SVMs in both clusters. 

 

From the NFS XML request that NetApp sends to FPolicy server, can I figure out which NetApp cluster hosts the SVM that is sending out the request?

 

Here is a sample response that I got for Rename of a file.

 

"...."<?xml.version="1.0"?><Header><NotfType>SCREEN_REQ</NotfType><ContentLen>1135</ContentLen><DataFormat>XML</DataFormat></Header>..

<?xml.version="1.0"?><FscreenReq><ReqId>401673</ReqId><ReqType>NFS_REN</ReqType><NotfInfo><NfsRenReq><CommonInfo><ProtCommonInfo>
<ClientIp>10.1.10.84</ClientIp><GenerationTime>1495492522475821</GenerationTime><UsrIdType>UNIX_ONLY</UsrIdType><UsrContext><UnixUid>502</UnixUid>
</UsrContext><FileOwner><UnixUid>502</UnixUid></FileOwner><AccessPath><Path><PathNameType>WIN_NAME</PathNameType><PathName>\Data\boot.log</PathName>
</Path><Path><PathNameType>UNIX_NAME</PathNameType><PathName>/Data/boot.log</PathName></Path></AccessPath><VolMsid>2155207719</VolMsid>
<FileSize>28028</FileSize><NumHardLnk>1</NumHardLnk><IsOfflineAttr>0</IsOfflineAttr><FileType>FILE</FileType><IsSparse>0</IsSparse><IsDense>0</IsDense>
</ProtCommonInfo><ProtVer><MajorNum>3</MajorNum><MinorNum>0</MinorNum></ProtVer><UserGids>20.702.12.61.79.80.81.98.701.33.100.204.395.398.399.</UserGids>
</CommonInfo><TargetAccessPath><Path><PathNameType>WIN_NAME</PathNameType><PathName>\Data\boot_renamed.log</PathName></Path><Path><PathNameType>UNIX_NAME
</PathNameType><PathName>/Data/boot_renamed.log</PathName></Path></TargetAccessPath></NfsRenReq></NotfInfo></FscreenReq>  

 

Thanks for your help!