Network and Storage Protocols

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

MohitD

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! 

0 REPLIES 0
Announcements
Register for Insight 2021 Digital

INSIGHT 2021 Digital: Meet the Specialists 2

On October 20-22, gear up for a fully digital, totally immersive virtual experience with a downright legendary lineup of world-renowned specialists. Tune in for visionary conversations, solution deep dives, technical sessions and more.

NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner
Public